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

Method UnAliasedColumns

rel/sql.go:1235–1242  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1233}
1234
1235func (m *SqlSelect) UnAliasedColumns() map[string]*Column {
1236 cols := make(map[string]*Column, len(m.Columns))
1237 for _, col := range m.Columns {
1238 _, right, _ := col.LeftRight()
1239 cols[right] = col
1240 }
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 {

Callers 2

RewriteSqlSourceFunction · 0.95
TestSqlRewriteFunction · 0.45

Calls 1

LeftRightMethod · 0.45

Tested by 1

TestSqlRewriteFunction · 0.36