pub enum Op {
Put {
table_id: u64,
rows: Vec<u8>,
},
Delete {
table_id: u64,
row_ids: Vec<RowId>,
},
TruncateTable {
table_id: u64,
},
Flush {
table_id: u64,
flushed_epoch: u64,
},
TxnCommit {
epoch: u64,
added_runs: Vec<AddedRun>,
},
TxnAbort,
Ddl(DdlOp),
}Variants§
Put
Delete
TruncateTable
Flush
System marker (txn_id == SYSTEM_TXN_ID): everything up to
flushed_epoch for table_id is durable in a sorted run, so recovery
may skip replaying older records for that table.
TxnCommit
Seals a transaction: every earlier record with the same txn_id is
committed and becomes visible at epoch.
TxnAbort
Aborts a transaction; its staged records are discarded on recovery.
Ddl(DdlOp)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Op
impl<'de> Deserialize<'de> for Op
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Op
impl RefUnwindSafe for Op
impl Send for Op
impl Sync for Op
impl Unpin for Op
impl UnsafeUnpin for Op
impl UnwindSafe for Op
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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