Documentation ¶
Index ¶
- Constants
- Variables
- func GetDBInstance(conf *DBConfig) (*sql.DB, error)
- func OutputError(msg string) error
- func OutputFail(msg string) error
- func OutputFile(tableName, cmdName string) (io.Writer, error)
- func OutputInfo(title, msg string)
- func OutputOk(msg string)
- func OutputStep(msg string)
- func OutputWarn(msg string)
- type DBConfig
- type SchemaArgs
Constants ¶
View Source
const DefaultSchemaOutputRootPath = "dao/mysql"
Variables ¶
View Source
var ( Green = string([]byte{27, 91, 57, 55, 59, 52, 50, 109}) White = string([]byte{27, 91, 57, 48, 59, 52, 55, 109}) Yellow = string([]byte{27, 91, 57, 48, 59, 52, 51, 109}) Red = string([]byte{27, 91, 57, 55, 59, 52, 49, 109}) Blue = string([]byte{27, 91, 57, 55, 59, 52, 52, 109}) Magenta = string([]byte{27, 91, 57, 55, 59, 52, 53, 109}) Cyan = string([]byte{27, 91, 57, 55, 59, 52, 54, 109}) Reset = string([]byte{27, 91, 48, 109}) )
设置颜色输出
Functions ¶
func OutputError ¶
func OutputFail ¶
func OutputInfo ¶
func OutputInfo(title, msg string)
func OutputStep ¶
func OutputStep(msg string)
func OutputWarn ¶
func OutputWarn(msg string)
Types ¶
Click to show internal directories.
Click to hide internal directories.