Skip to main content

init_schema

Function init_schema 

Source
pub fn init_schema(conn: &Connection) -> Result<()>
Expand description

Initialize the SQLite schema (idempotent). Safe to call on every open. Adds three tables:

  • memory_threads — registry of threads we’ve ever observed
  • memory_stage1_outputs — one row per (thread, run) LLM extraction
  • memory_jobs — per-project consolidation queue (with lease)