Skip to content

Type Method

postgres(configuration:maxConnectionsPerEventLoop:connectionPoolTimeout:pruneInterval:maxIdleTimeBeforePruning:decodingContext:sqlLogLevel:)

static func postgres(configuration: SQLPostgresConfiguration, maxConnectionsPerEventLoop: Int = 1, connectionPoolTimeout: TimeAmount = .seconds(10), pruneInterval: TimeAmount?, maxIdleTimeBeforePruning: TimeAmount = .seconds(120), decodingContext: PostgresDecodingContext<some PostgresJSONDecoder>, sqlLogLevel: Logger.Level = .debug) -> DatabaseConfigurationFactory