Javatpoint Logo
Javatpoint Logo

Phalcon Transactions and Nested Transactions

Transaction is supported in Phalcon as it is attached with PDO. To increase the performance of the database we can perform data manipulation. Below is the database structure on which transaction is applied:

Phalcon Transactions 1

Transaction example:

// Database 'Company' data deleted.

Nested Transaction Example:

// Database 'Company' data deleted.

Event Name Triggered Break Operation
afterConnect After a successfully connection to a database system No
beforeQuery Before send a SQL statement to the database system Yes
afterQuery After send a SQL statement to database system No
beforeDisconnect Before close a temporal database connection No
beginTransaction Before a transaction is going to be started No
rollbackTransaction Before a transaction is rollbacked No
commitTransaction Before a transaction is committed No

Next TopicPhalcon PHQL




Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA