Lucee Tag Reference

<cftransaction>

Groups multiple queries into a single unit. The cftransaction tag provides commit and rollback processing.

Body

This tag must have a body.

Example

<cftransaction
	[action=begin|commit|setsavepoint|rollback]
	[isolation=string]>
</cftransaction>
This tag is also supported within cfscript
<cfscript>
	transaction
		[action=begin|commit|setsavepoint|rollback]
		[isolation=string] {
			[...]
	}
</cfscript>

Attributes

The attributes for this tag are fixed. Except for the following attributes no other attributes are allowed.
Name Type Required Description
action string No - begin: The start of the block of code to execute.
  • commit: Commits a pending transaction.
  • rollback: Rolls back a pending transaction.
  • setsavepoint: Saves a specific state within a transaction 
  • isolation string No ODBC lock type.