MCPcopy Create free account
hub / github.com/araddon/qlbridge / SetColumns

Method SetColumns

schema/schema.go:550–558  ·  view source on GitHub ↗

SetColumns Explicityly set column names.

(cols []string)

Source from the content-addressed store, hash-verified

548
549// SetColumns Explicityly set column names.
550func (m *Table) SetColumns(cols []string) {
551 m.FieldPositions = make(map[string]int, len(cols))
552 for idx, col := range cols {
553 //col = strings.ToLower(col)
554 m.FieldPositions[col] = idx
555 cols[idx] = col
556 }
557 m.cols = cols
558}
559
560// SetColumnsFromFields Explicityly set column names from fields.
561func (m *Table) SetColumnsFromFields() {

Callers 11

loadTableMethod · 0.95
tableForTableMethod · 0.95
tableForProceduresMethod · 0.95
tableForEnginesMethod · 0.95
tableForVariablesMethod · 0.95
tableForTablesMethod · 0.95
tableForDatabasesMethod · 0.95
loadTableMethod · 0.95
loadTableMethod · 0.95
buildTableMethod · 0.95
WalkSourceMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected