20#include "mongo/bson/bsonobj.h"
21#include "mongo/client/bulk_update_builder.h"
22#include "mongo/client/write_result.h"
107 const std::string _ns;
110 size_t _currentIndex;
111 std::vector<WriteOperation*> _write_operations;
C++ representation of a "BSON" object – that is, an extended JSON-style object in a binary representa...
Definition bsonobj.h:78
Class for constructing and executing bulk operations against MongoDB via a fluent API.
Definition bulk_operation_builder.h:54
void insert(const BSONObj &doc)
Enqueues an insert write operation to be executed as part of the bulk operation.
void execute(const WriteConcern *writeConcern, WriteResult *writeResult)
Executes the bulk operation.
BulkUpdateBuilder find(const BSONObj &selector)
Supplies a filter to select a subset of documents on which to apply an operation.
BulkOperationBuilder(DBClientBase *const client, const std::string &ns, bool ordered)
BulkOperationBuilder constructor.
Class for constructing bulk write operations which have an applied filter.
Definition bulk_update_builder.h:31
Class for constructing bulk write operations which have an applied filter and are to be performed as ...
Definition bulk_upsert_builder.h:31
abstract class that implements the core db operations
Definition dbclientinterface.h:1330
Class to encapsulate client side "Write Concern" concept.
Definition write_concern.h:35
Represents a single server side write operation and encapsulates the process for encoding the operati...
Definition write_operation.h:31
Class representing the result of a write operations sent to the server.
Definition write_result.h:33
the main MongoDB namespace
Definition bulk_operation_builder.h:24