Mercurial > hg > orthanc
comparison OrthancServer/Sources/ServerIndex.h @ 4582:fb0379abb4a7 db-changes
assume that "GetDatabaseVersion()" can run out of a database transaction
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 09 Mar 2021 15:25:17 +0100 |
parents | bb3c82b8f373 |
children | 42a846166fa3 |
comparison
equal
deleted
inserted
replaced
4581:bb3c82b8f373 | 4582:fb0379abb4a7 |
---|---|
106 void SetMaximumStorageSize(uint64_t size); | 106 void SetMaximumStorageSize(uint64_t size); |
107 | 107 |
108 // "count == 0" means no limit on the number of patients | 108 // "count == 0" means no limit on the number of patients |
109 void SetMaximumPatientCount(unsigned int count); | 109 void SetMaximumPatientCount(unsigned int count); |
110 | 110 |
111 // It is assumed that "GetDatabaseVersion()" can run out of a | |
112 // database transaction | |
113 unsigned int GetDatabaseVersion() | |
114 { | |
115 return db_.GetDatabaseVersion(); | |
116 } | |
117 | |
111 | 118 |
112 | 119 |
113 /*** | 120 /*** |
114 ** PROTOTYPING FOR DB REFACTORING BELOW | 121 ** PROTOTYPING FOR DB REFACTORING BELOW |
115 ***/ | 122 ***/ |
188 int64_t id) | 195 int64_t id) |
189 { | 196 { |
190 db_.GetChildrenPublicId(target, id); | 197 db_.GetChildrenPublicId(target, id); |
191 } | 198 } |
192 | 199 |
193 unsigned int GetDatabaseVersion() | |
194 { | |
195 return db_.GetDatabaseVersion(); | |
196 } | |
197 | |
198 void GetExportedResources(std::list<ExportedResource>& target /*out*/, | 200 void GetExportedResources(std::list<ExportedResource>& target /*out*/, |
199 bool& done /*out*/, | 201 bool& done /*out*/, |
200 int64_t since, | 202 int64_t since, |
201 uint32_t maxResults) | 203 uint32_t maxResults) |
202 { | 204 { |
534 bool GetAllMainDicomTags(DicomMap& result, | 536 bool GetAllMainDicomTags(DicomMap& result, |
535 const std::string& instancePublicId); | 537 const std::string& instancePublicId); |
536 | 538 |
537 bool LookupResourceType(ResourceType& type, | 539 bool LookupResourceType(ResourceType& type, |
538 const std::string& publicId); | 540 const std::string& publicId); |
539 | |
540 unsigned int GetDatabaseVersion(); | |
541 | 541 |
542 bool LookupParent(std::string& target, | 542 bool LookupParent(std::string& target, |
543 const std::string& publicId, | 543 const std::string& publicId, |
544 ResourceType parentType); | 544 ResourceType parentType); |
545 | 545 |