Interface for data sources that provide connections to the database.
Methods
-
getConnection()
-
Get database connection.
Returns:
Promise of a database specific connection object.- Type
- Promise.<*>
-
releaseConnection(connection [, err])
-
Release database connection.
Parameters:
Name Type Argument Description connection
* Database specific connection object previously acquired using getConnection() method. err
external:Error <optional>
Optional error object if the connection is being released after a database error, in which case the connection is destroyed and never reused (relevant to connection pools).