You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Keys are lexicographically sorted by default. A custom key ordering may be defined per named database.
Zero maintenance: does not require any compaction, external processes, or background threads running.
Entire database is exposed as a single file accompanied by a lockfile. A single database file may comprise of multiple named databases.
Fully exploits the operating system's buffer cache given its memory mapping and compact size being a mere 32KB worth of object code.
Refer to the 12 extensive unit tests provided here for usage instructions and guidelines.
Built and tested against Zig's master branch over all possible optimization modes.
Motivation
These bindings were built in mind for utilizing LMDB as the underlying backend of a database project.
As a result, extensive effort was put into exposing and testing as many different aspects of LMDB's functionality as possible with an emphasis on minimal overhead, such as fixed memory map addressing, in-place cursor updates, duplicate keys, on-the-fly backups, crash recovery, etc.
Setup
These bindings were built with first-class support for the zigmod package manager.
To incorporate these bindings into your project, include the following into your project's zig.mod:
Presently, these bindings completely cover the entire API surface for LMDB except for the list of methods provided below that were deemed unnecessary. In the case you require any of these methods exported, please file an issue describing your use case.