Wiki articles tagged with "db"

Showing 1-5 of 5 items.

Active Record snapshotting (Model data base history)

Created 10 years ago by Bizley Bizley, updated 10 years ago by Bizley 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: 18 061 times
Version: 1.1
Category: Tutorials

How to nest DB transactions without actually nesting them.

Created 10 years ago by le_top le_top, updated 10 years ago by le_top 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: 12 193 times
Version: 1.1
Category: How-tos

How to store array/widget configuration to the database with config validation rules

Created 11 years ago by Kartik V Kartik V, updated 11 years ago by Kartik V Kartik V.

Note the tag {{homeUrl}} will be dynamically replaced at runtime.

2 3
41 followers
Viewed: 26 853 times
Version: 2.0
Category: Tutorials

Configuring CWebLogRoute for DB profiling

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

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

2 0
6 followers
Viewed: 35 526 times
Version: 1.1
Category: Tutorials

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

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

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

41 0
26 followers
Viewed: 70 629 times
Version: 1.1
Category: How-tos