summaryrefslogtreecommitdiffstats
path: root/common/domain/typeimplementations.cpp
diff options
context:
space:
mode:
authorRémi Nicole <nicole@kolabsystems.com>2018-05-28 10:08:49 +0200
committerChristian Mollekopf <chrigi_1@fastmail.fm>2018-05-28 10:09:31 +0200
commitf400cee1d5896577c22626d0cf50478057989857 (patch)
treee24e77562e0e893f281965c512ca4b74f88b20d3 /common/domain/typeimplementations.cpp
parent411c7cdad70c5c7902002545fd107ed1b2ac06ac (diff)
downloadsink-f400cee1d5896577c22626d0cf50478057989857.tar.gz
sink-f400cee1d5896577c22626d0cf50478057989857.zip
Implement ranged queries
Summary: Notes: - For now, only for QDateTime indexes - Invalid QDateTimes are stored in the index (subject to change) - Should be a drop-in replacement from ValueIndexes (except for `In` and `Contains` queries) Reviewers: cmollekopf Tags: #sink Differential Revision: https://phabricator.kde.org/D13105
Diffstat (limited to 'common/domain/typeimplementations.cpp')
-rw-r--r--common/domain/typeimplementations.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/common/domain/typeimplementations.cpp b/common/domain/typeimplementations.cpp
index e65c998..a8f4baf 100644
--- a/common/domain/typeimplementations.cpp
+++ b/common/domain/typeimplementations.cpp
@@ -38,7 +38,7 @@ using namespace Sink::ApplicationDomain;
38 MAPPER.addMapping<ENTITYTYPE::PROPERTY, Sink::ApplicationDomain::Buffer::ENTITYTYPE, Sink::ApplicationDomain::Buffer::ENTITYTYPE##Builder>(&Sink::ApplicationDomain::Buffer::ENTITYTYPE::LOWERCASEPROPERTY, &Sink::ApplicationDomain::Buffer::ENTITYTYPE##Builder::add_##LOWERCASEPROPERTY); 38 MAPPER.addMapping<ENTITYTYPE::PROPERTY, Sink::ApplicationDomain::Buffer::ENTITYTYPE, Sink::ApplicationDomain::Buffer::ENTITYTYPE##Builder>(&Sink::ApplicationDomain::Buffer::ENTITYTYPE::LOWERCASEPROPERTY, &Sink::ApplicationDomain::Buffer::ENTITYTYPE##Builder::add_##LOWERCASEPROPERTY);
39 39
40typedef IndexConfig<Mail, 40typedef IndexConfig<Mail,
41 ValueIndex<Mail::Date>, 41 SortedIndex<Mail::Date>,
42 ValueIndex<Mail::Folder>, 42 ValueIndex<Mail::Folder>,
43 ValueIndex<Mail::ParentMessageId>, 43 ValueIndex<Mail::ParentMessageId>,
44 ValueIndex<Mail::MessageId>, 44 ValueIndex<Mail::MessageId>,
@@ -64,7 +64,8 @@ typedef IndexConfig<Addressbook,
64 > AddressbookIndexConfig; 64 > AddressbookIndexConfig;
65 65
66typedef IndexConfig<Event, 66typedef IndexConfig<Event,
67 ValueIndex<Event::Uid> 67 ValueIndex<Event::Uid>,
68 SortedIndex<Event::StartTime>
68 > EventIndexConfig; 69 > EventIndexConfig;
69 70
70typedef IndexConfig<Todo, 71typedef IndexConfig<Todo,