diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-10-04 08:25:18 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-10-04 08:25:18 +0200 |
commit | d6a01b3f82d626856001356c0875aa738a0346ac (patch) | |
tree | d77a6000e9d53be7844d72697496efa093b5f8ad /common/typeindex.h | |
parent | 48ba18c92eede967afc4cf8894a3b06fd6a3c179 (diff) | |
download | sink-d6a01b3f82d626856001356c0875aa738a0346ac.tar.gz sink-d6a01b3f82d626856001356c0875aa738a0346ac.zip |
Support for subqueries.
This allows us to match properties from a subquery.
Unfortunately this also means that DataStoreQuery needs access to all
type implementations to issue the subquery (for potentially another type).
Diffstat (limited to 'common/typeindex.h')
-rw-r--r-- | common/typeindex.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/common/typeindex.h b/common/typeindex.h index 7266f02..4972e95 100644 --- a/common/typeindex.h +++ b/common/typeindex.h | |||
@@ -22,6 +22,7 @@ | |||
22 | #include "bufferadaptor.h" | 22 | #include "bufferadaptor.h" |
23 | #include "storage.h" | 23 | #include "storage.h" |
24 | #include "query.h" | 24 | #include "query.h" |
25 | #include "log.h" | ||
25 | #include <QByteArray> | 26 | #include <QByteArray> |
26 | 27 | ||
27 | class TypeIndex | 28 | class TypeIndex |
@@ -79,6 +80,7 @@ public: | |||
79 | private: | 80 | private: |
80 | QByteArray indexName(const QByteArray &property, const QByteArray &sortProperty = QByteArray()) const; | 81 | QByteArray indexName(const QByteArray &property, const QByteArray &sortProperty = QByteArray()) const; |
81 | QByteArray mType; | 82 | QByteArray mType; |
83 | SINK_DEBUG_COMPONENT(mType) | ||
82 | QByteArrayList mProperties; | 84 | QByteArrayList mProperties; |
83 | QMap<QByteArray, QByteArray> mSortedProperties; | 85 | QMap<QByteArray, QByteArray> mSortedProperties; |
84 | //<Property, ResultProperty> | 86 | //<Property, ResultProperty> |