Skip to content

Instance Property

eventLoop

The EventLoop used for asynchronous operations on a given database.
var eventLoop: any EventLoop { get }

Discussion

If there is no specific EventLoop which handles the database (such as because it is a connection pool which assigns loops to connections at point of use, or because the underlying implementation is based on Swift Concurrency or some other asynchronous execution technology), a single consistent EventLoop must be chosen for the database and returned for this property nonetheless.

See Also

Properties

  • logger
    The Logger used for logging all operations relating to a given database.
  • version
    The version number the database reports for itself.
  • dialect
    The descriptor for the dialect of SQL supported by the given database.
  • queryLogLevel
    The logging level used for reporting queries run on the given database to the database’s logger. Defaults to .debug.