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) {

 

},

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

'==='