package
Version:
v0.1.5
Opens a new window with list of versions in this module.
Published: Mar 1, 2025
License: Apache-2.0
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
NewPooledDB allocates a sql.DB instance.
It uses a custom pooling mechanism provided by the package `jackc/pgx`
specially tuned for Postgres.
type DBConfig struct {
gecksql.DBConfig
MaxConnLifetimeJitter time.Duration `env:"PSQL_MAX_CONN_LIFETIME_JITTER"`
HealthCheckInterval time.Duration `env:"PSQL_HEALTHCHECK_INTERVAL" envDefault:"5s"`
}
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.