Documentation ¶ Index ¶ func New(cfg Config) (*sqlx.DB, error) type Config Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func New ¶ func New(cfg Config) (*sqlx.DB, error) Types ¶ type Config ¶ type Config interface { GetDSN() string GetMaxOpenConns() int GetMaxIdleConns() int GetConnMaxIdleTime() time.Duration GetConnMaxLifetime() time.Duration } Source Files ¶ View all Source files postgres.go Click to show internal directories. Click to hide internal directories.