pub struct LocalRangeChangeJournal { /* private fields */ }Expand description
Captures the pre-write SQL keyspace for one local transaction. Calling
Self::stage before the transaction commits records the exact row/index
delta in that same durable boundary.
Implementations§
Source§impl LocalRangeChangeJournal
impl LocalRangeChangeJournal
Sourcepub fn capture<'txn, T: KVTransaction<'txn>>(
transaction: &mut T,
scope: RangeChangeJournalScope,
) -> CoreResult<Self>
pub fn capture<'txn, T: KVTransaction<'txn>>( transaction: &mut T, scope: RangeChangeJournalScope, ) -> CoreResult<Self>
Captures the row and B-tree secondary-index state visible at transaction start. Catalog keys, sequence keys, and journal metadata are excluded.
Sourcepub fn stage<'txn, T: KVTransaction<'txn>>(
self,
transaction: &mut T,
) -> CoreResult<Option<RangeChangeRecord>>
pub fn stage<'txn, T: KVTransaction<'txn>>( self, transaction: &mut T, ) -> CoreResult<Option<RangeChangeRecord>>
Stages one immutable range-change record when SQL row/index state changed. No epoch/outbox entry is written when the final state matches the captured state, which makes an already-applied replay a no-op.
Trait Implementations§
Source§impl Clone for LocalRangeChangeJournal
impl Clone for LocalRangeChangeJournal
Source§fn clone(&self) -> LocalRangeChangeJournal
fn clone(&self) -> LocalRangeChangeJournal
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for LocalRangeChangeJournal
impl RefUnwindSafe for LocalRangeChangeJournal
impl Send for LocalRangeChangeJournal
impl Sync for LocalRangeChangeJournal
impl Unpin for LocalRangeChangeJournal
impl UnsafeUnpin for LocalRangeChangeJournal
impl UnwindSafe for LocalRangeChangeJournal
Blanket Implementations§
impl<T> Allocation for T
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