Mercurial > hg > orthanc-databases
comparison MySQL/Plugins/MySQLIndex.h @ 201:42990b2dd51b
create IDatabaseBackendOutput only if needed
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 18 Mar 2021 16:51:51 +0100 |
parents | 8cae98f73d53 |
children | 2089d4071408 |
comparison
equal
deleted
inserted
replaced
200:30b210616f4f | 201:42990b2dd51b |
---|---|
61 bool clearAll_; | 61 bool clearAll_; |
62 | 62 |
63 IDatabase* OpenInternal(); | 63 IDatabase* OpenInternal(); |
64 | 64 |
65 public: | 65 public: |
66 MySQLIndex(const MySQLParameters& parameters); | 66 MySQLIndex(OrthancPluginContext* context, |
67 const MySQLParameters& parameters); | |
67 | 68 |
68 void SetClearAll(bool clear) | 69 void SetClearAll(bool clear) |
69 { | 70 { |
70 clearAll_ = clear; | 71 clearAll_ = clear; |
71 } | 72 } |
72 | 73 |
73 virtual int64_t CreateResource(const char* publicId, | 74 virtual int64_t CreateResource(const char* publicId, |
74 OrthancPluginResourceType type) | 75 OrthancPluginResourceType type) |
75 ORTHANC_OVERRIDE; | 76 ORTHANC_OVERRIDE; |
76 | 77 |
77 virtual void DeleteResource(int64_t id) ORTHANC_OVERRIDE; | 78 virtual void DeleteResource(OrthancPlugins::IDatabaseBackendOutput& output, |
79 int64_t id) ORTHANC_OVERRIDE; | |
78 | 80 |
79 virtual int64_t GetLastChangeIndex() ORTHANC_OVERRIDE; | 81 virtual int64_t GetLastChangeIndex() ORTHANC_OVERRIDE; |
80 | 82 |
81 virtual bool HasCreateInstance() const ORTHANC_OVERRIDE | 83 virtual bool HasCreateInstance() const ORTHANC_OVERRIDE |
82 { | 84 { |