Marcel Müller 413f13ddc9 Remove unusued qualifications lint
This is due to rust-lang/rust#37345, once that is fixed this can be
reverted
2016-10-22 18:29:20 +02:00
2016-10-22 18:29:20 +02:00
2016-10-22 18:29:20 +02:00
2016-10-15 14:38:17 +02:00
2016-10-15 18:14:13 +02:00
2016-10-16 13:18:41 +02:00
2016-10-15 14:38:17 +02:00
2016-10-15 18:14:12 +02:00

Rustbreak

Build Status

Documentation

Rustbreak is an Daybreak inspired file database. It is meant to be fast and simple to use.

Features

  • Simple To Use, Fast, Secure
  • Threadsafe

Usage

Usage is quite simple:

  • Create/open a database using Database::open
    • You can specify the kind of Key you want using this Syntax: Database::<Key>::open
  • Insert/Retrieve data from the Database
  • Don't forget to run flush periodically
use rustbreak::Database;

fn main() {
    let db = Database::open("my_contacts").unwrap();

    db.insert("Lapfox", "lapfoxtrax.com").unwrap();
    db.insert("Rust", "github.com/rust-lang/rust").unwrap();

    // we need to be explicit about the kind of type we want as println! is
    // generic
    let rust : String = db.retrieve("Rust").unwrap();
    println!("You can find Rust at: {}", rust);
    db.flush().unwrap();
}
S
Description
A simple, fast and easy to use self-contained single file storage for Rust
Readme MPL-2.0 312 KiB
Languages
Rust 100%