Skip to content

Initializer

init(configuration:threadPool:)

init(configuration: SQLiteConfiguration, threadPool: NIOThreadPool = .singleton)

Parameters

configuration

The configuration for new connections.

threadPool

The thread pool used by connections. Defaults to the global singleton.

Discussion

Important

If the caller provides a thread pool other than the default, they are responsible for starting the pool before any connections are made and shutting it down only after all connections are closed. It is strongly recommended that all callers use the default.