Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // CmdNew represents the new command. CmdNew = &cobra.Command{ Use: "proto", Short: "gRPC", Long: "创建proto文件. Example: ratel proto dir table_name", Run: run, } AppConfig *config.Config Link *query.Query )
View Source
var DataTypeMap = map[string]string{
"json": "string",
"char": "string",
"varchar": "string",
"text": "string",
"longtext": "string",
"mediumtext": "string",
"tinytext": "string",
"blob": "bytes",
"mediumblob": "bytes",
"longblob": "bytes",
"varbinary": "bytes",
"binary": "bytes",
"date": "int64",
"time": "int64",
"datetime": "int64",
"timestamp": "int64",
"bool": "bool",
"bit": "bool",
"tinyint": "int64",
"smallint": "int64",
"int": "int64",
"mediumint": "int64",
"bigint": "int64",
"float": "double",
"decimal": "double",
"double": "double",
}
DataTypeMap ...
View Source
var ProtoTpl = `` /* 3445-byte string literal not displayed */
Functions ¶
Types ¶
type Column ¶ added in v3.2.15
type Column struct {
ColumnName string `db:"COLUMN_NAME"`
IsNullable string `db:"IS_NULLABLE"`
DataType string `db:"DATA_TYPE"`
ColumnKey string `db:"COLUMN_KEY"`
ColumnComment string `db:"COLUMN_COMMENT"`
ProtoType string
Seq int64
}
Column ...
Click to show internal directories.
Click to hide internal directories.