You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
725 B
Go
35 lines
725 B
Go
package model
|
|
|
|
var (
|
|
CommonMysqlDataTypeMap = map[string]string{
|
|
"tinyint": "int",
|
|
"smallint": "int",
|
|
"mediumint": "int64",
|
|
"int": "int64",
|
|
"integer": "int64",
|
|
"bigint": "int64",
|
|
"float": "float32",
|
|
"double": "float64",
|
|
"decimal": "float64",
|
|
"date": "time.Time",
|
|
"time": "string",
|
|
"year": "int",
|
|
"datetime": "time.Time",
|
|
"timestamp": "time.Time",
|
|
"char": "string",
|
|
"varchar": "string",
|
|
"tinyblob": "string",
|
|
"tinytext": "string",
|
|
"blob": "string",
|
|
"text": "string",
|
|
"mediumblob": "string",
|
|
"mediumtext": "string",
|
|
"longblob": "string",
|
|
"longtext": "string",
|
|
}
|
|
)
|
|
|
|
const (
|
|
ModeDirPerm = 0755
|
|
)
|