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

Method AddColumnShort

rel/sql.go:473–481  ·  view source on GitHub ↗
(colName string, vt value.ValueType)

Source from the content-addressed store, hash-verified

471}
472
473func (m *Projection) AddColumnShort(colName string, vt value.ValueType) {
474 //colName = strings.ToLower(colName)
475 // if _, exists := m.colNames[colName]; exists {
476 // return
477 // }
478 //u.Infof("adding column %s to %v", colName, m.colNames)
479 //m.colNames[colName] = struct{}{}
480 m.Columns = append(m.Columns, NewResultColumn(colName, len(m.Columns), nil, vt))
481}
482func (m *Projection) AddColumn(col *Column, vt value.ValueType) {
483 //colName := strings.ToLower(col.As)
484 // if _, exists := m.colNames[colName]; exists {

Callers 3

loadLiteralProjectionMethod · 0.95
loadFinalMethod · 0.80
projectionForSourcePlanFunction · 0.80

Calls 1

NewResultColumnFunction · 0.85

Tested by

no test coverage detected