connection-largeobject.hxx 768 B

1234567891011121314151617181920212223242526272829303132333435
  1. #include <string>
  2. #include <pqxx/internal/callgate.hxx>
  3. #include <pqxx/internal/libpq-forward.hxx>
  4. namespace pqxx
  5. {
  6. class blob;
  7. class largeobject;
  8. } // namespace pqxx
  9. namespace pqxx::internal::gate
  10. {
  11. class PQXX_PRIVATE connection_largeobject : callgate<connection>
  12. {
  13. friend class pqxx::blob;
  14. friend class pqxx::largeobject;
  15. connection_largeobject(reference x) : super(x) {}
  16. pq::PGconn *raw_connection() const { return home().raw_connection(); }
  17. };
  18. class PQXX_PRIVATE const_connection_largeobject : callgate<connection const>
  19. {
  20. friend class pqxx::blob;
  21. friend class pqxx::largeobject;
  22. const_connection_largeobject(reference x) : super(x) {}
  23. std::string error_message() const { return home().err_msg(); }
  24. };
  25. } // namespace pqxx::internal::gate