risingwave_connector::parser::unified

Trait ChangeEvent

source
pub trait ChangeEvent {
    // Required methods
    fn op(&self) -> AccessResult<ChangeEventOperation>;
    fn access_field(
        &self,
        desc: &SourceColumnDesc,
    ) -> AccessResult<DatumCow<'_>>;
}
Expand description

Methods to access a CDC event.

Required Methods§

source

fn op(&self) -> AccessResult<ChangeEventOperation>

Access the operation type.

source

fn access_field(&self, desc: &SourceColumnDesc) -> AccessResult<DatumCow<'_>>

Access the field.

Implementations on Foreign Types§

source§

impl<'a, T: 'a + ChangeEvent + ?Sized> ChangeEvent for &'a T

source§

impl<A> ChangeEvent for (ChangeEventOperation, A)
where A: Access,

Implementors§