Class representing the optional arguments to a MongoDB collMod command.
More...
#include <modify_collection.hpp>
Class representing the optional arguments to a MongoDB collMod command.
- Deprecated:
- This class is deprecated. See the database::modify_collection() method comment for more information.
◆ index()
◆ no_padding()
modify_collection& mongocxx::options::modify_collection::no_padding |
( |
bool |
no_padding | ) |
|
When true, disables the power of 2 sizes allocation for the collection.
- See also
- : https://docs.mongodb.com/master/reference/method/db.createCollection/
- Parameters
-
no_padding | When true, disables power of 2 sizing for this collection. |
- Returns
- A reference to the object on which this member function is being called. This facilitates method chaining.
◆ to_document()
Return a bson document representing a collMod command with the given options set on this object.
- Returns
- Options, as a document.
◆ validation_criteria()
Specify validation criteria for this collection.
- Parameters
-
validation | Validation criteria for this collection. |
- See also
- https://docs.mongodb.com/master/core/document-validation/
- Returns
- A reference to the object on which this member function is being called. This facilitates method chaining.
The documentation for this class was generated from the following file: