libpqxx
The C++ client library for PostgreSQL
connection-pipeline.hxx
1 #include "pqxx/internal/libpq-forward.hxx"
2 #include <pqxx/internal/callgate.hxx>
3 
4 #include "pqxx/pipeline.hxx"
5 
6 namespace pqxx::internal::gate
7 {
8 class PQXX_PRIVATE connection_pipeline : callgate<connection>
9 {
10  friend class pqxx::pipeline;
11 
13 
14  void start_exec(char const query[]) { home().start_exec(query); }
15  pqxx::internal::pq::PGresult *get_result() { return home().get_result(); }
16  void cancel_query() { home().cancel_query(); }
17 
18  bool consume_input() noexcept { return home().consume_input(); }
19  bool is_busy() const noexcept { return home().is_busy(); }
20 
21  int encoding_id() { return home().encoding_id(); }
22 
23  auto get_notice_waiters() const { return home().m_notice_waiters; }
24 };
25 } // namespace pqxx::internal::gate
Definition: connection-pipeline.hxx:8
Processes several queries in FIFO manner, optimized for high throughput.
Definition: pipeline.hxx:50
Definition: connection.hxx:106
Base class for call gates.
Definition: callgate.hxx:54
Connection to a database.
Definition: connection.hxx:278