Documentation
¶
Overview ¶
Package advisor analyzes a SQLite database for performance problems that hurt in production — especially the ones AI-generated schemas ship by default: foreign keys with no index (a full scan on every join), redundant indexes, and, when queries are supplied, full table scans via EXPLAIN QUERY PLAN.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Finding ¶
type Finding struct {
Rule string `json:"rule"` // fk-no-index | redundant-index | full-scan
Severity string `json:"severity"` // warning | info
Table string `json:"table,omitempty"`
Detail string `json:"detail"`
Suggestion string `json:"suggestion,omitempty"` // runnable SQL or guidance
}
Finding is one performance issue with a concrete suggestion.
Click to show internal directories.
Click to hide internal directories.