Sleded
A sled-ed database.
Description
a simple crate that exposes a minimalist API for storing persistent data to a file. Backed by sled and serde with RON.
Example
// Something to store, needs to be serializable.
// storing an item
let db = open.unwrap;
let table = db.table;
let bob_key = table.push;
// query one item
let bob = table.get;
dbg!;
// query all items
for in table.iter
// update items
for key in table.keys
TODOs
- store stuff.
- table by type.
- better error handling.
- generate migrations.