Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

db反射生成go工具 #39

Closed
athxx opened this issue Jun 8, 2021 · 2 comments
Closed

db反射生成go工具 #39

athxx opened this issue Jun 8, 2021 · 2 comments

Comments

@athxx
Copy link

athxx commented Jun 8, 2021

我写了一个db反射的工具,已经适应gosql了,可以用上哈, 能支持postrges和mysql读取

github.com/athanxx/dbtag

已经适应gosql的IModel结构, 支持xorm,gorm和任何的tag生成

还能自动生成脚本,方便下次使用

@fifsky
Copy link
Member

fifsky commented Jun 8, 2021

不错,我这边也自带了工具 https://github.com/fifsky/genstruct

在线版 https://go.fifsky.com/

@athxx
Copy link
Author

athxx commented Jun 8, 2021

xorm和gorm我做了特殊处理,把他们工具该显示的都做了处理,我这里可以生成脚本,下次生成时候支持Linux和windows一键生成就可以了。

我看到你这个了,我就是觉得每次都要操作那么多,我才特别做了脚本生成。这样省去很多麻烦。

@athxx athxx closed this as completed Jun 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants