Skip to main content

Module db

Module db 

Source
Expand description

SQLite database with Diesel ORM

Stores decision graphs and command logs for AI-assisted development. Uses embedded migrations for schema management.

Structs§

CommandLog
Queryable command log entry
Database
Database connection wrapper with connection pool
DbSummary
Summary statistics from the database (kept for compatibility)
DecisionContext
Queryable decision context
DecisionEdge
Queryable decision edge
DecisionGraph
Full decision graph for serialization
DecisionNode
Queryable decision node
DecisionSchema
Describes the version and capabilities of the schema
DecisionSession
Queryable session
DeleteSummary
Summary of what was deleted by delete_node
GitHubIssueCache
Queryable GitHub issue cache entry
NewCommandLog
Insertable command log entry
NewDecisionContext
Insertable decision context
NewDecisionEdge
Insertable decision edge
NewDecisionNode
Insertable decision node
NewDecisionSession
Insertable session
NewGitHubIssueCache
Insertable GitHub issue cache entry
NewNodeDocument
Insertable node document attachment
NewNodeTheme
Insertable node-theme association
NewQaInteraction
Insertable Q&A interaction
NewRoadmapConflict
Insertable roadmap conflict
NewRoadmapItem
Insertable roadmap item
NewRoadmapSyncState
Insertable roadmap sync state
NewSchemaVersion
Insertable schema version
NewTheme
Insertable theme
NodeDocument
Queryable node document attachment
NodeTheme
Queryable node-theme association
QaInteraction
Queryable Q&A interaction
QaSearchResult
Q&A search result with FTS5 ranking and highlighted snippets
RoadmapConflict
Queryable roadmap conflict
RoadmapItem
Queryable roadmap item
RoadmapSyncState
Queryable roadmap sync state
StoredSchema
Queryable schema version
Theme
Queryable theme

Enums§

CheckboxState
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)

Type Aliases§

DbRecord
Alias for backwards compatibility
Result