Versions in this module Expand all Collapse all v0 v0.4.0 Oct 15, 2026 Changes in this version + const AdapterVersion + func IsBindingInput(filePath string) bool + func IsConfigPath(filePath string) bool + func IsSemanticInput(filePath string) bool + func ResolveTableArgument(argument, statement string, tables []string, dialect string) (string, bool) + type Binding struct + ConfigPath string + Constant string + Entry int + GeneratedPath string + Generator string + GeneratorVersion string + Location graph.Location + Method string + type Config struct + Diagnostics []graph.Diagnostic + Entries []Entry + Path string + type Entry struct + ConfigPath string + Engine string + Go GoConfig + Index int + QueryPaths []string + QueryRoots []string + SchemaPaths []string + SchemaRoots []string + Valid bool + type GoConfig struct + EmitExportedQueries bool + EmitPreparedQueries bool + Out string + Package string + type Loader struct + func NewLoader() *Loader + func (l *Loader) AffectedPaths(root string, changedPaths []string) (queries, configs []string, known bool) + func (l *Loader) FileSemanticKey(ctx context.Context, input parserapi.Input) (string, error) + func (l *Loader) Load(ctx context.Context, input parserapi.Input) (Registry, error) + func (l *Loader) SemanticKey(ctx context.Context, input parserapi.Input) (string, error) + type Parser struct + func New(loader *Loader) *Parser + func (*Parser) IsSemanticInput(path string) bool + func (*Parser) Language() string + func (*Parser) Supports(path string) bool + func (*Parser) WorkspaceSemanticEvidenceKey(context.Context, parserapi.Input) (string, error) + func (p *Parser) Parse(ctx context.Context, input parserapi.Input) (graph.ParseResult, error) + func (p *Parser) SemanticAffectedPaths(root string, allPaths, changedPaths []string) []string + func (p *Parser) SemanticKey(ctx context.Context, input parserapi.Input) (string, error) + func (p *Parser) WorkspaceSemanticKey(ctx context.Context, input parserapi.Input) (string, error) + type Query struct + Command string + ConfigPath string + Engine string + Entry int + Name string + Path string + SQL string + StatementEnd int + StatementStart int + type Registry struct + Digest string + func (r Registry) BindingsForQuery(path, name string) []Binding + func (r Registry) ColumnsForQuery(queryPath, table string) ([]string, bool) + func (r Registry) Config(path string) (Config, bool) + func (r Registry) Configs() []Config + func (r Registry) EntriesForQuery(path string) []Entry + func (r Registry) EntriesForSQLPath(path string) []Entry + func (r Registry) Query(path, name string) (Query, bool) + func (r Registry) SchemaColumnsForQuery(queryPath, table string) (string, []string, bool)