ballerina/lang.transaction : 0.0.0
Module Overview
The lang.transaction
module supports transactions.
Functions
[9]
getData | Retrieves data associated with the current transaction branch. |
getInfo | Returns information about the transaction with the specified xid. |
getRollbackOnly | Tells whether it is known that the transaction will be rolled back. |
info | Returns information about the current transaction. |
onCommit | Adds a handler to be called if and when the global transaction commits. |
onRollback | Adds a handler to be called if and when the global transaction rolls back. |
prepareError | Log and prepare |
setData | Associates some data with the current transaction branch. |
setRollbackOnly | Prevents the global transaction from committing successfully. |
Object types
[1]
Timestamp | An instant in time. |
Records
[1]
InfoInternal | Internally used record to hold information about a transaction. |
Types
[3]
CommitHandler | Type of a commit handler function. |
Info | Information about a transaction that does not change after the transaction is started. |
RollbackHandler | Type of a rollback handler function. |
Errors
[1]
Error | Type of error returned by commit action. |