Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var IntTypeMapping = map[string]string{
"int": "int",
"int unsigned": "uint",
"tinyint": "int8",
"tinyint unsigned": "uint8",
"smallint": "int16",
"smallint unsigned": "uint16",
"bigint": "int64",
"bigint unsigned": "uint64",
"float": "float",
"double": "float64",
"decimals": "float64",
}
View Source
var MysqlTypeMapping = map[string]string{
"char": "string",
"varchar": "string",
"tinytext": "string",
"longtext": "string",
"text": "string",
"bool": "bool",
"int": "int",
"int unsigned": "uint",
"tinyint": "int8",
"tinyint unsigned": "uint8",
"smallint": "int16",
"smallint unsigned": "uint16",
"bigint": "int64",
"bigint unsigned": "uint64",
"float": "float",
"double": "float64",
"decimals": "float64",
"datetime": "*time.Time",
"date": "*time.Time",
"timestamp": "*time.Time",
}
View Source
var StringTypeMapping = map[string]string{
"char": "string",
"varchar": "string",
"tinytext": "string",
"longtext": "string",
"text": "string",
}
Functions ¶
func FormatFile ¶
func FormatFile(filename string)
func StrFirstToLower ¶
func StrFirstToUpper ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.