MongoDB C++ Driver mongocxx-3.11.0
|
#include <mongocxx/v_noabi/mongocxx/model/delete_many.hpp>
Class representing a MongoDB delete operation that removes multiple documents.
Public Member Functions | |
delete_many (bsoncxx::v_noabi::document::view_or_value filter) | |
Constructs a delete operation that will delete all documents matching the filter. | |
const stdx::optional< bsoncxx::v_noabi::document::view_or_value > & | collation () const |
Gets the collation option for this delete operation. | |
delete_many & | collation (bsoncxx::v_noabi::document::view_or_value collation) |
Sets the collation for this delete operation. | |
const bsoncxx::v_noabi::document::view_or_value & | filter () const |
Gets the filter for this delete operation. | |
const stdx::optional< mongocxx::v_noabi::hint > & | hint () const |
Gets the current hint. | |
delete_many & | hint (mongocxx::v_noabi::hint index_hint) |
Sets the index to use for this operation. | |
|
explicit |
Constructs a delete operation that will delete all documents matching the filter.
filter | Document representing the criteria for deletion. |
const stdx::optional< bsoncxx::v_noabi::document::view_or_value > & mongocxx::v_noabi::model::delete_many::collation | ( | ) | const |
Gets the collation option for this delete operation.
delete_many & mongocxx::v_noabi::model::delete_many::collation | ( | bsoncxx::v_noabi::document::view_or_value | collation | ) |
Sets the collation for this delete operation.
collation | The new collation. |
const bsoncxx::v_noabi::document::view_or_value & mongocxx::v_noabi::model::delete_many::filter | ( | ) | const |
Gets the filter for this delete operation.
const stdx::optional< mongocxx::v_noabi::hint > & mongocxx::v_noabi::model::delete_many::hint | ( | ) | const |
Gets the current hint.
delete_many & mongocxx::v_noabi::model::delete_many::hint | ( | mongocxx::v_noabi::hint | index_hint | ) |
Sets the index to use for this operation.
index_hint | Object representing the index to use. |