diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-01-23 11:17:35 +0100 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-01-23 11:25:24 +0100 |
commit | 3356db6f1fe75f39a5f6038e94e5af4b5e99f138 (patch) | |
tree | 93976d1eb8879a1b9966d491a1ecd25a70540ae0 /common/storage/entitystore.h | |
parent | 6003ae63e45485d1f1c76ea378900bc5242465cd (diff) | |
download | sink-3356db6f1fe75f39a5f6038e94e5af4b5e99f138.tar.gz sink-3356db6f1fe75f39a5f6038e94e5af4b5e99f138.zip |
Ensure we don't accidentally spawn more transactions than necessary.
Diffstat (limited to 'common/storage/entitystore.h')
-rw-r--r-- | common/storage/entitystore.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/common/storage/entitystore.h b/common/storage/entitystore.h index fe75a02..46410cd 100644 --- a/common/storage/entitystore.h +++ b/common/storage/entitystore.h | |||
@@ -51,6 +51,7 @@ public: | |||
51 | void startTransaction(Sink::Storage::DataStore::AccessMode); | 51 | void startTransaction(Sink::Storage::DataStore::AccessMode); |
52 | void commitTransaction(); | 52 | void commitTransaction(); |
53 | void abortTransaction(); | 53 | void abortTransaction(); |
54 | bool hasTransaction() const; | ||
54 | 55 | ||
55 | QVector<QByteArray> fullScan(const QByteArray &type); | 56 | QVector<QByteArray> fullScan(const QByteArray &type); |
56 | QVector<QByteArray> indexLookup(const QByteArray &type, const QueryBase &query, QSet<QByteArray> &appliedFilters, QByteArray &appliedSorting); | 57 | QVector<QByteArray> indexLookup(const QByteArray &type, const QueryBase &query, QSet<QByteArray> &appliedFilters, QByteArray &appliedSorting); |