libpqxx
The C++ client library for PostgreSQL
transaction-transaction_focus.hxx
1 #include <pqxx/internal/callgate.hxx>
2 
3 #include "pqxx/transaction_base.hxx"
4 
5 namespace pqxx::internal::gate
6 {
7 class PQXX_PRIVATE transaction_transaction_focus : callgate<transaction_base>
8 {
9  friend class pqxx::transaction_focus;
10 
12 
13  void register_focus(transaction_focus *focus)
14  {
15  home().register_focus(focus);
16  }
17  void unregister_focus(transaction_focus *focus) noexcept
18  {
19  home().unregister_focus(focus);
20  }
21  void register_pending_error(zview error)
22  {
23  home().register_pending_error(error);
24  }
25  void register_pending_error(std::string &&error)
26  {
27  home().register_pending_error(std::move(error));
28  }
29 };
30 } // namespace pqxx::internal::gate
Marker-type wrapper: zero-terminated std::string_view.
Definition: zview.hxx:37
Definition: transaction-transaction_focus.hxx:7
Base class for things that monopolise a transaction's attention.
Definition: transaction_focus.hxx:28
Definition: connection.hxx:106
Base class for call gates.
Definition: callgate.hxx:54
Interface definition (and common code) for "transaction" classes.
Definition: transaction_base.hxx:150