MaxConnectionLifeTime - Defines maximum connection lifetime for postgresql db
(d time.Duration)
| 56 | |
| 57 | // MaxConnectionLifeTime - Defines maximum connection lifetime for postgresql db |
| 58 | func MaxConnectionLifeTime(d time.Duration) Option { |
| 59 | return func(p *Postgres) { |
| 60 | p.maxConnectionLifeTime = d |
| 61 | } |
| 62 | } |
| 63 | |
| 64 | // HealthCheckPeriod - Defines the period between health checks on idle connections |
| 65 | func HealthCheckPeriod(d time.Duration) Option { |
no outgoing calls