[][src]Struct ckb_db::db::RocksDB

pub struct RocksDB { /* fields omitted */ }

TODO(doc): @quake

Implementations

impl RocksDB[src]

pub fn open(config: &DBConfig, columns: u32) -> Self[src]

TODO(doc): @quake

pub fn open_tmp(columns: u32) -> Self[src]

TODO(doc): @quake

pub fn get_pinned(
    &self,
    col: Col,
    key: &[u8]
) -> Result<Option<DBPinnableSlice<'_>>>
[src]

TODO(doc): @quake

pub fn get_pinned_default(
    &self,
    key: &[u8]
) -> Result<Option<DBPinnableSlice<'_>>>
[src]

TODO(doc): @quake

pub fn put_default<K, V>(&self, key: K, value: V) -> Result<()> where
    K: AsRef<[u8]>,
    V: AsRef<[u8]>, 
[src]

TODO(doc): @quake

pub fn traverse<F>(&self, col: Col, callback: F) -> Result<()> where
    F: FnMut(&[u8], &[u8]) -> Result<()>, 
[src]

TODO(doc): @quake

pub fn transaction(&self) -> RocksDBTransaction[src]

Set a snapshot at start of transaction by setting set_snapshot=true

pub fn new_write_batch(&self) -> RocksDBWriteBatch[src]

TODO(doc): @quake

pub fn write(&self, batch: &RocksDBWriteBatch) -> Result<()>[src]

TODO(doc): @quake

pub fn get_snapshot(&self) -> RocksDBSnapshot[src]

TODO(doc): @quake

pub fn inner(&self) -> Arc<OptimisticTransactionDB>[src]

TODO(doc): @quake

pub fn create_cf(&mut self, col: Col) -> Result<()>[src]

TODO(doc): @quake

pub fn drop_cf(&mut self, col: Col) -> Result<()>[src]

TODO(doc): @quake

Trait Implementations

impl Clone for RocksDB[src]

impl DBIterator for RocksDB[src]

Auto Trait Implementations

impl RefUnwindSafe for RocksDB

impl Send for RocksDB

impl Sync for RocksDB

impl Unpin for RocksDB

impl UnwindSafe for RocksDB

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> AsAny for T where
    T: Any

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Err = <U as TryFrom<T>>::Err

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,