diff options
author | Minijackson <minijackson@riseup.net> | 2018-05-23 17:20:34 +0200 |
---|---|---|
committer | Minijackson <minijackson@riseup.net> | 2018-05-23 17:25:18 +0200 |
commit | 427b1d38d870e6876e10349b1081b56ff3390dec (patch) | |
tree | 8895888f5e4900ab8b41e500df32a89dda477e1c /common/storage.h | |
parent | 426392f71d5f45aad8c57969643fd6c365ce2362 (diff) | |
download | sink-427b1d38d870e6876e10349b1081b56ff3390dec.tar.gz sink-427b1d38d870e6876e10349b1081b56ff3390dec.zip |
Add and test findAllInRange for ranged lookups
Diffstat (limited to 'common/storage.h')
-rw-r--r-- | common/storage.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/common/storage.h b/common/storage.h index bb8c1fa..1fde8e6 100644 --- a/common/storage.h +++ b/common/storage.h | |||
@@ -108,6 +108,11 @@ 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 | int findAllInRange(const QByteArray &lowerBound, const QByteArray &upperBound, | ||
112 | const std::function<void(const QByteArray &key, const QByteArray &value)> &resultHandler, | ||
113 | const std::function<void(const DataStore::Error &error)> &errorHandler = | ||
114 | std::function<void(const DataStore::Error &error)>()) const; | ||
115 | |||
111 | /** | 116 | /** |
112 | * Returns true if the database contains the substring key. | 117 | * Returns true if the database contains the substring key. |
113 | */ | 118 | */ |