void pq\Connection::__construct([string $dsn = ""[, int $flags = 0]])

Create a new PostgreSQL connection. See also General Usage.

Params:

Throws:

Example:


<?php

$connection 
= new pq\Connection("dbname=test user=test password=test",
    
pq\Connection::ASYNC pq\Connection::PERSISTENT);

?>