Skip to main content

Module sqlite

Module sqlite 

Expand description

SQLite output via DuckDB ATTACH … (TYPE SQLITE).

Dumps every base table in schema_v1.sql (currently: commits, changes, hunks, entities, complexity_metrics, author_aliases, provenance, clones, imports, commit_parents) to a SQLite file. When a new base table is added to schema_v1.sql, it MUST be appended here too — otherwise consumers of the SQLite export silently lose that data with no error at write time. The round-trip test derives its expected table set from the live catalog so a missed table fails loudly.

Functions§

write_full_fact_store_sqlite