Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // CmdNew represents the new command. CmdNew = &cobra.Command{ Use: "dao", Short: "Create a dao", Long: "Create a dao using the repository template. Example: ratel dao", Run: run, } AppConfig *config.Config Link *query.Query )
View Source
var DataTypeMap = map[string][]string{
"TINYINT": {"int64", "query.NullInt64"},
"SMALLINT": {"int64", "query.NullInt64"},
"MEDIUMINT": {"int64", "query.NullInt64"},
"INT": {"int64", "query.NullInt64"},
"INTEGER": {"int64", "query.NullInt64"},
"BIGINT": {"int64", "query.NullInt64"},
"FLOAT": {"float64", "query.NullFloat64"},
"DOUBLE": {"float64", "query.NullFloat64"},
"DECIMAL": {"float64", "query.NullFloat64"},
"DATE": {"query.NullDate", "query.NullDate"},
"TIME": {"query.NullTime", "query.NullTime"},
"YEAR": {"query.NullYear", "query.NullYear"},
"DATETIME": {"query.NullDateTime", "query.NullDateTime"},
"TIMESTAMP": {"query.NullTime", "query.NullTime"},
"CHAR": {"string", "query.NullString"},
"VARCHAR": {"string", "query.NullString"},
"TINYBLOB": {"string", "query.NullString"},
"TINYTEXT": {"string", "query.NullString"},
"BLOB": {"string", "query.NullString"},
"TEXT": {"string", "query.NullString"},
"MEDIUMBLOB": {"string", "query.NullString"},
"MEDIUMTEXT": {"string", "query.NullString"},
"LONGBLOB": {"string", "query.NullString"},
"LONGTEXT": {"string", "query.NullString"},
"JSON": {"string", "query.NullString"},
}
DataTypeMap ...
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.