Versions in this module Expand all Collapse all v0 v0.3.0 Oct 1, 2026 Changes in this version type Config + Driver Driver + MySQL *MySQLConfig + Postgres *PostgresConfig + SQLite *SQLiteConfig + type Driver string + const MySQL + const Postgres + const SQLite + type MySQLConfig struct + Host string + Name string + Password string + Pool PoolConfig + Port int + User string + func (c MySQLConfig) DSN() string + func (c MySQLConfig) Validate() error + type PoolConfig struct + MaxConnLifetimeSeconds int + MaxIdleConns int + MaxOpenConns int + type PostgresConfig struct + Host string + Name string + Password string + Pool PoolConfig + Port int + SSLMode string + User string + func (c PostgresConfig) DSN() string + func (c PostgresConfig) Validate() error + type SQLiteConfig struct + Path string + Pool PoolConfig + func (c SQLiteConfig) DSN() string + func (c SQLiteConfig) Validate() error v0.2.0 Sep 22, 2026 v0.1.0 Jun 29, 2026 Changes in this version + func Close(db *gorm.DB) error + func HealthCheck(db *gorm.DB) error + func New(cfg Config) (*gorm.DB, error) + type Config struct + Host string + LogLevel LogLevel + MaxConnLifetimeSeconds int + MaxIdleConns int + MaxOpenConns int + Name string + Password string + Port int + SSLMode string + Username string + func (c Config) DSN() string + func (c Config) Validate() error + type LogLevel int + const LogError + const LogInfo + const LogSilent + const LogWarn