Skip to main content

init_table

Function init_table 

Source
pub fn init_table(conn: &Connection) -> Result<(), CliError>
Expand description

Create the bulk_estimated_proceeds side-table if it does not exist (idempotent).

CREATE TABLE IF NOT EXISTS makes this safe to call on any vault — new, old, or restored from snapshot — without errors. Called by Session::from_fresh_vault; also called at the top of every mark/clear/all as a defensive ensure-table-then-read guard (robust to older vaults that predate this table, mirroring the donation_details/optimize_attest back-compat pattern).