427BSONCXX_PRIVATE_WARNINGS_PUSH();
428BSONCXX_PRIVATE_WARNINGS_DISABLE(MSVC(4251));
429BSONCXX_PRIVATE_WARNINGS_DISABLE(MSVC(4275));
440 std::shared_ptr<impl> _impl;
480BSONCXX_PRIVATE_WARNINGS_POP();
482BSONCXX_PRIVATE_WARNINGS_PUSH();
483BSONCXX_PRIVATE_WARNINGS_DISABLE(Clang(
"-Wunused-private-field"));
531BSONCXX_PRIVATE_WARNINGS_POP();
983#include <mongocxx/v1/detail/postlude.hpp>
A non-owning, read-only BSON array.
Definition view.hpp:47
A non-owning, read-only BSON document.
Definition view.hpp:52
A polyfill for std::optional<T>.
Definition optional.hpp:799
Options for a "Delete Many" operation in a client bulk write.
Definition client_bulk_write.hpp:913
delete_many_options(delete_many_options &&other) noexcept
Move constructor.
Options for a "Delete One" operation in a client bulk write.
Definition client_bulk_write.hpp:839
delete_one_options(delete_one_options &&other) noexcept
Move constructor.
A client bulk write error.
Definition client_bulk_write.hpp:437
Options for an "Insert One" operation in a client bulk write.
Definition client_bulk_write.hpp:488
Options for a client bulk write operation.
Definition client_bulk_write.hpp:215
options(options &&other) noexcept
Move constructor.
Options for a "Replace One" operation in a client bulk write.
Definition client_bulk_write.hpp:745
replace_one_options(replace_one_options &&other) noexcept
Move constructor.
The result of a client bulk write operation.
Definition client_bulk_write.hpp:336
result(result &&other) noexcept
Move constructor.
Options for an "Update Many" operation in a client bulk write.
Definition client_bulk_write.hpp:649
update_many_options(update_many_options &&other) noexcept
Move constructor.
Options for an "Update One" operation in a client bulk write.
Definition client_bulk_write.hpp:543
update_one_options(update_one_options &&other) noexcept
Move constructor.
client_bulk_write(client_bulk_write &&other) noexcept
Move constructor.
Options for a "Delete Many" operation in a client bulk write.
Definition client_bulk_write.hpp:913
~delete_many_options()
Destroy this object.
delete_many_options & hint(v1::hint v)
Set the "hint" field.
delete_many_options & collation(bsoncxx::v1::document::value v)
Set the "collation" field.
delete_many_options(delete_many_options &&other) noexcept
Move constructor.
Options for a "Delete One" operation in a client bulk write.
Definition client_bulk_write.hpp:839
~delete_one_options()
Destroy this object.
delete_one_options & collation(bsoncxx::v1::document::value v)
Set the "collation" field.
delete_one_options & hint(v1::hint v)
Set the "hint" field.
delete_one_options(delete_one_options &&other) noexcept
Move constructor.
bsoncxx::v1::array::view write_concern_errors() const
An array of write concern errors.
bsoncxx::v1::document::view error_reply() const
The server reply associated with the error, if any.
bsoncxx::v1::document::view write_errors() const
A document mapping model index to the corresponding write error.
bsoncxx::v1::stdx::optional< result > partial_result() const
The partial result obtained before the error occurred, if any.
Options for an "Insert One" operation in a client bulk write.
Definition client_bulk_write.hpp:488
~insert_one_options()
Destroy this object.
insert_one_options(insert_one_options &&other) noexcept
Move constructor.
Options for a client bulk write operation.
Definition client_bulk_write.hpp:215
~options()
Destroy this object.
options & verbose_results(bool v)
Set the "verboseResults" field.
options & bypass_document_validation(bool v)
Set the "bypassDocumentValidation" field.
options & ordered(bool v)
Set the "ordered" field.
options & write_concern(v1::write_concern v)
Set the "writeConcern" field.
options & let(bsoncxx::v1::document::value v)
Set the "let" field.
options & comment(bsoncxx::v1::types::value v)
Set the "comment" field.
options(options &&other) noexcept
Move constructor.
Options for a "Replace One" operation in a client bulk write.
Definition client_bulk_write.hpp:745
replace_one_options(replace_one_options &&other) noexcept
Move constructor.
replace_one_options & hint(v1::hint v)
Set the "hint" field.
replace_one_options & collation(bsoncxx::v1::document::value v)
Set the "collation" field.
replace_one_options & upsert(bool v)
Set the "upsert" field.
replace_one_options & sort(bsoncxx::v1::document::value v)
Set the "sort" field.
~replace_one_options()
Destroy this object.
The result of a client bulk write operation.
Definition client_bulk_write.hpp:336
std::int64_t deleted_count() const
Return the number of documents deleted.
bsoncxx::v1::stdx::optional< bsoncxx::v1::document::view > update_results() const
Return the per-operation update results as a document mapping model index to the update result.
~result()
Destroy this object.
std::int64_t matched_count() const
Return the number of documents matched by update or replace operations.
std::int64_t modified_count() const
Return the number of documents modified by update or replace operations.
bsoncxx::v1::stdx::optional< bsoncxx::v1::document::view > delete_results() const
Return the per-operation delete results as a document mapping model index to the delete result.
bsoncxx::v1::stdx::optional< bsoncxx::v1::document::view > insert_results() const
Return the per-operation insert results as a document mapping model index to the insert result.
std::int64_t upserted_count() const
Return the number of documents upserted.
std::int64_t inserted_count() const
Return the number of documents inserted.
result(result &&other) noexcept
Move constructor.
Options for an "Update Many" operation in a client bulk write.
Definition client_bulk_write.hpp:649
~update_many_options()
Destroy this object.
update_many_options & upsert(bool v)
Set the "upsert" field.
update_many_options & array_filters(bsoncxx::v1::array::value v)
Set the "arrayFilters" field.
update_many_options & hint(v1::hint v)
Set the "hint" field.
update_many_options(update_many_options &&other) noexcept
Move constructor.
update_many_options & collation(bsoncxx::v1::document::value v)
Set the "collation" field.
Options for an "Update One" operation in a client bulk write.
Definition client_bulk_write.hpp:543
~update_one_options()
Destroy this object.
update_one_options(update_one_options &&other) noexcept
Move constructor.
update_one_options & hint(v1::hint v)
Set the "hint" field.
update_one_options & collation(bsoncxx::v1::document::value v)
Set the "collation" field.
update_one_options & array_filters(bsoncxx::v1::array::value v)
Set the "arrayFilters" field.
update_one_options & sort(bsoncxx::v1::document::value v)
Set the "sort" field.
update_one_options & upsert(bool v)
Set the "upsert" field.
client_bulk_write(client_bulk_write &&other) noexcept
Move constructor.
client_bulk_write & append(bsoncxx::v1::stdx::string_view ns, bsoncxx::v1::document::view document, insert_one_options const &opts)
Append an "Insert One" operation targeting the given namespace.
bsoncxx::v1::stdx::optional< result > execute(options const &opts)
Execute the appended operations.
~client_bulk_write()
Destroy this object.
Base class for all exceptions thrown by mongocxx::v1.
Definition exception.hpp:89
A MongoDB aggregation pipeline.
Definition pipeline.hpp:41
Provides macros to control the set of symbols exported in the ABI.
#define MONGOCXX_ABI_CDECL
Expands to __cdecl when built with MSVC on Windows.
Definition export.hpp:49
#define MONGOCXX_ABI_NO_EXPORT
Excludes the associated entity from being part of the ABI.
Definition export.hpp:20
#define MONGOCXX_ABI_EXPORT_CDECL(...)
Equivalent to MONGOCXX_ABI_EXPORT with MONGOCXX_ABI_CDECL.
Definition export.hpp:52
#define MONGOCXX_ABI_EXPORT
Exports the associated entity as part of the ABI.
Definition export.hpp:15
The mongocxx v1 macro guard prelude header.
Provides mongocxx error-handling utilities.
The top-level namespace within which all bsoncxx library entities are declared.
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 mongocxx::v1::client_bulk_write.
Provides bsoncxx::v1::document::value.
Declares bsoncxx::v1::document::view.
Declares mongocxx::v1::hint.
Declares mongocxx::v1::pipeline.
Provides std::optional-related polyfills for library API usage.
Provides std::string_view-related polyfills for library API usage.
Provides bsoncxx::v1::types::value.
Declares mongocxx::v1::write_concern.