heed
A fully typed LMDB wrapper with minimum overhead, uses zerocopy internally.
This library is able to serialize all kind of types, not just bytes slices, even Serde types are supported.
?;
let env = new.open?;
// we will open the default unamed database
let db: = env.create_database?;
// opening a write transaction
let mut wtxn = env.write_txn?;
db.put?;
db.put?;
db.put?;
db.put?;
wtxn.commit?;
// opening a read transaction
// to check if those values are now available
let mut rtxn = env.read_txn?;
let ret = db.get?;
assert_eq!;
let ret = db.get?;
assert_eq!;
create_dir_all
You want to see more about all the possibilities? Go check out the example.