<transaction> commit changes to the database

name
transaction
xml namespace
http://moyaproject.com/db

Executes the enclosed block in a single transaction.

If the block executes successfully, the changes will be committed. If an exception is thrown, the changes will be rolled back.

Note that databases related exceptions in the enclosed black won't be thrown until the end of the transaction.

In the case of nested transactions (a transaction inside a transactions), only the outer-most transaction will actually commit the changes. For more granular control over transactions, the <atomic> tag is preferred.

2260

attributes
name purpose type required? default choices
db Database text No "_default"
inherited attributes
name purpose type required? default choices
if Conditional expression expression No yes