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.