add tinyint support

add tinyint support
master
谢小军 5 years ago
parent b7c5b5b6c7
commit bfb54391ac

@ -17,6 +17,7 @@ var TypeMysqlDicMp = map[string]string{
"date": "time.Time",
"datetime": "time.Time",
"bit(1)": "int8",
"tinyint": "int8",
"tinyint(1)": "int8",
"tinyint(1) unsigned": "int8",
"json": "string",
@ -37,7 +38,7 @@ var TypeMysqlMatchMp = map[string]string{
`^(int)[(]\d+[)]`: "int",
`^(bigint)[(]\d+[)]`: "int64",
`^(char)[(]\d+[)]`: "string",
`^(enum)[(](.)+[)]`: "string",
`^(enum)[(](.)+[)]`: "string",
`^(varchar)[(]\d+[)]`: "string",
`^(varbinary)[(]\d+[)]`: "[]byte",
`^(decimal)[(]\d+,\d+[)]`: "float64",

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save