Versions in this module Expand all Collapse all v1 v1.0.0 Jun 8, 2022 Changes in this version + type Configure interface + Init func(*gorm.Config, func(string) gorm.Dialector) (*gorm.DB, error) + func NewConfigure(dsn string, maxIdleConns, maxOpenConns, connMaxIdleTime, connMaxLifetime int, ...) Configure + type DBConfig struct + func (e *DBConfig) Init(config *gorm.Config, open func(string) gorm.Dialector) (*gorm.DB, error) + type DBResolverConfig struct + func (e *DBResolverConfig) Init(register *dbresolver.DBResolver, open func(string) gorm.Dialector) *dbresolver.DBResolver + type ResolverConfigure interface + Init func(*dbresolver.DBResolver, func(string) gorm.Dialector) *dbresolver.DBResolver + func NewResolverConfigure(sources, replicas []string, policy string, tables []string) ResolverConfigure