Expand description
SQLite database with Diesel ORM
Stores decision graphs and command logs for AI-assisted development. Uses embedded migrations for schema management.
Structs§
- Command
Log - Queryable command log entry
- Database
- Database connection wrapper with connection pool
- DbSummary
- Summary statistics from the database (kept for compatibility)
- Decision
Context - Queryable decision context
- Decision
Edge - Queryable decision edge
- Decision
Graph - Full decision graph for serialization
- Decision
Node - Queryable decision node
- Decision
Schema - Describes the version and capabilities of the schema
- Decision
Session - Queryable session
- Delete
Summary - Summary of what was deleted by delete_node
- GitHub
Issue Cache - Queryable GitHub issue cache entry
- NewCommand
Log - Insertable command log entry
- NewDecision
Context - Insertable decision context
- NewDecision
Edge - Insertable decision edge
- NewDecision
Node - Insertable decision node
- NewDecision
Session - Insertable session
- NewGit
HubIssue Cache - Insertable GitHub issue cache entry
- NewNode
Document - Insertable node document attachment
- NewNode
Theme - Insertable node-theme association
- NewQa
Interaction - Insertable Q&A interaction
- NewRoadmap
Conflict - Insertable roadmap conflict
- NewRoadmap
Item - Insertable roadmap item
- NewRoadmap
Sync State - Insertable roadmap sync state
- NewSchema
Version - Insertable schema version
- NewTheme
- Insertable theme
- Node
Document - Queryable node document attachment
- Node
Theme - Queryable node-theme association
- QaInteraction
- Queryable Q&A interaction
- QaSearch
Result - Q&A search result with FTS5 ranking and highlighted snippets
- Roadmap
Conflict - Queryable roadmap conflict
- Roadmap
Item - Queryable roadmap item
- Roadmap
Sync State - Queryable roadmap sync state
- Stored
Schema - Queryable schema version
- Theme
- Queryable theme
Enums§
- Checkbox
State - Checkbox state enum for type safety
- DbError
- Error type for database operations
Constants§
- CURRENT_
SCHEMA - Current schema version for deciduous
Functions§
- build_
metadata_ json - Build metadata JSON from optional fields (confidence, commit, prompt, files, branch)
- get_
current_ git_ branch - Get current git branch name
- get_
current_ git_ commit - Get the current HEAD commit hash (short form, 7 chars)