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 - count_
derived_ vector_ artifacts - decode_
f32_ le - Decode a stable little-endian f32 persisted representation.
- delete_
derived_ vector_ artifact - embedding_
to_ bytes - Encode an f32 slice as bytes for SQLite BLOB storage.
- encode_
f32_ le - Encode f32 values as a stable little-endian persisted representation.
- get_
search_ receipt - Load a durable search receipt by receipt/request ID.
- invalidate_
derived_ vector_ artifact - 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.
- store_
search_ receipt - Persist a search receipt as replay metadata.
- verify_
integrity_ sync - Run integrity verification on the database.
- with_
transaction - Run a closure inside an unchecked transaction, committing on success.