Skip to content
It's Vapor Week! Celebrating 10 Years of Vapor Read more

Instance Property

keepAliveBehavior

iOS 16.0+ iPadOS 16.0+ Mac Catalyst 16.0+ macOS 13.0+ tvOS 16.0+ watchOS 9.0+
The PostgresClient.Configuration.Options.KeepAliveBehavior to ensure that the underlying tcp-connection is still active for idle connections. Nil means that the client shall not run keep alive queries to the server. Defaults to a keep alive query of SELECT 1; every 30 seconds.
var keepAliveBehavior: KeepAliveBehavior?