small example to readme

master
Tyler Neely 10 years ago
parent 36e9975a3c
commit e418cdbdc5
  1. 10
      README.md

@ -5,6 +5,16 @@ rust-rocksdb
* development began 11/16/14 * development began 11/16/14
* status: minimal functionality with poor style and an annoying interface * status: minimal functionality with poor style and an annoying interface
```
fn f() {
let db = Rocksdb::open("testdb", true).unwrap();
db.put(b"a key", b"a value");
...
let r = db.get(b"k1").unwrap();
db.close();
}
```
### running ### running
- get rocksdb - get rocksdb
``` ```

Loading…
Cancel
Save