38 template<
typename... Operation>
109 template<
typename Operation>
112 operation.encode(bundle());
126 template<
typename Operation,
typename... Rest>
127 void push_back(
const Operation& operation, Rest... args)
140 [[nodiscard]]
auto specs() const -> const std::vector<core::impl::subdoc::command>&;
143 [[nodiscard]] auto bundle() -> core::impl::subdoc::command_bundle&;
145 std::shared_ptr<core::impl::subdoc::command_bundle> specs_{};
Definition lookup_in_specs.hxx:34
void push_back(const Operation &operation)
Add subdocument operation to list of specs.
Definition lookup_in_specs.hxx:110
void push_back(const Operation &operation, Rest... args)
Add subdocument operations to list of specs.
Definition lookup_in_specs.hxx:127
auto specs() const -> const std::vector< core::impl::subdoc::command > &
Returns internal representation of the specs.
lookup_in_specs()=default
static auto count(std::string path) -> subdoc::count
Counts the number of values at a given path in the document.
Definition lookup_in_specs.hxx:95
static auto exists(std::string path) -> subdoc::exists
Checks if a value at the given path exists in the document.
Definition lookup_in_specs.hxx:81
static auto get(subdoc::lookup_in_macro macro) -> subdoc::get
Fetches the content from a field represented by given virtual attribute (macro).
Definition lookup_in_specs.hxx:67
static auto get(std::string path) -> subdoc::get
Fetches the content from a field (if present) at the given path.
Definition lookup_in_specs.hxx:53
lookup_in_specs(Operation... args)
Definition lookup_in_specs.hxx:39
An intention to perform a SubDocument count operation.
Definition count.hxx:39
An intention to perform a SubDocument exists operation.
Definition exists.hxx:39
An intention to perform a SubDocument get operation.
Definition get.hxx:41
lookup_in_macro
Definition lookup_in_macro.hxx:29
Represents a single item from the result of collection::scan()
Definition allow_querying_search_index_options.hxx:28