Versions in this module Expand all Collapse all v1 v1.1.0 Feb 15, 2026 Changes in this version type DBConn + GORM *GORMConfig + PGX *PGXConfig + Preset Preset + type GORMConfig struct + PrepareStmt *bool + SkipDefaultTransaction *bool + type PGXConfig struct + StatementCacheCap *int + type Preset string + const PresetSupabaseTransaction v1.0.0 Mar 12, 2025 Changes in this version + func New(conn *DBConn) (*gorm.DB, error) + type ConnectionConfig struct + Host string + Password string + Port string + UserName string + func (c *ConnectionConfig) DSN(cfg *DBConn) string + type DBConn struct + ApplicationName string + ConnMaxLifetime time.Duration + Database string + HealthCheckPeriod time.Duration + IdleInTransactionSessionTimeout time.Duration + LockTimeout time.Duration + Master ConnectionConfig + MaxIdleConns int + MaxOpenConns int + Replicas []ConnectionConfig + RuntimeParams map[string]string + SSLMode string + Schema string + SearchPath string + StatementTimeout time.Duration