pg_lo_unlink(3) php man page | unix.com

Man Page: pg_lo_unlink

Operating Environment: php

Section: 3

PG_LO_UNLINK(3) 														   PG_LO_UNLINK(3)

pg_lo_unlink - Delete a large object

SYNOPSIS
bool pg_lo_unlink (resource $connection, int $oid)
DESCRIPTION
pg_lo_unlink(3) deletes a large object with the $oid. Returns TRUE on success or FALSE on failure. To use the large object interface, it is necessary to enclose it within a transaction block. Note This function used to be called pg_lounlink(3).
PARAMETERS
o $connection - PostgreSQL database connection resource. When $connection is not present, the default connection is used. The default connection is the last connection made by pg_connect(3) or pg_pconnect(3). o $oid - The $OID of the large object in the database.
RETURN VALUES
Returns TRUE on success or FALSE on failure.
EXAMPLES
Example #1 pg_lo_unlink(3) example <?php // OID of the large object to delete $doc_oid = 189762345; $database = pg_connect("dbname=jacarta"); pg_query($database, "begin"); pg_lo_unlink($database, $doc_oid); pg_query($database, "commit"); ?>
SEE ALSO
pg_lo_create(3), pg_lo_import(3). PHP Documentation Group PG_LO_UNLINK(3)
Related Man Pages
pg_lo_read_all(3) - php
pg_lo_seek(3) - php
pg_lo_truncate(3) - php
pg_lo_unlink(3) - php
pg_put_line(3) - php
Similar Topics in the Unix Linux Community
database connection (unresolved sqlcxt)
input variable like POST in PHP possibly?
tntdb 1.0.0 (Default branch)
connection doesn't work anymore
Function returns wrong values - solved