Mercurial > hg > orthanc-databases
diff Framework/MySQL/MySQLTransaction.h @ 237:35598014f140
refactoring to remove GlobalProperties.cpp
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 08 Apr 2021 19:09:04 +0200 |
parents | ee5858d438dc |
children | 33fa478c119a |
line wrap: on
line diff
--- a/Framework/MySQL/MySQLTransaction.h Thu Apr 08 12:00:01 2021 +0200 +++ b/Framework/MySQL/MySQLTransaction.h Thu Apr 08 19:09:04 2021 +0200 @@ -56,5 +56,20 @@ virtual void ExecuteWithoutResult(IPrecompiledStatement& transaction, const Dictionary& parameters) ORTHANC_OVERRIDE; + + virtual bool DoesTableExist(const std::string& name) + { + return db_.DoesTableExist(*this, name); + } + + virtual bool DoesTriggerExist(const std::string& name) + { + return db_.DoesTriggerExist(*this, name); + } + + virtual void ExecuteMultiLines(const std::string& query) + { + db_.ExecuteMultiLines(query, false /* don't deal with arobases */); + } }; }