MCPcopy Create free account
hub / github.com/bytebase/bytebase / newTiDBParser

Function newTiDBParser

backend/plugin/parser/tidb/tidb.go:93–101  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

91}
92
93func newTiDBParser() *tidbparser.Parser {
94 p := tidbparser.New()
95
96 // To support MySQL8 window function syntax.
97 // See https://github.com/bytebase/bytebase/issues/175.
98 p.EnableWindowFunc(true)
99
100 return p
101}
102
103// ParseTiDB parses the given SQL statement and returns the AST.
104func ParseTiDB(sql string, charset string, collation string) ([]ast.StmtNode, error) {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected