Type Method
postgres(configuration:maxConnectionsPerEventLoop:connectionPoolTimeout:encodingContext:decodingContext:sqlLogLevel:)
Create a PostgreSQL database configuration from lower-level configuration.
static func postgres(configuration: SQLPostgresConfiguration, maxConnectionsPerEventLoop: Int = 1, connectionPoolTimeout: TimeAmount = .seconds(10), encodingContext: PostgresEncodingContext<some PostgresJSONEncoder>, decodingContext: PostgresDecodingContext<some PostgresJSONDecoder>, sqlLogLevel: Logger.Level = .debug) -> DatabaseConfigurationFactory
Parameters
configurationA
PostgresKit/SQLPostgresConfigurationdescribing the connection.maxConnectionsPerEventLoopMaximum number of connections to open per event loop.
connectionPoolTimeoutMaximum time to wait for a connection to become available per request.
encodingContextEncoding context to use for serializing data.
decodingContextDecoding context to use for deserializing data.
sqlLogLevelLevel at which to log SQL queries.