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

Function MaxConnectionIdleTime

pkg/database/postgres/options.go:51–55  ·  view source on GitHub ↗

MaxConnectionIdleTime - Defines maximum connection idle for postgresql db

(d time.Duration)

Source from the content-addressed store, hash-verified

49
50// MaxConnectionIdleTime - Defines maximum connection idle for postgresql db
51func MaxConnectionIdleTime(d time.Duration) Option {
52 return func(p *Postgres) {
53 p.maxConnectionIdleTime = d
54 }
55}
56
57// MaxConnectionLifeTime - Defines maximum connection lifetime for postgresql db
58func MaxConnectionLifeTime(d time.Duration) Option {

Callers 2

createTestDatabaseFunction · 0.85

Calls

no outgoing calls

Tested by 2

createTestDatabaseFunction · 0.68