20 #include "mongo/client/export_macros.h"
21 #include "mongo/util/net/operation.h"
53 bool hasErrors()
const;
61 bool hasWriteErrors()
const;
69 bool hasWriteConcernErrors()
const;
78 bool hasModifiedCount()
const;
90 int nInserted()
const;
97 int nUpserted()
const;
104 int nMatched()
const;
111 int nModified()
const;
118 int nRemoved()
const;
125 const std::vector<BSONObj>& upserted()
const;
135 const std::vector<BSONObj>& writeErrors()
const;
140 const std::vector<BSONObj>& writeConcernErrors()
const;
143 void _mergeCommandResult(
const std::vector<WriteOperation*>& ops,
const BSONObj& result);
144 void _mergeGleResult(
const std::vector<WriteOperation*>& ops,
const BSONObj& result);
146 void _check(
bool throwSoftErrors);
147 void _setModified(
const BSONObj& result);
148 int _getIntOrDefault(
const BSONObj& obj,
const StringData& field,
const int defaultValue = 0);
150 int _createUpserts(
const BSONElement& upsert,
const std::vector<WriteOperation*>& ops);
151 void _createUpsert(
const BSONElement& upsert,
const std::vector<WriteOperation*>& ops);
152 void _createWriteError(
const BSONObj& error,
const std::vector<WriteOperation*>& ops);
153 void _createWriteConcernError(
const BSONObj& error);
161 std::vector<BSONObj> _upserted;
162 std::vector<BSONObj> _writeErrors;
163 std::vector<BSONObj> _writeConcernErrors;
165 bool _hasModifiedCount;
166 bool _requiresDetailedInsertResults;
the main MongoDB namespace
Definition: bulk_operation_builder.h:24
Class for constructing and executing bulk operations against MongoDB via a fluent API...
Definition: bulk_operation_builder.h:54
Class representing the result of a write operations sent to the server.
Definition: write_result.h:33
Definition: wire_protocol_writer.h:24
BSONElement represents an "element" in a BSONObj.
Definition: bsonelement.h:55
Definition: command_writer.h:24
C++ representation of a "BSON" object – that is, an extended JSON-style object in a binary represent...
Definition: bsonobj.h:78