[−][src]Crate simpledb
NoSQL embedded database on top of RocksDB.
Usage:
use simpledb::Database; // open a database let db = Database::open("./target/path/to/database").unwrap(); // left push a value to a list db.list_left_push("key", "value".as_bytes()).unwrap();
Supported data type:
- map: Store field/value pairs, includes the following operations with
map_
prefix:get
,put
,delete
,count
,for_each
,items
. - set: Store unique values, includes the following operations with
set_
prefix:add
,is_member
,delete
,count
,for_each
,items
. - list: Store ordered values, includes the following operations with
list_
prefix:left_push
,left_pop
,right_push
,right_pop
,count
,for_each
,items
. - sorted list: Store sorted score/value pairs, includes the following operations with
sorted_list_
prefix:add
,left_pop
,right_pop
,count
,for_each
,items
.
Re-exports
pub use encoding::BytesComparableScore; |
pub use encoding::KeyMeta; |
pub use encoding::KeyType; |
Modules
encoding | Encoding utilities. |
rocksdb | Re-exports the rocksdb crate. |
Structs
Database | Database instance. |
Options | Options for open a database. |
Type Definitions
Result |