3
0

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:
Tomaž Jerman
2023-06-21 09:52:32 +02:00
parent 41628f40c7
commit c99f68030d

View File

@@ -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)
)