Code generator tools with MYSQL,avoid ORM performance penalty
- 3.1.0beta version
- Compatible with linux,win,mac
>= go1.13.0
go get github.com/yezihack/go-mygen
- See Help
go-mygen help
- See Version
go-mygen version
- Connection
go-mygen -h localhost -P 3306 -u root -p 123456 -d default
- Generate the markdown document for the database table
- Generate the structure entities for the golang table
- Custom structure parsing entities, such as json,gorm, XML, etc
- Generate golang operation mysql add, delete, modify and select code statements
- Custom build directory
- Clear screen, exit and other functions
-h value Database address (default: "localhost")
-P value port number (default: 3306)
-u value Database user name (default: "root")
-p value Database password (default: "root")
-c value Coding format (default: "utf8mb4")
-d value Database name
If an error is found, please welcome issues
xx> input state
xx: message tips
xx>> error output