MySQL.releaseConnection()

Release an active MySQL database connection back to the pool.

Usage

Hover over inputs/exits for more info.

var MySQL = require('machinepack-mysql');


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

MySQL.releaseConnection({

connection: '===',

meta: '===',

}).exec({

// An unexpected error occurred.

error: function (err) {

 

},

: function () {

 

},

// 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.

undefined
success

OK.

{ meta: '===' }