#include <largeobject.h>
Inheritance diagram for pqxx::LargeObjectAccess:
Public Member Functions | |
LargeObjectAccess (TransactionItf &T, PGSTD::ios_base::openmode mode=PGSTD::ios_base::in|PGSTD::ios_base::out) | |
Create new large object and open it. | |
LargeObjectAccess (TransactionItf &T, Oid O, PGSTD::ios_base::openmode mode=PGSTD::ios_base::in|PGSTD::ios_base::out) | |
Open large object with given Oid. | |
LargeObjectAccess (TransactionItf &T, LargeObject O, PGSTD::ios_base::openmode mode=PGSTD::ios_base::in|PGSTD::ios_base::out) | |
Open given large object. | |
LargeObjectAccess (TransactionItf &T, const PGSTD::string &File, PGSTD::ios_base::openmode mode=PGSTD::ios_base::in|PGSTD::ios_base::out) | |
Import large object from a local file and open it. | |
~LargeObjectAccess () | |
void | to_file (const char File[]) const |
Export large object's contents to a local file. | |
void | to_file (const PGSTD::string &File) const |
Export large object's contents to a local file. | |
long | cseek (long dest, PGSTD::ios_base::seekdir dir) throw () |
Seek in large object's data stream. | |
long | cwrite (const char Buf[], size_t Len) throw () |
Write to large object's data stream. | |
long | cread (char Buf[], size_t Len) throw () |
Read from large object's data stream. | |
Oid | id () const throw () |
Object identifier. |
|
Create new large object and open it.
|
|
Open large object with given Oid. Convert combination of a transaction and object identifier into a large object identity. Does not affect the database.
|
|
Open given large object. Open a large object with the given identity for reading and/or writing
|
|
Import large object from a local file and open it. Creates a large object containing the data found in the given file.
|
|
|
|
Read from large object's data stream. Does not throw exception in case of error; inspect return value instead.
|
|
Seek in large object's data stream. Does not throw exception in case of error; inspect return value instead.
|
|
Write to large object's data stream. Does not throw exception in case of error; inspect return value instead.
|
|
Object identifier. The number returned by this function identifies the large object in the database we're connected to. |
|
Export large object's contents to a local file. Writes the data stored in the large object to the given file.
|
|
Export large object's contents to a local file. Writes the data stored in the large object to the given file.
|