diff --git a/Cargo.toml b/Cargo.toml index bed6a80..4dafe2e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,7 +2,7 @@ name = "rocksdb" description = "A Rust wrapper for Facebook's RocksDB embeddable database." -version = "0.2.0" +version = "0.2.1" authors = ["Tyler Neely ", "David Greenberg "] license = "Apache-2.0" keywords = ["database", "embedded", "LSM-tree", "persistence"] diff --git a/README.md b/README.md index 06864fe..d85290d 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ rust-rocksdb [![Build Status](https://travis-ci.org/spacejam/rust-rocksdb.svg?branch=master)](https://travis-ci.org/spacejam/rust-rocksdb) [![crates.io](http://meritbadge.herokuapp.com/rocksdb)](https://crates.io/crates/rocksdb) -This library has been tested against RocksDB 3.13.1 on linux and OSX. The 0.2.0 crate should work with the Rust 1.4 stable and nightly releases as of 11/7/15. +This library has been tested against RocksDB 3.13.1 on linux and OSX. The 0.2.1 crate should work with the Rust 1.4 stable and nightly releases as of 11/15/15. ### status - [x] basic open/put/get/delete/close @@ -36,7 +36,7 @@ sudo make install ###### Cargo.toml ```rust [dependencies] -rocksdb = "0.2.0" +rocksdb = "0.2.1" ``` ###### Code ```rust diff --git a/src/lib.rs b/src/lib.rs index 3443657..0c80cd6 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -15,7 +15,7 @@ // pub use ffi as rocksdb_ffi; pub use ffi::{DBCompactionStyle, DBComparator, new_bloom_filter}; -pub use rocksdb::{DB, DBVector, Direction, Writable, WriteBatch}; +pub use rocksdb::{DB, DBIterator, DBVector, Direction, SubDBIterator, Writable, WriteBatch}; pub use rocksdb_options::{BlockBasedOptions, Options}; pub use merge_operator::MergeOperands; pub mod rocksdb; diff --git a/src/main.rs b/src/main.rs index b82068d..2a2d2dc 100644 --- a/src/main.rs +++ b/src/main.rs @@ -57,9 +57,9 @@ fn main() { Some(v) => println!("retrieved utf8 value: {}", v), None => println!("did not read valid utf-8 out of the db"), } - } + }, + Ok(None) => panic!("value not present!"), Err(e) => println!("error retrieving value: {}", e), - _ => panic!("value not present!"), } assert!(db.delete(b"my key").is_ok()); @@ -106,8 +106,8 @@ fn custom_merge() { None => println!("did not read valid utf-8 out of the db"), } } + Ok(None) => panic!("value not present!"), Err(e) => println!("error retrieving value: {}", e), - _ => panic!("value not present!"), } } DB::destroy(&opts, path).is_ok();