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(
    
$connectionFALSEpq\Transaction::REPEATABLE_READ);

?>