Versions in this module Expand all Collapse all v0 v0.6.3 Aug 5, 2026 v0.6.2 Aug 5, 2026 v0.6.1 Aug 5, 2026 v0.6.0 Aug 5, 2026 v0.5.0 Aug 4, 2026 Changes in this version type Statement + func (s Statement) PlansAsJSON() bool v0.4.0 Aug 3, 2026 v0.3.0 Aug 3, 2026 v0.2.0 Jul 31, 2026 Changes in this version type Statement + func (s Statement) Verb() string type StmtKind + const StmtTransaction + func (k StmtKind) ReturnsRows() bool v0.1.0 Jul 29, 2026 Changes in this version + func AppendLimit(stmt Statement, n int) string + func IsIdentifierByte(c byte) bool + func QuoteIdentifier(name string) string + type CompletionContext struct + Kind CompletionKind + Prefix string + Qualifier string + ReplaceFrom int + ReplaceTo int + Tables []TableRef + func CompletionAt(sql string, offset int) CompletionContext + type CompletionKind int + const CompleteColumn + const CompleteNone + const CompleteQualified + const CompleteTable + type Kind int + const Comment + const Ident + const Number + const Punct + const String + const Word + func (k Kind) String() string + type Statement struct + End int + Pos int + SQL string + Tokens []Token + func Parse(sql string) Statement + func Split(sql string) []Statement + func StatementAt(sql string, offset int) (Statement, bool) + func (s Statement) HasTopLevelLimit() bool + func (s Statement) HasTopLevelWhere() bool + func (s Statement) IsEmpty() bool + func (s Statement) Kind() StmtKind + type StmtKind int + const StmtDDL + const StmtDelete + const StmtDrop + const StmtInsert + const StmtOther + const StmtRead + const StmtSelect + const StmtSession + const StmtTruncate + const StmtUpdate + func (k StmtKind) String() string + type TableRef struct + Alias string + Derived bool + Name string + Schema string + func ResolveQualifier(refs []TableRef, qualifier string) (TableRef, bool) + func TableRefs(stmt Statement) []TableRef + type Token struct + Depth int + End int + Kind Kind + Pos int + Text string + func Tokenize(sql string) []Token + func (t Token) IsKeyword(name string) bool