21 #include <mongocxx/result/bulk_write-fwd.hpp>
23 #include <bsoncxx/document/value.hpp>
24 #include <bsoncxx/document/view.hpp>
25 #include <bsoncxx/types.hpp>
27 #include <mongocxx/config/prelude.hpp>
38 using id_map = std::map<std::size_t, bsoncxx::v_noabi::document::element>;
101 #include <mongocxx/config/postlude.hpp>
A read-only BSON document that owns its underlying buffer.
Definition: value.hpp:38
A read-only, non-owning view of a BSON document.
Definition: view.hpp:35
Class representing the result of a MongoDB bulk write operation.
Definition: bulk_write.hpp:36
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-fwd.hpp:19