comparison Framework/MySQL/MySQLDatabase.h @ 186:6fe74f9a516e

cppcheck
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 16 Dec 2020 15:05:19 +0100
parents 740d9829f52e
children 3236894320d6
comparison
equal deleted inserted replaced
185:7c46155b5bb4 186:6fe74f9a516e
46 46
47 bool RunAdvisoryLockStatement(Query& query, 47 bool RunAdvisoryLockStatement(Query& query,
48 const std::string& lock); 48 const std::string& lock);
49 49
50 public: 50 public:
51 MySQLDatabase(const MySQLParameters& parameters); 51 explicit MySQLDatabase(const MySQLParameters& parameters);
52 52
53 virtual ~MySQLDatabase(); 53 virtual ~MySQLDatabase();
54 54
55 void LogError(); 55 void LogError();
56 56
89 const std::string& name); 89 const std::string& name);
90 90
91 bool DoesTriggerExist(MySQLTransaction& transaction, 91 bool DoesTriggerExist(MySQLTransaction& transaction,
92 const std::string& name); 92 const std::string& name);
93 93
94 virtual Dialect GetDialect() const 94 virtual Dialect GetDialect() const ORTHANC_OVERRIDE
95 { 95 {
96 return Dialect_MySQL; 96 return Dialect_MySQL;
97 } 97 }
98 98
99 virtual IPrecompiledStatement* Compile(const Query& query); 99 virtual IPrecompiledStatement* Compile(const Query& query) ORTHANC_OVERRIDE;
100 100
101 virtual ITransaction* CreateTransaction(bool isImplicit); 101 virtual ITransaction* CreateTransaction(bool isImplicit) ORTHANC_OVERRIDE;
102 102
103 static void GlobalFinalization(); 103 static void GlobalFinalization();
104 104
105 static bool IsValidDatabaseIdentifier(const std::string& s); 105 static bool IsValidDatabaseIdentifier(const std::string& s);
106 106