aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/libpqxx/include/pqxx/internal/gates/connection-parameterized_invocation.hxx
blob: 364c5b6dac0aaa84ecefa70cba62a61d7f89cb51 (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
36
37
#include <pqxx/internal/callgate.hxx>

namespace pqxx
{
class connection_base;

namespace internal
{
namespace gate
{
class PQXX_PRIVATE connection_parameterized_invocation :
  callgate<connection_base>
{
  friend class pqxx::internal::parameterized_invocation;

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

  result parameterized_exec(
	const std::string &query,
	const char *const params[],
	const int paramlengths[],
	const int binaries[],
	int nparams)
  {
#include <pqxx/internal/ignore-deprecated-pre.hxx>
    return home().parameterized_exec(
	query,
	params,
	paramlengths,
	binaries,
	nparams);
#include <pqxx/internal/ignore-deprecated-post.hxx>
  }
};
} // namespace pqxx::internal::gate
} // namespace pqxx::internal
} // namespace pqxx