diff options
author | Minijackson <minijackson@riseup.net> | 2018-05-25 11:28:22 +0200 |
---|---|---|
committer | Minijackson <minijackson@riseup.net> | 2018-05-25 11:29:30 +0200 |
commit | 00717f6c8b8a9c6dbd56a80d685c5082fc03f6a5 (patch) | |
tree | eb0871b7518234c3db3e2d647b0b7c020253accb /common/index.h | |
parent | c095e82143fd16c84263d990b96590b3b0d12a78 (diff) | |
download | sink-00717f6c8b8a9c6dbd56a80d685c5082fc03f6a5.tar.gz sink-00717f6c8b8a9c6dbd56a80d685c5082fc03f6a5.zip |
Implement range queries
Diffstat (limited to 'common/index.h')
-rw-r--r-- | common/index.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/common/index.h b/common/index.h index f16a426..043cc90 100644 --- a/common/index.h +++ b/common/index.h | |||
@@ -40,6 +40,10 @@ public: | |||
40 | bool matchSubStringKeys = false); | 40 | bool matchSubStringKeys = false); |
41 | QByteArray lookup(const QByteArray &key); | 41 | QByteArray lookup(const QByteArray &key); |
42 | 42 | ||
43 | void rangeLookup(const QByteArray &lowerBound, const QByteArray &upperBound, | ||
44 | const std::function<void(const QByteArray &value)> &resultHandler, | ||
45 | const std::function<void(const Error &error)> &errorHandler); | ||
46 | |||
43 | private: | 47 | private: |
44 | Q_DISABLE_COPY(Index); | 48 | Q_DISABLE_COPY(Index); |
45 | Sink::Storage::DataStore::Transaction mTransaction; | 49 | Sink::Storage::DataStore::Transaction mTransaction; |