Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildFieldDefs ¶
func BuildFieldDefs(fields string) (fds map[int]*chutils.FieldDef, inputMap map[string]keyval.KeyVal, err error)
BuildFieldDefs builds a FieldDef map (required by TableDef) from the fields string. The fields string is a KeyVal representation of the FieldDef. The keys are:
- name: field name
- order: order of field in the table, starting with 0
- type: field type (int, float, string, fixedString, date)
- length: length of field, required for int, float, fixedString
- desc: field description
- miss: value to use if the observed value is illegal
- default: value to use if the observed value is null
- levels: comma-separated list of legal values
- high: maximum level
- low: minimum level
- format: Go-style date format (e.g. 20060102, 1/2/2006)
- drop: yes/no drop field when creating a table.
The inputMap is a KeyVal represention of the fields string. The key is the field name.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.