MCPcopy Create free account
hub / github.com/ajitpratap0/GoSQLX / replaceTableInFrom

Function replaceTableInFrom

pkg/transform/tables.go:135–141  ·  view source on GitHub ↗
(from []ast.TableReference, old, new string)

Source from the content-addressed store, hash-verified

133}
134
135func replaceTableInFrom(from []ast.TableReference, old, new string) {
136 for i := range from {
137 if strings.EqualFold(from[i].Name, old) {
138 from[i].Name = new
139 }
140 }
141}
142
143func replaceTableInJoins(joins []ast.JoinClause, old, new string) {
144 for i := range joins {

Callers 2

ReplaceTableFunction · 0.85
replaceTableInStmtFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected