pub type WriteSaplingTxIdsBatch<'cf> = WriteTypedBatch<'cf, SaplingScannedDatabaseIndex, Option<SaplingScannedResult>, DiskWriteBatch>;
Expand description
The type for writing sapling transaction IDs results from the database.
This constant should be used so the compiler can detect incorrectly typed accesses to the column family.
Aliased Type§
struct WriteSaplingTxIdsBatch<'cf> { /* private fields */ }
Implementations
Source§impl<Key, Value, Batch> WriteTypedBatch<'_, Key, Value, Batch>
impl<Key, Value, Batch> WriteTypedBatch<'_, Key, Value, Batch>
Sourcepub fn zs_insert(
self,
key: &Key,
value: &Value,
) -> WriteTypedBatch<'_, Key, Value, Batch>
pub fn zs_insert( self, key: &Key, value: &Value, ) -> WriteTypedBatch<'_, Key, Value, Batch>
Serialize and insert the given key and value into this column family,
overwriting any existing value
for key
.
Sourcepub fn zs_delete(self, key: &Key) -> WriteTypedBatch<'_, Key, Value, Batch>
pub fn zs_delete(self, key: &Key) -> WriteTypedBatch<'_, Key, Value, Batch>
Remove the given key from this column family, if it exists.
Sourcepub fn zs_delete_range(
self,
from: &Key,
until_strictly_before: &Key,
) -> WriteTypedBatch<'_, Key, Value, Batch>
pub fn zs_delete_range( self, from: &Key, until_strictly_before: &Key, ) -> WriteTypedBatch<'_, Key, Value, Batch>
Delete the given key range from this rocksdb column family, if it exists, including from
and excluding until_strictly_before
.
Source§impl<Key, Value> WriteTypedBatch<'_, Key, Value, DiskWriteBatch>
impl<Key, Value> WriteTypedBatch<'_, Key, Value, DiskWriteBatch>
Sourcepub fn write_batch(self) -> Result<(), Error>
pub fn write_batch(self) -> Result<(), Error>
Writes this batch to this column family in the database, taking ownership and consuming it.
Trait Implementations§
Source§impl DeleteSaplingKeys for WriteSaplingTxIdsBatch<'_>
impl DeleteSaplingKeys for WriteSaplingTxIdsBatch<'_>
Source§fn delete_sapling_keys(self, sapling_keys: Vec<SaplingScanningKey>) -> Self
fn delete_sapling_keys(self, sapling_keys: Vec<SaplingScanningKey>) -> Self
Delete sapling keys and their results.
Source§impl InsertSaplingHeight for WriteSaplingTxIdsBatch<'_>
impl InsertSaplingHeight for WriteSaplingTxIdsBatch<'_>
Source§fn insert_sapling_height(
self,
sapling_key: &SaplingScanningKey,
height: Height,
) -> Self
fn insert_sapling_height( self, sapling_key: &SaplingScanningKey, height: Height, ) -> Self
Insert sapling height with no results.
If a result already exists for the coinbase transaction at that height, it is replaced with an empty result. This should never happen.
Source§impl<'cf, Key, Value, Batch> Debug for WriteTypedBatch<'cf, Key, Value, Batch>
impl<'cf, Key, Value, Batch> Debug for WriteTypedBatch<'cf, Key, Value, Batch>
Source§impl<'cf, Key, Value, Batch> PartialEq for WriteTypedBatch<'cf, Key, Value, Batch>
impl<'cf, Key, Value, Batch> PartialEq for WriteTypedBatch<'cf, Key, Value, Batch>
Source§fn eq(&self, other: &WriteTypedBatch<'cf, Key, Value, Batch>) -> bool
fn eq(&self, other: &WriteTypedBatch<'cf, Key, Value, Batch>) -> bool
self
and other
values to be equal, and is used by ==
.