Documentation
¶
Index ¶
- Constants
- Variables
- func Exec()
- func FileWrite(filePath string, content string) error
- func GetCode(table MysqlTable, packageName string) string
- func GetDeleteFunc(table MysqlTable) string
- func GetPackageName(Path string) (string, error)
- func GetSaveFunc(table MysqlTable) string
- func GetStructMethod(table MysqlTable) string
- func GetTableComment(db *sqlx.DB, tableName string) (string, string)
- func GetUpdateFunc(table MysqlTable) string
- func TableToConst(table MysqlTable) string
- type MysqlTable
- type MysqlTableField
Constants ¶
View Source
const ( ProjectName = "MySQL-Model-Creator" Version = "0.9" ProjectURL = "https://github.com/laixyz/mysql-model-creator" )
Variables ¶
Functions ¶
func GetCode ¶
func GetCode(table MysqlTable, packageName string) string
func GetDeleteFunc ¶
func GetDeleteFunc(table MysqlTable) string
func GetSaveFunc ¶
func GetSaveFunc(table MysqlTable) string
func GetStructMethod ¶
func GetStructMethod(table MysqlTable) string
func GetUpdateFunc ¶
func GetUpdateFunc(table MysqlTable) string
func TableToConst ¶
func TableToConst(table MysqlTable) string
Types ¶
type MysqlTable ¶
type MysqlTableField ¶
Click to show internal directories.
Click to hide internal directories.