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.