MongoDB C++ Driver
mongocxx-3.6.2
|
20 #include <bsoncxx/array/value.hpp>
21 #include <bsoncxx/types.hpp>
22 #include <mongocxx/result/bulk_write.hpp>
24 #include <mongocxx/config/prelude.hpp>
27 MONGOCXX_INLINE_NAMESPACE_BEGIN
39 using id_map = std::map<std::size_t, bsoncxx::document::element>;
76 MONGOCXX_PRIVATE
void _buildInsertedIds();
92 MONGOCXX_INLINE_NAMESPACE_END
95 #include <mongocxx/config/postlude.hpp>
Top level namespace for the MongoDB C++ driver.
Definition: bulk_write.hpp:24
Class representing the result of a MongoDB bulk write operation.
Definition: bulk_write.hpp:34
A read-only BSON array that owns its underlying buffer.
Definition: value.hpp:34
std::int32_t inserted_count() const
Gets the number of documents that were inserted during this operation.
Class representing the result of a MongoDB insert many operation (executed as a bulk write).
Definition: insert_many.hpp:37
const result::bulk_write & result() const
Returns the bulk write result for this insert many operation.
id_map inserted_ids() const
Gets the _ids of the inserted documents.
Class representing server side document groupings within a MongoDB database.
Definition: collection.hpp:81