Co-authored-by: anqiansong <anqiansong@xiaoheiban.cn>
master
anqiansong 3 years ago committed by GitHub
parent 603c93aa4a
commit cb7b7cb72e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -47,6 +47,10 @@ var commonMysqlDataTypeMap = map[int]string{
parser.Enum: "string", parser.Enum: "string",
parser.Set: "string", parser.Set: "string",
parser.Json: "string", parser.Json: "string",
parser.Blob: "string",
parser.LongBlob: "string",
parser.MediumBlob: "string",
parser.TinyBlob: "string",
} }
var commonMysqlDataTypeMap2 = map[string]string{ var commonMysqlDataTypeMap2 = map[string]string{
@ -81,6 +85,10 @@ var commonMysqlDataTypeMap2 = map[string]string{
"enum": "string", "enum": "string",
"set": "string", "set": "string",
"json": "string", "json": "string",
"blob": "string",
"longblob": "string",
"mediumblob": "string",
"tinyblob": "string",
} }
// ConvertDataType converts mysql column type into golang type // ConvertDataType converts mysql column type into golang type

Loading…
Cancel
Save