@@ -116,6 +116,20 @@ extension DatabaseConfigurationFactory {
116
116
)
117
117
}
118
118
119
+ @available ( * , deprecated, message: " Use `.postgres(configuration:.init(hostname:port:username:password:database:tls:),maxConnectionsPerEventLoop:connectionPoolTimeout:encodingContext:decodingContext:sqlLogLevel:)` instead. " )
120
+ public static func postgres(
121
+ hostname: String , port: Int = PostgresConfiguration . ianaPortNumber,
122
+ username: String , password: String , database: String ? = nil , tlsConfiguration: TLSConfiguration ? = nil ,
123
+ maxConnectionsPerEventLoop: Int = 1 , connectionPoolTimeout: TimeAmount = . seconds( 10 ) ,
124
+ sqlLogLevel: Logger . Level = . debug
125
+ ) -> DatabaseConfigurationFactory {
126
+ . postgres(
127
+ hostname: hostname, port: port, username: username, password: password, database: database, tlsConfiguration: tlsConfiguration,
128
+ maxConnectionsPerEventLoop: maxConnectionsPerEventLoop, connectionPoolTimeout: connectionPoolTimeout,
129
+ encoder: . init( ) , decoder: . init( ) , sqlLogLevel: sqlLogLevel
130
+ )
131
+ }
132
+
119
133
@available ( * , deprecated, message: " Use `.postgres(configuration:maxConnectionsPerEventLoop:connectionPoolTimeout:encodingContext:decodingContext:sqlLogLevel:)` instead. " )
120
134
public static func postgres(
121
135
hostname: String , port: Int = PostgresConfiguration . ianaPortNumber,
0 commit comments