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.
rust-rocksdb/README.md

31 lines
653 B

10 years ago
rust-rocksdb
============
* rust wrapper for rocksdb
* development began 11/16/14
* status: minimal functionality with poor style and an annoying interface
```
fn f() {
10 years ago
// arguments are path for rocksdb files, create if missing
let db = Rocksdb::open("testdb", true).unwrap();
db.put(b"a key", b"a value");
...
10 years ago
let r = db.get(b"this is key").unwrap();
db.close();
}
```
### running
10 years ago
- get rocksdb
10 years ago
```
git clone https://github.com/facebook/rocksdb
cd rocksdb
make shared_lib
```
10 years ago
- run tests
10 years ago
```
LD_PRELOAD=/path/to/rocksdb/librocksdb.so cargo test
```
10 years ago
- enjoy (as much as you can with such a poor current library! stay tuned!)