libpqxx
The C++ client library for PostgreSQL
result-connection.hxx
1#include <pqxx/internal/callgate.hxx>
2
3namespace pqxx::internal::gate
4{
5class PQXX_PRIVATE result_connection : callgate<result const>
6{
7 friend class pqxx::connection;
8
10
11 operator bool() const { return bool(home()); }
12 bool operator!() const { return not home(); }
13};
14} // namespace pqxx::internal::gate
Connection to a database.
Definition: connection.hxx:230
Base class for call gates.
Definition: callgate.hxx:55
result const & reference
A reference to the host class. Helps keep constructors easy.
Definition: callgate.hxx:60
Definition: result-connection.hxx:6