#include <mongocxx/v1/bulk_write.hpp>
A single "Update One" write operation.
Supported fields include:
Public Member Functions | |
| update_one (bsoncxx::v1::document::value filter, bsoncxx::v1::document::value update) | |
| Initialize with the given "filter" and "update" documents. | |
| update_one (bsoncxx::v1::document::value filter, v1::pipeline update) | |
| Initialize with the given "filter" document and "update" aggregation pipeline. | |
| update_one (update_one &&other) noexcept | |
| Move constructor. | |
| update_one (update_one const &other) | |
| Copy construction. | |
| ~update_one () | |
| Destroy this object. | |
| bsoncxx::v1::stdx::optional< bsoncxx::v1::array::view > | array_filters () const |
| Return the current "arrayFilters" field. | |
| update_one & | array_filters (bsoncxx::v1::array::value v) |
| Set the "arrayFilters" field. | |
| bsoncxx::v1::stdx::optional< bsoncxx::v1::document::view > | collation () const |
| Return the current "collation" field. | |
| update_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. | |
| update_one & | hint (v1::hint v) |
| Set the "hint" field. | |
| update_one & | operator= (update_one &&other) noexcept |
| Move assignment. | |
| update_one & | operator= (update_one const &other) |
| Copy assignment. | |
| bsoncxx::v1::stdx::optional< bsoncxx::v1::document::view > | sort () const |
| Return the current "sort" field. | |
| update_one & | sort (bsoncxx::v1::document::value v) |
| Set the "sort" field. | |
| bsoncxx::v1::document::view | update () const |
| Return the current "update" field. | |
| bsoncxx::v1::stdx::optional< bool > | upsert () const |
| Return the current "upsert" field. | |
| update_one & | upsert (bool v) |
| Set the "upsert" field. | |
| mongocxx::v1::bulk_write::update_one::~update_one | ( | ) |
Destroy this object.
|
noexcept |
Move constructor.
| mongocxx::v1::bulk_write::update_one::update_one | ( | update_one const & | other | ) |
Copy construction.
| mongocxx::v1::bulk_write::update_one::update_one | ( | bsoncxx::v1::document::value | filter, |
| bsoncxx::v1::document::value | update ) |
Initialize with the given "filter" and "update" documents.
| mongocxx::v1::bulk_write::update_one::update_one | ( | bsoncxx::v1::document::value | filter, |
| v1::pipeline | update ) |
Initialize with the given "filter" document and "update" aggregation pipeline.
| bsoncxx::v1::stdx::optional< bsoncxx::v1::array::view > mongocxx::v1::bulk_write::update_one::array_filters | ( | ) | const |
Return the current "arrayFilters" field.
| update_one & mongocxx::v1::bulk_write::update_one::array_filters | ( | bsoncxx::v1::array::value | v | ) |
Set the "arrayFilters" field.
| bsoncxx::v1::stdx::optional< bsoncxx::v1::document::view > mongocxx::v1::bulk_write::update_one::collation | ( | ) | const |
Return the current "collation" field.
| update_one & mongocxx::v1::bulk_write::update_one::collation | ( | bsoncxx::v1::document::value | v | ) |
Set the "collation" field.
| bsoncxx::v1::document::view mongocxx::v1::bulk_write::update_one::filter | ( | ) | const |
Return the current "filter" field.
| bsoncxx::v1::stdx::optional< v1::hint > mongocxx::v1::bulk_write::update_one::hint | ( | ) | const |
Return the current "hint" field.
| update_one & mongocxx::v1::bulk_write::update_one::hint | ( | v1::hint | v | ) |
Set the "hint" field.
|
noexcept |
Move assignment.
| update_one & mongocxx::v1::bulk_write::update_one::operator= | ( | update_one const & | other | ) |
Copy assignment.
| bsoncxx::v1::stdx::optional< bsoncxx::v1::document::view > mongocxx::v1::bulk_write::update_one::sort | ( | ) | const |
Return the current "sort" field.
| update_one & mongocxx::v1::bulk_write::update_one::sort | ( | bsoncxx::v1::document::value | v | ) |
Set the "sort" field.
| bsoncxx::v1::document::view mongocxx::v1::bulk_write::update_one::update | ( | ) | const |
Return the current "update" field.
| bsoncxx::v1::stdx::optional< bool > mongocxx::v1::bulk_write::update_one::upsert | ( | ) | const |
Return the current "upsert" field.
| update_one & mongocxx::v1::bulk_write::update_one::upsert | ( | bool | v | ) |
Set the "upsert" field.