���ѧۧݧ�ӧ�� �ާ֧ߧ֧էا֧� - ���֧էѧܧ�ڧ��ӧѧ�� - /home/rickpfrv/sngda.to/includes/vendor/aura/sql/src/DecoratedPdo.php
���ѧ٧ѧ�
<?php /** * * This file is part of Aura for PHP. * * @license https://opensource.org/licenses/MIT MIT * */ namespace Aura\Sql; use Aura\Sql\Profiler\Profiler; use Aura\Sql\Profiler\ProfilerInterface; use PDO; /** * * Decorates an existing PDO instance with the extended methods. * * @package Aura.Sql * */ class DecoratedPdo extends AbstractExtendedPdo { /** * * Constructor. * * This overrides the parent so that it can take an existing PDO instance * and decorate it with the extended methods. * * @param PDO $pdo An existing PDO instance to decorate. * * @param ProfilerInterface $profiler Tracks and logs query profiles. * */ public function __construct(PDO $pdo, ProfilerInterface $profiler = null) { $this->pdo = $pdo; if ($profiler === null) { $profiler = new Profiler(); } $this->setProfiler($profiler); $driver = $pdo->getAttribute(PDO::ATTR_DRIVER_NAME); $this->setParser($this->newParser($driver)); $this->setQuoteName($driver); } /** * * Connects to the database. * * @return null * */ public function connect() { // already connected } /** * * Disconnects from the database; disallowed with decorated PDO connections. * * @return null * */ public function disconnect() { $message = "Cannot disconnect a DecoratedPdo instance."; throw new Exception\CannotDisconnect($message); } }
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | ���֧ߧ֧�ѧ�ڧ� ����ѧߧڧ��: 0.09 |
proxy
|
phpinfo
|
���ѧ����ۧܧ�