#include <largeobject.h>
Inheritance diagram for pqxx::LargeObject:
Public Member Functions | |
LargeObject (TransactionItf &T) | |
Create new large object. | |
LargeObject (Oid O) | |
Wrap object with given Oid. | |
LargeObject (TransactionItf &T, const PGSTD::string &File) | |
Import large object from a local file. | |
LargeObject (const LargeObjectAccess &O) | |
Take identity of an opened large object. | |
Oid | id () const throw () |
Object identifier. | |
bool | operator== (const LargeObject &other) const |
Comparison is only valid between large objects in the same database. | |
bool | operator!= (const LargeObject &other) const |
Comparison is only valid between large objects in the same database. | |
bool | operator<= (const LargeObject &other) const |
Comparison is only valid between large objects in the same database. | |
bool | operator>= (const LargeObject &other) const |
Comparison is only valid between large objects in the same database. | |
bool | operator< (const LargeObject &other) const |
Comparison is only valid between large objects in the same database. | |
bool | operator> (const LargeObject &other) const |
Comparison is only valid between large objects in the same database. | |
void | to_file (TransactionItf &T, const char File[]) const |
Export large object's contents to a local file. | |
void | to_file (TransactionItf &T, const PGSTD::string &File) const |
Export large object's contents to a local file. | |
int | cunlink (TransactionItf &T) const throw () |
Delete large object from database. | |
Static Protected Member Functions | |
PGconn * | RawConnection (const TransactionItf &T) |
This class encapsulates the identity of a large object. To access the contents of the object, use the open() member function or create a largeobject_streambuf around the LargeObject.
A LargeObject must be accessed only from within a backend transaction, but the object's identity remains valid.
|
Create new large object.
|
|
Wrap object with given Oid. Convert combination of a transaction and object identifier into a large object identity. Does not affect the database.
|
|
Import large object from a local file. Creates a large object containing the data found in the given file.
|
|
Take identity of an opened large object. Copy identity of already opened large object. Note that this may be done as an implicit conversion.
|
|
Delete large object from database. 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. |
|
Comparison is only valid between large objects in the same database.
|
|
Comparison is only valid between large objects in the same database.
|
|
Comparison is only valid between large objects in the same database.
|
|
Comparison is only valid between large objects in the same database.
|
|
Comparison is only valid between large objects in the same database.
|
|
Comparison is only valid between large objects in the same database.
|
|
|
|
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.
|