ParseMySQLOmni parses SQL using omni's parser and returns an ast.List. This is the recommended entry point for new code that needs omni AST nodes.
(sql string)
| 28 | // ParseMySQLOmni parses SQL using omni's parser and returns an ast.List. |
| 29 | // This is the recommended entry point for new code that needs omni AST nodes. |
| 30 | func ParseMySQLOmni(sql string) (*ast.List, error) { |
| 31 | return mysqlparser.Parse(sql) |
| 32 | } |
| 33 | |
| 34 | // IsKeyword reports whether s is a registered MySQL keyword. |
| 35 | func IsKeyword(s string) bool { |
no outgoing calls