For the complete documentation index, see llms.txt. This page is also available as Markdown.

IsInTransaction

Detect whether the current context is executing within a transaction.

Method Signature

IsInTransaction()

Arguments

This function does not accept any arguments

Examples

Check if within a database transaction

writeOutput( isBoolean( isInTransaction() ) );

Result: true

Last updated

Was this helpful?