Switch mysql information schema to column type
Column type provides more information about the storage, such as intager signature and decimal precision.
This commit is contained in:
@@ -48,7 +48,7 @@ func (i *informationSchema) columnSelect() *goqu.SelectDataset {
|
||||
"TABLE_NAME",
|
||||
"COLUMN_NAME",
|
||||
"IS_NULLABLE",
|
||||
"DATA_TYPE",
|
||||
"COLUMN_TYPE",
|
||||
).
|
||||
From("information_schema.columns").
|
||||
Order(
|
||||
@@ -68,7 +68,7 @@ func (i *informationSchema) scanColumns(ctx context.Context, sd *goqu.SelectData
|
||||
Table string `db:"TABLE_NAME"`
|
||||
Column string `db:"COLUMN_NAME"`
|
||||
IsNullable string `db:"IS_NULLABLE"`
|
||||
Type string `db:"DATA_TYPE"`
|
||||
Type string `db:"COLUMN_TYPE"`
|
||||
}, 0)
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user