risingwave_meta::model

Trait ValTransaction

source
pub trait ValTransaction<TXN>: InMemValTransaction {
    // Required method
    async fn apply_to_txn(&self, txn: &mut TXN) -> MetadataModelResult<()>;
}
Expand description

Trait that wraps a local memory value and applies the change to the local memory value on commit or leaves the local memory value untouched on abort.

Required Methods§

source

async fn apply_to_txn(&self, txn: &mut TXN) -> MetadataModelResult<()>

Apply the change (upsert or delete) to txn

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<T: ValTransaction<TXN>, TXN> ValTransaction<TXN> for Option<T>

Implementors§