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

Function nodeLocEnd

backend/plugin/parser/mysql/backup.go:418–426  ·  view source on GitHub ↗
(expr ast.TableExpr)

Source from the content-addressed store, hash-verified

416}
417
418func nodeLocEnd(expr ast.TableExpr) int {
419 switch e := expr.(type) {
420 case *ast.TableRef:
421 return e.Loc.End
422 case *ast.JoinClause:
423 return e.Loc.End
424 }
425 return -1
426}
427
428// resolveUnqualifiedColumns resolves unqualified column names to owning tables using metadata.
429func resolveUnqualifiedColumns(columns []string, singleTables map[string]*TableReference, dbMetadata *model.DatabaseMetadata) map[string]bool {

Callers 1

writeUpdateSuffixFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected