diff Framework/PostgreSQL/PostgreSQLTransaction.h @ 237:35598014f140

refactoring to remove GlobalProperties.cpp
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 08 Apr 2021 19:09:04 +0200
parents fbb52129158a
children 16aac0287485
line wrap: on
line diff
--- a/Framework/PostgreSQL/PostgreSQLTransaction.h	Thu Apr 08 12:00:01 2021 +0200
+++ b/Framework/PostgreSQL/PostgreSQLTransaction.h	Thu Apr 08 19:09:04 2021 +0200
@@ -59,5 +59,20 @@
 
     virtual void ExecuteWithoutResult(IPrecompiledStatement& statement,
                                       const Dictionary& parameters) ORTHANC_OVERRIDE;
+
+    virtual bool DoesTableExist(const std::string& name) ORTHANC_OVERRIDE
+    {
+      return database_.DoesTableExist(name.c_str());
+    }
+
+    virtual bool DoesTriggerExist(const std::string& name) ORTHANC_OVERRIDE
+    {
+      return false;
+    }
+
+    virtual void ExecuteMultiLines(const std::string& query) ORTHANC_OVERRIDE
+    {
+      database_.ExecuteMultiLines(query);
+    }
   };
 }