Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Driver ¶
type Driver struct { Driver string `mapstructure:"driver"` Host string `mapstructure:"host"` Port int `mapstructure:"port"` SSLMode string `mapstructure:"ssl_mode"` Database string `mapstructure:"database"` Username string `mapstructure:"username"` Password string `mapstructure:"password"` Table string `mapstructure:"table"` }
Driver for database
type Field ¶
type Field struct { Source string `mapstructure:"source"` Target string `mapstructure:"target"` TargetType FieldType `mapstructure:"target_type"` Converter string `mapstructure:"converter"` }
Field with database mapping source database field name target database filed name target_type target database field data type TODO: converter transfer script template
type FieldMeta ¶
type FieldMeta struct { Field string Type string Null interface{} Key interface{} Default interface{} Extra interface{} }
FieldMeta database table schema
type FieldType ¶
type FieldType string
FieldType for field database field type
const ( // FieldTimestamp timestamp type FieldTimestamp FieldType = "timestamp" )
type Mapping ¶
type Mapping []*Field
Mapping for database fields map
Click to show internal directories.
Click to hide internal directories.