libpqxx
The C++ client library for PostgreSQL
 
Loading...
Searching...
No Matches
transaction-transaction_focus.hxx
1#include <pqxx/internal/callgate.hxx>
2
3#include "pqxx/transaction_base.hxx"
4
5namespace pqxx::internal::gate
6{
7class PQXX_PRIVATE transaction_transaction_focus : callgate<transaction_base>
8{
9 friend class pqxx::transaction_focus;
10
11 transaction_transaction_focus(reference x) : super(x) {}
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