Skip to main content

table_history

Function table_history 

Source
pub fn table_history(
    table: String,
    columns: Vec<String>,
    without_rowid: bool,
    views: &[RowView],
) -> TableHistory
Expand description

Assemble the TableHistory for ONE table from its chronological views (commit views in epoch order, then the final live view last) and its schema.

WITHOUT ROWID tables have no rowid to key a history on, so they are recorded with without_rowid = true and NO versions (a renderer annotates their presence). For an ordinary table, every rowid that appears in any view is run through build_rowid_versions; the resulting versions are sorted by rowid then commit_seq ascending (a None commit_seq — the live or order-unknown value — sorts LAST within a rowid).

Pure: no I/O.