comparison OrthancServer/DatabaseWrapper.cpp @ 1672:4c5a85c3ff43 db-changes

sample database plugin now working
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 02 Oct 2015 12:20:49 +0200
parents 2f2e2ec17bc4
children 2ad22b2970a2 d72cf0c11f42
comparison
equal deleted inserted replaced
1671:2f2e2ec17bc4 1672:4c5a85c3ff43
257 257
258 258
259 DatabaseWrapper::DatabaseWrapper(const std::string& path) : listener_(NULL), base_(db_) 259 DatabaseWrapper::DatabaseWrapper(const std::string& path) : listener_(NULL), base_(db_)
260 { 260 {
261 db_.Open(path); 261 db_.Open(path);
262 Open();
263 } 262 }
264 263
265 DatabaseWrapper::DatabaseWrapper() : listener_(NULL), base_(db_) 264 DatabaseWrapper::DatabaseWrapper() : listener_(NULL), base_(db_)
266 { 265 {
267 db_.OpenInMemory(); 266 db_.OpenInMemory();
268 Open();
269 } 267 }
270 268
271 void DatabaseWrapper::Open() 269 void DatabaseWrapper::Open()
272 { 270 {
273 // Performance tuning of SQLite with PRAGMAs 271 // Performance tuning of SQLite with PRAGMAs