A database transaction.
NOTE:
Transactional properties like pq\Transaction::$isolation, pq\Transaction::$readonly and pq\Transaction::$deferrable can be changed after the transaction begun and the first query has been executed. Doing this will lead to appropriateSET TRANSACTIONqueries.
int $isolation# = pq\Transaction::READ_COMMITTEDbool $readonly# = FALSEbool $deferrable# = FALSEStart a transaction.
void pq\Transaction::__construct(pq\Connection $conn[, bool $async = FALSE[, int $isolation = pq\Transaction::READ_COMMITTED[, bool $readonly = FALSE[, bool $deferrable = FALSE]]]])
Commit the transaction or release the previous savepoint.
Asynchronously commit the transaction or release the previous savepoint.
Create a new large object and open it.
pq\LOB pq\Transaction::createLOB([int $mode = pq\LOB::RW])
Export a large object to a local file.
void pq\Transaction::exportLOB(int $oid, string $path)
Export a snapshot for transaction synchronization.
Asynchronously export a snapshot for transaction synchronization.
Import a local file into a large object.
int pq\Transaction::importLOB(string $local_path[, int $oid = pq\LOB::INVALID_OID)
Import a snapshot from another transaction to synchronize with.
void pq\Transaction::importSnapshot(string $snapshot_id)
Asynchronously import a snapshot from another transaction to synchronize with.
void pq\Transaction::importSnapshotAsync(string $snapshot_id)
Open a large object.
pq\LOB pq\Transaction::openLOB(int $oid[, int $mode = pq\LOB::RW])
Rollback the transaction or to the previous savepoint within this transaction.
Asynchronously rollback the transaction or to the previous savepoint within this transaction.
Create a SAVEPOINT within this transaction.
Asynchronously create a SAVEPOINT within this transaction.
Unlink a large object.
void pq\Transaction::unlinkLOB(int $oid)