Expand description
Database initialization, migrations, integrity checks, and durable sidecar state.
Structs§
- Integrity
Report - Result of an integrity verification.
Enums§
- Reconcile
Action - Action to take when integrity issues are found.
- Verify
Mode - How thorough the integrity check should be.
Constants§
- MAX_
SCHEMA_ VERSION - Maximum schema version this build supports.
Functions§
- bytes_
to_ embedding - Decode a SQLite embedding BLOB back to f32 values.
- check_
embedding_ metadata - Check and update the embedding metadata singleton row.
- clear_
embeddings_ dirty - embedding_
to_ bytes - Encode an f32 slice as bytes for SQLite BLOB storage.
- is_
embeddings_ dirty - open_
database - Open or create a SQLite database, configure pragmas, and run migrations.
- open_
database_ connection - Open a SQLite connection with pragmas applied but without running migrations.
- reconcile_
fts - Reconcile FTS indexes by rebuilding them from source data.
- run_
migrations - Run all pending migrations.
- verify_
integrity_ sync - Run integrity verification on the database.
- with_
transaction - Run a closure inside an unchecked transaction, committing on success.