Asf_Db_Adapter_Pgsql


Introduction

Asf_Db_Adapter_Pgsql Connecting to PostgreSQL databases

在开启命名空间情况下(asf.use_namespace=1)类名为 Asf\Db\Adapter\Pgsql

Class synopsis

<?php
final class Asf_Db_Adapter_Pgsql extends Asf_Db_AbstractAdapter
{
    protected $_type = 'pgsql';
}

Examples

Example #1

<?php
$configs = array(
    'dsn' => array('host' => '127.0.0.1', 'dbname' => 'test', 'port' => 6666),
    'username' => 'test',
    'password' => 'AbcdefRDvgedf',
);

$pgsql = new Asf_Db_Adapter_Pgsql($configs);
print_r($pgsql);