Crates.io | trivialdb |
lib.rs | trivialdb |
version | 0.1.8 |
source | src |
created_at | 2023-06-12 01:02:30.308654 |
updated_at | 2024-09-24 14:35:33.823652 |
description | Rust bindings for the TDB database library |
homepage | https://github.com/jelmer/tdb-rs |
repository | https://github.com/jelmer/tdb-rs.git |
max_upload_size | |
id | 887659 |
size | 48,739 |
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 mut tdb = Tdb::memory(None, Flags::empty()).unwrap();
tdb.store(b"key", b"value", None).unwrap();
assert_eq!(Some(b"value".to_vec()), tdb.fetch(b"key").unwrap());