Module store

Module store 

Source

Structs§

DBTransaction
Write transaction. Batches a sequence of put/delete operations for efficiency.
IoStats
Statistic for the span period
MemoryDatabase
A key-value database fulfilling the KeyValueDB trait, living in memory. This is generally intended for tests and is not particularly optimized.

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
Database keys.
DBKeyValue
A tuple holding key and value data, used in the iterator item type.
DBValue
Database value.