cnf

package
v0.0.0-...-d6f249d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 28, 2020 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EImportsHead = map[string]string{
	"stirng":     `"string"`,
	"time.Time":  `"time"`,
	"gorm.Model": `"gorm.io/gorm"`,
	"fmt":        `"fmt"`,
}

EImportsHead imports head options. import包含选项

View Source
var TypeMysqlDicMp = map[string]string{
	"smallint":            "int16",
	"smallint unsigned":   "uint16",
	"mediumint":           "int32",
	"mediumint unsigned":  "uint32",
	"int":                 "int32",
	"int unsigned":        "uint32",
	"bigint":              "int64",
	"bigint unsigned":     "uint64",
	"varchar":             "string",
	"char":                "string",
	"date":                "time.Time",
	"datetime":            "time.Time",
	"bit(1)":              "[]uint8",
	"tinyint":             "int8",
	"tinyint unsigned":    "uint8",
	"tinyint(1)":          "int8",
	"tinyint(1) unsigned": "uint8",
	"json":                "string",
	"text":                "string",
	"timestamp":           "time.Time",
	"double":              "float64",
	"mediumtext":          "string",
	"longtext":            "string",
	"float":               "float32",
	"float unsigned":      "float32",
	"tinytext":            "string",
	"enum":                "string",
	"time":                "time.Time",
	"tinyblob":            "[]byte",
	"blob":                "[]byte",
	"mediumblob":          "[]byte",
	"longblob":            "[]byte",
	"integer":             "int64",
}

TypeMysqlDicMp Accurate matching type.精确匹配类型

View Source
var TypeMysqlMatchMp = map[string]string{
	`^(tinyint)[(]\d+[)] unsigned`:   "uint8",
	`^(smallint)[(]\d+[)] unsigned`:  "uint16",
	`^(mediumint)[(]\d+[)] unsigned`: "uint32",
	`^(int)[(]\d+[)] unsigned`:       "uint32",
	`^(bigint)[(]\d+[)] unsigned`:    "uint64",
	`^(tinyint)[(]\d+[)]`:            "int8",
	`^(smallint)[(]\d+[)]`:           "int16",
	`^(mediumint)[(]\d+[)]`:          "int32",
	`^(int)[(]\d+[)]`:                "int32",
	`^(bigint)[(]\d+[)]`:             "int64",
	`^(char)[(]\d+[)]`:               "string",
	`^(enum)[(](.)+[)]`:              "string",
	`^(varchar)[(]\d+[)]`:            "string",
	`^(varbinary)[(]\d+[)]`:          "[]byte",
	`^(blob)[(]\d+[)]`:               "[]byte",
	`^(binary)[(]\d+[)]`:             "[]byte",
	`^(decimal)[(]\d+,\d+[)]`:        "float64",
	`^(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",
}

TypeMysqlMatchMp Fuzzy Matching Types.模糊匹配类型

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL