Mercurial > hg > orthanc-databases
diff Framework/Plugins/IndexBackend.cpp @ 436:f16faa1fdc46 pg-transactions
InsertOrUpdateMetadata function + UpdateAndGetStatistics
author | Alain Mazy <am@osimis.io> |
---|---|
date | Fri, 15 Dec 2023 17:11:26 +0100 |
parents | 5964ce6385a5 |
children | 5881e4af5799 |
line wrap: on
line diff
--- a/Framework/Plugins/IndexBackend.cpp Thu Dec 14 09:25:45 2023 +0100 +++ b/Framework/Plugins/IndexBackend.cpp Fri Dec 15 17:11:26 2023 +0100 @@ -1219,7 +1219,23 @@ { throw Orthanc::OrthancException(Orthanc::ErrorCode_NotImplemented); } - + + bool IndexBackend::HasUpdateAndGetStatistics() + { + return false; // currently only implemented in Postgres + } + + void IndexBackend::UpdateAndGetStatistics(DatabaseManager& manager, + int64_t& patientsCount, + int64_t& studiesCount, + int64_t& seriesCount, + int64_t& instancesCount, + int64_t& compressedSize, + int64_t& uncompressedSize) + { + throw Orthanc::OrthancException(Orthanc::ErrorCode_NotImplemented); + } + void IndexBackend::LookupIdentifier(std::list<int64_t>& target /*out*/, DatabaseManager& manager, OrthancPluginResourceType resourceType,