MCPcopy Create free account
hub / github.com/Permify/permify / MaxConnectionLifeTime

Function MaxConnectionLifeTime

pkg/database/postgres/options.go:58–62  ·  view source on GitHub ↗

MaxConnectionLifeTime - Defines maximum connection lifetime for postgresql db

(d time.Duration)

Source from the content-addressed store, hash-verified

56
57// MaxConnectionLifeTime - Defines maximum connection lifetime for postgresql db
58func 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
65func HealthCheckPeriod(d time.Duration) Option {

Callers 2

createTestDatabaseFunction · 0.85

Calls

no outgoing calls

Tested by 2

createTestDatabaseFunction · 0.68