connection-pipeline.hxx 707 B

1234567891011121314151617181920212223
  1. #include "pqxx/internal/libpq-forward.hxx"
  2. #include <pqxx/internal/callgate.hxx>
  3. #include "pqxx/pipeline.hxx"
  4. namespace pqxx::internal::gate
  5. {
  6. class PQXX_PRIVATE connection_pipeline : callgate<connection>
  7. {
  8. friend class pqxx::pipeline;
  9. connection_pipeline(reference x) : super(x) {}
  10. void start_exec(char const query[]) { home().start_exec(query); }
  11. pqxx::internal::pq::PGresult *get_result() { return home().get_result(); }
  12. void cancel_query() { home().cancel_query(); }
  13. bool consume_input() noexcept { return home().consume_input(); }
  14. bool is_busy() const noexcept { return home().is_busy(); }
  15. int encoding_id() { return home().encoding_id(); }
  16. };
  17. } // namespace pqxx::internal::gate