v6:database:pdo
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| v6:database:pdo [2026/08/31 11:42] – [PDO] mnewnham | v6:database:pdo [2026/08/31 11:56] (current) – [Preferred Drivers] mnewnham | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== PDO ====== | ====== PDO ====== | ||
| ~~NOTOC~~ | ~~NOTOC~~ | ||
| - | < | + | < |
| - | There is a breaking change in the feature from V5 | + | There is a breaking change in the feature from V5. The connection string has changed |
| </ | </ | ||
| ===== Description ===== | ===== Description ===== | ||
| This driver supports connections using the standardized [[http:// | This driver supports connections using the standardized [[http:// | ||
| - | ^PHP Driver^Description^ADOdb Connector^ | + | ^ PHP Driver |
| - | |pdo_firebird|Firebird|firebird| | + | | pdo_firebird |
| - | |pdo_mssql|SQL Server with FREETDS|mssql| | + | | pdo_ibm |
| - | |pdo_mysql|MySQL|mysql| | + | | pdo_mysql |
| - | |pdo_oci|Oracle|oci| | + | | pdo_oci |
| - | |pdo_pgsql|Postgresql|pgsql| | + | | pdo_pgsql |
| - | |pdo_sqlite|SQLite|sqlite| | + | | pdo_sqlite |
| - | |pdo_sqlsrv|SQL Server using Windows Native Client|sqlsrv| | + | | pdo_sqlsrv |
| ===== Establishing A Connection ===== | ===== Establishing A Connection ===== | ||
| Line 20: | Line 20: | ||
| <code php> | <code php> | ||
| include_once ' | include_once ' | ||
| - | $db = ADOnewConnection(' | + | $db = ADOnewConnection(' |
| $user = ' | $user = ' | ||
| $password = ' | $password = ' | ||
| $dsnString= ' | $dsnString= ' | ||
| - | $db-> | + | $db-> |
| </ | </ | ||
| 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, | ||
| - | * In all cases, using native drivers (listed below) provide better functionality, | ||
| ===== The PDO setAttribute function ===== | ===== The PDO setAttribute function ===== | ||
| - | As of ADOdb 5.21, the PDO:: | + | The PDO:: |
| + | ===== Driver Functionality ===== | ||
| + | Each supported driver offers the same functionality as the native mode one, unless specifically noted below | ||
| ===== Individual Driver Status ==== | ===== Individual Driver Status ==== | ||
| ----------------------- | ----------------------- | ||
v6/database/pdo.1788201741.txt.gz · Last modified: by mnewnham
