Rust bindings for TDB
This rust crate provides idiomatic Rust bindings for the Trivial Database (TDB) library.
See the TDB homepage for more details.
Example
use ;
let tdb = memory;
tdb.store.unwrap;
assert_eq!;
This rust crate provides idiomatic Rust bindings for the Trivial Database (TDB) library.
See the TDB homepage for more details.
use trivialdb::{Tdb,Flags};
let tdb = Tdb::memory(None, Flags::empty());
tdb.store(b"key", b"value", None).unwrap();
assert_eq!(b"value", tdb.fetch(b"key"));