Skip to main content
Version: 7.9

system.db.closeTransaction

This function is used in Python Scripting.

Description

Closes the transaction with the given ID. Note that you must commit or rollback the transaction before you close it. Closing the transaction will return its database connection to the pool. The transaction ID will no longer be valid.

Client Permission Restrictions

Permission Type: Legacy Database Access Client access to this scripting function is blocked to users that do not meet the role/zone requirements for the above permission type. This function is unaffected when run in the Gateway scope.

Syntax

system.db.closeTransaction(tx)

Parameters

TypeParameterDescription
StringtxThe transaction ID.

Returns

Nothing

Scope

All

Code Examples

There are no example available for this function.