From bf482f9f915b93f2d72f0afb8fb230ebf48d7f4f Mon Sep 17 00:00:00 2001 From: quhao Date: Wed, 18 Nov 2020 11:09:05 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0"double=20unsigned"=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- data/view/cnf/def.go | 48 +++++++++++++++++++++++--------------------- 1 file changed, 25 insertions(+), 23 deletions(-) diff --git a/data/view/cnf/def.go b/data/view/cnf/def.go index 36d4578..b44b478 100644 --- a/data/view/cnf/def.go +++ b/data/view/cnf/def.go @@ -29,6 +29,7 @@ var TypeMysqlDicMp = map[string]string{ "text": "string", "timestamp": "time.Time", "double": "float64", + "double unsigned": "float64", "mediumtext": "string", "longtext": "string", "float": "float32", @@ -45,27 +46,28 @@ var TypeMysqlDicMp = map[string]string{ // TypeMysqlMatchMp Fuzzy Matching Types.模糊匹配类型 var TypeMysqlMatchMp = map[string]string{ - `^(tinyint)[(]\d+[)] unsigned`: "uint8", - `^(smallint)[(]\d+[)] unsigned`: "uint16", - `^(int)[(]\d+[)] unsigned`: "uint32", - `^(bigint)[(]\d+[)] unsigned`: "uint64", - `^(tinyint)[(]\d+[)]`: "int8", - `^(smallint)[(]\d+[)]`: "int16", - `^(int)[(]\d+[)]`: "int", - `^(bigint)[(]\d+[)]`: "int64", - `^(char)[(]\d+[)]`: "string", - `^(enum)[(](.)+[)]`: "string", - `^(varchar)[(]\d+[)]`: "string", - `^(varbinary)[(]\d+[)]`: "[]byte", - `^(blob)[(]\d+[)]`: "[]byte", - `^(binary)[(]\d+[)]`: "[]byte", - `^(decimal)[(]\d+,\d+[)]`: "float64", - `^(mediumint)[(]\d+[)]`: "string", - `^(double)[(]\d+,\d+[)]`: "float64", - `^(float)[(]\d+,\d+[)]`: "float64", - `^(float)[(]\d+,\d+[)] unsigned`: "float64", - `^(datetime)[(]\d+[)]`: "time.Time", - `^(bit)[(]\d+[)]`: "[]uint8", - `^(text)[(]\d+[)]`: "string", - `^(integer)[(]\d+[)]`: "int", + `^(tinyint)[(]\d+[)] unsigned`: "uint8", + `^(smallint)[(]\d+[)] unsigned`: "uint16", + `^(int)[(]\d+[)] unsigned`: "uint32", + `^(bigint)[(]\d+[)] unsigned`: "uint64", + `^(tinyint)[(]\d+[)]`: "int8", + `^(smallint)[(]\d+[)]`: "int16", + `^(int)[(]\d+[)]`: "int", + `^(bigint)[(]\d+[)]`: "int64", + `^(char)[(]\d+[)]`: "string", + `^(enum)[(](.)+[)]`: "string", + `^(varchar)[(]\d+[)]`: "string", + `^(varbinary)[(]\d+[)]`: "[]byte", + `^(blob)[(]\d+[)]`: "[]byte", + `^(binary)[(]\d+[)]`: "[]byte", + `^(decimal)[(]\d+,\d+[)]`: "float64", + `^(mediumint)[(]\d+[)]`: "string", + `^(double)[(]\d+,\d+[)]`: "float64", + `^(double)[(]\d+,\d+[)] unsigned`: "float64", + `^(float)[(]\d+,\d+[)]`: "float64", + `^(float)[(]\d+,\d+[)] unsigned`: "float64", + `^(datetime)[(]\d+[)]`: "time.Time", + `^(bit)[(]\d+[)]`: "[]uint8", + `^(text)[(]\d+[)]`: "string", + `^(integer)[(]\d+[)]`: "int", }