ADOdb

Database Abstraction Layer for PHP

User Tools

Site Tools


v5:reference:connection:settransactionmode

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
v5:reference:connection:settransactionmode [2016/01/17 01:20]
mnewnham ↷ Page moved from v5:reference:settransactionmode to v5:reference:connection:settransactionmode
v5:reference:connection:settransactionmode [2018/06/11 10:23]
dregad [Usage] function names starting with lowercase (#426)
Line 23: Line 23:
 * Set the mode * Set the mode
 */ */
-$db->SetTransactionMode('​serializable'​);​ +$db->setTransactionMode('​serializable'​);​ 
-$db->BeginTrans(); +$db->beginTrans(); 
-$db->Execute(...); $db->Execute(...); +$db->execute(...); $db->execute(...); 
-$db->CommitTrans();+$db->commitTrans();
    
 /* /*
 * restore to default * restore to default
 */ */
-$db->SetTransactionMode(""​);​  +$db->setTransactionMode(""​);​  
-$db->StartTrans(); +$db->startTrans(); 
-$db->Execute(...); +$db->execute(...); 
-$db->Execute(...); +$db->execute(...); 
-$db->CompleteTrans();+$db->completeTrans();
  
 </​code>​ </​code>​
v5/reference/connection/settransactionmode.txt · Last modified: 2018/06/11 10:23 by dregad