MongoDB C++ Driver
mongocxx-3.0.0
|
Class representing the optional arguments to a MongoDB find_and_modify delete operation. More...
#include <find_one_and_delete.hpp>
Public Member Functions | |
void | 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... | |
void | 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... | |
void | 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... | |
Class representing the optional arguments to a MongoDB find_and_modify delete operation.
void 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<std::chrono::milliseconds>& mongocxx::options::find_one_and_delete::max_time | ( | ) | const |
The current max_time setting.
void 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::projection | ( | ) | const |
Gets the current projection set on this operation.
void 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<bsoncxx::document::view_or_value>& mongocxx::options::find_one_and_delete::sort | ( | ) | const |
Gets the current sort ordering.