Crate keyvaluedb

Source
Expand description

Key-Value store abstraction.

Structs§

DBTransaction
Write transaction. Batches a sequence of put/delete operations for efficiency.
DBTransactionError
Transaction Result, returns the transaction unchanged upon error
IoStats
Statistic for the span period

Enums§

DBOp
Database operation.
IoStatsKind
Statistic kind to query.

Constants§

PREFIX_LEN
Required length of prefixes.

Traits§

KeyValueDB
Generic key-value database.

Functions§

end_prefix
For a given start prefix (inclusive), returns the correct end prefix (non-inclusive). This assumes the key bytes are ordered in lexicographical order. Since key length is not limited, for some case we return None because there is no bounded limit (every keys in the serie [], [255], [255, 255] …).

Type Aliases§

DBKey
DBKeyRef
DBKeyValue
DBKeyValueRef
DBValue
Database value.