0 follower

Final Class Yiisoft\Db\Pgsql\Driver

InheritanceYiisoft\Db\Pgsql\Driver » Yiisoft\Db\Driver\Pdo\AbstractPdoDriver

Implements the PostgreSQL Server driver based on the PDO (PHP Data Objects) extension.

Method Details

Hide inherited methods

createConnection() public method

public PDO createConnection ( )

                public function createConnection(): PDO
{
    $this->attributes += [PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION];
    $pdo = parent::createConnection();
    if ($this->charset !== null) {
        $pdo->exec('SET NAMES ' . $pdo->quote($this->charset));
    }
    return $pdo;
}

            
getDriverName() public method

public string getDriverName ( )

                public function getDriverName(): string
{
    return 'pgsql';
}