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

Function resultColumnToPb

rel/sql.go:455–471  ·  view source on GitHub ↗
(m *ResultColumn)

Source from the content-addressed store, hash-verified

453 return &s
454}
455func resultColumnToPb(m *ResultColumn) *ResultColumnPb {
456 s := &ResultColumnPb{}
457 if m.Col != nil {
458 s.Column = m.Col.ToPB()
459 }
460 if m.Final {
461 s.Final = &m.Final
462 }
463 if m.Star {
464 s.Star = &m.Star
465 }
466 s.Name = m.Name
467 s.ColPos = int32(m.ColPos)
468 s.As = m.As
469 s.ValueType = int32(m.Type)
470 return s
471}
472
473func (m *Projection) AddColumnShort(colName string, vt value.ValueType) {
474 //colName = strings.ToLower(colName)

Callers 1

projectionToPbFunction · 0.85

Calls 1

ToPBMethod · 0.45

Tested by

no test coverage detected