- 基于gorm实现多数据实例管理
- GO >= 1.17
go get github.com/cherry-game/cherry/components/gorm@latest
import cherryGORM "github.com/cherry-game/cherry/components/gorm"
- 请查看
examples/demo_gorm
- 数据库配置信息中添加
dsn
属性,未填写该属性时使用默认的dsn
连接字符串