tag
type InsInfo struct {
Connections string `gorm:"column:connections"`
CPU int `gorm:"column:cpu"`
CreateTime time.Time `gorm:"column:create_time"`
Env int `gorm:"column:env"`
ID int64 `gorm:"column:id;primary_key"`
IP string `gorm:"column:ip"`
Organization string `gorm:"column:organization"`
Pass string `gorm:"column:pass"`
Port string `gorm:"column:port"`
RegionId string `gorm:"column:regionid"`
ServerIP string `gorm:"column:server_ip"`
Status int `gorm:"column:status"`
Type string `gorm:"column:type"`
UUID string `gorm:"column:uuid"`
}
information_schemaCOLUMNS
docker-compose up -dlocalhost:8088
docker-compose up -dfuckdb/frontend/src/config/index.js
package namestruct name
jsonxml
[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-l7fMOhbn-1578108747773)(https://user-gold-cdn.xitu.io/2020/1/1/16f61a6932355b68?w=600&h=391&f=gif&s=12260461)]
上面的GIF展示了增加了缓存功能的版本,记忆你之前填写过的数据库信息,省去了大量重复的操作,你不用再填写繁琐的数据库名,表名,等等,只需一键,就可以得到对应的代码,是不是很方便啊。ps:目前数据库信息没有做加密,所以不方便放到公网上使用,仅限于内网,后面会进行相应的开发支持。目前这个工具在我们组内已经开始使用,反馈比较好,节省了很多重复的工作,尤其是在开发的时候用到同一个库的多张表,很快就可以完成数据库表->strcut的映射。
RoadMap:
[x] xorm tag support
[x] golang struct to sql create
欢迎试用&反馈&Contribute。代码地址:https://github.com/hantmac/fuckdb