aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/libpqxx/include/pqxx/internal/gates/connection-largeobject.hxx
blob: e4f3b28fccc4761d313f4abd523ec57beec158a1 (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
29
30
31
32
33
34
35
#include <string>

#include <pqxx/internal/callgate.hxx>
#include <pqxx/internal/libpq-forward.hxx>

namespace pqxx
{
class largeobject;

namespace internal
{
namespace gate
{
class PQXX_PRIVATE connection_largeobject : callgate<connection_base>
{
  friend class pqxx::largeobject;

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

  pq::PGconn *raw_connection() const { return home().raw_connection(); }
};


class PQXX_PRIVATE const_connection_largeobject :
	callgate<const connection_base>
{
  friend class pqxx::largeobject;

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

  std::string error_message() const { return home().err_msg(); }
};
} // namespace pqxx::internal::gate
} // namespace pqxx::internal
} // namespace pqxx