Column get the Underlying data type.
(col string)
| 535 | |
| 536 | // Column get the Underlying data type. |
| 537 | func (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. |
| 550 | func (m *Table) SetColumns(cols []string) { |