17#include <bsoncxx/stdx/optional.hpp>
18#include <bsoncxx/builder/basic/array.hpp>
19#include <mongocxx/bulk_write.hpp>
20#include <mongocxx/options/insert.hpp>
21#include <mongocxx/result/insert_many.hpp>
22#include <mongocxx/stdx.hpp>
24#include <mongocxx/config/prelude.hpp>
27MONGOCXX_INLINE_NAMESPACE_BEGIN
67MONGOCXX_INLINE_NAMESPACE_END
70#include <mongocxx/config/postlude.hpp>
A traditional builder-style interface for constructing a BSON array.
Definition array.hpp:35
A read-only, non-owning view of a BSON document.
Definition view.hpp:33
Class representing a batch of write operations that can be sent to the server as a group.
Definition bulk_write.hpp:41
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
void operator()(const bsoncxx::document::view &doc)
Appends a single insert to insert_many bulk write operation.
insert_many_builder(const options::insert &options)
Initializes a new builder for an insert_many bulk write operation.
stdx::optional< result::insert_many > insert(collection *col) const
Executes the underlying insert_many bulk operation.
Class representing the optional arguments to a MongoDB insert operation.
Definition insert.hpp:31
Top level namespace for the MongoDB C++ driver.
Definition bulk_write.hpp:22