velarixdb 0.0.17

An LSM Storage Engine focused on reduced IO amplification
Documentation
use tempfile::tempdir;
use velarixdb::db::DataStore;

#[tokio::main]
async fn main() {
    let root = tempdir().unwrap();
    let path = root.path().join("velarix");
    let mut store = DataStore::open("big_tech", path).await.unwrap(); // handle IO error

    store.put("apple", "tim cook").await.unwrap(); // handle error

    // Retrieve entry
    let entry = store.get("apple").await.unwrap();
    assert!(entry.is_some());

    // Delete entry
    store.delete("apple").await.unwrap();

    // Entry should now be None
    let entry = store.get("apple").await.unwrap();
    assert!(entry.is_none());
}