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

Function nodeStmtLoc

backend/plugin/parser/mysql/backup.go:626–634  ·  view source on GitHub ↗
(node ast.Node)

Source from the content-addressed store, hash-verified

624}
625
626func nodeStmtLoc(node ast.Node) ast.Loc {
627 switch n := node.(type) {
628 case *ast.UpdateStmt:
629 return n.Loc
630 case *ast.DeleteStmt:
631 return n.Loc
632 }
633 return ast.Loc{}
634}
635
636func classifyColumns(ctx context.Context, getDatabaseMetadataFunc base.GetDatabaseMetadataFunc, listDatabaseNamesFunc base.ListDatabaseNamesFunc, isCaseSensitive bool, instanceID string, table *TableReference) ([]string, []string, error) {
637 if getDatabaseMetadataFunc == nil {

Callers 1

generateSQLForTableFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected