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

Function GetColumnIndex

backend/plugin/db/util/driverutil.go:227–234  ·  view source on GitHub ↗
(columns []string, name string)

Source from the content-addressed store, hash-verified

225}
226
227func GetColumnIndex(columns []string, name string) (int, bool) {
228 for i, c := range columns {
229 if c == name {
230 return i, true
231 }
232 }
233 return 0, false
234}

Callers 3

CountAffectedRowsMethod · 0.92
CountAffectedRowsMethod · 0.92
CountAffectedRowsMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected