Use these XQuery functions for manipulating transactions. You will usually only need these functions if you develop or administer applications using multi-statement transactions. For a detailed discussion of multi-statement transactions, see "Understanding Transactions in MarkLogic Server" in the Application Developer's Guide
Function name | Description |
---|---|
xdmp.commit | Commit the current transaction to the database. |
xdmp.getTransactionMode | Retrieve the transaction mode for the current session. |
xdmp.rollback | Roll back the current transaction. |
xdmp.setTransactionMode | Set the transaction mode for the current session. |
xdmp.setTransactionName | Set the name of a local or remote transaction. |
xdmp.setTransactionTimeLimit | Set the transaction time limit for a local or remote transaction. |
xdmp.transaction | Returns the transaction ID for the current transaction, or transaction IDs for all transactions with the given name. |
xdmp.transactionCommit | Explicitly commit a transaction running on a named host. |
xdmp.transactionLocks | Returns all URIs currently locked for read or write by a transaction. |
xdmp.transactionRollback | Explicitly roll back a transaction running on a named host. |
xdmp.xaComplete | Completes (commits or rolls back) a prepared XA transaction. |
xdmp.xaForget | Forgets a remembered completed XA transaction. |