Versions in this module Expand all Collapse all v1 v1.0.7 Mar 29, 2021 Changes in this version + func Init(opts ...Option) (*gorm.DB, error) + type Conf struct + Addr string + DbName string + MaxIdleConnections int + MaxLifetime int + MaxOpenConnections int + Password string + ReadTimeout int + Timeout int + User string + WriteTimeout int + func (c Conf) DSN() string + type Model struct + CreatedAt time.Time + DeletedAt gorm.DeletedAt + Id uint64 + UpdatedAt time.Time + type ModelDict map[string]interface + func (d *ModelDict) Scan(v interface{}) error + func (d ModelDict) Value() (driver.Value, error) + func NewDict() ModelDict + type Option func(c *_Mysql) + func SetConf(c Conf) Option + func SetIoWriter(w io.Writer) Option