Expand description
§The DB Library
This Library contains the KeyValueDB
traits
which provides key-value store interface
Re-exports§
pub use crate::db::RocksDB;
pub use crate::db_with_ttl::DBWithTTL;
pub use crate::iter::DBIterator;
pub use crate::read_only_db::ReadOnlyDB;
pub use crate::snapshot::RocksDBSnapshot;
pub use crate::transaction::RocksDBTransaction;
pub use crate::transaction::RocksDBTransactionSnapshot;
pub use crate::write_batch::RocksDBWriteBatch;
pub use rocksdb as internal;
Modules§
- db
- RocksDB wrapper base on OptimisticTransactionDB
- db_
with_ ttl - DB with ttl support wrapper
- iter
- RocksDB iterator wrapper base on DBIter
- read_
only_ db - ReadOnlyDB wrapper base on rocksdb read_only_open mode
- snapshot
- RocksDB snapshot wrapper
- transaction
- RocksDB optimistic transaction wrapper
- write_
batch - RocksDB write batch wrapper
Structs§
- DBError
- A simple wrapper round a string, used for errors reported from ffi calls.
- DBPinnable
Slice - Wrapper around RocksDB PinnableSlice struct.
- DBVector
- Vector of bytes stored in the database.
- Read
Options - Write
Batch - An atomic batch of write operations.
Enums§
Type Aliases§
- Result
- The type returned by database methods.