Expand description
SQLite backend: schema, pragmas, and migrations.
Structs§
- Agent
Archive Purge Result - Result of purging archived data for a single agent.
- Analytics
Rebuild Result - Result of an analytics rebuild operation.
- Analytics
Rollup Aggregator - In-memory aggregator for batched usage_hourly and usage_daily rollup updates.
- Connection
Manager Config - Configuration for the
FrankenConnectionManager. - Daily
Count - Daily count data for histogram display.
- Daily
Stats Health - Health status of daily stats table.
- Daily
Stats Rebuild Result - Result of rebuilding daily stats.
- Database
Bundle Move Result - Embedding
JobRow - Row from the embedding_jobs table.
- Franken
Connection Manager - Multi-connection manager for frankensqlite.
- Franken
Storage - Primary frankensqlite-backed storage backend.
- FtsEntry
- Entry for pending FTS5 insert.
- Historical
Salvage Outcome - Indexing
Cache - Cache for agent and workspace IDs during batch indexing.
- Insert
Outcome - Lazy
Franken Db - Lazy-opening wrapper for
FrankenConnection(frankensqlite). - Lazy
Franken DbGuard - RAII guard that dereferences to the inner
FrankenConnection. - Lexical
Rebuild Conversation Footprint Row - Lightweight per-conversation footprint used to pre-plan lexical rebuild shard boundaries without re-reading full message bodies in the hot path.
- Lexical
Rebuild Conversation Row - Lightweight conversation projection used while rebuilding the lexical index.
- Lexical
Rebuild Grouped Message Row - Even lighter message projection used only by the grouped lexical rebuild stream hot path. It keeps just the per-message fields the rebuild consumes and tracks the final message id at conversation scope instead.
- Lexical
Rebuild Message Row - Lightweight message projection used by the streaming lexical rebuild path.
- Message
ForEmbedding - Message data needed for semantic embedding generation.
- Message
Metrics Entry - Pending message_metrics row for batch insertion.
- Pricing
Diagnostics - Diagnostics for pricing coverage during a batch operation.
- Pricing
Entry - One pricing row loaded from the
model_pricingtable. - Pricing
Table - In-memory pricing table loaded from
model_pricingfor fast lookups. - Send
Franken Connection - Wrapper around
FrankenConnectionthat implementsSend. - Stats
Aggregator - In-memory aggregator for batched daily stats updates.
- Stats
Delta - Accumulated statistics delta for a single (day_id, agent, source) combination.
- Token
Stats Aggregator - In-memory aggregator for batched token daily stats updates.
- Token
Stats Delta - Accumulated token statistics delta for a single (day_id, agent, source, model_family) combination.
- Token
Usage Entry - Pending token_usage row to be batch-inserted.
- Usage
Rollup Delta - Delta for a single (bucket, agent_slug, workspace_id, source_id) rollup key.
- Writer
Guard - RAII guard for a writer connection.
Enums§
- Lazy
DbError - Error from lazy database initialization.
- Migration
Error - Error type for schema migration operations.
- Schema
Check - Result of checking schema compatibility.
Constants§
- CURRENT_
SCHEMA_ VERSION - Public schema version constant for external checks.
- FTS5_
DELETE_ ALL_ SQL - SQL to clear all rows from the contentless
fts_messagestable. - FTS5_
REGISTER_ SQL - SQL to register the FTS5 virtual table on a frankensqlite connection.
Traits§
Functions§
- cleanup_
old_ backups - Remove old backup files, keeping only the most recent
keep_count. - create_
backup - Create a uniquely named backup of the database file.
- is_
user_ data_ file - Check if a file is user-authored data that must be preserved during rebuild.
Type Aliases§
- Lexical
Rebuild Grouped Message Rows - Sqlite
Storage - Compatibility alias retained while call sites finish converging on
FrankenStorage.