libpqxx
The C++ client library for PostgreSQL
errorhandler-connection.hxx
Go to the documentation of this file.
1 #ifndef PQXX_INTERNAL_GATES_ERRORHANDLER_CONNECTION_HXX
2 #define PQXX_INTERNAL_GATES_ERRORHANDLER_CONNECTION_HXX
3 
5 
6 namespace pqxx::internal::gate
7 {
8 class PQXX_PRIVATE errorhandler_connection final : callgate<errorhandler>
9 {
10  friend class pqxx::connection;
11 
12  explicit constexpr errorhandler_connection(reference x) noexcept : super(x)
13  {}
14 
15  void unregister() noexcept { home().unregister(); }
16 };
17 } // namespace pqxx::internal::gate
18 #endif
Connection to a database.
Definition: connection.hxx:273
Definition: errorhandler.hxx:46
Base class for call gates.
Definition: callgate.hxx:55
Definition: errorhandler-connection.hxx:9
#define PQXX_PRIVATE
Definition: header-pre.hxx:207
Definition: connection.hxx:94