pub struct ChangeDataCapture { /* private fields */ }Expand description
Change Data Capture engine.
Implementations§
Source§impl ChangeDataCapture
impl ChangeDataCapture
pub fn new(table: Table) -> Self
Sourcepub async fn changes_between(
&self,
from_snapshot_id: i64,
to_snapshot_id: i64,
) -> Result<Vec<RowChange>>
pub async fn changes_between( &self, from_snapshot_id: i64, to_snapshot_id: i64, ) -> Result<Vec<RowChange>>
Returns changes between two snapshots.
Sourcepub async fn changes_since(&self, snapshot_id: i64) -> Result<Vec<RowChange>>
pub async fn changes_since(&self, snapshot_id: i64) -> Result<Vec<RowChange>>
Returns changes since a given snapshot up to the current snapshot.
Sourcepub async fn save_checkpoint(
&self,
checkpoint: &Checkpoint,
name: &str,
) -> Result<()>
pub async fn save_checkpoint( &self, checkpoint: &Checkpoint, name: &str, ) -> Result<()>
Saves a checkpoint for incremental reads.
Sourcepub async fn load_checkpoint(&self, name: &str) -> Result<Checkpoint>
pub async fn load_checkpoint(&self, name: &str) -> Result<Checkpoint>
Loads a checkpoint for incremental reads.
Auto Trait Implementations§
impl Freeze for ChangeDataCapture
impl !RefUnwindSafe for ChangeDataCapture
impl Send for ChangeDataCapture
impl Sync for ChangeDataCapture
impl Unpin for ChangeDataCapture
impl !UnwindSafe for ChangeDataCapture
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more