|
MongoDB C++ Driver
mongocxx-3.0.2
|
Class representing the optional arguments to a MongoDB collMod command. More...
#include <modify_collection.hpp>
Public Member Functions | |
| modify_collection & | index (bsoncxx::document::view_or_value index_spec, std::chrono::seconds seconds) |
| The index flag changes the expiration time of a TTL collection. More... | |
| modify_collection & | no_padding (bool no_padding) |
| When true, disables the power of 2 sizes allocation for the collection. More... | |
| modify_collection & | validation_criteria (class validation_criteria validation) |
| Specify validation criteria for this collection. More... | |
| bsoncxx::document::value | to_document () const |
| Return a bson document representing a collMod command with the given options set on this object. More... | |
Class representing the optional arguments to a MongoDB collMod command.
| modify_collection& mongocxx::options::modify_collection::index | ( | bsoncxx::document::view_or_value | index_spec, |
| std::chrono::seconds | seconds | ||
| ) |
The index flag changes the expiration time of a TTL collection.
| index_spec | the spec for an existing index in the collection |
| seconds | number of seconds to subtract from the current time |
| modify_collection& mongocxx::options::modify_collection::no_padding | ( | bool | no_padding | ) |
When true, disables the power of 2 sizes allocation for the collection.
| no_padding | When true, disables power of 2 sizing for this collection. |
| bsoncxx::document::value mongocxx::options::modify_collection::to_document | ( | ) | const |
Return a bson document representing a collMod command with the given options set on this object.
| modify_collection& mongocxx::options::modify_collection::validation_criteria | ( | class validation_criteria | validation | ) |
Specify validation criteria for this collection.
| validation | Validation criteria for this collection. |
1.8.10