libpqxx
The C++ client library for PostgreSQL
connection-largeobject.hxx
Go to the documentation of this file.
1 #include <string>
2 
5 
6 namespace pqxx
7 {
8 class blob;
9 class largeobject;
10 } // namespace pqxx
11 
12 
13 namespace pqxx::internal::gate
14 {
16 {
17  friend class pqxx::blob;
18  friend class pqxx::largeobject;
19 
21 
22  pq::PGconn *raw_connection() const { return home().raw_connection(); }
23 };
24 
25 
27 {
28  friend class pqxx::blob;
29  friend class pqxx::largeobject;
30 
32 
33  std::string error_message() const { return home().err_msg(); }
34 };
35 } // namespace pqxx::internal::gate
Definition: blob.hxx:55
Connection to a database.
Definition: connection.hxx:279
Base class for call gates.
Definition: callgate.hxx:55
connection const & reference
A reference to the host class. Helps keep constructors easy.
Definition: callgate.hxx:60
Definition: connection-largeobject.hxx:16
Definition: connection-largeobject.hxx:27
Identity of a large object.
Definition: largeobject.hxx:34
static PQXX_PURE internal::pq::PGconn * raw_connection(dbtransaction const &T)
Definition: largeobject.cxx:139
#define PQXX_PRIVATE
Definition: header-pre.hxx:158
Definition: connection.hxx:107
pg_conn PGconn
Definition: libpq-forward.hxx:24
The home of all libpqxx classes, functions, templates, etc.
Definition: array.cxx:27