v5:database:pdo
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
v5:database:pdo [2020/01/13 13:09] – Add tier2 tag dregad | v5:database:pdo [2020/12/06 20:04] – [pdo_firebird] mnewnham | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== PDO ====== | ====== PDO ====== | ||
~~NOTOC~~ | ~~NOTOC~~ | ||
- | {{tag> | ||
===== Description ===== | ===== Description ===== | ||
Line 37: | Line 36: | ||
* It provides true database abstraction, | * It provides true database abstraction, | ||
* In all cases, using native drivers (listed below) provide better functionality, | * In all cases, using native drivers (listed below) provide better functionality, | ||
+ | |||
+ | |||
+ | ===== Setting Construction Parameters ===== | ||
+ | Certain attributes need to be passed to the [[https:// | ||
+ | |||
+ | <code php> | ||
+ | $db = newAdoConnection(' | ||
+ | |||
+ | $db-> | ||
+ | \PDO:: | ||
+ | ]; | ||
+ | |||
+ | $dsnString= ' | ||
+ | $db-> | ||
+ | |||
+ | </ | ||
+ | |||
===== The PDO setAttribute function ===== | ===== The PDO setAttribute function ===== | ||
- | As of ADOdb 5.21, the PDO:: | + | For parameters that are set after the class is instantiated, The PDO:: |
===== Individual Driver Status ==== | ===== Individual Driver Status ==== | ||
----------------------- | ----------------------- | ||
Line 222: | Line 239: | ||
==== pdo_firebird ==== | ==== pdo_firebird ==== | ||
- | <WRAP info> | ||
- | This driver is available from version 5.21 | ||
- | </ | ||
<WRAP right box round 300px> | <WRAP right box round 300px> | ||
== Native Driver == | == Native Driver == | ||
Line 253: | Line 267: | ||
</ | </ | ||
+ | |||
+ | {{tag> | ||
+ |
v5/database/pdo.txt · Last modified: 2022/02/20 23:47 by mnewnham