MongoDB C++ Driver 4.1.0
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
bulk_write.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
19
24
26
27namespace mongocxx {
28namespace v_noabi {
29
46 public:
51
56
61
67 MONGOCXX_ABI_EXPORT_CDECL(bool) empty() const noexcept;
68
92
104
105 private:
106 friend ::mongocxx::v_noabi::collection;
107
108 class impl;
109
110 bulk_write(collection const& coll, options::bulk_write const& options, client_session const* session = nullptr);
111
112 bool _created_from_collection;
113 std::unique_ptr<impl> _impl;
114};
115
116} // namespace v_noabi
117} // namespace mongocxx
118
119#include <mongocxx/config/postlude.hpp>
120
Declares mongocxx::v_noabi::bulk_write.
bulk_write(bulk_write &&) noexcept
Move constructs a bulk write operation.
bool empty() const noexcept
Checks if a bulk write operation is empty.
bsoncxx::v_noabi::stdx::optional< result::bulk_write > execute() const
Executes a bulk write.
bulk_write(bulk_write &&) noexcept
Move constructs a bulk write operation.
bulk_write & append(model::write const &operation)
Appends a single write to the bulk write operation. The write operation's contents are copied into th...
Supports MongoDB client session operations.
Definition client_session.hpp:50
A MongoDB collection.
Definition collection.hpp:87
Provides mongocxx::v_noabi::client_session.
Declares mongocxx::v_noabi::collection.
#define MONGOCXX_ABI_EXPORT_CDECL(...)
Equivalent to MONGOCXX_ABI_EXPORT with MONGOCXX_ABI_CDECL.
Definition export.hpp:52
The mongocxx v_noabi macro guard prelude header.
The top-level namespace within which all bsoncxx library entities are declared.
Declares entities representing bulk write operations.
Declares entities representing options to use with various commands.
Declares entities representing the result of various commands.
Declares entities whose ABI stability is NOT guaranteed.
The top-level namespace within which all mongocxx library entities are declared.
Provides mongocxx::v_noabi::options::bulk_write.
Provides mongocxx::v_noabi::result::bulk_write.
Provides mongocxx::v_noabi::model::write.