19 releases

0.1.18 Sep 15, 2023
0.1.17 Sep 12, 2023
0.1.11 Jul 21, 2022

#840 in Database interfaces

Download history 69/week @ 2024-07-24 31/week @ 2024-07-31 9/week @ 2024-09-18 8/week @ 2024-09-25

86 downloads per month

MIT license

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