Skip to content

Commit

Permalink
Update def.go
Browse files Browse the repository at this point in the history
  • Loading branch information
xxjwxc committed Aug 25, 2020
1 parent 8eeea20 commit 285caff
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion data/view/cnf/def.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,15 @@ var TypeMysqlDicMp = map[string]string{
"tinyint": "int8",
"tinyint unsigned": "uint8",
"tinyint(1)": "bool", // tinyint(1) 默认设置成bool
"tinyint(1) unsigned": "bool", // tinyint(1) 默认设置成bool
"tinyint(1) unsigned": "bool", // tinyint(1) 默认设置成bool
"json": "string",
"text": "string",
"timestamp": "time.Time",
"double": "float64",
"mediumtext": "string",
"longtext": "string",
"float": "float32",
"float unsigned": "float32",
"tinytext": "string",
"enum": "string",
"time": "time.Time",
Expand Down Expand Up @@ -59,4 +60,5 @@ var TypeMysqlMatchMp = map[string]string{
`^(float)[(]\d+,\d+[)]`: "float64",
`^(float)[(]\d+,\d+[)] unsigned`: "float64",
`^(datetime)[(]\d+[)]`: "time.Time",
`^(bit)[(]\d+[)]`: "[]uint8",
}

0 comments on commit 285caff

Please sign in to comment.