Edit Page

.usingConnection()

Specify an existing database connection to use for this query.

.usingConnection(connection);

Usage

#
Argument Type Details
1 connection Ref An existing database connection obtained using .transaction() or .leaseConnection().

Example

#

An example of .usingConnection() usage can be found in the example for .transaction().

Is something missing?

If you notice something we've missed or could be improved on, please follow this link and submit a pull request to the sails repo. Once we merge it, the changes will be reflected on the website the next time it is deployed.

Reference

Reference