|
libpqxx
7.8.0
|
Base class for things that monopolise a transaction's attention. More...
#include <transaction_focus.hxx>

Public Member Functions | |
| transaction_focus (transaction_base &t, std::string_view cname, std::string_view oname) | |
| transaction_focus (transaction_base &t, std::string_view cname, std::string &&oname) | |
| transaction_focus (transaction_base &t, std::string_view cname) | |
| transaction_focus ()=delete | |
| transaction_focus (transaction_focus const &)=delete | |
| transaction_focus & | operator= (transaction_focus const &)=delete |
| constexpr std::string_view | classname () const noexcept |
| Class name, for human consumption. More... | |
| std::string_view | name () const &noexcept |
| Name for this object, if the caller passed one; empty string otherwise. More... | |
| std::string | description () const |
| transaction_focus (transaction_focus &&other) | |
| transaction_focus & | operator= (transaction_focus &&other) |
Protected Member Functions | |
| void | register_me () |
| void | unregister_me () noexcept |
| void | reg_pending_error (std::string const &) noexcept |
| bool | registered () const noexcept |
Protected Attributes | |
| transaction_base * | m_trans |
Base class for things that monopolise a transaction's attention.
You probably won't need to use this class. But it can be useful to know that a given libpqxx class is derived from it.
Pipelines, SQL statements, and data streams are examples of classes derived from transaction_focus. In any given transaction, only one object of such a class can be active at any given time.
| pqxx::transaction_focus::transaction_focus | ( | transaction_base & | t, |
| std::string_view | cname, | ||
| std::string_view | oname | ||
| ) |
| pqxx::transaction_focus::transaction_focus | ( | transaction_base & | t, |
| std::string_view | cname, | ||
| std::string && | oname | ||
| ) |
| pqxx::transaction_focus::transaction_focus | ( | transaction_base & | t, |
| std::string_view | cname | ||
| ) |
|
delete |
|
delete |
| pqxx::transaction_focus::transaction_focus | ( | transaction_focus && | other | ) |
|
noexcept |
Class name, for human consumption.
Referenced by pqxx::transaction_base::close().
| std::string pqxx::transaction_focus::description | ( | ) | const |
References pqxx::internal::describe_object().
Referenced by pqxx::transaction_base::commit().
|
noexcept |
Name for this object, if the caller passed one; empty string otherwise.
Referenced by pqxx::transaction_base::close().
|
delete |
| transaction_focus& pqxx::transaction_focus::operator= | ( | transaction_focus && | other | ) |
|
protectednoexcept |
Referenced by pqxx::stream_from::complete(), and pqxx::stream_from::~stream_from().
|
protected |
Referenced by pqxx::stream_from::stream_from(), and pqxx::pipeline::~pipeline().
|
protectednoexcept |
Referenced by pqxx::pipeline::~pipeline().
|
protectednoexcept |
Referenced by pqxx::stream_from::get_raw_line(), pqxx::pipeline::resume(), and pqxx::pipeline::~pipeline().
|
protected |
Referenced by pqxx::pipeline::cancel(), pqxx::stream_from::get_raw_line(), and pqxx::pipeline::resume().