1#ifndef DITTO_COLLECTIONS_EVENT_H
2#define DITTO_COLLECTIONS_EVENT_H
4#include "Collection.hpp"
5#include "LiveQueryMove.hpp"
24class DITTO_DEPRECATED_BECAUSE(
25 "Use DQL (Ditto Query Language) instead. For more information see: "
26 "https://ditto.com/link/legacy-to-dql-guide") CollectionsEvent {
27 DITTO_DISABLE_DEPRECATED_WARNINGS(
"The legacy query API is deprecated")
29 friend class DocumentHelpers;
31 explicit CollectionsEvent(std::vector<Collection>
collections);
32 CollectionsEvent(std::vector<Collection>
collections,
36 std::vector<std::size_t>
updates,
37 std::vector<LiveQueryMove>
moves);
40 CollectionsEvent(
const CollectionsEvent &) =
delete;
41 CollectionsEvent &operator=(
const CollectionsEvent &) =
delete;
43 CollectionsEvent(CollectionsEvent &&)
noexcept =
default;
86 std::vector<LiveQueryMove>
moves;
88 DITTO_REENABLE_WARNINGS
std::vector< std::size_t > insertions
Definition CollectionsEvent.hpp:66
std::vector< Collection > old_collections
Definition CollectionsEvent.hpp:60
std::vector< std::size_t > updates
Definition CollectionsEvent.hpp:78
bool is_initial
Definition CollectionsEvent.hpp:49
std::vector< std::size_t > deletions
Definition CollectionsEvent.hpp:72
std::vector< LiveQueryMove > moves
Definition CollectionsEvent.hpp:86
std::vector< Collection > collections
Definition CollectionsEvent.hpp:54
Namespace for the Ditto C++ SDK types and functions.
Definition AbstractDocumentPath.hpp:19