package
9.0.0-alpha+incompatible
Repository: https://github.com/pingcap/tidb.git
Documentation: pkg.go.dev

# Functions

AnyChar matches an arbitrary character.
AnyPunct matches an arbitrary punctuation.
Char matches a character: c.
Digit matches at least `times` digits.
GetDefaultDB checks if all tables in the AST have explicit DBName.
Match matches the `pat` at least `times`, and returns the match, the rest and the error.
MatchOne matches only one time with pat.
Number matches a series of digits and convert it to an int.
RestoreWithDefaultDB returns restore strings for StmtNode with defaultDB This function is customized for SQL bind usage.
RestoreWithoutDB returns restore strings for StmtNode without schema name.
SimpleCases captures simple SQL statements and uses string replacement instead of `restore` to improve performance.
Space matches at least `times` spaces.
Space0 matches at least 0 space.

# Variables

ErrPatternNotMatch represents an error that patterns doesn't match.