Skip to main content

Module schema

Module schema 

Source
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 so init_graph_schema recreates 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).