surrealdb

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
  • speedb: SpeedyDB fork of rocksDB making it faster (Redis is using speedb but this is not acid transactions)
  • tikv: TiKV a distributed, and transactional key-value database
  • mem: in-memory database

Structs§

Datastore
The underlying datastore instance which stores the dataset.
LqValue
Used for cluster logic to move LQ data to LQ cleanup code Not a stored struct; Used only in this module
Transaction
A set of undoable updates and requests against a dataset.

Enums§

LockType
TransactionType

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>.