Skip to content

Commit

Permalink
mysql 支持 enum枚举类型
Browse files Browse the repository at this point in the history
  • Loading branch information
evildao authored Jan 17, 2020
1 parent ec4c62c commit 726f16d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions data/view/cnf/def.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ var TypeMysqlDicMp = map[string]string{
"longtext": "string",
"float": "float32",
"tinytext": "stirng",
"enum": "string",
}

// TypeMysqlMatchMp Fuzzy Matching Types.模糊匹配类型
Expand All @@ -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",
Expand Down

0 comments on commit 726f16d

Please sign in to comment.