Expand description
Idiomatic and safe APIs for interacting with the Lightning Memory-mapped Database (LMDB).
natdb is a maintained fork of Mozilla’s lmdb-rkv (itself a fork of Dan
Burkert’s lmdb-rs). The raw FFI layer lives in the natdb-sys crate, which
builds LMDB from vendored upstream sources.
Structs§
- Database
- A handle to an individual database in an environment.
- Database
Flags - Database options.
- Environment
- An LMDB environment.
- Environment
Builder - Options for opening or creating an environment.
- Environment
Flags - Environment options.
- Inactive
Transaction - An inactive read-only transaction.
- Info
- Environment information.
- RoCursor
- A read-only cursor for navigating the items within a database.
- RoTransaction
- An LMDB read-only transaction.
- RwCursor
- A read-write cursor for navigating items within a database.
- RwCursor
Reader - Read access to the position of a
RwCursor, obtained withRwCursor::reader. - RwTransaction
- An LMDB read-write transaction.
- Stat
- Environment statistics.
- Version
- Version of the LMDB C library compiled into this crate.
- Write
Flags - Write options.
Enums§
- Error
- An LMDB error kind.
- Iter
- An iterator over the key/value pairs in an LMDB database.
- IterDup
- An iterator over the keys and duplicate values in an LMDB database.
Traits§
- Cursor
- An LMDB cursor.
- Transaction
- An LMDB transaction.
Functions§
- version
- Returns the version of the LMDB library natdb is linked against.
Type Aliases§
- Result
- An LMDB result.