Initializer
init(frequency:query:)
Create a new
KeepAliveBehavior.init(frequency: Duration = .seconds(30), query: PostgresQuery = "SELECT 1;")
Parameters
frequencyThe amount of time that shall pass before an idle connection runs a keep-alive
query. Defaults to30seconds.queryThe
querythat is run on an idle connection after it has been idle forfrequency. Defaults toSELECT 1;.