MongoDB C++ Driver 4.2.0
Loading...
Searching...
No Matches
write_type.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/write_type-fwd.hpp> // IWYU pragma: export
18
19//
20
21#include <mongocxx/v1/bulk_write.hpp> // IWYU pragma: export
22
24
25namespace mongocxx {
26namespace v_noabi {
27
50
55 return static_cast<v_noabi::write_type>(v);
56}
57
62 return static_cast<v1::bulk_write::type>(v);
63}
64
65} // namespace v_noabi
66} // namespace mongocxx
67
69
type
Enumeration identifying the type of a write operation.
Definition bulk_write.hpp:64
The mongocxx v_noabi macro guard postlude header.
The mongocxx v_noabi macro guard prelude header.
Declares entities whose ABI stability is NOT guaranteed.
write_type
Used by mongocxx::v_noabi::model::write.
Definition write_type.hpp:31
@ k_delete_one
Deleting a single document from a collection.
Definition write_type.hpp:36
@ k_insert_one
Inserting a single document into a collection.
Definition write_type.hpp:33
@ k_update_many
Update one or more documents in a collection.
Definition write_type.hpp:45
@ k_update_one
Update a single document in a collection.
Definition write_type.hpp:42
@ k_delete_many
Delete one or more documents from a collection.
Definition write_type.hpp:39
@ k_replace_one
Replace a single document in a collection with a new one.
Definition write_type.hpp:48
v1::bulk_write to_v1(v_noabi::bulk_write v)
Convert to the mongocxx::v1 equivalent of v.
Definition bulk_write.hpp:162
v_noabi::bulk_write from_v1(v1::bulk_write v)
Convert to the mongocxx::v_noabi equivalent of v.
Definition bulk_write.hpp:155
The top-level namespace within which all mongocxx library entities are declared.
Provides entities related to write operations.
Declares mongocxx::v_noabi::write_type.