Documentation ¶
Index ¶
- func FetchDDLTableNames(schema string, stmt ast.StmtNode) ([]*filter.Table, error)
- func Parse(p *parser.Parser, sql, charset, collation string) (stmt []ast.StmtNode, err error)
- func RenameDDLTable(stmt ast.StmtNode, targetTableNames []*filter.Table) (string, error)
- func SplitDDL(stmt ast.StmtNode, schema string) (sqls []string, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FetchDDLTableNames ¶
FetchDDLTableNames returns table names in ddl the result contains [tableName] excepted create table like and rename table for `create table like` DDL, result contains [sourceTableName, sourceRefTableName] for rename table ddl, result contains [oldTableName, newTableName]
func RenameDDLTable ¶
RenameDDLTable renames table names in ddl by given `targetTableNames` argument `targetTableNames` is same with return value of FetchDDLTableNames
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.