comparison PostgreSQL/Plugins/PostgreSQLIndex.h @ 436:f16faa1fdc46 pg-transactions

InsertOrUpdateMetadata function + UpdateAndGetStatistics
author Alain Mazy <am@osimis.io>
date Fri, 15 Dec 2023 17:11:26 +0100
parents 23c7af6f671a
children d979f25e60cf
comparison
equal deleted inserted replaced
435:326f8304daa1 436:f16faa1fdc46
67 67
68 virtual void DeleteResource(IDatabaseBackendOutput& output, 68 virtual void DeleteResource(IDatabaseBackendOutput& output,
69 DatabaseManager& manager, 69 DatabaseManager& manager,
70 int64_t id) ORTHANC_OVERRIDE; 70 int64_t id) ORTHANC_OVERRIDE;
71 71
72 virtual void SetResourcesContent(DatabaseManager& manager,
73 uint32_t countIdentifierTags,
74 const OrthancPluginResourcesContentTags* identifierTags,
75 uint32_t countMainDicomTags,
76 const OrthancPluginResourcesContentTags* mainDicomTags,
77 uint32_t countMetadata,
78 const OrthancPluginResourcesContentMetadata* metadata) ORTHANC_OVERRIDE;
79
72 virtual uint64_t GetTotalCompressedSize(DatabaseManager& manager) ORTHANC_OVERRIDE; 80 virtual uint64_t GetTotalCompressedSize(DatabaseManager& manager) ORTHANC_OVERRIDE;
73 81
74 virtual uint64_t GetTotalUncompressedSize(DatabaseManager& manager) ORTHANC_OVERRIDE; 82 virtual uint64_t GetTotalUncompressedSize(DatabaseManager& manager) ORTHANC_OVERRIDE;
75 83
76 virtual bool HasCreateInstance() const ORTHANC_OVERRIDE 84 virtual bool HasCreateInstance() const ORTHANC_OVERRIDE
110 virtual int64_t IncrementGlobalProperty(DatabaseManager& manager, 118 virtual int64_t IncrementGlobalProperty(DatabaseManager& manager,
111 const char* serverIdentifier, 119 const char* serverIdentifier,
112 int32_t property, 120 int32_t property,
113 int64_t increment) ORTHANC_OVERRIDE; 121 int64_t increment) ORTHANC_OVERRIDE;
114 122
123 virtual bool HasUpdateAndGetStatistics() ORTHANC_OVERRIDE
124 {
125 return true;
126 }
127
128 virtual void UpdateAndGetStatistics(DatabaseManager& manager,
129 int64_t& patientsCount,
130 int64_t& studiesCount,
131 int64_t& seriesCount,
132 int64_t& instancesCount,
133 int64_t& compressedSize,
134 int64_t& uncompressedSize) ORTHANC_OVERRIDE;
135
115 }; 136 };
116 } 137 }