Toggle menu

commitTransaction( transactionId )

Description

This method commits and closes a database transaction identified by the transactionId parameter as previously opened via the beginTransaction method. This finalises any SQL statements executed within the transaction via any earlier calls to the executeSQL method specifying the same transactionId. The transaction will be closed and unavailable after this call.

Parameters

- transactionId (string, required)

UUID identifier of the transaction to commit.

Example request parameters with datasource parameter:

{ "transactionId":"de305d54-75b4-431b-adb2-eb6b9e546013" }

Example response:

{
    "transactionId": "de305d54-75b4-431b-adb2-eb6b9e546013",
    "statementsExecuted": 3,
    "created": "2015-01-20T10:46:03Z",
    "lastUsed": "2015-01-20T10:46:15Z"
}

 

Last modified on March 24, 2020

Share this page

Facebook icon Twitter icon email icon

Print

print icon