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

Method AliasedColumns

rel/sql.go:1243–1250  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1241 return cols
1242}
1243func (m *SqlSelect) AliasedColumns() map[string]*Column {
1244 cols := make(map[string]*Column, len(m.Columns))
1245 for _, col := range m.Columns {
1246 //u.Debugf("aliasing: key():%-15q As:%-15q %-15q", col.Key(), col.As, col.String())
1247 cols[col.Key()] = col
1248 }
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 {

Callers

nothing calls this directly

Calls 1

KeyMethod · 0.65

Tested by

no test coverage detected