Versions in this module Expand all Collapse all v0 v0.2.3 Mar 20, 2026 Changes in this version + const DefaultConnMaxLifetime + const DefaultMaxIdleConns + const DefaultMaxOpenConns + func New(connURL string, schema string, opts ...Option) (*sql.DB, error) + type Option func(*Options) + func OptionsFromConfig(cfg app.PostgresConfig) []Option + func WithConnMaxLifetime(d time.Duration) Option + func WithMaxIdleConns(n int) Option + func WithMaxOpenConns(n int) Option + type Options struct + ConnMaxLifetime time.Duration + MaxIdleConns int + MaxOpenConns int