Versions in this module Expand all Collapse all v1 v1.0.0 Aug 11, 2022 Changes in this version + const DBDuplicateEntryKey + type Config struct + Debug bool + Dialect string + Dsn string + EnableLog bool + ExecTimeout utils.Duration + Expand map[string]interface{} + IdleTimeout utils.Duration + MaxPoolSize int + MinPoolSize int + Prefix string + QueryTimeout utils.Duration + TranTimeout utils.Duration + type DataSource interface + Config func(dsID string) *Config + Orm func(dsID string) *xorm.Engine + func Engine(cfg configuration.Configuration, systemId string) DataSource + type DbError uint16 + func CheckDBError(err error) (e DbError)