MongoDB C++ Driver
mongocxx-3.7.0
|
Class representing the optional arguments to a MongoDB find_and_modify delete operation. More...
#include <find_one_and_delete.hpp>
Public Member Functions | |
find_one_and_delete & | collation (bsoncxx::document::view_or_value collation) |
Sets the collation for this operation. More... | |
const stdx::optional< bsoncxx::document::view_or_value > & | collation () const |
Retrieves the current collation for this operation. More... | |
find_one_and_delete & | max_time (std::chrono::milliseconds max_time) |
Sets the maximum amount of time for this operation to run (server-side) in milliseconds. More... | |
const stdx::optional< std::chrono::milliseconds > & | max_time () const |
The current max_time setting. More... | |
find_one_and_delete & | projection (bsoncxx::document::view_or_value projection) |
Sets a projection that limits the fields to return. More... | |
const stdx::optional< bsoncxx::document::view_or_value > & | projection () const |
Gets the current projection set on this operation. More... | |
find_one_and_delete & | sort (bsoncxx::document::view_or_value ordering) |
Sets the order to search for a matching document. More... | |
const stdx::optional< bsoncxx::document::view_or_value > & | sort () const |
Gets the current sort ordering. More... | |
find_one_and_delete & | write_concern (mongocxx::write_concern write_concern) |
Sets the write concern for this operation. More... | |
const stdx::optional< mongocxx::write_concern > & | write_concern () const |
Gets the current write concern. More... | |
find_one_and_delete & | hint (class hint index_hint) |
Sets the index to use for this operation. More... | |
const stdx::optional< class hint > & | hint () const |
Gets the current hint. More... | |
find_one_and_delete & | let (bsoncxx::document::view_or_value let) |
Set the value of the let option. More... | |
const stdx::optional< bsoncxx::document::view_or_value > | let () const |
Gets the current value of the let option. More... | |
find_one_and_delete & | comment (bsoncxx::types::bson_value::view_or_value comment) |
Set the value of the comment option. More... | |
const stdx::optional< bsoncxx::types::bson_value::view_or_value > | comment () const |
Gets the current value of the comment option. More... | |
Class representing the optional arguments to a MongoDB find_and_modify delete operation.
const stdx::optional<bsoncxx::document::view_or_value>& mongocxx::options::find_one_and_delete::collation | ( | ) | const |
Retrieves the current collation for this operation.
find_one_and_delete& mongocxx::options::find_one_and_delete::collation | ( | bsoncxx::document::view_or_value | collation | ) |
Sets the collation for this operation.
collation | The new collation. |
const stdx::optional<bsoncxx::types::bson_value::view_or_value> mongocxx::options::find_one_and_delete::comment | ( | ) | const |
Gets the current value of the comment option.
find_one_and_delete& mongocxx::options::find_one_and_delete::comment | ( | bsoncxx::types::bson_value::view_or_value | comment | ) |
Set the value of the comment option.
comment | The new comment option. |
const stdx::optional<class hint>& mongocxx::options::find_one_and_delete::hint | ( | ) | const |
Gets the current hint.
find_one_and_delete& mongocxx::options::find_one_and_delete::hint | ( | class hint | index_hint | ) |
Sets the index to use for this operation.
index_hint | Object representing the index to use. |
const stdx::optional<bsoncxx::document::view_or_value> mongocxx::options::find_one_and_delete::let | ( | ) | const |
Gets the current value of the let option.
find_one_and_delete& mongocxx::options::find_one_and_delete::let | ( | bsoncxx::document::view_or_value | let | ) |
Set the value of the let option.
let | The new let option. |
const stdx::optional<std::chrono::milliseconds>& mongocxx::options::find_one_and_delete::max_time | ( | ) | const |
The current max_time setting.
find_one_and_delete& mongocxx::options::find_one_and_delete::max_time | ( | std::chrono::milliseconds | max_time | ) |
Sets the maximum amount of time for this operation to run (server-side) in milliseconds.
max_time | The max amount of running time (in milliseconds). |
const stdx::optional<bsoncxx::document::view_or_value>& mongocxx::options::find_one_and_delete::projection | ( | ) | const |
Gets the current projection set on this operation.
find_one_and_delete& mongocxx::options::find_one_and_delete::projection | ( | bsoncxx::document::view_or_value | projection | ) |
Sets a projection that limits the fields to return.
projection | The projection document. |
const stdx::optional<bsoncxx::document::view_or_value>& mongocxx::options::find_one_and_delete::sort | ( | ) | const |
Gets the current sort ordering.
find_one_and_delete& mongocxx::options::find_one_and_delete::sort | ( | bsoncxx::document::view_or_value | ordering | ) |
Sets the order to search for a matching document.
ordering | Document describing the order of the documents to be returned. |
const stdx::optional<mongocxx::write_concern>& mongocxx::options::find_one_and_delete::write_concern | ( | ) | const |
Gets the current write concern.
find_one_and_delete& mongocxx::options::find_one_and_delete::write_concern | ( | mongocxx::write_concern | write_concern | ) |
Sets the write concern for this operation.
write_concern | Object representing the write concern. |