Skip to main content

Module schema

Module schema 

Source
Expand description

SQLite schema definition and migration logic.

Implements the normalized schema from the sqlite-rag-integration spec: documents, chunks, chunks_fts (FTS5 with Porter stemmer), fingerprints, and metadata tables.

Constants§

SCHEMA_VERSION
Current schema version for migration tracking.

Functions§

check_version
Check if the schema version matches the current version.
initialize
Initialize the database schema and set connection pragmas.