MongoDB C++ Driver 4.4.0
Loading...
Searching...
No Matches
find_one_and_update_options.hpp
Go to the documentation of this file.
1// Copyright 2009-present MongoDB, Inc.
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15#pragma once
16
17#include <mongocxx/v1/find_one_and_update_options-fwd.hpp> // IWYU pragma: export
18
19//
20
22
29
34
36
38
39#include <chrono>
40
41namespace mongocxx {
42namespace v1 {
43
67 private:
68 class impl;
69 void* _impl;
70
71 public:
78
86
94
99
104
112
117
121 MONGOCXX_ABI_EXPORT_CDECL(bsoncxx::v1::stdx::optional<bsoncxx::v1::document::view>) collation() const;
122
127
132
137
141 MONGOCXX_ABI_EXPORT_CDECL(bsoncxx::v1::stdx::optional<v1::hint>) hint() const;
142
147
151 MONGOCXX_ABI_EXPORT_CDECL(bsoncxx::v1::stdx::optional<bsoncxx::v1::document::view> const) let() const;
152
157
161 MONGOCXX_ABI_EXPORT_CDECL(bsoncxx::v1::stdx::optional<bsoncxx::v1::types::view> const) comment() const;
162
167
171 MONGOCXX_ABI_EXPORT_CDECL(bsoncxx::v1::stdx::optional<std::chrono::milliseconds>) max_time() const;
172
177
181 MONGOCXX_ABI_EXPORT_CDECL(bsoncxx::v1::stdx::optional<bsoncxx::v1::document::view>) projection() const;
182
187
192
197
201 MONGOCXX_ABI_EXPORT_CDECL(bsoncxx::v1::stdx::optional<bsoncxx::v1::document::view>) sort() const;
202
207
211 MONGOCXX_ABI_EXPORT_CDECL(bsoncxx::v1::stdx::optional<bool>) upsert() const;
212
217
222
227
232
237
241 MONGOCXX_ABI_EXPORT_CDECL(bsoncxx::v1::stdx::optional<bsoncxx::v1::array::view>) array_filters() const;
242
243 class internal;
244};
245
246} // namespace v1
247} // namespace mongocxx
248
249#include <mongocxx/v1/detail/postlude.hpp>
250
find_one_and_update_options & return_document(v1::return_document v)
Set the "returnDocument" field.
find_one_and_update_options & comment(bsoncxx::v1::types::value v)
Set the "comment" field.
find_one_and_update_options & bypass_document_validation(bool v)
Set the "bypassDocumentValidation" field.
find_one_and_update_options & let(bsoncxx::v1::document::value v)
Set the "let" field.
find_one_and_update_options & hint(v1::hint v)
Set the "hint" field.
find_one_and_update_options & projection(bsoncxx::v1::document::value v)
Set the "projection" field.
find_one_and_update_options & read_concern(v1::read_concern v)
Set the "readConcern" field.
find_one_and_update_options & upsert(bool v)
Set the "upsert" field.
find_one_and_update_options & sort(bsoncxx::v1::document::value v)
Set the "sort" field.
find_one_and_update_options & max_time(std::chrono::milliseconds v)
Set the "maxTimeMS" field.
find_one_and_update_options(find_one_and_update_options &&other) noexcept
Move constructor.
~find_one_and_update_options()
Destroy this object.
find_one_and_update_options & write_concern(v1::write_concern v)
Set the "writeConcern" field.
find_one_and_update_options & collation(bsoncxx::v1::document::value v)
Set the "collation" field.
find_one_and_update_options & array_filters(bsoncxx::v1::array::value v)
Set the "arrayFilters" field.
Declares mongocxx::v1::find_one_and_update_options.
Provides macros to control the set of symbols exported in the ABI.
#define MONGOCXX_ABI_EXPORT_CDECL(...)
Equivalent to MONGOCXX_ABI_EXPORT with MONGOCXX_ABI_CDECL.
Definition export.hpp:52
The mongocxx v1 macro guard prelude header.
The top-level namespace within which all bsoncxx library entities are declared.
Declares entities whose ABI stability is guaranteed for documented symbols.
The top-level namespace within which all mongocxx library entities are declared.
Declares mongocxx::v1::return_document.
Declares bsoncxx::v1::array::value.
Declares bsoncxx::v1::array::view.
Declares bsoncxx::v1::document::value.
Declares bsoncxx::v1::document::view.
Declares mongocxx::v1::hint.
Declares mongocxx::v1::read_concern.
Provides std::optional-related polyfills for library API usage.
Declares bsoncxx::v1::types::value.
Declares non-owning, read-only entities representing a BSON type value.
Declares mongocxx::v1::write_concern.