pub fn build_recovered_db_tables(tables: &[RecoveredTable]) -> Vec<u8> ⓘExpand description
Build the bytes of a valid SQLite database holding N arbitrary tables,
each with its own name and column set, every identifier safely quoted.
The general multi-table writer behind the table-attribution feature. Each
RecoveredTable becomes one b-tree (bulk-loaded, overflow-spilling exactly
like the records/fragments path) with a sqlite_master schema row. Table and
column names are emitted as quoted SQL identifiers, so a column named order
or first name is legal. Rows are written with a synthetic rowid 1..=N
(the recovered rows have no meaningful rowid of their own — provenance lives
in the _rowid column when present).