Type Method
open(storage:threadPool:logger:on:)
Open a new connection to an SQLite database.
static func open(storage: Storage = .memory, threadPool: NIOThreadPool, logger: Logger = .init(label: "codes.vapor.sqlite"), on eventLoop: any EventLoop) async throws -> SQLiteConnection
Parameters
storageSpecifies the location of the database for the connection. See
SQLiteConnection.Storagefor details.threadPoolAn
NIOThreadPoolused to execute all libsqlite3 API calls for this connection.loggerThe logger used by the connection. Defaults to a new
Logger.eventLoopAn
EventLoopto associate with the connection for creating futures.
Return Value
A new connection object.