Module kvs

Source
Expand description

The module defining the key value store. Everything related the transaction for the key value store is defined in the tx.rs file. This module enables the following operations on the key value store:

  • get
  • set
  • delete
  • put

These operations can be processed by the following storage engines:

  • fdb: FoundationDB a distributed database designed to handle large volumes of structured data across clusters of commodity servers
  • indxdb: WASM based database to store data in the browser
  • rocksdb: RocksDB an embeddable persistent key-value store for fast storage
  • tikv: TiKV a distributed, and transactional key-value database
  • mem: in-memory database

Modules§

export

Structs§

Datastore
The underlying datastore instance which stores the dataset.
Live
Transaction
Transactor
A set of undoable updates and requests against a dataset.

Enums§

Check
Used to determine the behaviour when a transaction is not closed correctly
LockType
Specifies whether the transaction is optimistic or pessimistic.
TransactionType
Specifies whether the transaction is read-only or writeable.

Traits§

KeyDecode
A trait for types which can be decoded from a kv-store key bytes.
KeyDecodeOwned
KeyEncode
A trait for types which can be encoded as a kv-store key.

Type Aliases§

Key
The key part of a key-value pair. An alias for Vec<u8>.
Val
The value part of a key-value pair. An alias for Vec<u8>.
Version
The Version part of a key-value pair. An alias for u64.