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