Struct ckb_db::write_batch::RocksDBWriteBatch [−][src]
pub struct RocksDBWriteBatch { /* fields omitted */ }
Expand description
An atomic batch of write operations.
Making an atomic commit of several write operations.
Implementations
impl RocksDBWriteBatch
[src]
impl RocksDBWriteBatch
[src]pub fn size_in_bytes(&self) -> usize
[src]
pub fn size_in_bytes(&self) -> usize
[src]Return WriteBatch serialized size (in bytes).
pub fn put(&mut self, col: Col, key: &[u8], value: &[u8]) -> Result<()>
[src]
pub fn put(&mut self, col: Col, key: &[u8], value: &[u8]) -> Result<()>
[src]Write the bytes into the given column with associated key.
pub fn delete(&mut self, col: Col, key: &[u8]) -> Result<()>
[src]
pub fn delete(&mut self, col: Col, key: &[u8]) -> Result<()>
[src]Delete the data associated with the given key and given column.
pub fn delete_range(&mut self, col: Col, from: &[u8], to: &[u8]) -> Result<()>
[src]
pub fn delete_range(&mut self, col: Col, from: &[u8], to: &[u8]) -> Result<()>
[src]Remove database entries from start key to end key.
Removes the database entries in the range [“begin_key”, “end_key”), i.e., including “begin_key” and excluding “end_key”. It is not an error if no keys exist in the range [“begin_key”, “end_key”).
Auto Trait Implementations
impl RefUnwindSafe for RocksDBWriteBatch
impl !Send for RocksDBWriteBatch
impl !Sync for RocksDBWriteBatch
impl Unpin for RocksDBWriteBatch
impl UnwindSafe for RocksDBWriteBatch
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,