comparison OrthancFramework/Sources/SQLite/Connection.h @ 4304:50b0c69b653a

continued abi
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 06 Nov 2020 16:33:52 +0100
parents d25f4c0fa160
children c847b0dfd255
comparison
equal deleted inserted replaced
4303:44b53a2c0a13 4304:50b0c69b653a
102 102
103 void Close(); 103 void Close();
104 104
105 bool Execute(const char* sql); 105 bool Execute(const char* sql);
106 106
107 bool Execute(const std::string& sql) 107 bool Execute(const std::string& sql);
108 {
109 return Execute(sql.c_str());
110 }
111 108
112 void FlushToDisk(); 109 void FlushToDisk();
113 110
114 IScalarFunction* Register(IScalarFunction* func); // Takes the ownership of the function 111 IScalarFunction* Register(IScalarFunction* func); // Takes the ownership of the function
115 112
153 150
154 // Diagnostics (for unit tests) ---------------------------------------------- 151 // Diagnostics (for unit tests) ----------------------------------------------
155 152
156 int ExecuteAndReturnErrorCode(const char* sql); 153 int ExecuteAndReturnErrorCode(const char* sql);
157 154
158 bool HasCachedStatement(const StatementId& id) const 155 bool HasCachedStatement(const StatementId& id) const;
159 {
160 return cachedStatements_.find(id) != cachedStatements_.end();
161 }
162 156
163 int GetTransactionNesting() const 157 int GetTransactionNesting() const;
164 {
165 return transactionNesting_;
166 }
167 158
168 // Transactions -------------------------------------------------------------- 159 // Transactions --------------------------------------------------------------
169 160
170 bool BeginTransaction(); 161 bool BeginTransaction();
171 void RollbackTransaction(); 162 void RollbackTransaction();