#include <mongocxx/v1/bulk_write.hpp>
A single "Replace One" write operation.
Supported fields include:
Public Member Functions | |
| replace_one (bsoncxx::v1::document::value filter, bsoncxx::v1::document::value replacement) | |
| Initialize with the given "filter" and "replacement" documents. | |
| replace_one (replace_one &&other) noexcept | |
| Move constructor. | |
| replace_one (replace_one const &other) | |
| Copy construction. | |
| ~replace_one () | |
| Destroy this object. | |
| bsoncxx::v1::stdx::optional< bsoncxx::v1::document::view > | collation () const |
| Return the current "collation" field. | |
| replace_one & | collation (bsoncxx::v1::document::value v) |
| Set the "collation" field. | |
| bsoncxx::v1::document::view | filter () const |
| Return the current "filter" field. | |
| bsoncxx::v1::stdx::optional< v1::hint > | hint () const |
| Return the current "hint" field. | |
| replace_one & | hint (v1::hint v) |
| Set the "hint" field. | |
| replace_one & | operator= (replace_one &&other) noexcept |
| Move assignment. | |
| replace_one & | operator= (replace_one const &other) |
| Copy assignment. | |
| bsoncxx::v1::document::view | replacement () const |
| Return the current "replacement" field. | |
| bsoncxx::v1::stdx::optional< bsoncxx::v1::document::view > | sort () const |
| Return the current "sort" field. | |
| replace_one & | sort (bsoncxx::v1::document::value v) |
| Set the "sort" field. | |
| bsoncxx::v1::stdx::optional< bool > | upsert () const |
| Return the current "upsert" field. | |
| replace_one & | upsert (bool v) |
| Set the "upsert" field. | |
| mongocxx::v1::bulk_write::replace_one::~replace_one | ( | ) |
Destroy this object.
|
noexcept |
Move constructor.
| mongocxx::v1::bulk_write::replace_one::replace_one | ( | replace_one const & | other | ) |
Copy construction.
| mongocxx::v1::bulk_write::replace_one::replace_one | ( | bsoncxx::v1::document::value | filter, |
| bsoncxx::v1::document::value | replacement ) |
Initialize with the given "filter" and "replacement" documents.
| bsoncxx::v1::stdx::optional< bsoncxx::v1::document::view > mongocxx::v1::bulk_write::replace_one::collation | ( | ) | const |
Return the current "collation" field.
| replace_one & mongocxx::v1::bulk_write::replace_one::collation | ( | bsoncxx::v1::document::value | v | ) |
Set the "collation" field.
| bsoncxx::v1::document::view mongocxx::v1::bulk_write::replace_one::filter | ( | ) | const |
Return the current "filter" field.
| bsoncxx::v1::stdx::optional< v1::hint > mongocxx::v1::bulk_write::replace_one::hint | ( | ) | const |
Return the current "hint" field.
| replace_one & mongocxx::v1::bulk_write::replace_one::hint | ( | v1::hint | v | ) |
Set the "hint" field.
|
noexcept |
Move assignment.
| replace_one & mongocxx::v1::bulk_write::replace_one::operator= | ( | replace_one const & | other | ) |
Copy assignment.
| bsoncxx::v1::document::view mongocxx::v1::bulk_write::replace_one::replacement | ( | ) | const |
Return the current "replacement" field.
| bsoncxx::v1::stdx::optional< bsoncxx::v1::document::view > mongocxx::v1::bulk_write::replace_one::sort | ( | ) | const |
Return the current "sort" field.
| replace_one & mongocxx::v1::bulk_write::replace_one::sort | ( | bsoncxx::v1::document::value | v | ) |
Set the "sort" field.
| bsoncxx::v1::stdx::optional< bool > mongocxx::v1::bulk_write::replace_one::upsert | ( | ) | const |
Return the current "upsert" field.
| replace_one & mongocxx::v1::bulk_write::replace_one::upsert | ( | bool | v | ) |
Set the "upsert" field.