Skip to content

Type Method

sqlite(_:maxConnectionsPerEventLoop:connectionPoolTimeout:dataEncoder:dataDecoder:sqlLogLevel:)

Return a configuration factory using the provided parameters.
static func sqlite(_ configuration: SQLiteConfiguration = .memory, maxConnectionsPerEventLoop: Int = 1, connectionPoolTimeout: TimeAmount = .seconds(10), dataEncoder: SQLiteDataEncoder, dataDecoder: SQLiteDataDecoder, sqlLogLevel: Logger.Level?) -> DatabaseConfigurationFactory

Parameters

configuration

The underlying SQLiteConfiguration.

maxConnectionsPerEventLoop

Ignored. The value is always treated as 1.

dataEncoder

An SQLiteDataEncoder used to translate bound query parameters into SQLiteData values.

dataDecoder

An SQLiteDataDecoder used to translate SQLiteData values into output values.

Return Value

A configuration factory,