PostgreSQL.releaseConnection()

Release an active PostgreSQL database connection back to the pool.

Usage

Hover over inputs/exits for more info.

var PostgreSQL = require('machinepack-postgresql');


// Release an active PostgreSQL database connection back to the pool.

PostgreSQL.releaseConnection({

connection: '===',

meta: '===',

}).exec({

// An unexpected error occurred.

error: function (err) {

 

},

// The provided connection is not valid or no longer active. Are you sure it was obtained by calling this driver's `getConnection()` method?

badConnection: function (result) {

 

},

// OK.

success: function (result) {

 

},

});

Inputs

connection required

An active database connection.

'==='
meta

Additional stuff to pass to the driver.

'==='

Exits

error

An unexpected error occurred.

badConnection

The provided connection is not valid or no longer active. Are you sure it was obtained by calling this driver's `getConnection()` method?

'==='
success

OK.

'==='