Available on crate feature
mdbx
only.Expand description
Helper functions for initializing and opening a database.
Modules§
Macros§
Structs§
- Commit
Latency - Commit latencies info.
- Cursor
- A cursor for navigating the items within a database.
- Database
- A handle to an individual database in an environment.
- Database
Arguments - Arguments for database initialization.
- Database
Env - Wrapper for the libmdbx environment: Environment
- Database
Flags - Database options.
- Environment
- An environment supports multiple databases, all residing in the same shared-memory map.
- Environment
Builder - Options for opening or creating an environment.
- Environment
Flags - Geometry
- Represents the geometry settings for the database environment
- Info
- Environment information.
- Object
Length - If you don’t need the data itself, just its length.
- RO
- RW
- Stat
- Environment statistics.
- Transaction
- An MDBX transaction.
- Write
Flags - Write options.
Enums§
- Database
EnvKind - Environment used when opening a MDBX environment. RO/RW.
- Environment
Kind - Determines how data is mapped into memory
- Error
- An MDBX error kind.
- Handle
Slow Readers Return Code - Iter
- An iterator over the key/value pairs in an MDBX database.
- IterDup
- 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.
- Mode
- Page
Size - Sync
Mode - MDBX sync mode
Constants§
Traits§
- Table
Object - Implement this to be able to decode data values
- Transaction
Kind
Functions§
- create_
db - Creates a new database at the specified path if it doesn’t exist. Does NOT create tables. Check
init_db
. - init_db
- Opens up an existing database or creates a new one at the specified path. Creates tables defined
in
Tables
if necessary. Read/Write mode. - init_
db_ for - Opens up an existing database or creates a new one at the specified path. Creates tables defined
in the given
TableSet
if necessary. Read/Write mode. - open_db
- Opens up an existing database. Read/Write mode with
WriteMap
enabled. It doesn’t create it or create tables if missing. - open_
db_ read_ only - Opens up an existing database. Read only mode. It doesn’t create it or create tables if missing.
Type Aliases§
- Handle
Slow Readers Callback - Handle-Slow-Readers callback function to resolve database full/overflow issue due to a reader(s) which prevents the old data from being recycled.
- Result
- An MDBX result.