quick-kv 0.1.2

A fast and minimal key-value database.
Documentation
quick-kv-0.1.2 has been yanked.

Quick-KV

A Fast Key Value Database in rust.

Features

  • Binary Based Data
  • Multiple Data Type Support
  • Multiple Database Management (todo)

Installation

cargo add quick-kv

Usage

use quick_kv::{QuickClient, Value};

fn main() {
    let mut client = QuickClient::new(None).unwrap();

    client
        .set("hello", Value::String("hello world!".to_string()))
        .unwrap();

    let result = match client.get::<Value>("hello").unwrap().unwrap() {
        Value::String(s) => s,
        _ => panic!("Error getting value"),
    };

    assert_eq!(result, String::from("hello world!"));
}