Crate surrealkv

Crate surrealkv 

Source

Modules§

bplustree

Structs§

BytewiseComparator
A bytewise comparator that compares keys lexicographically.
InternalKeyComparator
Options
ReadOptions
Options for read operations in transactions. This struct allows configuring various parameters for read operations like get(), range(), and keys().
TimestampComparator
A comparator that compares internal keys first by user key, then by timestamp This is used for versioned queries where we want to order by user key and timestamp
Transaction
A transaction in the LSM tree providing ACID guarantees.
Tree
TreeBuilder
A builder for creating LSM trees with type-safe configuration.
WriteOptions
Options for write operations in transactions. This struct allows configuring various parameters for write operations like set() and delete().

Enums§

CompressionType
Durability
Error
Error is a custom error type for the storage module. It includes various variants to represent different types of errors that can occur.
Mode
Mode is an enumeration representing the different modes a transaction can have in an MVCC (Multi-Version Concurrency Control) system.
VLogChecksumLevel
WalRecoveryMode
WAL recovery mode to control consistency guarantees during crash recovery.

Traits§

Comparator
A trait for comparing keys in a key-value store.
FilterPolicy
IntoBytes
An optimised trait for converting values to bytes only when needed

Type Aliases§

IterResult
Type alias for iterator results containing key-value pairs Value is optional to support keys-only iteration without allocating empty values
Key
The Key type used throughout the LSM tree
KeysResult
Type alias for iterator results containing only keys
RangeResult
Type alias for iterator results containing keys and values
Result
Result returning Error
Value
The Value type used throughout the LSM tree
Version
Type alias for version/timestamp values