Available on crate feature
mdbx
only.Expand description
Bindings for MDBX.
Modules§
- Cursor wrapper for libmdbx-sys.
libmdbx
bindings.- Transaction wrapper for libmdbx-sys.
Macros§
Structs§
- Commit latencies info.
- A cursor for navigating the items within a database.
- A handle to an individual database in an environment.
- Arguments for database initialization.
- Wrapper for the libmdbx environment: Environment
- Database options.
- An environment supports multiple databases, all residing in the same shared-memory map.
- Options for opening or creating an environment.
- Represents the geometry settings for the database environment
- Environment information.
- If you don’t need the data itself, just its length.
- Environment statistics.
- An MDBX transaction.
- Write options.
Enums§
- Environment used when opening a MDBX environment. RO/RW.
- Determines how data is mapped into memory
- An MDBX error kind.
- An iterator over the key/value pairs in an MDBX database.
- An iterator over the keys and duplicate values in an MDBX database.
- MaxRead
Transaction Duration read-tx-timeouts
The maximum duration of a read transaction. - MDBX sync mode
Constants§
- 1 GB in bytes
- 1 KB in bytes
- 1 MB in bytes
- 1 TB in bytes
Traits§
- Implement this to be able to decode data values
Functions§
- Creates a new database at the specified path if it doesn’t exist. Does NOT create tables. Check
init_db
. - Opens up an existing database or creates a new one at the specified path. Creates tables if necessary. Read/Write mode.
- Opens up an existing database. Read/Write mode with
WriteMap
enabled. It doesn’t create it or create tables if missing. - Opens up an existing database. Read only mode. It doesn’t create it or create tables if missing.
Type Aliases§
- Handle-Slow-Readers callback function to resolve database full/overflow issue due to a reader(s) which prevents the old data from being recycled.
- An MDBX result.