Expand description
SQLite storage for chunks and embeddings (sqlx async with sync wrappers)
Provides sync methods that internally use tokio runtime to execute async sqlx operations. This allows callers to use the Store synchronously while benefiting from sqlx’s async features.
§Module Structure
helpers- Types and embedding conversion functionschunks- Chunk CRUD operationsnotes- Note CRUD and searchcalls- Call graph storage and queries
Structs§
- Call
Graph - In-memory call graph (forward + reverse adjacency lists). In-memory call graph for BFS traversal
- Caller
Info - Information about a function caller (from call graph). Caller information from the full call graph
- Caller
With Context - Caller with call-site context for impact analysis. Caller with call-site context for impact analysis
- Chunk
Identity - Chunk identity for diff comparison (name, file, line, window info). Chunk identity for diff comparison
- Chunk
Summary - Summary of an indexed code chunk (function, class, etc.). Chunk metadata returned from search results
- Index
Stats - Statistics about the index (chunk counts, languages, etc.). Index statistics
- Model
Info - Embedding model metadata. Model metadata for index initialization
- Note
Search Result - A note search result with similarity score. A note search result with similarity score
- Note
Stats - Statistics about indexed notes. Note statistics (total count and categorized counts)
- Note
Summary - Summary of a note (text, sentiment, mentions). Note metadata returned from search results
- Search
Filter - Filter and scoring options for search. Filter and scoring options for search
- Search
Result - A code chunk search result with similarity score. A search result with similarity score
- Store
- Thread-safe SQLite store for chunks and embeddings
Enums§
- Store
Error - Store operation errors.
- Unified
Result - Unified search result (code chunk or note). Unified search result (code chunk or note)
Constants§
- CURRENT_
SCHEMA_ VERSION - Current database schema version. Schema version for database migrations
- EXPECTED_
DIMENSIONS - Expected embedding dimensions (768 model + 1 sentiment). Expected embedding dimensions — derived from crate::EMBEDDING_DIM
- MODEL_
NAME - Name of the embedding model used.