transactionCommit

Commit a pending transaction

transactionCommit() → returns void

Examples sample code invoking the transactionCommit function

In this code, transactionCommit() will commit the pending transaction, which is any database queries run in the transaction block.


transaction { 
 try { 
 // code to run 
 transaction action="commit"; 
 } 
 catch(any e) { 
  transaction action="rollback"; 
  } 
 }

Fork me on GitHub