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

Method ColIndexes

rel/sql.go:1251–1258  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1249 return cols
1250}
1251func (m *SqlSelect) ColIndexes() map[string]int {
1252 cols := make(map[string]int, len(m.Columns))
1253 for i, col := range m.Columns {
1254 //u.Debugf("aliasing: key():%-15q As:%-15q %-15q", col.Key(), col.As, col.String())
1255 cols[col.Key()] = i
1256 }
1257 return cols
1258}
1259
1260func (m *SqlSelect) AddColumn(colArg Column) error {
1261 col := &colArg

Callers 8

WalkSourceSelectMethod · 0.80
NewWhereFinalFunction · 0.80
NewWhereFilterFunction · 0.80
NewHavingFunction · 0.80
RunMethod · 0.80
projectionEvaluatorMethod · 0.80
RunMethod · 0.80
RunMethod · 0.80

Calls 1

KeyMethod · 0.65

Tested by

no test coverage detected