Skip to main content

Module schema

Module schema 

Source
Expand description

Schema initialization for the knowledge graph SQLite database.

Constants§

GRAPH_SCHEMA_VERSION
Current graph schema version. Increment when adding migrations.

Functions§

init_graph_schema
Apply the full knowledge graph schema (tables, indexes, FTS5 triggers) to a connection.
migrate_graph
Incremental migration for the knowledge graph schema.
schema_version
Read the recorded graph schema version from _meta, or 0 if unset.