pub struct BuildLogRecordCtx {
pub end_ts: u64,
pub log_record: LogRecord,
pub cursor: usize,
pub schema_process: bool,
pub pending_header: Option<DatabaseHeader>,
}Expand description
Iteration state for the chunked BuildLogRecord step.
Fields§
§end_ts: u64§log_record: LogRecord§cursor: usizeIndex into CommitStateMachine::write_set for the current pass.
schema_process: boolTrue while emitting schema rows (sqlite_schema), false during the data-row pass. Schema rows are emitted first so log replay sees CREATE TABLE before related INSERTs.
pending_header: Option<DatabaseHeader>Snapshot of tx.header taken when header_dirty was observed
at the start of BuildLogRecord. Appended as an OP_UPDATE_HEADER
op after both row-version passes complete (preserves on-disk
order: ops first, header last).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BuildLogRecordCtx
impl RefUnwindSafe for BuildLogRecordCtx
impl Send for BuildLogRecordCtx
impl Sync for BuildLogRecordCtx
impl Unpin for BuildLogRecordCtx
impl UnsafeUnpin for BuildLogRecordCtx
impl UnwindSafe for BuildLogRecordCtx
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<T> ErasedDestructor for Twhere
T: 'static,
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