|
MongoDB C++ Driver
mongocxx-3.0.2
|
Class representing the optional arguments to a MongoDB createCollection command. More...
#include <create_collection.hpp>
Public Member Functions | |
| create_collection & | capped (bool capped) |
| To create a capped collection, specify true. More... | |
| create_collection & | auto_index_id (bool auto_index_id) |
| Specify false to disable the automatic creation of an index on the _id field. More... | |
| create_collection & | size (int max_size) |
| A maximum size, in bytes, for a capped collection. More... | |
| create_collection & | max (int max_documents) |
| The maximum number of documents allowed in the capped collection. More... | |
| create_collection & | storage_engine (bsoncxx::document::view_or_value storage_engine_opts) |
| Specify configuration to the storage on a per-collection basis. More... | |
| create_collection & | no_padding (bool no_padding) |
| When true, disables the power of 2 sizes allocation for the collection. More... | |
| create_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 the options set on this object. More... | |
Class representing the optional arguments to a MongoDB createCollection command.
| create_collection& mongocxx::options::create_collection::auto_index_id | ( | bool | auto_index_id | ) |
Specify false to disable the automatic creation of an index on the _id field.
| auto_index_id | Whether or not this collection will automatically generate an index on _id. |
| create_collection& mongocxx::options::create_collection::capped | ( | bool | capped | ) |
To create a capped collection, specify true.
| capped | Whether or not this collection will be capped. |
| create_collection& mongocxx::options::create_collection::max | ( | int | max_documents | ) |
The maximum number of documents allowed in the capped collection.
| max_documents | Maximum number of documents allowed in the collection (if capped) |
| create_collection& mongocxx::options::create_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. |
| create_collection& mongocxx::options::create_collection::size | ( | int | max_size | ) |
A maximum size, in bytes, for a capped collection.
| max_size | Maximum size, in bytes, of this collection (if capped) |
| create_collection& mongocxx::options::create_collection::storage_engine | ( | bsoncxx::document::view_or_value | storage_engine_opts | ) |
Specify configuration to the storage on a per-collection basis.
| storage_engine_options | Configuration options specific to the storage engine. |
| bsoncxx::document::value mongocxx::options::create_collection::to_document | ( | ) | const |
Return a bson document representing the options set on this object.
| create_collection& mongocxx::options::create_collection::validation_criteria | ( | class validation_criteria | validation | ) |
Specify validation criteria for this collection.
| validation | Validation criteria for this collection. |
1.8.10