#include <mongocxx/v1/client_bulk_write.hpp>
Options for a "Replace One" operation in a client bulk write.
Supported fields include:
Public Member Functions | |
| replace_one_options () | |
| Default initialization. | |
| replace_one_options (replace_one_options &&other) noexcept | |
| Move constructor. | |
| replace_one_options (replace_one_options const &other) | |
| Copy construction. | |
| ~replace_one_options () | |
| Destroy this object. | |
| bsoncxx::v1::stdx::optional< bsoncxx::v1::document::view > | collation () const |
| Return the current "collation" field. | |
| replace_one_options & | collation (bsoncxx::v1::document::value v) |
| Set the "collation" field. | |
| bsoncxx::v1::stdx::optional< v1::hint > | hint () const |
| Return the current "hint" field. | |
| replace_one_options & | hint (v1::hint v) |
| Set the "hint" field. | |
| replace_one_options & | operator= (replace_one_options &&other) noexcept |
| Move assignment. | |
| replace_one_options & | operator= (replace_one_options const &other) |
| Copy assignment. | |
| bsoncxx::v1::stdx::optional< bsoncxx::v1::document::view > | sort () const |
| Return the current "sort" field. | |
| replace_one_options & | sort (bsoncxx::v1::document::value v) |
| Set the "sort" field. | |
| bsoncxx::v1::stdx::optional< bool > | upsert () const |
| Return the current "upsert" field. | |
| replace_one_options & | upsert (bool v) |
| Set the "upsert" field. | |
Destroy this object.
|
noexcept |
Move constructor.
| mongocxx::v1::client_bulk_write::replace_one_options::replace_one_options | ( | replace_one_options const & | other | ) |
Copy construction.
Default initialization.
| bsoncxx::v1::stdx::optional< bsoncxx::v1::document::view > mongocxx::v1::client_bulk_write::replace_one_options::collation | ( | ) | const |
Return the current "collation" field.
| replace_one_options & mongocxx::v1::client_bulk_write::replace_one_options::collation | ( | bsoncxx::v1::document::value | v | ) |
Set the "collation" field.
| bsoncxx::v1::stdx::optional< v1::hint > mongocxx::v1::client_bulk_write::replace_one_options::hint | ( | ) | const |
Return the current "hint" field.
Set the "hint" field.
|
noexcept |
Move assignment.
| replace_one_options & mongocxx::v1::client_bulk_write::replace_one_options::operator= | ( | replace_one_options const & | other | ) |
Copy assignment.
| bsoncxx::v1::stdx::optional< bsoncxx::v1::document::view > mongocxx::v1::client_bulk_write::replace_one_options::sort | ( | ) | const |
Return the current "sort" field.
| replace_one_options & mongocxx::v1::client_bulk_write::replace_one_options::sort | ( | bsoncxx::v1::document::value | v | ) |
Set the "sort" field.
| bsoncxx::v1::stdx::optional< bool > mongocxx::v1::client_bulk_write::replace_one_options::upsert | ( | ) | const |
Return the current "upsert" field.
Set the "upsert" field.