rocks 0.1.4

RocksDB bindings for Rust.
docs.rs failed to build rocks-0.1.4
Please check the build logs and, if you believe this is docs.rs' fault, open an issue.
Visit the last successful build: rocks-0.1.2

Rust-Rocks

The RocksDB API in Rustic Style.

Examples

use rocks::rocksdb::*;
// RAII DB instance
let db = DB::open(&Options::default(), "./data").unwrap();
assert!(db.put(&WriteOptions::default(), b"my key", b"my value").is_ok());
match db.get(&ReadOptions::default(), b"my key") {
Ok(ref value) => println!("retrieved value {}", String::from_utf8_lossy(value)),
Err(e) => println!("operational problem encountered: {}", e),
}
let _ = db.delete(&WriteOptions::default(), b"my key").unwrap();