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

Function NewResultColumn

rel/sql.go:324–330  ·  view source on GitHub ↗
(as string, ordinal int, col *Column, valtype value.ValueType)

Source from the content-addressed store, hash-verified

322 return &Projection{Columns: make(ResultColumns, 0), colNames: make(map[string]struct{})}
323}
324func NewResultColumn(as string, ordinal int, col *Column, valtype value.ValueType) *ResultColumn {
325 rc := ResultColumn{Name: as, As: as, ColPos: ordinal, Col: col, Type: valtype}
326 if col != nil {
327 rc.Name = col.SourceField
328 }
329 return &rc
330}
331func NewSqlSelect() *SqlSelect {
332 req := &SqlSelect{}
333 req.Columns = make(Columns, 0)

Callers 2

AddColumnShortMethod · 0.85
AddColumnMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected