2 unstable releases

0.2.0 Nov 7, 2021
0.1.0 Nov 6, 2021

#1297 in Database interfaces

Apache-2.0

8KB
112 lines

PackDb

PackDb is a simple key value messagepack store Inspired by kwik It uses your local storage

pack-db = "0.2.0"

Example

use pack_db::PackDb:
use serde::{Deserialize, Serialize};

#[derive(Debug, PartialEq, Deserialize, Serialize)]
struct User {
    name: String,
    age: i32
}

let store = PackDb::<User>::new(Some("data".to_owned()));
store.set("user1", User {name: "useer1", age: 16});
let user = store.get("user1");

Dependencies

~0.8–1.5MB
~32K SLoC