2006-11-11 00:29:13 +03:00
|
|
|
Doctrine_Db is a wrapper for PDO database object. Why should you consider using Doctrine_Db instead of PDO?
|
2006-09-29 15:49:50 +04:00
|
|
|
<br \><br \>
|
|
|
|
1. It provides efficient eventlistener architecture, hence its easy to add new aspects to existing methods like on-demand-caching
|
|
|
|
<br \><br \>
|
2006-11-11 00:29:13 +03:00
|
|
|
2. Doctrine_Db lazy-connects database. Creating an instance of Doctrine_Db doesn't directly connect database, hence
|
|
|
|
Doctrine_Db fits perfectly for application using for example page caching.
|
2006-09-29 15:49:50 +04:00
|
|
|
<br \><br \>
|
2006-11-11 00:29:13 +03:00
|
|
|
3. It has many short cuts for commonly used fetching methods like Doctrine_Db::fetchOne().
|
2006-09-29 15:49:50 +04:00
|
|
|
<br \><br \>
|
|
|
|
4. Supports PEAR-like data source names as well as PDO data source names.
|
2007-04-13 00:52:30 +04:00
|
|
|
|