ADOdb

Database Abstraction Layer for PHP

User Tools

Site Tools


v5:userguide:transactions

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
v5:userguide:transactions [2016/02/27 17:19] – [Smart Transactions] mnewnhamv5:userguide:transactions [2016/04/14 15:29] mnewnham
Line 27: Line 27:
 [[v5:reference:connection:begintrans|beginTrans()]]\\ [[v5:reference:connection:begintrans|beginTrans()]]\\
 [[v5:reference:connection:rollbacktrans|rollbackTrans()]]\\ [[v5:reference:connection:rollbacktrans|rollbackTrans()]]\\
-[[v5:reference:connection:completetrans|completeTrans()]]+[[v5:reference:connection:completetrans|completeTrans()]]\\ 
 +== See Also == 
 +[[v5:reference:connection:transOff|Temporarily Disabling Transactions]]\\ 
 +[[v5:reference:connection:transCnt|Checking Transaction Status]]\\
 </WRAP> </WRAP>
 When using granular transactions, it is the duty of the programmer to check whether a transaction execution has succeeded or failed. This allows the code to branch as desired in the case of a transaction failure. When using granular transactions, it is the duty of the programmer to check whether a transaction execution has succeeded or failed. This allows the code to branch as desired in the case of a transaction failure.
Line 72: Line 75:
 [[v5:reference:connection:hasfailedtrans|hasFailedTrans()]]\\ [[v5:reference:connection:hasfailedtrans|hasFailedTrans()]]\\
 [[v5:reference:connection:completetrans|completeTrans()]] [[v5:reference:connection:completetrans|completeTrans()]]
 +== See Also ==
 +[[v5:reference:connection:transOff|Temporarily Disabling Transactions]]\\
 +[[v5:reference:connection:transCnt|Checking Transaction Status]]\\
 </WRAP> </WRAP>
 Smart Transactions are much easier to use in large procedures because you do not have to track the error status. You start a smart transaction by calling StartTrans(): Smart Transactions are much easier to use in large procedures because you do not have to track the error status. You start a smart transaction by calling StartTrans():
Line 161: Line 167:
 ==== Savepoints ==== ==== Savepoints ====
 Savepoints are currently not supported. Savepoints are currently not supported.
- 
v5/userguide/transactions.txt · Last modified: 2020/08/26 10:09 by dregad