| Crates.io | trivialdb |
| lib.rs | trivialdb |
| version | 0.1.9 |
| created_at | 2023-06-12 01:02:30.308654+00 |
| updated_at | 2025-07-28 23:40:24.122698+00 |
| 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 | 67,672 |
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());