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

Function nodeLocEnd

backend/plugin/parser/tidb/backup.go:883–895  ·  view source on GitHub ↗
(expr ast.TableExpr)

Source from the content-addressed store, hash-verified

881}
882
883func nodeLocEnd(expr ast.TableExpr) int {
884 switch e := expr.(type) {
885 case *ast.TableRef:
886 return e.Loc.End
887 case *ast.JoinClause:
888 return e.Loc.End
889 case *ast.SubqueryExpr:
890 return e.Loc.End
891 case *ast.JsonTableExpr:
892 return e.Loc.End
893 }
894 return -1
895}
896
897func classifyColumns(ctx context.Context, getDatabaseMetadataFunc base.GetDatabaseMetadataFunc, listDatabaseNamesFunc base.ListDatabaseNamesFunc, isCaseSensitive bool, instanceID string, table *TableReference) ([]string, []string, error) {
898 if getDatabaseMetadataFunc == nil {

Callers 1

writeUpdateSuffixFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected