ADOdb

Database Abstraction Layer for PHP

User Tools

Site Tools


v5:database:pdo

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
v5:database:pdo [2022/02/11 12:01] – [Description] move info about pdo driver usage to wrap dregadv5:database:pdo [2022/02/20 23:47] (current) – [Setting Construction Parameters] mnewnham
Line 47: Line 47:
  
 ===== Setting Construction Parameters ===== ===== Setting Construction Parameters =====
-Certain attributes need to be passed to the [[https://www.php.net/manual/en/pdo.construct.php|PDO Constructor]], for example, changing the error mode. To facilitate this, a PDO specific settable array **'' ADOConnection::pdoOptions ''** is provided:+Certain attributes need to be passed to the [[https://www.php.net/manual/en/pdo.construct.php|PDO Constructor]], for example, changing the error mode. To facilitate this, a PDO specific settable array **'' ADOConnection::pdoParameters ''** is provided:
  
 <code php> <code php>
 $db = newAdoConnection('pdo'); $db = newAdoConnection('pdo');
  
-$db->pdoOptions = [+$db->pdoParameters = [
 \PDO::ATTR_ERRMODE => \PDO::ERRMODE_EXCEPTION \PDO::ATTR_ERRMODE => \PDO::ERRMODE_EXCEPTION
 ]; ];
v5/database/pdo.1644577273.txt.gz · Last modified: 2022/02/11 12:01 by dregad