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
public protocol DatabaseConnectable : EventLoopGroup
Types conforming to this protocol can be used as a
Most of the database interaction work is done through static methods onSee more
Databasethat accept a connection. However, there are a few things like
close()that a connection must implement.
public protocol DatabaseConnection : DatabaseConnectable, Extendable