When writing golang to connect to mysql operations, you cannot escape CURD (add, delete, modify, check) operations.
If you use ORM operations in production, it will affect performance. Only native SQL operations can be used Best.
If there are a lot of tables and a lot of duplicate codes, it would be great if there was a tool to generate CURD codes!
Create a mysql code by yourself Tool. Name: go-mygen
- Generate add, delete, modify and query code for each table
- Generate (optional) Markdown of all tables
- Generate the structure of the table, you can customize the structure to parse entities, such as json, gorm, xml
go get -u -v github.com/yezihack/go-mygen/...