fsdb

Crates.iofsdb
lib.rsfsdb
version0.1.18
sourcesrc
created_at2022-07-17 18:58:42.770512
updated_at2023-09-15 17:25:29.65269
descriptionfilesystem database
homepage
repositoryhttps://github.com/Evanfeenstra/fsdb
max_upload_size
id627327
size18,236
Evan Feenstra (Evanfeenstra)

documentation

README

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(())
}
Commit count: 33

cargo fmt