gorm-zero
gorm-zero copied to clipboard
go zero gorm extension / Integrated processing of db model and Redis cache
gorm-zero
go zero gorm extension
If you use go zero, and you want to use Gorm. You can use this library.
Usage
- add the dependent
go get github.com/SpectatorNan/gorm-zero
- replace template/model in your project with gorm-zero/template/{goctl version}/model
- generate
goctl model mysql -src={patterns} -dir={dir} -cache --home ./template
Usage Example
- go zero model example link: gorm-zero-example