21#include <bsoncxx/document/value.hpp>
22#include <bsoncxx/document/view.hpp>
23#include <bsoncxx/types.hpp>
25#include <mongocxx/config/prelude.hpp>
28MONGOCXX_INLINE_NAMESPACE_BEGIN
36 using id_map = std::map<std::size_t, bsoncxx::document::element>;
93MONGOCXX_INLINE_NAMESPACE_END
96#include <mongocxx/config/postlude.hpp>
A read-only BSON document that owns its underlying buffer.
Definition value.hpp:33
A read-only, non-owning view of a BSON document.
Definition view.hpp:33
Class representing the result of a MongoDB bulk write operation.
Definition bulk_write.hpp:34
std::int32_t inserted_count() const
Gets the number of documents that were inserted during this operation.
std::int32_t deleted_count() const
Gets the number of documents that were deleted during this operation.
std::int32_t modified_count() const
Gets the number of documents that were modified during this operation.
bulk_write(bsoncxx::document::value raw_response)
id_map upserted_ids() const
Gets the ids of the upserted documents.
std::int32_t upserted_count() const
Gets the number of documents that were upserted during this operation.
std::int32_t matched_count() const
Gets the number of documents that were matched during this operation.