Documentation ¶ Index ¶ func IsReadOnly(sql string) bool func IsSensitiveSQL(sql string) bool func IsStartTxn(sql string) bool type Lexer func NewLexer(sql string) *Lexer func (l *Lexer) NextToken() string Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func IsReadOnly ¶ func IsReadOnly(sql string) bool func IsSensitiveSQL ¶ func IsSensitiveSQL(sql string) bool func IsStartTxn ¶ func IsStartTxn(sql string) bool Types ¶ type Lexer ¶ type Lexer struct { // contains filtered or unexported fields } func NewLexer ¶ func NewLexer(sql string) *Lexer func (*Lexer) NextToken ¶ func (l *Lexer) NextToken() string It only returns uppercased identifiers and keywords. It's used to search for some specified keywords. It doesn't need to strict but it needs to be fast enough. Source Files ¶ View all Source files filter.golex.go Click to show internal directories. Click to hide internal directories.