45 BSONCXX_PRIVATE_WARNINGS_PUSH();
46 BSONCXX_PRIVATE_WARNINGS_DISABLE(MSVC(4251));
47 BSONCXX_PRIVATE_WARNINGS_DISABLE(MSVC(4275));
56 virtual ~base_storage_options();
58 base_storage_options(base_storage_options&&) =
default;
59 base_storage_options& operator=(base_storage_options&&) =
default;
60 base_storage_options(base_storage_options
const&) =
default;
61 base_storage_options& operator=(base_storage_options
const&) =
default;
63 base_storage_options() =
default;
66 friend ::mongocxx::v_noabi::options::index;
68 virtual int type()
const = 0;
78 ~wiredtiger_storage_options()
override;
80 wiredtiger_storage_options(wiredtiger_storage_options&&) =
default;
81 wiredtiger_storage_options& operator=(wiredtiger_storage_options&&) =
default;
82 wiredtiger_storage_options(wiredtiger_storage_options
const&) =
default;
83 wiredtiger_storage_options& operator=(wiredtiger_storage_options
const&) =
default;
85 wiredtiger_storage_options() =
default;
103 friend ::mongocxx::v_noabi::collection;
110 BSONCXX_PRIVATE_WARNINGS_POP();
551 haystack_bucket_size_deprecated() const;
574 bsoncxx::
v_noabi::stdx::optional<std::chrono::seconds> _expire_after;
580 bsoncxx::
v_noabi::stdx::optional<std::uint8_t> _twod_sphere_version;
581 bsoncxx::
v_noabi::stdx::optional<std::uint8_t> _twod_bits_precision;
596#include <bsoncxx/config/postlude.hpp>
#define BSONCXX_ABI_EXPORT_CDECL(...)
Equivalent to BSONCXX_ABI_EXPORT with BSONCXX_ABI_CDECL.
Definition export.hpp:52
The bsoncxx v_noabi macro guard prelude header.
A polyfill for std::optional<T>.
Definition optional.hpp:800
A view-or-value variant type for strings.
Definition view_or_value.hpp:41
A MongoDB collection.
Definition collection.hpp:87
Base class representing the optional storage engine options for indexes.
Definition index.hpp:54
The optional WiredTiger storage engine options for indexes.
Definition index.hpp:76
void config_string(bsoncxx::v_noabi::string::view_or_value config_string)
Set the WiredTiger configuration string.
bsoncxx::v_noabi::stdx::optional< bsoncxx::v_noabi::string::view_or_value > const & config_string() const
The current config_string setting.
index & haystack_bucket_size(double haystack_bucket_size)
For geoHaystack indexes, specify the number of units within which to group the location values; i....
index & hidden(bool hidden)
Whether or not the index is hidden from the query planner. A hidden index is not evaluated as part of...
index & language_override(bsoncxx::v_noabi::string::view_or_value language_override)
For text indexes, the name of the field, in the collection’s documents, that contains the override la...
index & twod_location_max(double twod_location_max)
For 2d indexes, the upper inclusive boundary for the longitude and latitude values.
index & background(bool background)
Whether or not to build the index in the background so that building the index does not block other d...
index & expire_after(std::chrono::seconds seconds)
Set a value, in seconds, as a TTL to control how long MongoDB retains documents in this collection.
index & weights(bsoncxx::v_noabi::document::view weights)
For text indexes, sets the weight document. The weight document contains field and weight pairs.
index & unique(bool unique)
Whether or not to create a unique index so that the collection will not accept insertion of documents...
index & storage_options(std::unique_ptr< base_storage_options > storage_options)
Specifies the storage engine options for the index.
index & collation(bsoncxx::v_noabi::document::view collation)
Sets the collation for this index.
index & name(bsoncxx::v_noabi::string::view_or_value name)
The name of the index.
index & storage_engine(bsoncxx::v_noabi::stdx::optional< bsoncxx::v_noabi::document::view > storage_engine)
Specifies the storage engine options for the index.
index & version(std::int32_t v)
Sets the index version.
index & twod_location_min(double twod_location_min)
For 2d indexes, the lower inclusive boundary for the longitude and latitude values.
index & default_language(bsoncxx::v_noabi::string::view_or_value default_language)
For text indexes, the language that determines the list of stop words and the rules for the stemmer a...
index & twod_bits_precision(std::uint8_t twod_bits_precision)
For 2d indexes, the precision of the stored geohash value of the location data.
index & partial_filter_expression(bsoncxx::v_noabi::document::view partial_filter_expression)
Sets the document for the partial filter expression for partial indexes.
operator bsoncxx::v_noabi::document::view_or_value()
Conversion operator that provides a view of the options in document form.
index & twod_sphere_version(std::uint8_t twod_sphere_version)
For 2dsphere indexes, the 2dsphere index version number. Version can be either 1 or 2.
index & sparse(bool sparse)
Whether or not to create a sparse index. Sparse indexes only reference documents with the indexed fie...
Declares mongocxx::v_noabi::collection.
Provides bsoncxx::v_noabi::document::value.
Provides bsoncxx::v_noabi::document::view.
Provides bsoncxx::v_noabi::document::view_or_value.
Declares mongocxx::v_noabi::options::index.
#define MONGOCXX_DEPRECATED
Declares the associated entity as deprecated.
Definition export.hpp:25
#define MONGOCXX_ABI_NO_EXPORT
Excludes the associated entity from being part of the ABI.
Definition export.hpp:20
#define MONGOCXX_ABI_EXPORT_CDECL(...)
Equivalent to MONGOCXX_ABI_EXPORT with MONGOCXX_ABI_CDECL.
Definition export.hpp:52
#define MONGOCXX_ABI_EXPORT
Exports the associated entity as part of the ABI.
Definition export.hpp:15
The mongocxx v_noabi macro guard postlude header.
The mongocxx v_noabi macro guard prelude header.
The top-level namespace within which all bsoncxx library entities are declared.
Declares entities representing options to use with various commands.
Declares entities whose ABI stability is NOT guaranteed.
The top-level namespace within which all mongocxx library entities are declared.
Provides bsoncxx::v_noabi::string::view_or_value.
Provides std::optional-related polyfills for library API usage.