Crate batadase

Source
Expand description

Batadase: An incredible LMDB wrapper.

Note that this crate does not compile on wasm, but batadase-index does.

You can use the batadase-macros crate to do make a table easier, e.g.

#[derive(batadase_macros::DbName)]
#[flags(lmdb::DbFlags::IntegerKey)]
#[table(Table<'tx, TX, MyActualDataStruct>)]
struct MyTable

then use def_tx_ops below to init the db.

Re-exports§

pub use env::Env;
pub use lmdb::DbFlags;
pub use lmdb::CursorOpFlags;
pub use error::Error;
pub use enumflags2;
pub use transaction::*;

Modules§

assoc_table
env
error
index_poly_table
index_table
lmdb
transaction

Macros§

def_tx_ops
If you use a single static Env, e.g.

Structs§

Index

Traits§

DbName
Table

Functions§

set_version
unrkyv
unrkyv_from_bytes
verify
version

Derive Macros§

DbName