Versions in this module Expand all Collapse all v0 v0.0.2 Mar 30, 2025 v0.0.1 Mar 28, 2025 Changes in this version + var ErrRecordNotFound = gorm.ErrRecordNotFound + func Set(mysql *Mysql) + type Config = gorm.Config + type DB = gorm.DB + func Open(dialector gorm.Dialector, opts ...gorm.Option) (db *DB, err error) + type Mysql struct + Client *DB + Options *Options + func Get() *Mysql + func New(options map[string]any) (mysqlS *Mysql, err error) + func (mysqlS *Mysql) GetDsn() string + func (mysqlS *Mysql) SetConfig(options map[string]any) (err error) + type Options struct + Charset string + Db string + Host string + Loc string + Password string + Port int + Timeout string + UserName string + func (o *Options) String() (data string)