ADOdb

Database Abstraction Layer for PHP

User Tools

Site Tools


v6:database:pdo

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
v6:database:pdo [2026/08/31 11:55] – [The PDO setAttribute function] mnewnhamv6:database:pdo [2026/08/31 11:56] (current) – [Preferred Drivers] mnewnham
Line 32: Line 32:
  
  
-===== Preferred Drivers ===== 
  
-Using ADOdb effectively eliminates the need to use the PHP PDO driver as it hides the PHP level command: 
- 
-  * It provides true database abstraction, for example, the ADOdb method ''selectLimit()'' provides a true abstraction of the row limiting and offset of all databases. With PDO, you still need to provide the database specific syntax. 
-  * In all cases, using native drivers (listed below) provide better functionality, as well as performance, than the equivalent PDO driver. This is true at both the ADOdb and PHP level 
 ===== The PDO setAttribute function ===== ===== The PDO setAttribute function =====
 The PDO::setAttribute() method can be emulated using [[v6:reference:connection:setconnectionparameter|setConnectionParameter()]]. The PDO::setAttribute() method can be emulated using [[v6:reference:connection:setconnectionparameter|setConnectionParameter()]].
v6/database/pdo.txt · Last modified: by mnewnham