Versions in this module Expand all Collapse all v1 v1.0.1 Aug 15, 2024 Changes in this version + var ErrNotFound = errors.Errorf("resource not found") + type BaseModel struct + CreatedAt time.Time + ID uint64 + UpdatedAt time.Time + type Conf struct + Debug bool + MySQLCaCertPath string + MySQLCharset string + MySQLClientCertPath string + MySQLClientKeyPath string + MySQLDatabase string + MySQLHost string + MySQLMaxIdleConns int + MySQLMaxLifeTime int64 + MySQLMaxOpenConns int + MySQLPassword string + MySQLPort string + MySQLTLS string + MySQLURL string + MySQLUsername string + func LoadDefaultConf() (*Conf, error) + type DBEngine struct + func MustOpen(c ...*Conf) *DBEngine + func Open(c ...*Conf) (*DBEngine, error) + func (e *DBEngine) Close() error + func (e *DBEngine) Ping() error