A work-in-progress embedded database library written in and for Rust.
See the TODO.md
file.
``` extern crate dolphin;
use dolphin::{ DBBuilder, index::{ HashMapBuilder, Index, IndexBuilder }, storage::{ MemoryBuilder, Storage, StorageBuilder } };
let db = DBBuilder::new() .storage(MemoryBuilder::new().build().unwrap()) .index(HashMapBuilder::new().build().unwrap()) .build() .unwrap();
let key = "hello".asbytes(); let val = "world".asbytes();
db.set(key.tovec(), val.tovec()); asserteq!(db.get(key), Some(val.tovec()); ```