MongoDB C++ Driver 4.2.0
Loading...
Searching...
No Matches
update_one_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/update_one_options-fwd.hpp> // IWYU pragma: export
18
19//
20
22
29
32
34
36
37namespace mongocxx {
38namespace v1 {
39
60 private:
61 class impl;
62 void* _impl;
63
64 public:
71
79
87
92
97
105
110
115
120
124 MONGOCXX_ABI_EXPORT_CDECL(bsoncxx::v1::stdx::optional<bsoncxx::v1::document::view>) collation() const;
125
130
134 MONGOCXX_ABI_EXPORT_CDECL(bsoncxx::v1::stdx::optional<v1::hint>) hint() const;
135
140
144 MONGOCXX_ABI_EXPORT_CDECL(bsoncxx::v1::stdx::optional<bsoncxx::v1::document::view> const) let() const;
145
150
154 MONGOCXX_ABI_EXPORT_CDECL(bsoncxx::v1::stdx::optional<bsoncxx::v1::document::view>) sort() const;
155
160
164 MONGOCXX_ABI_EXPORT_CDECL(bsoncxx::v1::stdx::optional<bsoncxx::v1::types::view> const) comment() const;
165
170
174 MONGOCXX_ABI_EXPORT_CDECL(bsoncxx::v1::stdx::optional<bool>) upsert() const;
175
180
185
190
194 MONGOCXX_ABI_EXPORT_CDECL(bsoncxx::v1::stdx::optional<bsoncxx::v1::array::view>) array_filters() const;
195
196 class internal;
197};
198
199} // namespace v1
200} // namespace mongocxx
201
202#include <mongocxx/v1/detail/postlude.hpp>
203
update_one_options & upsert(bool upsert)
Set the "upsert" field.
update_one_options & collation(bsoncxx::v1::document::value collation)
Set the "collation" field.
update_one_options & write_concern(v1::write_concern wc)
Set the "writeConcern" field.
update_one_options & let(bsoncxx::v1::document::value let)
Set the "let" field.
update_one_options & comment(bsoncxx::v1::types::value comment)
Set the "comment" field.
update_one_options & bypass_document_validation(bool bypass_document_validation)
Set the "bypassDocumentValidation" field.
update_one_options & array_filters(bsoncxx::v1::array::value array_filters)
Set the "arrayFilters" field.
update_one_options & hint(v1::hint index_hint)
Set the "hint" field.
update_one_options(update_one_options &&other) noexcept
Move constructor.
~update_one_options()
Destroy this object.
update_one_options & sort(bsoncxx::v1::document::value sort)
Set the "sort" field.
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::update_one_options.
Declares bsoncxx::v1::array::value.
Declares bsoncxx::v1::array::view.
Declares bsoncxx::v1::document::value.
Declares bsoncxx::v1::document::view.
Declares mongocxx::v1::hint.
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.