Skip to content

Commit

Permalink
Update def.go
Browse files Browse the repository at this point in the history
添加数据类型
  • Loading branch information
zilinyo authored Dec 10, 2019
1 parent b454eb9 commit d086e13
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions data/view/cnf/def.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ var TypeMysqlDicMp = map[string]string{
"timestamp": "time.Time",
"double": "float64",
"mediumtext": "string",
"longtext": "string",
"float": "float32",
"tinytext": "stirng",
}

// TypeMysqlMatchMp Fuzzy Matching Types.模糊匹配类型
Expand All @@ -33,6 +36,7 @@ var TypeMysqlMatchMp = map[string]string{
`^(bigint)[(]\d+[)]`: "int64",
`^(char)[(]\d+[)]`: "string",
`^(varchar)[(]\d+[)]`: "string",
`^(varbinary)[(]\d+[)]`: "[]byte",
`^(decimal)[(]\d+,\d+[)]`: "float64",
`^(mediumint)[(]\d+[)]`: "string",
`^(double)[(]\d+,\d+[)]`: "float64",
Expand Down

0 comments on commit d086e13

Please sign in to comment.