Documentation ¶
Index ¶
- Variables
- func AnyChar(buf string) (string, error)
- func AnyPunct(buf string) (string, error)
- func Char(buf string, c byte) (string, error)
- func Digit(buf string, times int) (string, string, error)
- func GetDefaultDB(sel ast.StmtNode, dbName string) string
- func Match(buf string, pat func(byte) bool, times int) (string, string, error)
- func MatchOne(buf string, pat func(byte) bool) (string, error)
- func Number(str string) (int, string, error)
- func Space(buf string, times int) (string, error)
- func Space0(buf string) string
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrPatternNotMatch represents an error that patterns doesn't match. ErrPatternNotMatch = errors.New("Pattern not match") )
Functions ¶
func GetDefaultDB ¶
GetDefaultDB checks if all columns in the AST have explicit DBName. If not, return specified DBName.
func Match ¶
Match matches the `pat` at least `times`, and returns the match, the rest and the error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.