Commit e418cdbd authored by Tyler Neely's avatar Tyler Neely

small example to readme

parent 36e9975a
...@@ -5,6 +5,16 @@ rust-rocksdb ...@@ -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
``` ```
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment