Versions in this module Expand all Collapse all v0 v0.1.0 Jul 6, 2026 Changes in this version + func Code(code string) string + func Register(name string, f func(*schemahcl.Resource) ([]Analyzer, error)) + type Analyzer interface + Analyze func(context.Context, *Pass) error + func AnalyzerFor(name string, r *schemahcl.Resource) ([]Analyzer, error) + type AnalyzerFunc func(ctx context.Context, p *Pass) error + func (f AnalyzerFunc) Analyze(ctx context.Context, p *Pass) error + type Analyzers []Analyzer + func (a Analyzers) Analyze(ctx context.Context, p *Pass) error + type Change struct + Stmt *migrate.Stmt + type Diagnostic struct + Code string + Pos int + SuggestedFixes []SuggestedFix + Text string + func (d *Diagnostic) SuggestFix(m string, e *TextEdit) + type File struct + Changes []*Change + From *schema.Realm + Parser any + Sum schema.Changes + To *schema.Realm + func (f *File) ColumnSpan(t *schema.Table, c *schema.Column) ResourceSpan + func (f *File) ForeignKeySpan(t *schema.Table, fk *schema.ForeignKey) ResourceSpan + func (f *File) IndexSpan(t *schema.Table, i *schema.Index) ResourceSpan + func (f *File) SchemaSpan(s *schema.Schema) ResourceSpan + func (f *File) TableSpan(t *schema.Table) ResourceSpan + type NamedAnalyzer interface + Name func() string + type Options struct + Error *bool + type Pass struct + Dev *sqlclient.Client + File *File + Reporter ReportWriter + type Report struct + Desc string + Diagnostics []Diagnostic + SuggestedFixes []SuggestedFix + Text string + type ReportWriter interface + WriteReport func(Report) + type ReportWriterFunc func(Report) + func (f ReportWriterFunc) WriteReport(r Report) + type ResourceSpan uint + const SpanAdded + const SpanDropped + const SpanTemporary + const SpanUnknown + type SuggestedFix struct + Message string + TextEdit *TextEdit + type TextEdit struct + End int + Line int + NewText string