pack-db

Crates.iopack-db
lib.rspack-db
version0.2.0
sourcesrc
created_at2021-11-06 17:23:23.531701
updated_at2021-11-07 08:08:47.787504
descriptionSimple messagepack based database
homepagehttps://github.com/Tricked-dev/pack-db
repositoryhttps://github.com/Tricked-dev/pack-db
max_upload_size
id477742
size21,822
Tricked (Tricked-dev)

documentation

README

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");
Commit count: 6

cargo fmt