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

Method Column

schema/schema.go:537–547  ·  view source on GitHub ↗

Column get the Underlying data type.

(col string)

Source from the content-addressed store, hash-verified

535
536// Column get the Underlying data type.
537func (m *Table) Column(col string) (value.ValueType, bool) {
538 f, ok := m.FieldMap[col]
539 if ok {
540 return f.ValueType(), true
541 }
542 f, ok = m.FieldMap[strings.ToLower(col)]
543 if ok {
544 return f.ValueType(), true
545 }
546 return value.UnknownType, false
547}
548
549// SetColumns Explicityly set column names.
550func (m *Table) SetColumns(cols []string) {

Callers 1

TestTableFunction · 0.95

Calls 1

ValueTypeMethod · 0.80

Tested by 1

TestTableFunction · 0.76