20#include <bsoncxx/array/value.hpp>
21#include <bsoncxx/types.hpp>
22#include <mongocxx/result/bulk_write.hpp>
24#include <mongocxx/config/prelude.hpp>
27MONGOCXX_INLINE_NAMESPACE_BEGIN
30class insert_many_builder;
40 using id_map = std::map<std::size_t, bsoncxx::document::element>;
82MONGOCXX_INLINE_NAMESPACE_END
85#include <mongocxx/config/postlude.hpp>
A read-only BSON array that owns its underlying buffer.
Definition value.hpp:34
A read-only, non-owning view of a BSON document.
Definition view.hpp:33
Class representing server side document groupings within a MongoDB database.
Definition collection.hpp:74
Class to build an insert_many bulk write operation.
Definition insert_many_builder.hpp:34
Class representing the result of a MongoDB bulk write operation.
Definition bulk_write.hpp:34
Class representing the result of a MongoDB insert many operation (executed as a bulk write).
Definition insert_many.hpp:38
id_map inserted_ids()
Gets the _ids of the inserted documents.
std::int32_t inserted_count() const
Gets the number of documents that were inserted during this operation.
const result::bulk_write & result() const
Returns the bulk write result for this insert many operation.