diff options
author | Minijackson <minijackson@riseup.net> | 2018-05-24 12:02:10 +0200 |
---|---|---|
committer | Minijackson <minijackson@riseup.net> | 2018-05-24 12:02:10 +0200 |
commit | 7f9634bcdde4dd498da9794d34bf1b2d9a9fed27 (patch) | |
tree | be54a4ff74edd1c00dd70bf21c3ddb3281054689 /common/storage.h | |
parent | ee686653237a828008014e843653b9b8fdb5f11d (diff) | |
download | sink-7f9634bcdde4dd498da9794d34bf1b2d9a9fed27.tar.gz sink-7f9634bcdde4dd498da9794d34bf1b2d9a9fed27.zip |
Nitpicksrange-query/storage
Diffstat (limited to 'common/storage.h')
-rw-r--r-- | common/storage.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/common/storage.h b/common/storage.h index 1fde8e6..a8c486c 100644 --- a/common/storage.h +++ b/common/storage.h | |||
@@ -108,6 +108,10 @@ public: | |||
108 | void findLatest(const QByteArray &uid, const std::function<void(const QByteArray &key, const QByteArray &value)> &resultHandler, | 108 | void findLatest(const QByteArray &uid, const std::function<void(const QByteArray &key, const QByteArray &value)> &resultHandler, |
109 | const std::function<void(const DataStore::Error &error)> &errorHandler = std::function<void(const DataStore::Error &error)>()) const; | 109 | const std::function<void(const DataStore::Error &error)> &errorHandler = std::function<void(const DataStore::Error &error)>()) const; |
110 | 110 | ||
111 | /** | ||
112 | * Finds all the keys and values whose keys are in a given range | ||
113 | * (inclusive). | ||
114 | */ | ||
111 | int findAllInRange(const QByteArray &lowerBound, const QByteArray &upperBound, | 115 | int findAllInRange(const QByteArray &lowerBound, const QByteArray &upperBound, |
112 | const std::function<void(const QByteArray &key, const QByteArray &value)> &resultHandler, | 116 | const std::function<void(const QByteArray &key, const QByteArray &value)> &resultHandler, |
113 | const std::function<void(const DataStore::Error &error)> &errorHandler = | 117 | const std::function<void(const DataStore::Error &error)> &errorHandler = |