Type Alias WriteSaplingTxIdsBatch

Source
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>
where Key: IntoDisk + FromDisk + Debug, Value: IntoDisk + FromDisk, Batch: WriteDisk,

Source

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.

Source

pub fn zs_delete(self, key: &Key) -> WriteTypedBatch<'_, Key, Value, Batch>

Remove the given key from this column family, if it exists.

Source

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>
where Key: IntoDisk + FromDisk + Debug, Value: IntoDisk + FromDisk,

Source

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<'_>

Source§

fn delete_sapling_keys(self, sapling_keys: Vec<SaplingScanningKey>) -> Self

Delete sapling keys and their results.

Source§

impl InsertSaplingHeight for WriteSaplingTxIdsBatch<'_>

Source§

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>
where Key: Debug + IntoDisk + FromDisk, Value: Debug + IntoDisk + FromDisk, Batch: Debug + WriteDisk,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl<'cf, Key, Value, Batch> PartialEq for WriteTypedBatch<'cf, Key, Value, Batch>

Source§

fn eq(&self, other: &WriteTypedBatch<'cf, Key, Value, Batch>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<'cf, Key, Value, Batch> Eq for WriteTypedBatch<'cf, Key, Value, Batch>
where Key: Eq + IntoDisk + FromDisk + Debug, Value: Eq + IntoDisk + FromDisk, Batch: Eq + WriteDisk,

Source§

impl<'cf, Key, Value, Batch> StructuralPartialEq for WriteTypedBatch<'cf, Key, Value, Batch>
where Key: IntoDisk + FromDisk + Debug, Value: IntoDisk + FromDisk, Batch: WriteDisk,