Mercurial > hg > orthanc-databases
diff Framework/PostgreSQL/PostgreSQLResult.h @ 246:483af3f35a4b
turning ResultFileValue into a base class, and implement its primitives for PostgreSQL
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 14 Apr 2021 08:42:31 +0200 |
parents | 3236894320d6 |
children | 16aac0287485 |
line wrap: on
line diff
--- a/Framework/PostgreSQL/PostgreSQLResult.h Tue Apr 13 18:50:44 2021 +0200 +++ b/Framework/PostgreSQL/PostgreSQLResult.h Wed Apr 14 08:42:31 2021 +0200 @@ -32,6 +32,8 @@ class PostgreSQLResult : public boost::noncopyable { private: + class LargeObjectResult; + void *result_; /* Object of type "PGresult*" */ int position_; PostgreSQLDatabase& database_; @@ -70,12 +72,10 @@ std::string GetString(unsigned int column) const; - void GetLargeObject(std::string& result, - unsigned int column) const; + std::string GetLargeObjectOid(unsigned int column) const; - void GetLargeObject(void*& result, - size_t& size, - unsigned int column) const; + void GetLargeObjectContent(std::string& content, + unsigned int column) const; IValue* GetValue(unsigned int column) const; };