1106 return !(lhs == rhs);
A BSON document.
Definition value.hpp:44
A single "Delete Many" write operation.
Definition bulk_write.hpp:661
bsoncxx::v1::document::view filter() const
Return the current "filter" field.
delete_many & collation(bsoncxx::v1::document::value v)
Set the "collation" field.
~delete_many()
Destroy this object.
delete_many(delete_many &&other) noexcept
Move constructor.
delete_many & hint(v1::hint v)
Set the "hint" field.
A single "Delete One" write operation.
Definition bulk_write.hpp:572
bsoncxx::v1::document::view filter() const
Return the current "filter" field.
delete_one & hint(v1::hint v)
Set the "hint" field.
~delete_one()
Destroy this object.
delete_one & collation(bsoncxx::v1::document::value v)
Set the "collation" field.
delete_one(delete_one &&other) noexcept
Move constructor.
A single "Insert One" write operation.
Definition bulk_write.hpp:169
insert_one(bsoncxx::v1::document::value doc)
Initialize with doc.
Definition bulk_write.hpp:179
bsoncxx::v1::document::value const & document() const
Equivalent to this->value.
Definition bulk_write.hpp:184
bsoncxx::v1::document::value value
The document to be inserted.
Definition bulk_write.hpp:174
options & write_concern(v1::write_concern v)
Set the "writeConcern" field.
options & bypass_document_validation(bool v)
Set the "bypassDocumentValidation" field.
options & comment(bsoncxx::v1::types::value v)
Set the "comment" field.
options(options &&other) noexcept
Move constructor.
~options()
Destroy this object.
options & let(bsoncxx::v1::document::value v)
Set the "let" field.
options & read_concern(v1::read_concern v)
Set the "readConcern" field.
options & ordered(bool v)
Set the "ordered" field.
A single "Replace One" write operation.
Definition bulk_write.hpp:456
~replace_one()
Destroy this object.
bsoncxx::v1::document::view filter() const
Return the current "filter" field.
replace_one & collation(bsoncxx::v1::document::value v)
Set the "collation" field.
replace_one & sort(bsoncxx::v1::document::value v)
Set the "sort" field.
replace_one(replace_one &&other) noexcept
Move constructor.
replace_one & upsert(bool v)
Set the "upsert" field.
bsoncxx::v1::document::view replacement() const
Return the current "replacement" field.
replace_one & hint(v1::hint v)
Set the "hint" field.
The result of a write operation.
Definition bulk_write.hpp:1023
std::int64_t matched_count() const
Return the value of the "matchedCount" field.
std::map< std::int64_t, bsoncxx::v1::types::view > id_map
A map from the operation index to the upserted document ID.
Definition bulk_write.hpp:1090
std::int64_t upserted_count() const
Return the value of the "upsertedCount" field.
result(result &&other) noexcept
Move constructor.
id_map upserted_ids() const
Return the "upsertedIds" field as a a map from the operation index to the upserted document ID.
std::int64_t modified_count() const
Return the value of the "modifiedCount" field.
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.
~result()
Destroy this object.
A single write operation.
Definition bulk_write.hpp:746
single(single &&other) noexcept
Move constructor.
replace_one const & get_replace_one() const &
Return this write operation as an mongocxx::v1::bulk_write::replace_one.
update_one const & get_update_one() const &
Return this write operation as an mongocxx::v1::bulk_write::update_one.
v1::bulk_write::type type() const
Return the type of this write operation.
~single()
Destroy this object.
update_many const & get_update_many() const &
Return this write operation as an mongocxx::v1::bulk_write::update_many.
delete_one const & get_delete_one() const &
Return this write operation as an mongocxx::v1::bulk_write::delete_one.
delete_many const & get_delete_many() const &
Return this write operation as an mongocxx::v1::bulk_write::delete_many.
insert_one const & get_insert_one() const &
Return this write operation as an mongocxx::v1::bulk_write::insert_one.
A single "Update Many" write operation.
Definition bulk_write.hpp:334
bsoncxx::v1::document::view update() const
Return the current "update" field.
bsoncxx::v1::document::view filter() const
Return the current "filter" field.
update_many & upsert(bool v)
Set the "upsert" field.
update_many & array_filters(bsoncxx::v1::array::value v)
Set the "arrayFilters" field.
update_many & hint(v1::hint v)
Set the "hint" field.
~update_many()
Destroy this object.
update_many(update_many &&other) noexcept
Move constructor.
update_many & collation(bsoncxx::v1::document::value v)
Set the "collation" field.
A single "Update One" write operation.
Definition bulk_write.hpp:204
update_one(update_one &&other) noexcept
Move constructor.
update_one & array_filters(bsoncxx::v1::array::value v)
Set the "arrayFilters" field.
update_one & upsert(bool v)
Set the "upsert" field.
update_one & sort(bsoncxx::v1::document::value v)
Set the "sort" field.
update_one & collation(bsoncxx::v1::document::value v)
Set the "collation" field.
bsoncxx::v1::document::view update() const
Return the current "update" field.
~update_one()
Destroy this object.
update_one & hint(v1::hint v)
Set the "hint" field.
bsoncxx::v1::document::view filter() const
Return the current "filter" field.
type
Enumeration identifying the type of a write operation.
Definition bulk_write.hpp:62
@ k_delete_one
A "Delete One" operation.
Definition bulk_write.hpp:71
@ k_insert_one
An "Insert One" operation.
Definition bulk_write.hpp:66
@ k_update_many
An "Update Many" operation.
Definition bulk_write.hpp:86
@ k_update_one
An "Update One" operation.
Definition bulk_write.hpp:81
@ k_delete_many
A "Delete Many" operation.
Definition bulk_write.hpp:76
@ k_replace_one
A "Replace One" operation.
Definition bulk_write.hpp:91
bulk_write & append(single const &op)
Append a single write operation.
~bulk_write()
Destroy this object.
bsoncxx::v1::stdx::optional< result > execute()
Execute the appended operations.
bulk_write(bulk_write &&other) noexcept
Move constructor.
bool empty() const
Return true when there are no appended operations.
A MongoDB aggregation pipeline.
Definition pipeline.hpp:41
Provides macros to control the set of symbols exported in the ABI.
#define MONGOCXX_ABI_EXPORT_CDECL(...)
Equivalent to MONGOCXX_ABI_EXPORT with MONGOCXX_ABI_CDECL.
Definition export.hpp:52
The mongocxx v1 macro guard postlude header.
The mongocxx v1 macro guard prelude header.
The top-level namespace within which all bsoncxx library entities are declared.
Declares entities representing options to use with various commands.
Declares entities representing the result of various commands.
Declares entities whose ABI stability is guaranteed for documented symbols.
The top-level namespace within which all mongocxx library entities are declared.
Provides bsoncxx::v1::array::value.
Declares bsoncxx::v1::array::view.
Declares entities related to bulk write operations.
Provides bsoncxx::v1::document::value.
Declares bsoncxx::v1::document::view.
Declares mongocxx::v1::hint.
Declares mongocxx::v1::pipeline.
Declares mongocxx::v1::read_concern.
Provides std::optional-related polyfills for library API usage.
Declares bsoncxx::v1::types::value.
Provides non-owning, read-only entities representing a BSON type value.
Declares mongocxx::v1::write_concern.