libpqxx
The C++ client library for PostgreSQL
result-pipeline.hxx
Go to the documentation of this file.
1 #ifndef PQXX_INTERNAL_GATES_RESULT_PIPELINE_HXX
2 #define PQXX_INTERNAL_GATES_RESULT_PIPELINE_HXX
3 
5 
6 namespace pqxx::internal::gate
7 {
8 class PQXX_PRIVATE result_pipeline final : callgate<result const>
9 {
10  friend class pqxx::pipeline;
11 
12  explicit constexpr result_pipeline(reference x) noexcept : super(x) {}
13 
14  [[nodiscard]] std::shared_ptr<std::string const> query_ptr() const
15  {
16  return home().query_ptr();
17  }
18 };
19 } // namespace pqxx::internal::gate
20 #endif
Base class for call gates.
Definition: callgate.hxx:55
result const & reference
A reference to the host class. Helps keep constructors easy.
Definition: callgate.hxx:60
Definition: result-pipeline.hxx:9
Processes several queries in FIFO manner, optimized for high throughput.
Definition: pipeline.hxx:51
#define PQXX_PRIVATE
Definition: header-pre.hxx:207
Definition: connection.hxx:94