diff OrthancServer/Sources/Database/Compatibility/DatabaseLookup.h @ 4591:ff8170d17d90 db-changes

moving all accesses to databases from IDatabaseWrapper to ITransaction
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 15 Mar 2021 15:30:42 +0100
parents d9473bd5ed43
children f0038043fb97 7053502fbf97
line wrap: on
line diff
--- a/OrthancServer/Sources/Database/Compatibility/DatabaseLookup.h	Fri Mar 12 16:04:09 2021 +0100
+++ b/OrthancServer/Sources/Database/Compatibility/DatabaseLookup.h	Mon Mar 15 15:30:42 2021 +0100
@@ -43,13 +43,13 @@
     class DatabaseLookup : public boost::noncopyable
     {
     private:
-      IDatabaseWrapper&  database_;
+      IDatabaseWrapper::ITransaction&  transaction_;
       ILookupResources&  compatibility_;
 
     public:
-      DatabaseLookup(IDatabaseWrapper& database,
+      DatabaseLookup(IDatabaseWrapper::ITransaction& transaction,
                      ILookupResources& compatibility) :
-        database_(database),
+        transaction_(transaction),
         compatibility_(compatibility)
       {
       }