pub struct RowView {
pub commit_seq: Option<u32>,
pub is_final: bool,
pub checksum_valid: bool,
pub schema_known: bool,
pub origin: VersionOrigin,
pub rows: BTreeMap<i64, Vec<Value>>,
}Expand description
One chronological VIEW of a single table: a rowid→values map plus the view’s
logical position and trust flags. The ordered list of these (commit views in
epoch order, then the final live view last) is the input to
build_rowid_versions.
Fields§
§commit_seq: Option<u32>LOGICAL commit sequence within the salt epoch (monotonic within an epoch
only). None for the final live view.
is_final: boolWhether this is the final live view (the current state).
checksum_valid: boolWhether the source commit’s checksum chain validated. false = residue:
rows first attributed here are flagged attribution_uncertain.
schema_known: boolWhether the table’s schema could be reconstructed for this view. false
flags rows attributed here attribution_uncertain.
origin: VersionOriginThis view’s logical provenance — VersionOrigin::Live for the final
view, VersionOrigin::Commit (carrying the real CommitId)
for a WAL commit view. Copied verbatim onto every version first seen here.
rows: BTreeMap<i64, Vec<Value>>This view’s rows: rowid → decoded values. A rowid absent from the map is absent in this view.