Struct rocksdb::WriteBatch [−][src]
Implementations
impl WriteBatch
[src]
pub fn new() -> WriteBatch
[src]
pub fn with_capacity(cap: usize) -> WriteBatch
[src]
pub fn count(&self) -> usize
[src]
pub fn is_empty(&self) -> bool
[src]
pub fn data_size(&self) -> usize
[src]
pub fn clear(&self)
[src]
pub fn set_save_point(&mut self)
[src]
pub fn rollback_to_save_point(&mut self) -> Result<(), String>
[src]
pub fn pop_save_point(&mut self) -> Result<(), String>
[src]
pub fn data(&self) -> &[u8]ⓘ
[src]
pub fn append(&mut self, src: &[u8])
[src]
pub fn iterate<F>(&self, cfs: &[&str], iterator_fn: F) where
F: FnMut(&str, DBValueType, &[u8], Option<&[u8]>),
[src]
F: FnMut(&str, DBValueType, &[u8], Option<&[u8]>),
pub fn iter(&self) -> WriteBatchIter<'_>ⓘNotable traits for WriteBatchIter<'a>
impl<'a> Iterator for WriteBatchIter<'a> type Item = (DBValueType, u32, &'a [u8], &'a [u8]);
[src]
Notable traits for WriteBatchIter<'a>
impl<'a> Iterator for WriteBatchIter<'a> type Item = (DBValueType, u32, &'a [u8], &'a [u8]);
Trait Implementations
impl Default for WriteBatch
[src]
fn default() -> WriteBatch
[src]
impl Drop for WriteBatch
[src]
impl Send for WriteBatch
[src]
impl Writable for WriteBatch
[src]
fn put(&self, key: &[u8], value: &[u8]) -> Result<(), String>
[src]
fn put_cf(&self, cf: &CFHandle, key: &[u8], value: &[u8]) -> Result<(), String>
[src]
fn merge(&self, key: &[u8], value: &[u8]) -> Result<(), String>
[src]
fn merge_cf(
&self,
cf: &CFHandle,
key: &[u8],
value: &[u8]
) -> Result<(), String>
[src]
&self,
cf: &CFHandle,
key: &[u8],
value: &[u8]
) -> Result<(), String>
fn delete(&self, key: &[u8]) -> Result<(), String>
[src]
fn delete_cf(&self, cf: &CFHandle, key: &[u8]) -> Result<(), String>
[src]
fn single_delete(&self, key: &[u8]) -> Result<(), String>
[src]
fn single_delete_cf(&self, cf: &CFHandle, key: &[u8]) -> Result<(), String>
[src]
fn delete_range(&self, begin_key: &[u8], end_key: &[u8]) -> Result<(), String>
[src]
fn delete_range_cf(
&self,
cf: &CFHandle,
begin_key: &[u8],
end_key: &[u8]
) -> Result<(), String>
[src]
&self,
cf: &CFHandle,
begin_key: &[u8],
end_key: &[u8]
) -> Result<(), String>
Auto Trait Implementations
impl RefUnwindSafe for WriteBatch
impl !Sync for WriteBatch
impl Unpin for WriteBatch
impl UnwindSafe for WriteBatch
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
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, 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>,