Mercurial > hg > orthanc-databases
diff 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 |
line wrap: on
line diff
--- a/MySQL/Plugins/MySQLIndex.h Thu Mar 18 15:21:17 2021 +0100 +++ b/MySQL/Plugins/MySQLIndex.h Thu Mar 18 16:51:51 2021 +0100 @@ -63,7 +63,8 @@ IDatabase* OpenInternal(); public: - MySQLIndex(const MySQLParameters& parameters); + MySQLIndex(OrthancPluginContext* context, + const MySQLParameters& parameters); void SetClearAll(bool clear) { @@ -74,7 +75,8 @@ OrthancPluginResourceType type) ORTHANC_OVERRIDE; - virtual void DeleteResource(int64_t id) ORTHANC_OVERRIDE; + virtual void DeleteResource(OrthancPlugins::IDatabaseBackendOutput& output, + int64_t id) ORTHANC_OVERRIDE; virtual int64_t GetLastChangeIndex() ORTHANC_OVERRIDE;