Skip to content

Evanfeenstra/fsdb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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(())
}

About

dead simple filesystem db for rust

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages