Documentation ¶
Index ¶
Constants ¶
View Source
const ( // ProviderName mysql ProviderName = "mysql" // TableNamesScript 取表名列表sql语句 TableNamesScript = ` SELECT TABLE_NAME FROM information_schema.TABLES WHERE TABLE_SCHEMA = DATABASE() ` // TableColumnsScript 取表字段信息sql语句 TableColumnsScript = `` /* 486-byte string literal not displayed */ )
Variables ¶
View Source
var TypeMapping db.TypeMappingFunc = func(lang string, typ string, isNull bool) string { if lang == "csharp" { if t, ok := csharpMapping[typ]; ok { if isNull == false || t == "byte[]" || t == "string" { return t } return t + "?" } } else if lang == "golang" { if isNull == false { if t, ok := golangMapping[typ]; ok { return t } } else { if t, ok := golangNullMapping[typ]; ok { return t } } } return "unknown" }
TypeMapping MySQL type mapping
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.