revew code

This commit is contained in:
谢小军
2019-11-29 19:05:51 +08:00
parent d7cda6b8fd
commit b454eb944f
3 changed files with 20 additions and 32 deletions

View File

@@ -22,6 +22,7 @@ var TypeMysqlDicMp = map[string]string{
"text": "string",
"timestamp": "time.Time",
"double": "float64",
"mediumtext": "string",
}
// TypeMysqlMatchMp Fuzzy Matching Types.模糊匹配类型
@@ -33,4 +34,7 @@ var TypeMysqlMatchMp = map[string]string{
`^(char)[(]\d+[)]`: "string",
`^(varchar)[(]\d+[)]`: "string",
`^(decimal)[(]\d+,\d+[)]`: "float64",
`^(mediumint)[(]\d+[)]`: "string",
`^(double)[(]\d+,\d+[)]`: "float64",
`^(float)[(]\d+,\d+[)]`: "float64",
}