Crate ckb_db[][src]

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::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

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.

DBPinnableSlice

Wrapper around RocksDB PinnableSlice struct.

DBVector

Vector of bytes stored in the database.

ReadOptions
WriteBatch

An atomic batch of write operations.

Enums

Direction
IteratorMode

Type Definitions

Result

The type returned by database methods.