[−][src]Struct ckb_db::db::RocksDB
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]
&self,
col: Col,
key: &[u8]
) -> Result<Option<DBPinnableSlice<'_>>>
TODO(doc): @quake
pub fn get_pinned_default(
&self,
key: &[u8]
) -> Result<Option<DBPinnableSlice<'_>>>
[src]
&self,
key: &[u8]
) -> Result<Option<DBPinnableSlice<'_>>>
TODO(doc): @quake
pub fn put_default<K, V>(&self, key: K, value: V) -> Result<()> where
K: AsRef<[u8]>,
V: AsRef<[u8]>,
[src]
K: AsRef<[u8]>,
V: AsRef<[u8]>,
TODO(doc): @quake
pub fn traverse<F>(&self, col: Col, callback: F) -> Result<()> where
F: FnMut(&[u8], &[u8]) -> Result<()>,
[src]
F: FnMut(&[u8], &[u8]) -> Result<()>,
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]
fn iter_opt(
&self,
col: Col,
mode: IteratorMode<'_>,
readopts: &ReadOptions
) -> Result<DBIter<'_>>
[src]
&self,
col: Col,
mode: IteratorMode<'_>,
readopts: &ReadOptions
) -> Result<DBIter<'_>>
fn iter(&self, col: Col, mode: IteratorMode<'_>) -> Result<DBIter<'_>>
[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]
T: 'static + ?Sized,
impl<T> AsAny for T where
T: Any,
T: Any,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
U: TryFrom<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,