Versions in this module Expand all Collapse all v0 v0.2.0 Oct 7, 2026 v0.1.0 Oct 7, 2026 Changes in this version + var Keywords = []string + func HasContent(s string) bool + func IsComplete(input string) bool + func IsIdentPart(r rune) bool + func IsIdentStart(r rune) bool + func IsKeyword(word string) bool + func NeedsQuoting(name string) bool + func ParseSet(sql string) (settings map[string]string, ok bool) + func ParseUse(sql string) (db string, ok bool) + func QuoteIdent(name string) string + func ReturnsRows(verb string) bool + func SplitStatements(script string) (stmts []string, rest string) + func Unquote(ident string) string + type InsertKind int + const InsertFormat + const InsertNoData + const InsertSelect + const InsertValues + func ClassifyInsert(sig []Token) InsertKind + type Statement struct + Format string + SQL string + Verb string + Vertical bool + func ParseStatement(input string) Statement + type Token struct + End int + Kind TokenKind + Start int + Text string + Unterminated bool + func SignificantTokens(s string) []Token + func Tokenize(s string) []Token + func (t Token) Is(keyword string) bool + func (t Token) IsOp(op string) bool + func (t Token) Significant() bool + func (t Token) Upper() string + type TokenKind int + const Comment + const Ident + const Keyword + const Number + const Operator + const QuotedIdent + const String + const Whitespace