Wiki articles tagged with "db"

Showing 1-4 of 4 items.

Active Record snapshotting (Model data base history)

Created 9 years ago by Bizley, updated 9 years ago by Bizley.

One of the common tasks the web application might be required to perform, especially the app using some kind of a CMS, is to save the history of data changes. Your client for sure will want the answer to this simple question - If I mess this up or delete by accident can we bring it back? Well, DB backup is one thing and quick recovery is another - let's talk about latter one.

1 0
5 followers
Viewed: 17 013 times
Version: 1.1
Category: Tutorials

How to nest DB transactions without actually nesting them.

Created 9 years ago by le_top, updated 9 years ago by le_top.

To secure your database from inconsistencies resulting from failing (complex) operations, you (should) use transactions. However, complex methods often rely on other complex methods that themselves build on transactions. This HowTo presents a method to nest or embed transactions without relying on the database's nesting capabilities.

1 0
1 follower
Viewed: 11 035 times
Version: 1.1
Category: How-tos

Configuring CWebLogRoute for DB profiling

Created 13 years ago by Igor Ivanovic, updated 13 years ago by Igor Ivanovic.

require_once($yii); Yii::createWebApplication($config)->run();

2 0
6 followers
Viewed: 34 849 times
Version: 1.1
Category: Tutorials

How to use nested DB transactions (MySQL 5+, PostgreSQL)

Created 15 years ago by mindeh, updated 9 years ago by Boaz.

Original source code and idea are from: PHP, PDO & Nested Transactions.

41 0
26 followers
Viewed: 67 877 times
Version: 1.1
Category: How-tos