You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
require(port >0) { "port should be positive: $port" }
@@ -90,6 +92,10 @@ data class ConnectionPoolConfiguration @JvmOverloads constructor(
90
92
require(connectionTestTimeout >=0) { "connectionTestTimeout should not be negative: $connectionTestTimeout" }
91
93
queryTimeout?.let { require(it >=0) { "queryTimeout should not be negative: $it" } }
92
94
maxConnectionTtl?.let { require(it >=0) { "queryTimeout should not be negative: $it" } }
95
+
minIdleConnections?.let {
96
+
require(minIdleConnections >=0) { "minIdleConnections should not be negative: $it" }
97
+
require(minIdleConnections <= maxActiveConnections) { "minIdleConnections should not be bigger than maxActiveConnections: $it > $maxActiveConnections" }
98
+
}
93
99
}
94
100
95
101
val connectionConfiguration =
@@ -123,7 +129,8 @@ data class ConnectionPoolConfiguration @JvmOverloads constructor(
0 commit comments