#include <mongocxx/v1/bulk_write.hpp>
The result of a write operation.
Supported fields include:
Public Types | |
| using | id_map = std::map<std::int64_t, bsoncxx::v1::types::view> |
| A map from the operation index to the upserted document ID. | |
Public Member Functions | |
| result (result &&other) noexcept | |
| Move constructor. | |
| result (result const &other) | |
| Copy construction. | |
| ~result () | |
| Destroy this object. | |
| std::int64_t | deleted_count () const |
| Return the value of the "deletedCount" field. | |
| std::int64_t | inserted_count () const |
| Return the value of the "insertedCount" field. | |
| std::int64_t | matched_count () const |
| Return the value of the "matchedCount" field. | |
| std::int64_t | modified_count () const |
| Return the value of the "modifiedCount" field. | |
| result & | operator= (result &&other) noexcept |
| Move assignment. | |
| result & | operator= (result const &other) |
| Copy assignment. | |
| std::int64_t | upserted_count () const |
| Return the value of the "upsertedCount" field. | |
| id_map | upserted_ids () const |
| Return the "upsertedIds" field as a a map from the operation index to the upserted document ID. | |
Friends | |
| bool | operator== (result const &lhs, result const &rhs) |
| Compare equal when all supported fields compare equal. | |
| bool | operator!= (result const &lhs, result const &rhs) |
| Compare equal when all supported fields compare equal. | |
| using mongocxx::v1::bulk_write::result::id_map = std::map<std::int64_t, bsoncxx::v1::types::view> |
A map from the operation index to the upserted document ID.
| mongocxx::v1::bulk_write::result::~result | ( | ) |
Destroy this object.
|
noexcept |
Move constructor.
| mongocxx::v1::bulk_write::result::result | ( | result const & | other | ) |
Copy construction.
| std::int64_t mongocxx::v1::bulk_write::result::deleted_count | ( | ) | const |
Return the value of the "deletedCount" field.
| std::int64_t mongocxx::v1::bulk_write::result::inserted_count | ( | ) | const |
Return the value of the "insertedCount" field.
| std::int64_t mongocxx::v1::bulk_write::result::matched_count | ( | ) | const |
Return the value of the "matchedCount" field.
| std::int64_t mongocxx::v1::bulk_write::result::modified_count | ( | ) | const |
Return the value of the "modifiedCount" field.
Move assignment.
| std::int64_t mongocxx::v1::bulk_write::result::upserted_count | ( | ) | const |
Return the value of the "upsertedCount" field.
| id_map mongocxx::v1::bulk_write::result::upserted_ids | ( | ) | const |
Return the "upsertedIds" field as a a map from the operation index to the upserted document ID.
Compare equal when all supported fields compare equal.
Compare equal when all supported fields compare equal.