magnumdb 0.4.8

High-performance embeddable database engine in Rust with B+ Tree storage, WAL durability, Volcano query engine, and Postgres wire protocol support.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use magnumdb::{Config, Database};

fn main() -> anyhow::Result<()> {
    let config = Config::default().with_path("./my_database");
    let mut db = Database::open(config)?;

    db.put(b"hello", b"world")?;
    let val = db.get(b"hello")?;

    assert_eq!(val.unwrap(), b"world");
    println!("Basic usage complete! Data persisted to ./my_database");

    Ok(())
}