mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-01-19 11:16:32 +00:00
be7ce4110e
This reverts commit e96515433d
.
36 lines
768 B
C++
36 lines
768 B
C++
#include <string>
|
|
|
|
#include <pqxx/internal/callgate.hxx>
|
|
#include <pqxx/internal/libpq-forward.hxx>
|
|
|
|
namespace pqxx
|
|
{
|
|
class blob;
|
|
class largeobject;
|
|
} // namespace pqxx
|
|
|
|
|
|
namespace pqxx::internal::gate
|
|
{
|
|
class PQXX_PRIVATE connection_largeobject : callgate<connection>
|
|
{
|
|
friend class pqxx::blob;
|
|
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<connection const>
|
|
{
|
|
friend class pqxx::blob;
|
|
friend class pqxx::largeobject;
|
|
|
|
const_connection_largeobject(reference x) : super(x) {}
|
|
|
|
std::string error_message() const { return home().err_msg(); }
|
|
};
|
|
} // namespace pqxx::internal::gate
|