MySQL.commitTransaction()

Commit the database transaction on the provided connection.

The provided connection must already have a transaction begun on it.

Usage

Hover over inputs/exits for more info.

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


// Commit the database transaction on the provided connection.

MySQL.commitTransaction({

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: '===' }