connection-prepare-invocation.hxx 969 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. #include <pqxx/internal/callgate.hxx>
  2. namespace pqxx
  3. {
  4. namespace prepare
  5. {
  6. class invocation;
  7. } // namespace pqxx::prepare
  8. namespace internal
  9. {
  10. namespace gate
  11. {
  12. class PQXX_PRIVATE connection_prepare_invocation : callgate<connection_base>
  13. {
  14. friend class pqxx::prepare::invocation;
  15. connection_prepare_invocation(reference x) : super(x) {}
  16. /// @deprecated To be replaced by exec_prepared.
  17. result prepared_exec(
  18. const std::string &statement,
  19. const char *const params[],
  20. const int paramlengths[],
  21. const int binary[],
  22. int nparams,
  23. result_format format)
  24. {
  25. #include <pqxx/internal/ignore-deprecated-pre.hxx>
  26. return home().prepared_exec(
  27. statement,
  28. params,
  29. paramlengths,
  30. binary,
  31. nparams,
  32. format);
  33. #include <pqxx/internal/ignore-deprecated-post.hxx>
  34. }
  35. bool prepared_exists(const std::string &statement) const
  36. { return home().prepared_exists(statement); }
  37. };
  38. } // namespace pqxx::internal::gate
  39. } // namespace pqxx::internal
  40. } // namespace pqxx