comparison OrthancServer/Sources/Database/BaseDatabaseWrapper.cpp @ 5847:70a879a7b658 find-refactoring

introduction of IDatabaseWrapper::ICompatibilityTransaction
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 29 Oct 2024 13:46:29 +0000
parents 82fc95cc168c
children
comparison
equal deleted inserted replaced
5846:c1b9eb21bd61 5847:70a879a7b658
75 75
76 void BaseDatabaseWrapper::BaseTransaction::ExecuteFind(std::list<std::string>& identifiers, 76 void BaseDatabaseWrapper::BaseTransaction::ExecuteFind(std::list<std::string>& identifiers,
77 const Capabilities& capabilities, 77 const Capabilities& capabilities,
78 const FindRequest& request) 78 const FindRequest& request)
79 { 79 {
80 Compatibility::GenericFind find(*this); 80 Compatibility::GenericFind find(*this, *this);
81 find.ExecuteFind(identifiers, capabilities, request); 81 find.ExecuteFind(identifiers, capabilities, request);
82 } 82 }
83 83
84 84
85 void BaseDatabaseWrapper::BaseTransaction::ExecuteExpand(FindResponse& response, 85 void BaseDatabaseWrapper::BaseTransaction::ExecuteExpand(FindResponse& response,
86 const Capabilities& capabilities, 86 const Capabilities& capabilities,
87 const FindRequest& request, 87 const FindRequest& request,
88 const std::string& identifier) 88 const std::string& identifier)
89 { 89 {
90 Compatibility::GenericFind find(*this); 90 Compatibility::GenericFind find(*this, *this);
91 find.ExecuteExpand(response, capabilities, request, identifier); 91 find.ExecuteExpand(response, capabilities, request, identifier);
92 } 92 }
93 93
94 94
95 uint64_t BaseDatabaseWrapper::MeasureLatency() 95 uint64_t BaseDatabaseWrapper::MeasureLatency()