Skip to content

针对基础数据/msql表结构/结构维护 的处理

License

Notifications You must be signed in to change notification settings

pulingfu/tblschema

Repository files navigation

tblschema

根据mysql表结构生成对应的go struct model

找到./cmd/..下的main.go 执行命令: go run main.go 文件开启自动化之旅

<<<<<<<<<<<<<<<<<<< mysql数据类型: "int", "integer", "tinyint", "smallint", "mediumint", "bigint", "int unsigned", "integer unsigned", "tinyint unsigned", "smallint unsigned", "mediumint unsigned", "bigint unsigned", "bit"

浮点型 "float", "double", "decimal"

bool型 "bool"

字符 "enum", "set", "varchar", "char", "tinytext", "mediumtext", "text", "longtext", "blob", "tinyblob", "mediumblob", "longblob", "binary", "varbinary"

时间 "date", "datetime", "timestamp", "time"

yml配置文件格式参考test里面的yml文件哦

About

针对基础数据/msql表结构/结构维护 的处理

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages