You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
Tyler Neely 954909a870 clarify example 10 years ago
src some initial scratchings 10 years ago
Cargo.lock some initial scratchings 10 years ago
Cargo.toml some initial scratchings 10 years ago
README.md clarify example 10 years ago

README.md

rust-rocksdb

  • rust wrapper for rocksdb
  • development began 11/16/14
  • status: minimal functionality with poor style and an annoying interface
fn f() {
    // arguments are path for rocksdb files, create if missing
    let db = Rocksdb::open("testdb", true).unwrap();
    db.put(b"a key", b"a value");
    ...
    let r = db.get(b"this is key").unwrap();
    db.close();
}

running

  • get rocksdb
git clone https://github.com/facebook/rocksdb
cd rocksdb
make shared_lib
  • run tests
LD_PRELOAD=/path/to/rocksdb/librocksdb.so cargo test
  • enjoy (as much as you can with such a poor current library! stay tuned!)