PHP Classes
elePHPant
Icontem

MySQL Transact: Execute multiple MySQL queries in a transaction

Recommend this page to a friend!
  Info   View files View files (2)   DownloadInstall with Composer Download .zip   Reputation   Support forum (3)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2005-07-24 (11 years ago) RSS 2.0 feedStarStar 36%Total: 1,748 This week: 1All time: 2,173 This week: 1,047Up
Version License Categories
mysqltransact 1.0Unspecified (ask ...Databases
Description Author

This is a simple class can queue several MySQL database queries and execute them all at once in a single transaction.

The class provides means to add SQL queries to a queue. Once all SQL statements are added, the class can start a transaction, execute each statement and finishes the transaction either commiting it if all statements succeed or executing a rollback in case one of the statements failed.

Innovation Award
PHP Programming Innovation award nominee
July 2005
Number 3


Prize: One copy of the Zend Studio
A database transaction is a set of queries that are perform atomically, i.e. cannot be split. Either all queries succeed and the changes are committed or are all canceled rolling back any changes.

This class simplifies the processing of MySQL database transactions by queuing all database statements that are all executed at once.

The class takes care or initiating the and finalizing the transaction, executing the necessary commit or rollback statements depending on whether the transaction succeeded or failed.


Manuel Lemos
Picture of Sérgio Moura Fé
Name: Sérgio Moura Fé <contact>
Classes: 1 package by
Country: Brazil Brazil
Innovation award
Innovation award
Nominee: 1x

  Files folder image Files  
File Role Description
Plain text file class.mysqltransact.php Class MySQL Transaction class and example.php
Accessible without login Plain text file example.php Example Use example of class.mysqltransaction.php

 Version Control Unique User Downloads Download Rankings  
 0%
Total:1,748
This week:1
All time:2,173
This week:1,047Up
User Ratings User Comments (1)
 All time
Utility:50%StarStarStar
Consistency:50%StarStarStar
Documentation:-
Examples:65%StarStarStarStar
Tests:-
Videos:-
Overall:36%StarStar
Rank:2801