Versions in this module Expand all Collapse all v1 v1.3.1 Nov 22, 2026 v1.3.0 Nov 21, 2026 Changes in this version + type Access struct + Kind Kind + Line int + Object Object + func Collect(nodes []Node) []Access + func ReadStatement(text string, opts StatementOptions) ([]Access, error) + type Diagnostic struct + Line int + Message string + Statement string + type File struct + Diagnostics []Diagnostic + Routines []Routine + Script *Script + func ReadTSQL(src string) (File, error) + type Kind string + const Call + const Read + const Write + type Node struct + Accesses []Access + Catch []Node + Condition string + Dynamic []Node + Else []Node + HasCatch bool + HasElse bool + Kind NodeKind + Line int + Text string + Then []Node + type NodeKind string + const IfNode + const StatementNode + const TryNode + const WhileNode + type Object struct + Database string + Name string + Schema string + func (o Object) String() string + type Routine struct + Body []Node + Definition sqlglot.Routine + Diagnostics []Diagnostic + Line int + Object Object + type Script struct + Body []Node + Line int + type StatementOptions struct + DefaultSchema string + Dialect string + IntoVariables bool + Line int + type UnsupportedSQLError struct + Class string + func (e *UnsupportedSQLError) Error() string