19 releases
0.1.18 | Sep 15, 2023 |
---|---|
0.1.17 | Sep 12, 2023 |
0.1.11 | Jul 21, 2022 |
#840 in Database interfaces
86 downloads per month
19KB
464 lines
fsdb
Filesystem database
usage:
#[derive(Serialize, Deserialize, Debug, PartialEq, Eq, Clone)]
struct Thing {
n: u8,
}
fn main() -> Result<()> {
let db = Fsdb::new("testdb")?;
let b = db.bucket("testbucket")?;
let t1 = Thing { n: 1 };
b.put("testkey", t1.clone())?
let t2: Thing = b.get("testkey")?
assert_eq!(t1, t2);
Ok(())
}
Dependencies
~0.7–1.4MB
~29K SLoC