2 releases

Uses old Rust 2015

0.1.1 Dec 6, 2017
0.1.0 Oct 20, 2017

#2122 in Database interfaces

Download history 1/week @ 2024-02-19 61/week @ 2024-02-26 14/week @ 2024-03-04 4/week @ 2024-03-11 1/week @ 2024-03-18 1/week @ 2024-03-25 46/week @ 2024-04-01

54 downloads per month
Used in noise_search

Apache-2.0

9MB
196K SLoC

C++ 169K SLoC // 0.1% comments Java 19K SLoC // 0.3% comments Rust 2.5K SLoC // 0.1% comments Shell 2.5K SLoC // 0.2% comments Python 1.5K SLoC // 0.2% comments C 1.5K SLoC // 0.0% comments PowerShell 285 SLoC // 0.2% comments Bitbake 169 SLoC // 0.2% comments INI 107 SLoC // 0.2% comments JavaScript 94 SLoC // 0.0% comments

rust-rocksdb

Build Status

documentation

Feedback and pull requests welcome! If a particular feature of RocksDB is important to you, please let me know by opening an issue, and I'll prioritize it.

[dependencies]
rocksdb = "0.6.0"

This binding is statically linked with a specific version of RocksDB. If you want to build it yourself, make sure you've also cloned the RocksDB and Snappy submodules:

git submodule update --init --recursive

lib.rs:

Rust wrapper for RocksDB.

Examples

 use rocksdb::DB;
 // NB: db is automatically closed at end of lifetime
 let db = DB::open_default("path/for/rocksdb/storage").unwrap();
 db.put(b"my key", b"my value");
 match db.get(b"my key") {
    Ok(Some(value)) => println!("retrieved value {}", value.to_utf8().unwrap()),
    Ok(None) => println!("value not found"),
    Err(e) => println!("operational problem encountered: {}", e),
 }
 db.delete(b"my key").unwrap();

Dependencies