21 #include <bsoncxx/document/value.hpp>
22 #include <bsoncxx/document/view.hpp>
23 #include <bsoncxx/types.hpp>
25 #include <mongocxx/config/prelude.hpp>
28 inline namespace v_noabi {
36 using id_map = std::map<std::size_t, bsoncxx::document::element>;
39 explicit bulk_write(bsoncxx::document::value raw_response);
87 MONGOCXX_PRIVATE bsoncxx::document::view view()
const;
89 bsoncxx::document::value _response;
99 #include <mongocxx/config/postlude.hpp>
Class representing the result of a MongoDB bulk write operation.
Definition: bulk_write.hpp:34
std::int32_t modified_count() const
Gets the number of documents that were modified during this operation.
std::int32_t upserted_count() const
Gets the number of documents that were upserted during this operation.
std::int32_t inserted_count() const
Gets the number of documents that were inserted during this operation.
std::int32_t matched_count() const
Gets the number of documents that were matched during this operation.
std::int32_t deleted_count() const
Gets the number of documents that were deleted during this operation.
id_map upserted_ids() const
Gets the ids of the upserted documents.
The top-level namespace for mongocxx library entities.
Definition: bulk_write.hpp:24