pub enum WALRecord {
Show 15 variants
Insert {
table_id: u64,
data: Vec<u8>,
},
Delete {
table_id: u64,
row_id: u64,
},
Update {
table_id: u64,
row_id: u64,
column: u32,
data: Vec<u8>,
},
UpdateFsm {
page_idx: u64,
is_free: bool,
},
ColumnWrite {
table_id: u64,
col_id: u32,
page_id: u64,
data: Vec<u8>,
},
LocalWALData {
data: Vec<u8>,
},
Commit {
transaction_id: u64,
},
Rollback {
transaction_id: u64,
},
Checkpoint,
CreateTable {
table_id: u64,
},
DropTable {
table_id: u64,
},
AlterTable {
table_id: u64,
},
CreateIndex {
table_id: u64,
},
DropIndex {
table_id: u64,
},
CreateSequence {
table_id: u64,
},
}Expand description
A record in the WAL.
Variants§
Insert
Delete
Update
UpdateFsm
Log an FSM page update (allocation or deallocation)
ColumnWrite
Log a write to a column page: (table_id, col_id, page_id, serialized_data).
LocalWALData
Bulk-copied serialized WAL data from a transaction’s LocalWAL. The raw bytes are flushed directly to disk during checkpoint.
Commit
Rollback
Checkpoint
CreateTable
Create a node or rel table.
DropTable
Drop a table.
AlterTable
Alter a table (add/drop/rename column).
CreateIndex
Create an index on a table.
DropIndex
Drop an index on a table.
CreateSequence
Create a sequence.
Trait Implementations§
impl StructuralPartialEq for WALRecord
Auto Trait Implementations§
impl Freeze for WALRecord
impl RefUnwindSafe for WALRecord
impl Send for WALRecord
impl Sync for WALRecord
impl Unpin for WALRecord
impl UnsafeUnpin for WALRecord
impl UnwindSafe for WALRecord
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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