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
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
Base class for call gates.
Definition callgate.hxx:55
Definition transaction-transaction_focus.hxx:8
Base class for things that monopolise a transaction's attention.
Definition transaction_focus.hxx:29
Marker-type wrapper: zero-terminated std::string_view.
Definition zview.hxx:38
Interface definition (and common code) for "transaction" classes.
Definition transaction_base.hxx:151