Documentation
¶
Overview ¶
Package model maps GORM schemas to explicit IoTDB model roles.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Column ¶
type Column struct {
Field *schema.Field
Role ColumnRole
Options map[string]string
}
Column describes one parsed GORM field and its IoTDB role.
func ParseColumns ¶
ParseColumns extracts IoTDB roles from either `iotdb` or legacy GORM tag settings.
func ParseField ¶
ParseField extracts one field's IoTDB role and options.
type ColumnRole ¶
type ColumnRole uint8
ColumnRole describes how a field participates in an IoTDB model.
const ( // ColumnRoleField marks a measurement or table FIELD. ColumnRoleField ColumnRole = iota // ColumnRoleTag marks a TableModel TAG and is rejected as implicit TreeModel metadata. ColumnRoleTag // ColumnRoleAttribute marks a TableModel ATTRIBUTE. ColumnRoleAttribute // ColumnRoleTime marks the row timestamp stored through Tablet.SetTimestamp. ColumnRoleTime // ColumnRoleDevice marks a per-row TreeModel device path selector. ColumnRoleDevice )
Click to show internal directories.
Click to hide internal directories.