Skip to main content

init_config_table

Function init_config_table 

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

Create the cli_config key-value side-table if it does not exist. M2: CREATE TABLE IF NOT EXISTS makes this idempotent — safe to call on any vault (old, new, or restored from snapshot). Called by Session::create; also called at the top of read_config as a defensive ensure-table-then-read guard.