Loading...
Searching...
No Matches
client_bulk_write.hpp
Go to the documentation of this file.
// Copyright 2009-present MongoDB, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
#pragma once
#include <mongocxx/v1/client_bulk_write-fwd.hpp> // IWYU pragma: export
//
#include <mongocxx/v1/detail/prelude.hpp>
#include <bsoncxx/v1/array/view-fwd.hpp>
#include <bsoncxx/v1/document/view-fwd.hpp>
#include <mongocxx/v1/hint-fwd.hpp>
#include <mongocxx/v1/pipeline-fwd.hpp>
#include <mongocxx/v1/write_concern-fwd.hpp>
#include <bsoncxx/v1/array/value.hpp>
#include <bsoncxx/v1/detail/macros.hpp>
#include <bsoncxx/v1/document/value.hpp>
#include <bsoncxx/v1/stdx/optional.hpp>
#include <bsoncxx/v1/stdx/string_view.hpp>
#include <bsoncxx/v1/types/value.hpp>
#include <mongocxx/v1/config/export.hpp>
#include <mongocxx/v1/exception.hpp>
#include <cstdint>
#include <memory>
namespace mongocxx {
namespace v1 {
class client_bulk_write {
private:
class impl;
void* _impl;
public:
class options;
class result;
class MONGOCXX_ABI_EXPORT exception;
class insert_one_options;
class update_one_options;
class update_many_options;
class replace_one_options;
class delete_one_options;
class delete_many_options;
MONGOCXX_ABI_EXPORT_CDECL() ~client_bulk_write();
MONGOCXX_ABI_EXPORT_CDECL() client_bulk_write(client_bulk_write&& other) noexcept;
MONGOCXX_ABI_EXPORT_CDECL(client_bulk_write&) operator=(client_bulk_write&& other) noexcept;
client_bulk_write(client_bulk_write const& other) = delete;
client_bulk_write& operator=(client_bulk_write const& other) = delete;
MONGOCXX_ABI_EXPORT_CDECL(client_bulk_write&)
append(bsoncxx::v1::stdx::string_view ns, bsoncxx::v1::document::view document, insert_one_options const& opts);
MONGOCXX_ABI_EXPORT_CDECL(client_bulk_write&) append(
bsoncxx::v1::stdx::string_view ns,
bsoncxx::v1::document::view filter,
bsoncxx::v1::document::view update,
update_one_options const& opts);
MONGOCXX_ABI_EXPORT_CDECL(client_bulk_write&) append(
bsoncxx::v1::stdx::string_view ns,
bsoncxx::v1::document::view filter,
v1::pipeline const& update,
update_one_options const& opts);
MONGOCXX_ABI_EXPORT_CDECL(client_bulk_write&) append(
bsoncxx::v1::stdx::string_view ns,
bsoncxx::v1::document::view filter,
bsoncxx::v1::document::view update,
update_many_options const& opts);
MONGOCXX_ABI_EXPORT_CDECL(client_bulk_write&) append(
bsoncxx::v1::stdx::string_view ns,
bsoncxx::v1::document::view filter,
v1::pipeline const& update,
update_many_options const& opts);
MONGOCXX_ABI_EXPORT_CDECL(client_bulk_write&) append(
bsoncxx::v1::stdx::string_view ns,
bsoncxx::v1::document::view filter,
bsoncxx::v1::document::view replacement,
replace_one_options const& opts);
MONGOCXX_ABI_EXPORT_CDECL(client_bulk_write&)
append(bsoncxx::v1::stdx::string_view ns, bsoncxx::v1::document::view filter, delete_one_options const& opts);
MONGOCXX_ABI_EXPORT_CDECL(client_bulk_write&)
append(bsoncxx::v1::stdx::string_view ns, bsoncxx::v1::document::view filter, delete_many_options const& opts);
MONGOCXX_ABI_EXPORT_CDECL(bsoncxx::v1::stdx::optional<result>) execute(options const& opts);
class internal;
private:
/* explicit(false) */ client_bulk_write(void* bulk);
};
class client_bulk_write::options {
private:
class impl;
void* _impl;
public:
MONGOCXX_ABI_EXPORT_CDECL() ~options();
MONGOCXX_ABI_EXPORT_CDECL() options(options&& other) noexcept;
MONGOCXX_ABI_EXPORT_CDECL(options&) operator=(options&& other) noexcept;
MONGOCXX_ABI_EXPORT_CDECL() options(options const& other);
MONGOCXX_ABI_EXPORT_CDECL(options&) operator=(options const& other);
MONGOCXX_ABI_EXPORT_CDECL() options();
MONGOCXX_ABI_EXPORT_CDECL(options&) bypass_document_validation(bool v);
MONGOCXX_ABI_EXPORT_CDECL(bsoncxx::v1::stdx::optional<bool>) bypass_document_validation() const;
MONGOCXX_ABI_EXPORT_CDECL(options&) comment(bsoncxx::v1::types::value v);
MONGOCXX_ABI_EXPORT_CDECL(bsoncxx::v1::stdx::optional<bsoncxx::v1::types::view>) comment() const;
MONGOCXX_ABI_EXPORT_CDECL(options&) let(bsoncxx::v1::document::value v);
MONGOCXX_ABI_EXPORT_CDECL(bsoncxx::v1::stdx::optional<bsoncxx::v1::document::view>) let() const;
MONGOCXX_ABI_EXPORT_CDECL(options&) ordered(bool v);
MONGOCXX_ABI_EXPORT_CDECL(bsoncxx::v1::stdx::optional<bool>) ordered() const;
MONGOCXX_ABI_EXPORT_CDECL(options&) verbose_results(bool v);
MONGOCXX_ABI_EXPORT_CDECL(bsoncxx::v1::stdx::optional<bool>) verbose_results() const;
MONGOCXX_ABI_EXPORT_CDECL(options&) write_concern(v1::write_concern v);
MONGOCXX_ABI_EXPORT_CDECL(bsoncxx::v1::stdx::optional<v1::write_concern>) write_concern() const;
class internal;
};
class client_bulk_write::result {
private:
class impl;
void* _impl;
public:
MONGOCXX_ABI_EXPORT_CDECL() ~result();
MONGOCXX_ABI_EXPORT_CDECL() result(result&& other) noexcept;
MONGOCXX_ABI_EXPORT_CDECL(result&) operator=(result&& other) noexcept;
MONGOCXX_ABI_EXPORT_CDECL() result(result const& other);
MONGOCXX_ABI_EXPORT_CDECL(result&) operator=(result const& other);
MONGOCXX_ABI_EXPORT_CDECL(std::int64_t) inserted_count() const;
MONGOCXX_ABI_EXPORT_CDECL(std::int64_t) upserted_count() const;
MONGOCXX_ABI_EXPORT_CDECL(std::int64_t) matched_count() const;
MONGOCXX_ABI_EXPORT_CDECL(std::int64_t) modified_count() const;
MONGOCXX_ABI_EXPORT_CDECL(std::int64_t) deleted_count() const;
MONGOCXX_ABI_EXPORT_CDECL(bsoncxx::v1::stdx::optional<bsoncxx::v1::document::view>) insert_results() const;
MONGOCXX_ABI_EXPORT_CDECL(bsoncxx::v1::stdx::optional<bsoncxx::v1::document::view>) update_results() const;
MONGOCXX_ABI_EXPORT_CDECL(bsoncxx::v1::stdx::optional<bsoncxx::v1::document::view>) delete_results() const;
class internal;
private:
/* explicit(false) */ result(void* impl);
};
BSONCXX_PRIVATE_WARNINGS_PUSH();
BSONCXX_PRIVATE_WARNINGS_DISABLE(MSVC(4251));
BSONCXX_PRIVATE_WARNINGS_DISABLE(MSVC(4275));
class client_bulk_write::exception : public v1::exception {
private:
class impl;
std::shared_ptr<impl> _impl;
public:
bsoncxx::v1::document::view MONGOCXX_ABI_CDECL write_errors() const;
bsoncxx::v1::array::view MONGOCXX_ABI_CDECL write_concern_errors() const;
bsoncxx::v1::document::view MONGOCXX_ABI_CDECL error_reply() const;
bsoncxx::v1::stdx::optional<result> MONGOCXX_ABI_CDECL partial_result() const;
class internal;
private:
MONGOCXX_ABI_NO_EXPORT /* explicit(false) */
exception(v1::exception e, std::unique_ptr<impl> impl);
MONGOCXX_ABI_NO_EXPORT void key_function() const override;
};
BSONCXX_PRIVATE_WARNINGS_POP();
BSONCXX_PRIVATE_WARNINGS_PUSH();
BSONCXX_PRIVATE_WARNINGS_DISABLE(Clang("-Wunused-private-field"));
class client_bulk_write::insert_one_options {
private:
class impl;
void* _impl;
public:
MONGOCXX_ABI_EXPORT_CDECL() ~insert_one_options();
MONGOCXX_ABI_EXPORT_CDECL() insert_one_options(insert_one_options&& other) noexcept;
MONGOCXX_ABI_EXPORT_CDECL(insert_one_options&) operator=(insert_one_options&& other) noexcept;
MONGOCXX_ABI_EXPORT_CDECL() insert_one_options(insert_one_options const& other);
MONGOCXX_ABI_EXPORT_CDECL(insert_one_options&) operator=(insert_one_options const& other);
MONGOCXX_ABI_EXPORT_CDECL() insert_one_options();
};
BSONCXX_PRIVATE_WARNINGS_POP();
class client_bulk_write::update_one_options {
private:
class impl;
void* _impl;
public:
MONGOCXX_ABI_EXPORT_CDECL() ~update_one_options();
MONGOCXX_ABI_EXPORT_CDECL() update_one_options(update_one_options&& other) noexcept;
MONGOCXX_ABI_EXPORT_CDECL(update_one_options&) operator=(update_one_options&& other) noexcept;
MONGOCXX_ABI_EXPORT_CDECL() update_one_options(update_one_options const& other);
MONGOCXX_ABI_EXPORT_CDECL(update_one_options&) operator=(update_one_options const& other);
MONGOCXX_ABI_EXPORT_CDECL() update_one_options();
MONGOCXX_ABI_EXPORT_CDECL(update_one_options&) array_filters(bsoncxx::v1::array::value v);
MONGOCXX_ABI_EXPORT_CDECL(bsoncxx::v1::stdx::optional<bsoncxx::v1::array::view>) array_filters() const;
MONGOCXX_ABI_EXPORT_CDECL(update_one_options&) collation(bsoncxx::v1::document::value v);
MONGOCXX_ABI_EXPORT_CDECL(bsoncxx::v1::stdx::optional<bsoncxx::v1::document::view>) collation() const;
MONGOCXX_ABI_EXPORT_CDECL(update_one_options&) hint(v1::hint v);
MONGOCXX_ABI_EXPORT_CDECL(bsoncxx::v1::stdx::optional<v1::hint>) hint() const;
MONGOCXX_ABI_EXPORT_CDECL(update_one_options&) sort(bsoncxx::v1::document::value v);
MONGOCXX_ABI_EXPORT_CDECL(bsoncxx::v1::stdx::optional<bsoncxx::v1::document::view>) sort() const;
MONGOCXX_ABI_EXPORT_CDECL(update_one_options&) upsert(bool v);
MONGOCXX_ABI_EXPORT_CDECL(bsoncxx::v1::stdx::optional<bool>) upsert() const;
class internal;
};
class client_bulk_write::update_many_options {
private:
class impl;
void* _impl;
public:
MONGOCXX_ABI_EXPORT_CDECL() ~update_many_options();
MONGOCXX_ABI_EXPORT_CDECL() update_many_options(update_many_options&& other) noexcept;
MONGOCXX_ABI_EXPORT_CDECL(update_many_options&) operator=(update_many_options&& other) noexcept;
MONGOCXX_ABI_EXPORT_CDECL() update_many_options(update_many_options const& other);
MONGOCXX_ABI_EXPORT_CDECL(update_many_options&) operator=(update_many_options const& other);
MONGOCXX_ABI_EXPORT_CDECL() update_many_options();
MONGOCXX_ABI_EXPORT_CDECL(update_many_options&) array_filters(bsoncxx::v1::array::value v);
MONGOCXX_ABI_EXPORT_CDECL(bsoncxx::v1::stdx::optional<bsoncxx::v1::array::view>) array_filters() const;
MONGOCXX_ABI_EXPORT_CDECL(update_many_options&) collation(bsoncxx::v1::document::value v);
MONGOCXX_ABI_EXPORT_CDECL(bsoncxx::v1::stdx::optional<bsoncxx::v1::document::view>) collation() const;
MONGOCXX_ABI_EXPORT_CDECL(update_many_options&) hint(v1::hint v);
MONGOCXX_ABI_EXPORT_CDECL(bsoncxx::v1::stdx::optional<v1::hint>) hint() const;
MONGOCXX_ABI_EXPORT_CDECL(update_many_options&) upsert(bool v);
MONGOCXX_ABI_EXPORT_CDECL(bsoncxx::v1::stdx::optional<bool>) upsert() const;
class internal;
};
class client_bulk_write::replace_one_options {
private:
class impl;
void* _impl;
public:
MONGOCXX_ABI_EXPORT_CDECL() ~replace_one_options();
MONGOCXX_ABI_EXPORT_CDECL() replace_one_options(replace_one_options&& other) noexcept;
MONGOCXX_ABI_EXPORT_CDECL(replace_one_options&) operator=(replace_one_options&& other) noexcept;
MONGOCXX_ABI_EXPORT_CDECL() replace_one_options(replace_one_options const& other);
MONGOCXX_ABI_EXPORT_CDECL(replace_one_options&) operator=(replace_one_options const& other);
MONGOCXX_ABI_EXPORT_CDECL() replace_one_options();
MONGOCXX_ABI_EXPORT_CDECL(replace_one_options&) collation(bsoncxx::v1::document::value v);
MONGOCXX_ABI_EXPORT_CDECL(bsoncxx::v1::stdx::optional<bsoncxx::v1::document::view>) collation() const;
MONGOCXX_ABI_EXPORT_CDECL(replace_one_options&) hint(v1::hint v);
MONGOCXX_ABI_EXPORT_CDECL(bsoncxx::v1::stdx::optional<v1::hint>) hint() const;
MONGOCXX_ABI_EXPORT_CDECL(replace_one_options&) sort(bsoncxx::v1::document::value v);
MONGOCXX_ABI_EXPORT_CDECL(bsoncxx::v1::stdx::optional<bsoncxx::v1::document::view>) sort() const;
MONGOCXX_ABI_EXPORT_CDECL(replace_one_options&) upsert(bool v);
MONGOCXX_ABI_EXPORT_CDECL(bsoncxx::v1::stdx::optional<bool>) upsert() const;
class internal;
};
class client_bulk_write::delete_one_options {
private:
class impl;
void* _impl;
public:
MONGOCXX_ABI_EXPORT_CDECL() ~delete_one_options();
MONGOCXX_ABI_EXPORT_CDECL() delete_one_options(delete_one_options&& other) noexcept;
MONGOCXX_ABI_EXPORT_CDECL(delete_one_options&) operator=(delete_one_options&& other) noexcept;
MONGOCXX_ABI_EXPORT_CDECL() delete_one_options(delete_one_options const& other);
MONGOCXX_ABI_EXPORT_CDECL(delete_one_options&) operator=(delete_one_options const& other);
MONGOCXX_ABI_EXPORT_CDECL() delete_one_options();
MONGOCXX_ABI_EXPORT_CDECL(delete_one_options&) collation(bsoncxx::v1::document::value v);
MONGOCXX_ABI_EXPORT_CDECL(bsoncxx::v1::stdx::optional<bsoncxx::v1::document::view>) collation() const;
MONGOCXX_ABI_EXPORT_CDECL(delete_one_options&) hint(v1::hint v);
MONGOCXX_ABI_EXPORT_CDECL(bsoncxx::v1::stdx::optional<v1::hint>) hint() const;
class internal;
};
class client_bulk_write::delete_many_options {
private:
class impl;
void* _impl;
public:
MONGOCXX_ABI_EXPORT_CDECL() ~delete_many_options();
MONGOCXX_ABI_EXPORT_CDECL() delete_many_options(delete_many_options&& other) noexcept;
MONGOCXX_ABI_EXPORT_CDECL(delete_many_options&) operator=(delete_many_options&& other) noexcept;
MONGOCXX_ABI_EXPORT_CDECL() delete_many_options(delete_many_options const& other);
MONGOCXX_ABI_EXPORT_CDECL(delete_many_options&) operator=(delete_many_options const& other);
MONGOCXX_ABI_EXPORT_CDECL() delete_many_options();
MONGOCXX_ABI_EXPORT_CDECL(delete_many_options&) collation(bsoncxx::v1::document::value v);
MONGOCXX_ABI_EXPORT_CDECL(bsoncxx::v1::stdx::optional<bsoncxx::v1::document::view>) collation() const;
MONGOCXX_ABI_EXPORT_CDECL(delete_many_options&) hint(v1::hint v);
MONGOCXX_ABI_EXPORT_CDECL(bsoncxx::v1::stdx::optional<v1::hint>) hint() const;
class internal;
};
} // namespace v1
} // namespace mongocxx
#include <mongocxx/v1/detail/postlude.hpp>
macros.hpp
For internal use only!
bsoncxx::v1::array::view
A non-owning, read-only BSON array.
Definition view.hpp:47
bsoncxx::v1::document::view
A non-owning, read-only BSON document.
Definition view.hpp:52
bsoncxx::v1::stdx::optional
A polyfill for std::optional<T>.
Definition optional.hpp:799
mongocxx::client_bulk_write::delete_many_options
Options for a "Delete Many" operation in a client bulk write.
Definition client_bulk_write.hpp:913
mongocxx::client_bulk_write::delete_many_options::delete_many_options
delete_many_options(delete_many_options &&other) noexcept
Move constructor.
mongocxx::client_bulk_write::delete_one_options
Options for a "Delete One" operation in a client bulk write.
Definition client_bulk_write.hpp:839
mongocxx::client_bulk_write::delete_one_options::delete_one_options
delete_one_options(delete_one_options &&other) noexcept
Move constructor.
mongocxx::client_bulk_write::exception
A client bulk write error.
Definition client_bulk_write.hpp:437
mongocxx::client_bulk_write::insert_one_options
Options for an "Insert One" operation in a client bulk write.
Definition client_bulk_write.hpp:488
mongocxx::client_bulk_write::options
Options for a client bulk write operation.
Definition client_bulk_write.hpp:215
mongocxx::client_bulk_write::options::options
options(options &&other) noexcept
Move constructor.
mongocxx::client_bulk_write::replace_one_options
Options for a "Replace One" operation in a client bulk write.
Definition client_bulk_write.hpp:745
mongocxx::client_bulk_write::replace_one_options::replace_one_options
replace_one_options(replace_one_options &&other) noexcept
Move constructor.
mongocxx::client_bulk_write::result
The result of a client bulk write operation.
Definition client_bulk_write.hpp:336
mongocxx::client_bulk_write::result::result
result(result &&other) noexcept
Move constructor.
mongocxx::client_bulk_write::update_many_options
Options for an "Update Many" operation in a client bulk write.
Definition client_bulk_write.hpp:649
mongocxx::client_bulk_write::update_many_options::update_many_options
update_many_options(update_many_options &&other) noexcept
Move constructor.
mongocxx::client_bulk_write::update_one_options
Options for an "Update One" operation in a client bulk write.
Definition client_bulk_write.hpp:543
mongocxx::client_bulk_write::update_one_options::update_one_options
update_one_options(update_one_options &&other) noexcept
Move constructor.
mongocxx::client_bulk_write::client_bulk_write
client_bulk_write(client_bulk_write &&other) noexcept
Move constructor.
mongocxx::v1::client_bulk_write::delete_many_options
Options for a "Delete Many" operation in a client bulk write.
Definition client_bulk_write.hpp:913
mongocxx::v1::client_bulk_write::delete_many_options::~delete_many_options
~delete_many_options()
Destroy this object.
mongocxx::v1::client_bulk_write::delete_many_options::hint
delete_many_options & hint(v1::hint v)
Set the "hint" field.
mongocxx::v1::client_bulk_write::delete_many_options::collation
delete_many_options & collation(bsoncxx::v1::document::value v)
Set the "collation" field.
mongocxx::v1::client_bulk_write::delete_many_options::delete_many_options
delete_many_options(delete_many_options &&other) noexcept
Move constructor.
mongocxx::v1::client_bulk_write::delete_one_options
Options for a "Delete One" operation in a client bulk write.
Definition client_bulk_write.hpp:839
mongocxx::v1::client_bulk_write::delete_one_options::~delete_one_options
~delete_one_options()
Destroy this object.
mongocxx::v1::client_bulk_write::delete_one_options::collation
delete_one_options & collation(bsoncxx::v1::document::value v)
Set the "collation" field.
mongocxx::v1::client_bulk_write::delete_one_options::hint
delete_one_options & hint(v1::hint v)
Set the "hint" field.
mongocxx::v1::client_bulk_write::delete_one_options::delete_one_options
delete_one_options(delete_one_options &&other) noexcept
Move constructor.
mongocxx::v1::client_bulk_write::exception::write_concern_errors
bsoncxx::v1::array::view write_concern_errors() const
An array of write concern errors.
mongocxx::v1::client_bulk_write::exception::error_reply
bsoncxx::v1::document::view error_reply() const
The server reply associated with the error, if any.
mongocxx::v1::client_bulk_write::exception::write_errors
bsoncxx::v1::document::view write_errors() const
A document mapping model index to the corresponding write error.
mongocxx::v1::client_bulk_write::exception::partial_result
bsoncxx::v1::stdx::optional< result > partial_result() const
The partial result obtained before the error occurred, if any.
mongocxx::v1::client_bulk_write::insert_one_options
Options for an "Insert One" operation in a client bulk write.
Definition client_bulk_write.hpp:488
mongocxx::v1::client_bulk_write::insert_one_options::~insert_one_options
~insert_one_options()
Destroy this object.
mongocxx::v1::client_bulk_write::insert_one_options::insert_one_options
insert_one_options(insert_one_options &&other) noexcept
Move constructor.
mongocxx::v1::client_bulk_write::options
Options for a client bulk write operation.
Definition client_bulk_write.hpp:215
mongocxx::v1::client_bulk_write::options::~options
~options()
Destroy this object.
mongocxx::v1::client_bulk_write::options::verbose_results
options & verbose_results(bool v)
Set the "verboseResults" field.
mongocxx::v1::client_bulk_write::options::bypass_document_validation
options & bypass_document_validation(bool v)
Set the "bypassDocumentValidation" field.
mongocxx::v1::client_bulk_write::options::ordered
options & ordered(bool v)
Set the "ordered" field.
mongocxx::v1::client_bulk_write::options::write_concern
options & write_concern(v1::write_concern v)
Set the "writeConcern" field.
mongocxx::v1::client_bulk_write::options::let
options & let(bsoncxx::v1::document::value v)
Set the "let" field.
mongocxx::v1::client_bulk_write::options::comment
options & comment(bsoncxx::v1::types::value v)
Set the "comment" field.
mongocxx::v1::client_bulk_write::options::options
options(options &&other) noexcept
Move constructor.
mongocxx::v1::client_bulk_write::replace_one_options
Options for a "Replace One" operation in a client bulk write.
Definition client_bulk_write.hpp:745
mongocxx::v1::client_bulk_write::replace_one_options::replace_one_options
replace_one_options(replace_one_options &&other) noexcept
Move constructor.
mongocxx::v1::client_bulk_write::replace_one_options::hint
replace_one_options & hint(v1::hint v)
Set the "hint" field.
mongocxx::v1::client_bulk_write::replace_one_options::collation
replace_one_options & collation(bsoncxx::v1::document::value v)
Set the "collation" field.
mongocxx::v1::client_bulk_write::replace_one_options::upsert
replace_one_options & upsert(bool v)
Set the "upsert" field.
mongocxx::v1::client_bulk_write::replace_one_options::sort
replace_one_options & sort(bsoncxx::v1::document::value v)
Set the "sort" field.
mongocxx::v1::client_bulk_write::replace_one_options::~replace_one_options
~replace_one_options()
Destroy this object.
mongocxx::v1::client_bulk_write::result
The result of a client bulk write operation.
Definition client_bulk_write.hpp:336
mongocxx::v1::client_bulk_write::result::deleted_count
std::int64_t deleted_count() const
Return the number of documents deleted.
mongocxx::v1::client_bulk_write::result::update_results
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.
mongocxx::v1::client_bulk_write::result::~result
~result()
Destroy this object.
mongocxx::v1::client_bulk_write::result::matched_count
std::int64_t matched_count() const
Return the number of documents matched by update or replace operations.
mongocxx::v1::client_bulk_write::result::modified_count
std::int64_t modified_count() const
Return the number of documents modified by update or replace operations.
mongocxx::v1::client_bulk_write::result::delete_results
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.
mongocxx::v1::client_bulk_write::result::insert_results
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.
mongocxx::v1::client_bulk_write::result::upserted_count
std::int64_t upserted_count() const
Return the number of documents upserted.
mongocxx::v1::client_bulk_write::result::inserted_count
std::int64_t inserted_count() const
Return the number of documents inserted.
mongocxx::v1::client_bulk_write::result::result
result(result &&other) noexcept
Move constructor.
mongocxx::v1::client_bulk_write::update_many_options
Options for an "Update Many" operation in a client bulk write.
Definition client_bulk_write.hpp:649
mongocxx::v1::client_bulk_write::update_many_options::~update_many_options
~update_many_options()
Destroy this object.
mongocxx::v1::client_bulk_write::update_many_options::upsert
update_many_options & upsert(bool v)
Set the "upsert" field.
mongocxx::v1::client_bulk_write::update_many_options::array_filters
update_many_options & array_filters(bsoncxx::v1::array::value v)
Set the "arrayFilters" field.
mongocxx::v1::client_bulk_write::update_many_options::hint
update_many_options & hint(v1::hint v)
Set the "hint" field.
mongocxx::v1::client_bulk_write::update_many_options::update_many_options
update_many_options(update_many_options &&other) noexcept
Move constructor.
mongocxx::v1::client_bulk_write::update_many_options::collation
update_many_options & collation(bsoncxx::v1::document::value v)
Set the "collation" field.
mongocxx::v1::client_bulk_write::update_one_options
Options for an "Update One" operation in a client bulk write.
Definition client_bulk_write.hpp:543
mongocxx::v1::client_bulk_write::update_one_options::~update_one_options
~update_one_options()
Destroy this object.
mongocxx::v1::client_bulk_write::update_one_options::update_one_options
update_one_options(update_one_options &&other) noexcept
Move constructor.
mongocxx::v1::client_bulk_write::update_one_options::hint
update_one_options & hint(v1::hint v)
Set the "hint" field.
mongocxx::v1::client_bulk_write::update_one_options::collation
update_one_options & collation(bsoncxx::v1::document::value v)
Set the "collation" field.
mongocxx::v1::client_bulk_write::update_one_options::array_filters
update_one_options & array_filters(bsoncxx::v1::array::value v)
Set the "arrayFilters" field.
mongocxx::v1::client_bulk_write::update_one_options::sort
update_one_options & sort(bsoncxx::v1::document::value v)
Set the "sort" field.
mongocxx::v1::client_bulk_write::update_one_options::upsert
update_one_options & upsert(bool v)
Set the "upsert" field.
mongocxx::v1::client_bulk_write::client_bulk_write
client_bulk_write(client_bulk_write &&other) noexcept
Move constructor.
mongocxx::v1::client_bulk_write::append
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.
mongocxx::v1::client_bulk_write::execute
bsoncxx::v1::stdx::optional< result > execute(options const &opts)
Execute the appended operations.
mongocxx::v1::client_bulk_write::~client_bulk_write
~client_bulk_write()
Destroy this object.
mongocxx::v1::exception
Base class for all exceptions thrown by mongocxx::v1.
Definition exception.hpp:89
mongocxx::v1::pipeline
A MongoDB aggregation pipeline.
Definition pipeline.hpp:41
export.hpp
Provides macros to control the set of symbols exported in the ABI.
MONGOCXX_ABI_CDECL
#define MONGOCXX_ABI_CDECL
Expands to __cdecl when built with MSVC on Windows.
Definition export.hpp:49
MONGOCXX_ABI_NO_EXPORT
#define MONGOCXX_ABI_NO_EXPORT
Excludes the associated entity from being part of the ABI.
Definition export.hpp:20
MONGOCXX_ABI_EXPORT_CDECL
#define MONGOCXX_ABI_EXPORT_CDECL(...)
Equivalent to MONGOCXX_ABI_EXPORT with MONGOCXX_ABI_CDECL.
Definition export.hpp:52
MONGOCXX_ABI_EXPORT
#define MONGOCXX_ABI_EXPORT
Exports the associated entity as part of the ABI.
Definition export.hpp:15
prelude.hpp
The mongocxx v1 macro guard prelude header.
exception.hpp
Provides mongocxx error-handling utilities.
bsoncxx
The top-level namespace within which all bsoncxx library entities are declared.
mongocxx::v1
Declares entities whose ABI stability is guaranteed for documented symbols.
mongocxx
The top-level namespace within which all mongocxx library entities are declared.
value.hpp
Provides bsoncxx::v1::array::value.
view-fwd.hpp
Declares bsoncxx::v1::array::view.
client_bulk_write-fwd.hpp
Declares mongocxx::v1::client_bulk_write.
value.hpp
Provides bsoncxx::v1::document::value.
view-fwd.hpp
Declares bsoncxx::v1::document::view.
hint-fwd.hpp
Declares mongocxx::v1::hint.
pipeline-fwd.hpp
Declares mongocxx::v1::pipeline.
optional.hpp
Provides std::optional-related polyfills for library API usage.
string_view.hpp
Provides std::string_view-related polyfills for library API usage.
value.hpp
Provides bsoncxx::v1::types::value.
write_concern-fwd.hpp
Declares mongocxx::v1::write_concern.