1#ifndef _DITTO_DOCUMENT_
2#define _DITTO_DOCUMENT_
4#include "DocumentId.hpp"
5#include "DocumentPath.hpp"
9typedef struct CDocument CDocument_t;
18 friend class DocumentHelpers;
19 friend class DocumentOperator;
20 friend class LiveQuery;
21 friend class QueryOperator;
22 friend class PendingIDSpecificOperation;
23 friend class PendingCursorOperation;
25 CDocument_t *document;
27 explicit Document(CDocument_t *document);
30 Document(
const Document &) =
delete;
31 Document(Document &&)
noexcept;
46 nlohmann::json
value()
const;
DocumentPath operator[](const std::string initial_path)
Used to specify a path to a key in the document that you can subscript further to access a nested key...
Definition Document.cpp:31
nlohmann::json value() const
Get the document's inner value.
Definition Document.cpp:24
DocumentId id() const
Get the ID of the document.
Definition Document.cpp:22
Provides an interface to specify a path to a key in a document that you can then call a function on t...
Definition DocumentPath.hpp:30
An identifier for a Document.
Definition DocumentId.hpp:21