Interface: DataSource

x2node-dbos. DataSource

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.