Toggle menu

rollbackTransaction( transactionId )

Description

This method rolls back and closes a database transaction identified by the transactionId parameter as previously opened via the beginTransaction method. Rolling back a transaction means that any SQL statements executed within the transaction (via earlier calls to the executeSQL method specifying the same transactionId) will not cause any changes. The transaction will be closed and unavailable after this call.

Parameters

- transactionId (string, required)

UUID identifier of the transaction to roll back.

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