Versions in this module Expand all Collapse all v0 v0.1.0 Jun 2, 2025 Changes in this version + var ProviderSet = wire.NewSet(NewMySQL, NewRedis, wire.Bind(new(redis.UniversalClient), new(*redis.Client))) + func MustRawDB(db *gorm.DB) *sql.DB + func NewMySQL(opts *MySQLOptions) (*gorm.DB, error) + func NewPostgreSQL(opts *PostgreSQLOptions) (*gorm.DB, error) + func NewRedis(opts *RedisOptions) (*redis.Client, error) + type MySQLOptions struct + Addr string + Database string + Logger logger.Interface + MaxConnectionLifeTime time.Duration + MaxIdleConnections int + MaxOpenConnections int + Password string + Username string + func (o *MySQLOptions) DSN() string + type PostgreSQLOptions struct + Addr string + Database string + Logger logger.Interface + MaxConnectionLifeTime time.Duration + MaxIdleConnections int + MaxOpenConnections int + Password string + Username string + func (o *PostgreSQLOptions) DSN() string + type RedisOptions struct + Addr string + Database int + DialTimeout time.Duration + MaxRetries int + MinIdleConns int + Password string + PoolSize int + PoolTimeout time.Duration + ReadTimeout time.Duration + Username string + WriteTimeout time.Duration + type TracePlugin struct + func (op *TracePlugin) Initialize(db *gorm.DB) (err error) + func (op *TracePlugin) Name() string