mysql 支持 enum枚举类型

master
倒霉狐狸 5 years ago committed by GitHub
parent ec4c62c20f
commit 726f16d5eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -27,6 +27,7 @@ var TypeMysqlDicMp = map[string]string{
"longtext": "string",
"float": "float32",
"tinytext": "stirng",
"enum": "string",
}
// TypeMysqlMatchMp Fuzzy Matching Types.模糊匹配类型
@ -36,6 +37,7 @@ var TypeMysqlMatchMp = map[string]string{
`^(int)[(]\d+[)]`: "int",
`^(bigint)[(]\d+[)]`: "int64",
`^(char)[(]\d+[)]`: "string",
`^(enum)[(](.)+[)]`: "string",
`^(varchar)[(]\d+[)]`: "string",
`^(varbinary)[(]\d+[)]`: "[]byte",
`^(decimal)[(]\d+,\d+[)]`: "float64",

Loading…
Cancel
Save