Mercurial > hg > orthanc-databases
comparison 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 |
comparison
equal
deleted
inserted
replaced
435:326f8304daa1 | 436:f16faa1fdc46 |
---|---|
1217 int32_t property, | 1217 int32_t property, |
1218 int64_t increment) | 1218 int64_t increment) |
1219 { | 1219 { |
1220 throw Orthanc::OrthancException(Orthanc::ErrorCode_NotImplemented); | 1220 throw Orthanc::OrthancException(Orthanc::ErrorCode_NotImplemented); |
1221 } | 1221 } |
1222 | 1222 |
1223 bool IndexBackend::HasUpdateAndGetStatistics() | |
1224 { | |
1225 return false; // currently only implemented in Postgres | |
1226 } | |
1227 | |
1228 void IndexBackend::UpdateAndGetStatistics(DatabaseManager& manager, | |
1229 int64_t& patientsCount, | |
1230 int64_t& studiesCount, | |
1231 int64_t& seriesCount, | |
1232 int64_t& instancesCount, | |
1233 int64_t& compressedSize, | |
1234 int64_t& uncompressedSize) | |
1235 { | |
1236 throw Orthanc::OrthancException(Orthanc::ErrorCode_NotImplemented); | |
1237 } | |
1238 | |
1223 void IndexBackend::LookupIdentifier(std::list<int64_t>& target /*out*/, | 1239 void IndexBackend::LookupIdentifier(std::list<int64_t>& target /*out*/, |
1224 DatabaseManager& manager, | 1240 DatabaseManager& manager, |
1225 OrthancPluginResourceType resourceType, | 1241 OrthancPluginResourceType resourceType, |
1226 uint16_t group, | 1242 uint16_t group, |
1227 uint16_t element, | 1243 uint16_t element, |