Protocols

The following protocols are available globally.

  • Capable of creating connections to identified databases.

    Subsequent requests for a connection to the same database should always yield the same connection.

    Types conforming to this protocol are responsible for cleaning up open connections in a way that makes sense to their use case. Usually on deinit.

    See more

    Declaration

    Swift

    public protocol DatabaseConnectable : EventLoopGroup
  • Capable of asynchronously executing a generic Query, passing zero or more output to a supplied handler.

    See more

    Declaration

    Swift

    public protocol DatabaseQueryable