Module lmdb

Module lmdb 

Source
Expand description

Storage of core types using LMDB.

Structs§

Batch
Batch to write multiple Writeables to db in an atomic manner.
PrefixIterator
An iterator based on key prefix. Caller is responsible for deserialization of the data.
Store
LMDB-backed store facilitating data access and serialization. All writes are done through a Batch abstraction providing atomicity.

Enums§

Error
Main error type for this lmdb

Constants§

ALLOC_CHUNK_SIZE_DEFAULT
number of bytes to grow the database by when needed
ALLOC_CHUNK_SIZE_DEFAULT_TEST
And for test mode, to avoid too much disk allocation on windows

Functions§

option_to_not_found
unwraps the inner option by converting the none case to a not found error