void pq\Transaction::__construct(pq\Connection $conn[, bool $async = FALSE[, int $isolation = pq\Transaction::READ_COMMITTED[, bool $readonly = FALSE[, bool $deferrable = FALSE]]]])

Start a transaction. See pq\Connection::startTransaction().

Params:

Throws:

Example:

<?php

$connection = new pq\Connection;
$transaction = new pq\Transaction(
    $connection, FALSE, pq\Transaction::REPEATABLE_READ);

?>