Skip to content

Latest commit

 

History

History
25 lines (22 loc) · 618 Bytes

README.md

File metadata and controls

25 lines (22 loc) · 618 Bytes

topazdb

A persistent key-value storage in rust, based on LSM tree.

This project is still under development.

example

fn main() {
    let storage = topazdb::opt::LsmOptions::default()
        .path("./")
        .open()
        .unwrap();
    storage.put(b"key", b"value").unwrap();
    let value = storage.get(b"key").unwrap();
    println!("value: {value:?}");
    storage.delete(b"key").unwrap();
    let value = storage.get(b"key").unwrap();
    println!("value: {value:?}");
}

Reference