Versions in this module Expand all Collapse all v1 v1.0.1 Feb 21, 2024 v1.0.0 Feb 21, 2024 Changes in this version + const Postgres + const Sqlite + func OpenDbConnection(ctx context.Context, config DbConnectionConfigProvider) (*gorm.DB, error) + type BaseConfig struct + DisableForeignKeyConstraintWhenMigrating bool + LogLevel logger.LogLevel + type DbConnectionConfigProvider interface + GetDBConfig func() database.DbConfig + GetDSN func() string + GetDialector func() gorm.Dialector + func NewPostgresConfigProvider(config database.DbConfig, scope promutils.Scope) DbConnectionConfigProvider + type PostgresConfigProvider struct + func (p *PostgresConfigProvider) GetDBConfig() database.DbConfig + func (p *PostgresConfigProvider) GetDSN() string + func (p *PostgresConfigProvider) GetDialector() gorm.Dialector