in pgsql/pgsql.php [1328:1402]
function pg_lo_close(#[LanguageLevelTypeAware(['8.1' => 'PgSql\Lob'], default: 'resource')] $lob): bool {}
/**
* Read a large object
* @link https://php.net/manual/en/function.pg-lo-read.php
* @param resource $lob <p>
* PostgreSQL large object (LOB) resource, returned by <b>pg_lo_open</b>.
* </p>
* @param int $length [optional] <p>
* An optional maximum number of bytes to return.
* </p>
* @return string|false A string containing <i>len</i> bytes from the
* large object, or <b>FALSE</b> on error.
*/
function pg_lo_read(#[LanguageLevelTypeAware(['8.1' => 'PgSql\Lob'], default: 'resource')] $lob, int $length = 8192): string|false {}
/**
* Write to a large object
* @link https://php.net/manual/en/function.pg-lo-write.php
* @param resource $lob <p>
* PostgreSQL large object (LOB) resource, returned by <b>pg_lo_open</b>.
* </p>
* @param string $data <p>
* The data to be written to the large object. If <i>len</i> is
* specified and is less than the length of <i>data</i>, only
* <i>len</i> bytes will be written.
* </p>
* @param int $length [optional] <p>
* An optional maximum number of bytes to write. Must be greater than zero
* and no greater than the length of <i>data</i>. Defaults to
* the length of <i>data</i>.
* </p>
* @return int|false The number of bytes written to the large object, or <b>FALSE</b> on error.
*/
function pg_lo_write(#[LanguageLevelTypeAware(['8.1' => 'PgSql\Lob'], default: 'resource')] $lob, string $data, ?int $length = null): int|false {}
/**
* Reads an entire large object and send straight to browser
* @link https://php.net/manual/en/function.pg-lo-read-all.php
* @param resource $lob <p>
* PostgreSQL large object (LOB) resource, returned by <b>pg_lo_open</b>.
* </p>
* @return int|false Number of bytes read or <b>FALSE</b> on error.
*/
function pg_lo_read_all(#[LanguageLevelTypeAware(['8.1' => 'PgSql\Lob'], default: 'resource')] $lob): int {}
/**
* Import a large object from file
* @link https://php.net/manual/en/function.pg-lo-import.php
* @param resource $connection <p>
* PostgreSQL database connection resource. When
* <i>connection</i> is not present, the default connection
* is used. The default connection is the last connection made by
* <b>pg_connect</b> or <b>pg_pconnect</b>.
* </p>
* @param string $pathname <p>
* The full path and file name of the file on the client
* filesystem from which to read the large object data.
* </p>
* @param mixed $object_id [optional] <p>
* If an <i>object_id</i> is given the function
* will try to create a large object with this id, else a free
* object id is assigned by the server. The parameter
* was added in PHP 5.3 and relies on functionality that first
* appeared in PostgreSQL 8.1.
* </p>
* @return string|int|false The OID of the newly created large object, or
* <b>FALSE</b> on failure.
*/
function pg_lo_import(
#[PhpStormStubsElementAvailable(from: '8.0')] #[LanguageLevelTypeAware(['8.1' => 'PgSql\Connection'], default: 'resource')] $connection,
#[PhpStormStubsElementAvailable(from: '5.3', to: '7.4')] $connection = null,
$pathname,
$object_id = null
): string|int|false {}