Mercurial > hg > orthanc
comparison OrthancServer/Sources/Database/SQLiteDatabaseWrapper.cpp @ 5466:dceed5e3d6a9 pg-transactions
new DB plugin primitive: UpdateAndGetStatistics
author | Alain Mazy <am@osimis.io> |
---|---|
date | Fri, 15 Dec 2023 17:15:43 +0100 |
parents | 176bc05f85f4 |
children | b3ebe249ed5b |
comparison
equal
deleted
inserted
replaced
5465:2829889bfa57 | 5466:dceed5e3d6a9 |
---|---|
1330 | 1330 |
1331 SQLiteDatabaseWrapper::SQLiteDatabaseWrapper(const std::string& path) : | 1331 SQLiteDatabaseWrapper::SQLiteDatabaseWrapper(const std::string& path) : |
1332 activeTransaction_(NULL), | 1332 activeTransaction_(NULL), |
1333 signalRemainingAncestor_(NULL), | 1333 signalRemainingAncestor_(NULL), |
1334 version_(0), | 1334 version_(0), |
1335 dbCapabilities_(true, false /* TODO: implement revisions in SQLite */, true, false) | 1335 dbCapabilities_(true, /* hasFlushToDisk */ |
1336 false, /* hasRevisionsSupport TODO: implement revisions in SQLite */ | |
1337 true, /* hasLabelsSupport */ | |
1338 false, /* hasAtomicIncrementGlobalProperty */ | |
1339 false /* hasUpdateAndGetStatistics */) | |
1336 { | 1340 { |
1337 db_.Open(path); | 1341 db_.Open(path); |
1338 } | 1342 } |
1339 | 1343 |
1340 | 1344 |
1341 SQLiteDatabaseWrapper::SQLiteDatabaseWrapper() : | 1345 SQLiteDatabaseWrapper::SQLiteDatabaseWrapper() : |
1342 activeTransaction_(NULL), | 1346 activeTransaction_(NULL), |
1343 signalRemainingAncestor_(NULL), | 1347 signalRemainingAncestor_(NULL), |
1344 version_(0), | 1348 version_(0), |
1345 dbCapabilities_(true, false /* TODO: implement revisions in SQLite */, true, false) | 1349 dbCapabilities_(true, /* hasFlushToDisk */ |
1350 false, /* hasRevisionsSupport TODO: implement revisions in SQLite */ | |
1351 true, /* hasLabelsSupport */ | |
1352 false, /* hasAtomicIncrementGlobalProperty */ | |
1353 false /* hasUpdateAndGetStatistics */) | |
1346 { | 1354 { |
1347 db_.OpenInMemory(); | 1355 db_.OpenInMemory(); |
1348 } | 1356 } |
1349 | 1357 |
1350 SQLiteDatabaseWrapper::~SQLiteDatabaseWrapper() | 1358 SQLiteDatabaseWrapper::~SQLiteDatabaseWrapper() |