pub struct TableHistory {
pub table: String,
pub columns: Vec<String>,
pub without_rowid: bool,
pub versions: Vec<RowVersion>,
pub without_rowid_rows: Vec<Vec<Value>>,
}Expand description
The version history of one user table.
Fields§
§table: StringThe table’s sqlite_master.name.
columns: Vec<String>The table’s column names (real names where the schema parsed, else generic).
without_rowid: boolWhether this is a WITHOUT ROWID table — such tables have no rowid and are
not version-tracked here; versions is then empty (presence recorded only),
and the live rows are carried in without_rowid_rows.
versions: Vec<RowVersion>Every row version, sorted by rowid (None last), then commit_seq
ascending, with carved-residue (order-unknown) versions grouped after the
ordered versions of their rowid.
without_rowid_rows: Vec<Vec<Value>>For a WITHOUT ROWID table (§1.4): its live rows read from the index
b-tree, in the table’s column order. Empty for an ordinary table and for a
WITHOUT ROWID table whose rows could not be read. These have no version
history (the model is rowid-keyed); they are the present live state.
Trait Implementations§
Source§impl Clone for TableHistory
impl Clone for TableHistory
Source§fn clone(&self) -> TableHistory
fn clone(&self) -> TableHistory
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more