Lines Matching refs:handle
18 $handle = pg_lo_open ($db, $oid, "w");
19 if (!$handle) echo ("pg_lo_open() error\n");
20 pg_lo_write ($handle, "large object data");
21 pg_lo_close ($handle);
26 $handle = pg_lo_open ($db, $oid, "w");
27 var_dump(pg_lo_read($handle, 5));
28 var_dump(pg_lo_tell($handle));
29 var_dump(pg_lo_seek($handle, 2, /* PGSQL_SEEK_CUR */)); // This is the default so move cursor from 5
30 var_dump(pg_lo_read($handle, 100)); // Read to the end because chunk is larger then remaining conte…
31 var_dump(pg_lo_tell($handle));
32 var_dump(pg_lo_seek($handle, 0, PGSQL_SEEK_SET)); /* Reset cursor to beginning */
33 var_dump(pg_lo_read($handle));
34 var_dump(pg_lo_seek($handle, -4, PGSQL_SEEK_END)); /* Seek from the end */
35 var_dump(pg_lo_read($handle));
36 pg_lo_close($handle);
41 $handle = pg_lo_open ($db, $oid, "w");
43 $bytesWritten = pg_lo_read_all($handle);
47 pg_lo_close($handle);