Loading...
Searching...
No Matches
connection-transaction.hxx
#include <pqxx/internal/callgate.hxx>
namespace pqxx
{
class connection;
}
namespace pqxx::internal::gate
{
class PQXX_PRIVATE connection_transaction : callgate<connection>
{
friend class pqxx::transaction_base;
connection_transaction(reference x) : super(x) {}
template<typename STRING> result exec(STRING query, std::string_view desc)
{
return home().exec(query, desc);
}
void register_transaction(transaction_base *t)
{
home().register_transaction(t);
}
void unregister_transaction(transaction_base *t) noexcept
{
home().unregister_transaction(t);
}
auto read_copy_line() { return home().read_copy_line(); }
void write_copy_line(std::string_view line) { home().write_copy_line(line); }
void end_copy_write() { home().end_copy_write(); }
result
exec_prepared(std::string_view statement, internal::c_params const &args)
{
return home().exec_prepared(statement, args);
}
result exec_params(std::string_view query, internal::c_params const &args)
{
return home().exec_params(query, args);
}
};
} // namespace pqxx::internal::gate
pqxx::internal::callgate< connection >::home
reference home() const noexcept
Definition callgate.hxx:65
pqxx::internal::callgate< connection >::reference
connection & reference
Definition callgate.hxx:60
pqxx::internal::callgate< connection >::super
callgate< connection > super
Definition callgate.hxx:58
pqxx::result
Result set containing data returned by a query or command.
Definition result.hxx:92
pqxx
The home of all libpqxx classes, functions, templates, etc.
Definition array.cxx:27
pqxx::internal::c_params
Internal type: encode statement parameters.
Definition statement_parameters.hxx:95