Identity of a large object.
More...
#include <largeobject.hxx>
|
|
PQXX_PRIVATE std::string | reason (connection const &, int err) const |
| |
|
|
static PQXX_PURE internal::pq::PGconn * | raw_connection (dbtransaction const &T) |
| |
Identity of a large object.
- Deprecated:
- Use the blob class instead.
Encapsulates the identity of a large object.
A largeobject must be accessed only from within a backend transaction, but the object's identity remains valid as long as the object exists.
| pqxx::largeobject::largeobject |
( |
| ) |
|
|
defaultnoexcept |
Refer to a nonexistent large object (similar to what a null pointer does).
Create new large object.
- Parameters
-
| t | Backend transaction in which the object is to be created. |
| pqxx::largeobject::largeobject |
( |
oid |
o | ) |
|
|
inlineexplicitnoexcept |
Wrap object with given oid.
Convert combination of a transaction and object identifier into a large object identity. Does not affect the database.
- Parameters
-
| o | Object identifier for the given object. |
| pqxx::largeobject::largeobject |
( |
dbtransaction & |
t, |
|
|
std::string_view |
file |
|
) |
| |
Import large object from a local file.
Creates a large object containing the data found in the given file.
- Parameters
-
| t | Backend transaction in which the large object is to be created. |
| file | A filename on the client program's filesystem. |
Take identity of an opened large object.
Copy identity of already opened large object. Note that this may be done as an implicit conversion.
- Parameters
-
| o | Already opened large object to copy identity from. |
| oid pqxx::largeobject::id |
( |
| ) |
const |
|
inlinenoexcept |
Object identifier.
The number returned by this function identifies the large object in the database we're connected to (or oid_none is returned if we refer to the null object).
| bool pqxx::largeobject::operator!= |
( |
largeobject const & |
other | ) |
const |
|
inline |
Compare object identities.
- Warning
- Only valid between large objects in the same database.
| bool pqxx::largeobject::operator< |
( |
largeobject const & |
other | ) |
const |
|
inline |
Compare object identities.
- Warning
- Only valid between large objects in the same database.
| bool pqxx::largeobject::operator<= |
( |
largeobject const & |
other | ) |
const |
|
inline |
Compare object identities.
- Warning
- Only valid between large objects in the same database.
| bool pqxx::largeobject::operator== |
( |
largeobject const & |
other | ) |
const |
|
inline |
Compare object identities.
- Warning
- Only valid between large objects in the same database.
| bool pqxx::largeobject::operator> |
( |
largeobject const & |
other | ) |
const |
|
inline |
Compare object identities.
- Warning
- Only valid between large objects in the same database.
| bool pqxx::largeobject::operator>= |
( |
largeobject const & |
other | ) |
const |
|
inline |
Compare object identities.
- Warning
- Only valid between large objects in the same database.
Delete large object from database.
Unlike its low-level equivalent cunlink, this will throw an exception if deletion fails.
- Parameters
-
| t | Transaction in which the object is to be deleted |
| void pqxx::largeobject::to_file |
( |
dbtransaction & |
t, |
|
|
std::string_view |
file |
|
) |
| const |
Export large object's contents to a local file.
Writes the data stored in the large object to the given file.
- Parameters
-
| t | Transaction in which the object is to be accessed |
| file | A filename on the client's filesystem |
The documentation for this class was generated from the following files:
- /tmp/B.wtl4htcz/BUILD/libpqxx-7.10.3-build/libpqxx-7.10.3/include/pqxx/largeobject.hxx
- /tmp/B.wtl4htcz/BUILD/libpqxx-7.10.3-build/libpqxx-7.10.3/src/largeobject.cxx