[−][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 |