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

Method AddColumn

rel/sql.go:482–489  ·  view source on GitHub ↗
(col *Column, vt value.ValueType)

Source from the content-addressed store, hash-verified

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 {
485 // return
486 // }
487 //m.colNames[colName] = struct{}{}
488 m.Columns = append(m.Columns, NewResultColumn(col.As, len(m.Columns), col, vt))
489}
490func (m *Projection) Equal(s *Projection) bool {
491 if m == nil && s == nil {
492 return true

Callers

nothing calls this directly

Calls 1

NewResultColumnFunction · 0.85

Tested by

no test coverage detected