Skip to main content

Crate natdb

Crate natdb 

Source
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.
DatabaseFlags
Database options.
Environment
An LMDB environment.
EnvironmentBuilder
Options for opening or creating an environment.
EnvironmentFlags
Environment options.
InactiveTransaction
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.
RwCursorReader
Read access to the position of a RwCursor, obtained with RwCursor::reader.
RwTransaction
An LMDB read-write transaction.
Stat
Environment statistics.
Version
Version of the LMDB C library compiled into this crate.
WriteFlags
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.