Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DataTypeMap = map[string][]string{
"TINYINT": {"int64", "query.NullInt64"},
"SMALLINT": {"int64", "query.NullInt64"},
"MEDIUMINT": {"int64", "query.NullInt64"},
"INT": {"int64", "query.NullInt64"},
"INTEGER": {"int64", "query.NullInt64"},
"BIGINT": {"int64", "query.NullInt64"},
"FLOAT": {"float64", "query.NullFloat64"},
"DOUBLE": {"float64", "query.NullFloat64"},
"DECIMAL": {"float64", "query.NullFloat64"},
"DATE": {"query.NullDate", "query.NullDate"},
"TIME": {"query.NullTime", "query.NullTime"},
"YEAR": {"query.NullYear", "query.NullYear"},
"DATETIME": {"query.NullDateTime", "query.NullDateTime"},
"TIMESTAMP": {"query.NullTime", "query.NullTime"},
"CHAR": {"string", "query.NullString"},
"VARCHAR": {"string", "query.NullString"},
"TINYBLOB": {"string", "query.NullString"},
"TINYTEXT": {"string", "query.NullString"},
"BLOB": {"string", "query.NullString"},
"TEXT": {"string", "query.NullString"},
"MEDIUMBLOB": {"string", "query.NullString"},
"MEDIUMTEXT": {"string", "query.NullString"},
"LONGBLOB": {"string", "query.NullString"},
"LONGTEXT": {"string", "query.NullString"},
"JSON": {"string", "query.NullString"},
}
DataTypeMap ...
Functions ¶
Types ¶
type Column ¶
type Column struct { ColumnName string `db:"COLUMN_NAME"` IsNullable string `db:"IS_NULLABLE"` DataType string `db:"DATA_TYPE"` ColumnKey string `db:"COLUMN_KEY"` ColumnComment string `db:"COLUMN_COMMENT"` }
Column ...
type Config ¶
type Config struct { // Username string `json:"username"` // Password string `json:"password"` // Protocol string `json:"protocol"` // Address string `json:"address"` // Dbname string `json:"dbname"` // TableName string `json:"tableName"` OutputDir string `json:"outputDir"` OutputPackage string `json:"outputPackage"` }
Config ...
Click to show internal directories.
Click to hide internal directories.