Expand description
Rust bindings for TDB (Trivial Database).
TDB is a simple database that provides a key-value store. It is designed to be fast and reliable, and is used by Samba for storing data. It supports multiple readers and writers at the same time.
This crate provides a safe, rustic wrapper around the TDB C API.
§Example
use trivialdb::{Flags,Tdb};
let mut tdb = Tdb::memory(None, Flags::empty()).unwrap();
tdb.store(b"foo", b"bar", None).unwrap();
assert_eq!(tdb.fetch(b"foo").unwrap().unwrap(), b"bar");
Structs§
Enums§
- Error
- Errors that can occur when interacting with a Trivial Database
- Store
Flags - Store option Flags
Constants§
Functions§
- jenkins_
hash - Generate the jenkins hash of a key