Crate shorterdb

Crate shorterdb 

Source
Expand description

§ShorterDB

A lightweight embedded key-value store built with SkipLists and LSM architecture.

§Example

use shorterdb::ShorterDB;
use std::path::Path;

let mut db = ShorterDB::new(Path::new("./my_db")).unwrap();
db.set(b"key", b"value").unwrap();
let value = db.get(b"key").unwrap();
assert_eq!(value, Some(b"value".to_vec()));

Re-exports§

pub use errors::Result;
pub use errors::ShortDBErrors;
pub use kv::db::ShorterDB;

Modules§

errors
kv