MongoDB C++ Driver
mongocxx-3.6.2
|
19 #include <bsoncxx/stdx/optional.hpp>
20 #include <mongocxx/model/delete_many.hpp>
21 #include <mongocxx/model/delete_one.hpp>
22 #include <mongocxx/model/insert_one.hpp>
23 #include <mongocxx/model/replace_one.hpp>
24 #include <mongocxx/model/update_many.hpp>
25 #include <mongocxx/model/update_one.hpp>
26 #include <mongocxx/write_type.hpp>
28 #include <mongocxx/config/prelude.hpp>
31 MONGOCXX_INLINE_NAMESPACE_BEGIN
136 MONGOCXX_PRIVATE
void destroy_member() noexcept;
151 MONGOCXX_INLINE_NAMESPACE_END
154 #include <mongocxx/config/postlude.hpp>
Top level namespace for the MongoDB C++ driver.
Definition: bulk_write.hpp:24
const delete_many & get_delete_many() const
Accesses the write as a model::delete_many.
const update_one & get_update_one() const
Accesses the write as an model::update_one.
const insert_one & get_insert_one() const
Accesses the write as a model::insert_one.
Class representing a MongoDB delete operation that removes multiple documents.
Definition: delete_many.hpp:31
write(delete_many value)
Constructs a write from a model::delete_many.
write(update_one value)
Constructs a write from a model::update_one.
const update_many & get_update_many() const
Accesses the write as an model::update_many.
write(write &&rhs) noexcept
Move constructs a write.
Models a single write operation within a mongocxx::bulk_write.
Definition: write.hpp:37
const replace_one & get_replace_one() const
Accesses the write as a model::replace_one.
write(insert_one value)
Constructs a write from a model::insert_one.
write_type type() const
Returns the current type of this write.
write(update_many value)
Constructs a write from a model::update_many.
Class representing a MongoDB insert operation that creates a single document.
Definition: insert_one.hpp:28
write(delete_one value)
Constructs a write from a model::delete_one.
const delete_one & get_delete_one() const
Accesses the write as a model::delete_one.
~write()
Destroys a write.
write(replace_one value)
Constructs a write from a model::replace_one.
Class representing a MongoDB delete operation that removes a single document.
Definition: delete_one.hpp:31
Class representing a MongoDB update operation that modifies multiple documents.
Definition: update_many.hpp:34
Class representing a MongoDB update operation that replaces a single document.
Definition: replace_one.hpp:31
write_type
Enum representing the the types of write operations that can be performed.
Definition: write_type.hpp:25
write & operator=(write &&rhs) noexcept
Move assigns a write.
Class representing a MongoDB update operation that modifies a single document.
Definition: update_one.hpp:34