pq\LOB pq\Transaction::createLOB([int $mode = pq\LOB::RW])

Create a new large object and open it. See pq\Transaction::openLOB().

Params:

Returns:

Throws:

Example:


<?php

$connection 
= new pq\Connection;
$transaction $connection->startTransaction();

$lob $transaction->createLOB();
$lob->write("Hello World!");

// close the LOB before unlinking
$oid $lob->oid;
$lob null;

$transaction->unlinkLOB($oid);
$transaction->commit();

?>