Expand description
SQLite DDL for the code graph tables, colocated with the blackboard state.
Constants§
- GRAPH_
SCHEMA_ VERSION - Version of the graph schema and the extractor’s output shape.
Functions§
- init_
graph_ schema - migrate_
graph_ if_ stale - If the stored graph schema version differs from
GRAPH_SCHEMA_VERSION, drop the graph tables soinit_graph_schemarecreates them empty and the next index pass re-extracts every file. No-op when the version already matches (the common path) or on a brand-new DB (version 0 → treated as “needs build”, but the tables don’t exist yet so the drops are harmless).