17 #include <bsoncxx/document/view_or_value.hpp>
18 #include <bsoncxx/stdx/optional.hpp>
19 #include <mongocxx/stdx.hpp>
20 #include <mongocxx/validation_criteria.hpp>
22 #include <mongocxx/config/prelude.hpp>
61 const stdx::optional<bool>&
capped()
const;
87 const stdx::optional<bsoncxx::v_noabi::document::view_or_value>&
collation()
const;
112 const stdx::optional<std::int64_t>&
max()
const;
161 const stdx::optional<std::int64_t>&
size()
const;
184 const stdx::optional<bsoncxx::v_noabi::document::view_or_value>&
storage_engine()
const;
231 stdx::optional<bool> _capped;
232 stdx::optional<bsoncxx::v_noabi::document::view_or_value> _collation;
233 stdx::optional<std::int64_t> _max_documents;
234 stdx::optional<std::int64_t> _max_size;
235 stdx::optional<bool> _no_padding;
236 stdx::optional<bsoncxx::v_noabi::document::view_or_value> _storage_engine_opts;
237 stdx::optional<mongocxx::v_noabi::validation_criteria> _validation;
243 return to_document_deprecated();
253 using ::mongocxx::v_noabi::options::create_collection;
254 using ::mongocxx::v_noabi::options::create_collection_deprecated;
259 #include <mongocxx/config/postlude.hpp>
A read-only BSON document that owns its underlying buffer.
Definition: value.hpp:38
Class representing the optional arguments to a MongoDB createCollection command.
Definition: create_collection.hpp:35
const stdx::optional< mongocxx::v_noabi::validation_criteria > & validation_criteria() const
Gets the current validation criteria for this collection.
create_collection_deprecated & validation_criteria(mongocxx::v_noabi::validation_criteria validation)
Specify validation criteria for this collection.
const stdx::optional< bsoncxx::v_noabi::document::view_or_value > & collation() const
Gets the default collation for this collection.
const stdx::optional< bool > & capped() const
Gets the current capped setting.
const stdx::optional< bsoncxx::v_noabi::document::view_or_value > & storage_engine() const
Gets the current storage engine configuration for this collection.
const stdx::optional< std::int64_t > & max() const
Gets the current setting for the maximum number of documents allowed in the capped collection.
create_collection_deprecated & collation(bsoncxx::v_noabi::document::view_or_value collation)
Sets the default collation for this collection.
const stdx::optional< std::int64_t > & size() const
Gets the current size setting, for a capped collection.
create_collection_deprecated & no_padding(bool no_padding)
When true, disables the power of 2 sizes allocation for the collection.
create_collection_deprecated & max(std::int64_t max_documents)
The maximum number of documents allowed in the capped collection.
create_collection_deprecated & storage_engine(bsoncxx::v_noabi::document::view_or_value storage_engine_opts)
Specify configuration to the storage on a per-collection basis.
create_collection_deprecated & capped(bool capped)
To create a capped collection, specify true.
const stdx::optional< bool > & no_padding() const
Gets the current value of the "no padding" option for the collection.
create_collection_deprecated & size(std::int64_t max_size)
A maximum size, in bytes, for a capped collection.
bsoncxx::v_noabi::document::value to_document() const
Return a bson document representing the options set on this object.
Class representing criteria for document validation, to be applied to a collection.
Definition: validation_criteria.hpp:33
The top-level namespace for mongocxx library entities.
Definition: bulk_write-fwd.hpp:19