MongoDB C++ Driver 4.4.0
Loading...
Searching...
No Matches
update_many_result.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_many_result-fwd.hpp> // IWYU pragma: export
18
19//
20
22
24
27
28#include <cstdint>
29#include <map>
30
31namespace mongocxx {
32namespace v1 {
33
44 private:
45 class impl;
46 void* _impl;
47
48 public:
55
63
71
76
81
86
91
96
101
104
111
116 friend MONGOCXX_ABI_EXPORT_CDECL(bool) operator==(update_many_result const& lhs, update_many_result const& rhs);
117
118 friend bool operator!=(update_many_result const& lhs, update_many_result const& rhs) {
119 return !(lhs == rhs);
120 }
121
123
124 class internal;
125
126 private:
127 /* explicit(false) */ update_many_result(void* impl);
128};
129
130} // namespace v1
131} // namespace mongocxx
132
134
A list of bulk write operations.
Definition bulk_write.hpp:53
update_many_result(update_many_result &&other) noexcept
Move constructor.
id_map upserted_ids() const
Return a map from the operation index to the upserted document ID.
~update_many_result()
Destroy this object.
v1::bulk_write::result::id_map id_map
A map from the operation index to the upserted document ID.
Definition update_many_result.hpp:103
v1::bulk_write::result result() const
Return the raw bulk write result.
std::int64_t matched_count() const
Return the number of documents that matched the filter.
std::int64_t modified_count() const
Return the number of documents that were modified.
std::int64_t upserted_count() const
Return the number of documents that were upserted.
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 postlude header.
The mongocxx v1 macro guard prelude header.
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_many_result.
Provides entities related to write operations.
Declares non-owning, read-only entities representing a BSON type value.