pub struct PriorVersionRecord {
pub table: String,
pub rowid: i64,
pub prior_values: Vec<Value>,
pub current_values: Vec<Value>,
pub replaced_rowid: bool,
pub source: RecoverySource,
}Expand description
A row present in BOTH the prior snapshot and the live db with DIFFERENT values
— the last transaction modified it (design §4). Carries the PRIOR (pre-edit)
values and the CURRENT values. replaced_rowid is set because a delete +
insert reusing the same rowid is indistinguishable from an in-place UPDATE
here, so identity may differ — never asserted as “UPDATE”.
Fields§
§table: StringThe table the row belonged to (prior schema).
rowid: i64The rowid present in both states.
prior_values: Vec<Value>The decoded PRIOR (pre-transaction) column values.
current_values: Vec<Value>The decoded CURRENT (live) column values.
replaced_rowid: boolAlways true: the rowid is shared but identity may differ (delete+insert
reusing a rowid is indistinguishable from an UPDATE), so the prior value is
edit history, not an asserted in-place update.
source: RecoverySourceJournal provenance for the prior image.
Trait Implementations§
Source§impl Clone for PriorVersionRecord
impl Clone for PriorVersionRecord
Source§fn clone(&self) -> PriorVersionRecord
fn clone(&self) -> PriorVersionRecord
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more