aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/libpqxx/include/pqxx/internal/gates/result-creation.hxx
blob: 6d5671c5291bde752ed3ae6986dd9396a85cc0be (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#include <pqxx/internal/callgate.hxx>

namespace pqxx
{
namespace internal
{
namespace gate
{
class PQXX_PRIVATE result_creation : callgate<const result>
{
  friend class pqxx::connection_base;
  friend class pqxx::pipeline;

  result_creation(reference x) : super(x) {}

  static result create(
        internal::pq::PGresult *rhs,
        const std::string &query,
        encoding_group enc)
  {
    return result(rhs, query, enc);
  }

  void check_status() const { return home().check_status(); }
};
} // namespace pqxx::internal::gate
} // namespace pqxx::internal
} // namespace pqxx