Struct ckb_db::read_only_db::ReadOnlyDB[][src]

pub struct ReadOnlyDB { /* fields omitted */ }
Expand description

ReadOnlyDB wrapper

Implementations

The behavior is similar to DB::Open, except that it opens DB in read-only mode. One big difference is that when opening the DB as read-only, you don’t need to specify all Column Families – you can only open a subset of Column Families.

Return the value associated with a key using RocksDB’s PinnableSlice from the default column so as to avoid unnecessary memory copy.

Return the value associated with a key using RocksDB’s PinnableSlice from the given column so as to avoid unnecessary memory copy.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

TODO(doc): @quake

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.