Transactions

Learn transaction management with the ORM Extension

A transaction is any discrete unit of work used to pool database queries and statements to execute at once. This helps us to prevent a failed update from leaving the database in a broken state.

To denote a transaction, we wrap it in the transaction{} tag:

transaction{
    // queries go here
}

The transaction will automatically commit (persist) at the end of the transaction block.

Transaction Rollback

This section is missing documentation - would you care to add it yourself?

Transaction Commit

This section is missing documentation - would you care to add it yourself?

Transaction Savepoint

Savepoints are not currently supported on ORM transactions.

Last updated