Merge pull request #83 from quhaowk/gormt-t

增加"double unsigned"类型
This commit is contained in:
xxj
2020-11-18 12:12:28 +08:00
committed by GitHub

View File

@@ -29,6 +29,7 @@ var TypeMysqlDicMp = map[string]string{
"text": "string",
"timestamp": "time.Time",
"double": "float64",
"double unsigned": "float64",
"mediumtext": "string",
"longtext": "string",
"float": "float32",
@@ -62,6 +63,7 @@ var TypeMysqlMatchMp = map[string]string{
`^(decimal)[(]\d+,\d+[)]`: "float64",
`^(mediumint)[(]\d+[)]`: "string",
`^(double)[(]\d+,\d+[)]`: "float64",
`^(double)[(]\d+,\d+[)] unsigned`: "float64",
`^(float)[(]\d+,\d+[)]`: "float64",
`^(float)[(]\d+,\d+[)] unsigned`: "float64",
`^(datetime)[(]\d+[)]`: "time.Time",