libpqxx
The C++ client library for PostgreSQL
Loading...
Searching...
No Matches
connection-transaction.hxx
Go to the documentation of this file.
2
3namespace pqxx
4{
5class connection;
6}
7
9{
10class PQXX_PRIVATE connection_transaction : callgate<connection>
11{
12 friend class pqxx::transaction_base;
13
14 connection_transaction(reference x) : super(x) {}
15
16 template<typename STRING> result exec(STRING query, std::string_view desc)
17 {
18 return home().exec(query, desc);
19 }
20
21 void register_transaction(transaction_base *t)
22 {
23 home().register_transaction(t);
24 }
25 void unregister_transaction(transaction_base *t) noexcept
26 {
27 home().unregister_transaction(t);
28 }
29
30 auto read_copy_line() { return home().read_copy_line(); }
31 void write_copy_line(std::string_view line) { home().write_copy_line(line); }
32 void end_copy_write() { home().end_copy_write(); }
33
34 result
35 exec_prepared(std::string_view statement, internal::c_params const &args)
36 {
37 return home().exec_prepared(statement, args);
38 }
39
40 result exec_params(std::string_view query, internal::c_params const &args)
41 {
42 return home().exec_params(query, args);
43 }
44};
45} // namespace pqxx::internal::gate
connection & reference
Definition callgate.hxx:60
callgate(reference x)
Definition callgate.hxx:62
callgate< connection > super
Definition callgate.hxx:58
Result set containing data returned by a query or command.
Definition result.hxx:93
#define PQXX_PRIVATE
Definition header-pre.hxx:158
Definition connection.hxx:108
The home of all libpqxx classes, functions, templates, etc.
Definition array.cxx:27