Versions in this module Expand all Collapse all v0 v0.23.2 Feb 12, 2024 Changes in this version + var NewNumValFn = func(constant.Value, string, bool) interface{} + var NewPlaceholderFn = func(string) (interface{}, error) + func FirstLexicalToken(sql string) (tok int) + func HasMultipleStatements(sql string) (multipleStmt bool, err error) + func LastLexicalToken(sql string) (lastTok int, ok bool) + type InspectToken struct + End int32 + ID int32 + MaybeID int32 + Quoted bool + Start int32 + Str string + func Inspect(sql string) []InspectToken + type SQLScanner struct + func (s *SQLScanner) Scan(lval ScanSymType) + type ScanSymType interface + ID func() int32 + Pos func() int32 + SetID func(int32) + SetPos func(int32) + SetStr func(string) + SetUnionVal func(interface{}) + Str func() string + UnionVal func() interface{} + type Scanner struct + Comments []string + func (s *Scanner) Cleanup() + func (s *Scanner) In() string + func (s *Scanner) Init(str string) + func (s *Scanner) Pos() int + func (s *Scanner) ScanComment(lval ScanSymType) (present, ok bool)