Loading...
Searching...
No Matches
index.hpp
Go to the documentation of this file.
// Copyright 2009-present MongoDB, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
#pragma once
#include <mongocxx/options/index-fwd.hpp> // IWYU pragma: export
//
#include <mongocxx/v1/indexes.hpp> // IWYU pragma: export
#include <chrono>
#include <cstdint>
#include <memory>
#include <string>
#include <utility>
#include <mongocxx/collection-fwd.hpp>
#include <bsoncxx/document/value.hpp> // IWYU pragma: keep: backward compatibility, to be removed.
#include <bsoncxx/document/view.hpp>
#include <bsoncxx/document/view_or_value.hpp>
#include <bsoncxx/stdx/optional.hpp>
#include <bsoncxx/string/view_or_value.hpp>
#include <bsoncxx/config/prelude.hpp>
#include <mongocxx/config/prelude.hpp>
namespace mongocxx {
namespace v_noabi {
namespace options {
class index {
public:
BSONCXX_PRIVATE_WARNINGS_PUSH();
BSONCXX_PRIVATE_WARNINGS_DISABLE(MSVC(4251));
BSONCXX_PRIVATE_WARNINGS_DISABLE(MSVC(4275));
class MONGOCXX_ABI_EXPORT_UNSTABLE base_storage_options {
public:
virtual ~base_storage_options();
base_storage_options(base_storage_options&&) = default;
base_storage_options& operator=(base_storage_options&&) = default;
base_storage_options(base_storage_options const&) = default;
base_storage_options& operator=(base_storage_options const&) = default;
base_storage_options() = default;
private:
friend v_noabi::options::index;
virtual int type() const = 0;
};
class MONGOCXX_ABI_EXPORT_UNSTABLE wiredtiger_storage_options final : public base_storage_options {
public:
~wiredtiger_storage_options() override;
wiredtiger_storage_options(wiredtiger_storage_options&&) = default;
wiredtiger_storage_options& operator=(wiredtiger_storage_options&&) = default;
wiredtiger_storage_options(wiredtiger_storage_options const&) = default;
wiredtiger_storage_options& operator=(wiredtiger_storage_options const&) = default;
wiredtiger_storage_options() = default;
void config_string(bsoncxx::v_noabi::string::view_or_value config_string) {
_config_string = std::move(config_string);
}
bsoncxx::v_noabi::stdx::optional<bsoncxx::v_noabi::string::view_or_value> const& config_string() const {
return _config_string;
}
private:
friend v_noabi::collection;
MONGOCXX_ABI_NO_EXPORT int type() const override;
bsoncxx::v_noabi::stdx::optional<bsoncxx::v_noabi::string::view_or_value> _config_string;
};
BSONCXX_PRIVATE_WARNINGS_POP();
index() = default;
/* explicit(false) */ MONGOCXX_ABI_EXPORT_CDECL_UNSTABLE() index(v1::indexes::options const& opts);
explicit operator v1::indexes::options() const {
using bsoncxx::v_noabi::to_v1;
v1::indexes::options ret;
if (_background) {
ret.background(*_background);
}
if (_unique) {
ret.unique(*_unique);
}
if (_hidden) {
ret.hidden(*_hidden);
}
if (_name) {
ret.name(std::string{_name->view()});
}
if (_collation) {
ret.collation(bsoncxx::v1::document::value{to_v1(*_collation)});
}
if (_sparse) {
ret.sparse(*_sparse);
}
// _storage_options
if (_storage_engine) {
ret.storage_engine(bsoncxx::v1::document::value{to_v1(*_storage_engine)});
}
if (_expire_after) {
ret.expire_after(*_expire_after);
}
if (_version) {
ret.version(*_version);
}
if (_weights) {
ret.weights(bsoncxx::v1::document::value{to_v1(*_weights)});
}
if (_default_language) {
ret.default_language(std::string{_default_language->view()});
}
if (_language_override) {
ret.language_override(std::string{_language_override->view()});
}
if (_partial_filter_expression) {
ret.partial_filter_expression(bsoncxx::v1::document::value{to_v1(*_partial_filter_expression)});
}
if (_twod_sphere_version) {
ret.twod_sphere_version(*_twod_sphere_version);
}
if (_twod_bits_precision) {
ret.twod_bits_precision(*_twod_bits_precision);
}
if (_twod_location_min) {
ret.twod_location_min(*_twod_location_min);
}
if (_twod_location_max) {
ret.twod_location_max(*_twod_location_max);
}
// _haystack_bucket_size
return ret;
}
index& background(bool background) {
_background = std::move(background);
return *this;
}
bsoncxx::v_noabi::stdx::optional<bool> const& background() const {
return _background;
}
index& unique(bool unique) {
_unique = std::move(unique);
return *this;
}
bsoncxx::v_noabi::stdx::optional<bool> const& unique() const {
return _unique;
}
index& hidden(bool hidden) {
_hidden = std::move(hidden);
return *this;
}
bsoncxx::v_noabi::stdx::optional<bool> const& hidden() const {
return _hidden;
}
index& name(bsoncxx::v_noabi::string::view_or_value name) {
_name = std::move(name);
return *this;
}
bsoncxx::v_noabi::stdx::optional<bsoncxx::v_noabi::string::view_or_value> const& name() const {
return _name;
}
index& collation(bsoncxx::v_noabi::document::view collation) {
_collation = std::move(collation);
return *this;
}
bsoncxx::v_noabi::stdx::optional<bsoncxx::v_noabi::document::view> const& collation() const {
return _collation;
}
index& sparse(bool sparse) {
_sparse = std::move(sparse);
return *this;
}
bsoncxx::v_noabi::stdx::optional<bool> const& sparse() const {
return _sparse;
}
MONGOCXX_DEPRECATED index& storage_options(std::unique_ptr<base_storage_options> storage_options) {
_storage_options = std::move(storage_options);
return *this;
}
MONGOCXX_DEPRECATED index& storage_options(std::unique_ptr<wiredtiger_storage_options> storage_options) {
_storage_options = std::move(storage_options);
return *this;
}
index& storage_engine(bsoncxx::v_noabi::stdx::optional<bsoncxx::v_noabi::document::view> storage_engine) {
_storage_engine = std::move(storage_engine);
return *this;
}
bsoncxx::v_noabi::stdx::optional<bsoncxx::v_noabi::document::view> const& storage_engine() const {
return _storage_engine;
}
index& expire_after(std::chrono::seconds seconds) {
_expire_after = std::move(seconds);
return *this;
}
bsoncxx::v_noabi::stdx::optional<std::chrono::seconds> const& expire_after() const {
return _expire_after;
}
index& version(std::int32_t v) {
_version = std::move(v);
return *this;
}
bsoncxx::v_noabi::stdx::optional<std::int32_t> const& version() const {
return _version;
}
index& weights(bsoncxx::v_noabi::document::view weights) {
_weights = std::move(weights);
return *this;
}
bsoncxx::v_noabi::stdx::optional<bsoncxx::v_noabi::document::view> const& weights() const {
return _weights;
}
index& default_language(bsoncxx::v_noabi::string::view_or_value default_language) {
_default_language = std::move(default_language);
return *this;
}
bsoncxx::v_noabi::stdx::optional<bsoncxx::v_noabi::string::view_or_value> const& default_language() const {
return _default_language;
}
index& language_override(bsoncxx::v_noabi::string::view_or_value language_override) {
_language_override = std::move(language_override);
return *this;
}
bsoncxx::v_noabi::stdx::optional<bsoncxx::v_noabi::string::view_or_value> const& language_override() const {
return _language_override;
}
index& partial_filter_expression(bsoncxx::v_noabi::document::view partial_filter_expression) {
_partial_filter_expression = std::move(partial_filter_expression);
return *this;
}
bsoncxx::v_noabi::stdx::optional<bsoncxx::v_noabi::document::view> const& partial_filter_expression() const {
return _partial_filter_expression;
}
index& twod_sphere_version(std::uint8_t twod_sphere_version) {
_twod_sphere_version = std::move(twod_sphere_version);
return *this;
}
bsoncxx::v_noabi::stdx::optional<std::uint8_t> const& twod_sphere_version() const {
return _twod_sphere_version;
}
index& twod_bits_precision(std::uint8_t twod_bits_precision) {
_twod_bits_precision = std::move(twod_bits_precision);
return *this;
}
bsoncxx::v_noabi::stdx::optional<std::uint8_t> const& twod_bits_precision() const {
return _twod_bits_precision;
}
index& twod_location_min(double twod_location_min) {
_twod_location_min = std::move(twod_location_min);
return *this;
}
bsoncxx::v_noabi::stdx::optional<double> const& twod_location_min() const {
return _twod_location_min;
}
index& twod_location_max(double twod_location_max) {
_twod_location_max = std::move(twod_location_max);
return *this;
}
bsoncxx::v_noabi::stdx::optional<double> const& twod_location_max() const {
return _twod_location_max;
}
MONGOCXX_DEPRECATED index& haystack_bucket_size(double haystack_bucket_size) {
return this->haystack_bucket_size_deprecated(haystack_bucket_size);
}
index& haystack_bucket_size_deprecated(double haystack_bucket_size) {
_haystack_bucket_size = haystack_bucket_size;
return *this;
}
MONGOCXX_DEPRECATED bsoncxx::v_noabi::stdx::optional<double> const& haystack_bucket_size() const {
return this->haystack_bucket_size_deprecated();
}
bsoncxx::v_noabi::stdx::optional<double> const& haystack_bucket_size_deprecated() const {
return _haystack_bucket_size;
}
MONGOCXX_ABI_EXPORT_CDECL_UNSTABLE() operator bsoncxx::v_noabi::document::view_or_value();
class internal;
private:
bsoncxx::v_noabi::stdx::optional<bool> _background;
bsoncxx::v_noabi::stdx::optional<bool> _unique;
bsoncxx::v_noabi::stdx::optional<bool> _hidden;
bsoncxx::v_noabi::stdx::optional<bsoncxx::v_noabi::string::view_or_value> _name;
bsoncxx::v_noabi::stdx::optional<bsoncxx::v_noabi::document::view> _collation;
bsoncxx::v_noabi::stdx::optional<bool> _sparse;
std::unique_ptr<base_storage_options> _storage_options;
bsoncxx::v_noabi::stdx::optional<bsoncxx::v_noabi::document::view> _storage_engine;
bsoncxx::v_noabi::stdx::optional<std::chrono::seconds> _expire_after;
bsoncxx::v_noabi::stdx::optional<std::int32_t> _version;
bsoncxx::v_noabi::stdx::optional<bsoncxx::v_noabi::document::view> _weights;
bsoncxx::v_noabi::stdx::optional<bsoncxx::v_noabi::string::view_or_value> _default_language;
bsoncxx::v_noabi::stdx::optional<bsoncxx::v_noabi::string::view_or_value> _language_override;
bsoncxx::v_noabi::stdx::optional<bsoncxx::v_noabi::document::view> _partial_filter_expression;
bsoncxx::v_noabi::stdx::optional<std::uint8_t> _twod_sphere_version;
bsoncxx::v_noabi::stdx::optional<std::uint8_t> _twod_bits_precision;
bsoncxx::v_noabi::stdx::optional<double> _twod_location_min;
bsoncxx::v_noabi::stdx::optional<double> _twod_location_max;
bsoncxx::v_noabi::stdx::optional<double> _haystack_bucket_size;
};
} // namespace options
} // namespace v_noabi
} // namespace mongocxx
namespace mongocxx {
namespace v_noabi {
inline v_noabi::options::index from_v1(v1::indexes::options const& v) {
return {v};
}
inline v1::indexes::options to_v1(v_noabi::options::index const& v) {
return v1::indexes::options{v};
}
} // namespace v_noabi
} // namespace mongocxx
#include <bsoncxx/config/postlude.hpp>
#include <mongocxx/config/postlude.hpp>
postlude.hpp
The bsoncxx v_noabi macro guard postlude header.
prelude.hpp
The bsoncxx v_noabi macro guard prelude header.
bsoncxx::v1::document::value
A BSON document.
Definition value.hpp:44
bsoncxx::v1::stdx::optional
A polyfill for std::optional<T>.
Definition optional.hpp:799
bsoncxx::v_noabi::document::view
A read-only, non-owning view of a BSON document.
Definition view.hpp:40
bsoncxx::v_noabi::string::view_or_value
A view-or-value variant type for strings.
Definition view_or_value.hpp:41
mongocxx::options::index::index
index()=default
Default initialization.
mongocxx::v1::indexes::options
Options for mongocxx::v1::indexes::model.
Definition indexes.hpp:89
mongocxx::v1::indexes::options::collation
options & collation(bsoncxx::v1::document::value v)
Set the "collation" field.
mongocxx::v1::indexes::options::twod_location_min
options & twod_location_min(double v)
Set the "min" field.
mongocxx::v1::indexes::options::default_language
options & default_language(std::string v)
Set the "default_language" field.
mongocxx::v1::indexes::options::expire_after
options & expire_after(std::chrono::seconds v)
Set the "expireAfterSeconds" field.
mongocxx::v1::indexes::options::twod_location_max
options & twod_location_max(double v)
Set the "max" field.
mongocxx::v1::indexes::options::background
options & background(bool v)
Set the "background" field.
mongocxx::v1::indexes::options::partial_filter_expression
options & partial_filter_expression(bsoncxx::v1::document::value v)
Set the "partialFilterExpression" field.
mongocxx::v1::indexes::options::language_override
options & language_override(std::string v)
Set the "language_override" field.
mongocxx::v1::indexes::options::storage_engine
options & storage_engine(bsoncxx::v1::document::value v)
Set the "storageEngine" field.
mongocxx::v1::indexes::options::version
options & version(std::int32_t v)
Set the "version" field.
mongocxx::v1::indexes::options::twod_sphere_version
options & twod_sphere_version(std::uint8_t v)
Set the "2dsphereIndexVersion" field.
mongocxx::v1::indexes::options::sparse
options & sparse(bool v)
Set the "sparse" field.
mongocxx::v1::indexes::options::weights
options & weights(bsoncxx::v1::document::value v)
Set the "weights" field.
mongocxx::v1::indexes::options::unique
options & unique(bool v)
Set the "unique" field.
mongocxx::v1::indexes::options::hidden
options & hidden(bool v)
Set the "hidden" field.
mongocxx::v1::indexes::options::name
options & name(std::string v)
Set the "name" field.
mongocxx::v1::indexes::options::twod_bits_precision
options & twod_bits_precision(std::uint8_t v)
Set the "bits" field.
mongocxx::v_noabi::collection
A MongoDB collection.
Definition collection.hpp:98
mongocxx::v_noabi::options::index::base_storage_options
Base class representing the optional storage engine options for indexes.
Definition index.hpp:62
mongocxx::v_noabi::options::index::wiredtiger_storage_options::config_string
void config_string(bsoncxx::v_noabi::string::view_or_value config_string)
Set the WiredTiger configuration string.
Definition index.hpp:101
mongocxx::v_noabi::options::index::wiredtiger_storage_options::config_string
bsoncxx::v_noabi::stdx::optional< bsoncxx::v_noabi::string::view_or_value > const & config_string() const
The current config_string setting.
Definition index.hpp:110
mongocxx::v_noabi::options::index
Used by MongoDB index creation operations.
Definition index.hpp:51
mongocxx::v_noabi::options::index::expire_after
bsoncxx::v_noabi::stdx::optional< std::chrono::seconds > const & expire_after() const
The current expire_after setting.
Definition index.hpp:475
mongocxx::v_noabi::options::index::haystack_bucket_size
index & haystack_bucket_size(double haystack_bucket_size)
For geoHaystack indexes, specify the number of units within which to group the location values; i....
Definition index.hpp:716
mongocxx::v_noabi::options::index::hidden
index & hidden(bool hidden)
Whether or not the index is hidden from the query planner. A hidden index is not evaluated as part of...
Definition index.hpp:291
mongocxx::v_noabi::options::index::language_override
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...
Definition index.hpp:564
mongocxx::v_noabi::options::index::weights
bsoncxx::v_noabi::stdx::optional< bsoncxx::v_noabi::document::view > const & weights() const
The current weights setting.
Definition index.hpp:524
mongocxx::v_noabi::options::index::options
operator v1::indexes::options() const
Convert to the mongocxx::v1 equivalent.
Definition index.hpp:141
mongocxx::v_noabi::options::index::twod_location_max
index & twod_location_max(double twod_location_max)
For 2d indexes, the upper inclusive boundary for the longitude and latitude values.
Definition index.hpp:684
mongocxx::v_noabi::options::index::background
index & background(bool background)
Whether or not to build the index in the background so that building the index does not block other d...
Definition index.hpp:235
mongocxx::v_noabi::options::index::expire_after
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.
Definition index.hpp:465
mongocxx::v_noabi::options::index::weights
index & weights(bsoncxx::v_noabi::document::view weights)
For text indexes, sets the weight document. The weight document contains field and weight pairs.
Definition index.hpp:514
mongocxx::v_noabi::options::index::unique
index & unique(bool unique)
Whether or not to create a unique index so that the collection will not accept insertion of documents...
Definition index.hpp:263
mongocxx::v_noabi::options::index::partial_filter_expression
bsoncxx::v_noabi::stdx::optional< bsoncxx::v_noabi::document::view > const & partial_filter_expression() const
The current partial_filter_expression setting.
Definition index.hpp:598
mongocxx::v_noabi::options::index::twod_location_min
bsoncxx::v_noabi::stdx::optional< double > const & twod_location_min() const
The current lower inclusive boundary for the longitude and latitude values.
Definition index.hpp:670
mongocxx::v_noabi::options::index::language_override
bsoncxx::v_noabi::stdx::optional< bsoncxx::v_noabi::string::view_or_value > const & language_override() const
The current name of the field that contains the override language for text indexes.
Definition index.hpp:574
mongocxx::v_noabi::options::index::name
bsoncxx::v_noabi::stdx::optional< bsoncxx::v_noabi::string::view_or_value > const & name() const
The current name setting.
Definition index.hpp:325
mongocxx::v_noabi::options::index::haystack_bucket_size
bsoncxx::v_noabi::stdx::optional< double > const & haystack_bucket_size() const
The current haystack_bucket_size setting.
Definition index.hpp:733
mongocxx::v_noabi::options::index::storage_options
index & storage_options(std::unique_ptr< base_storage_options > storage_options)
Specifies the storage engine options for the index.
Definition index.hpp:402
mongocxx::v_noabi::options::index::version
bsoncxx::v_noabi::stdx::optional< std::int32_t > const & version() const
The current index version.
Definition index.hpp:499
mongocxx::v_noabi::options::index::sparse
bsoncxx::v_noabi::stdx::optional< bool > const & sparse() const
The current sparse setting.
Definition index.hpp:384
mongocxx::v_noabi::options::index::collation
index & collation(bsoncxx::v_noabi::document::view collation)
Sets the collation for this index.
Definition index.hpp:342
mongocxx::v_noabi::options::index::name
index & name(bsoncxx::v_noabi::string::view_or_value name)
The name of the index.
Definition index.hpp:315
mongocxx::v_noabi::options::index::twod_sphere_version
bsoncxx::v_noabi::stdx::optional< std::uint8_t > const & twod_sphere_version() const
The current twod_sphere_version setting.
Definition index.hpp:622
mongocxx::v_noabi::options::index::storage_engine
index & storage_engine(bsoncxx::v_noabi::stdx::optional< bsoncxx::v_noabi::document::view > storage_engine)
Specifies the storage engine options for the index.
Definition index.hpp:439
mongocxx::v_noabi::options::index::version
index & version(std::int32_t v)
Sets the index version.
Definition index.hpp:489
mongocxx::v_noabi::options::index::unique
bsoncxx::v_noabi::stdx::optional< bool > const & unique() const
The current unique setting.
Definition index.hpp:273
mongocxx::v_noabi::options::index::twod_location_min
index & twod_location_min(double twod_location_min)
For 2d indexes, the lower inclusive boundary for the longitude and latitude values.
Definition index.hpp:660
mongocxx::v_noabi::options::index::default_language
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...
Definition index.hpp:539
mongocxx::v_noabi::options::index::twod_bits_precision
index & twod_bits_precision(std::uint8_t twod_bits_precision)
For 2d indexes, the precision of the stored geohash value of the location data.
Definition index.hpp:636
mongocxx::v_noabi::options::index::storage_options
index & storage_options(std::unique_ptr< wiredtiger_storage_options > storage_options)
Specifies the WiredTiger-specific storage engine options for the index.
Definition index.hpp:417
mongocxx::v_noabi::options::index::storage_engine
bsoncxx::v_noabi::stdx::optional< bsoncxx::v_noabi::document::view > const & storage_engine() const
The current storage engine options.
Definition index.hpp:447
mongocxx::v_noabi::options::index::twod_bits_precision
bsoncxx::v_noabi::stdx::optional< std::uint8_t > const & twod_bits_precision() const
The current precision of the stored geohash value of the location data.
Definition index.hpp:646
mongocxx::v_noabi::options::index::default_language
bsoncxx::v_noabi::stdx::optional< bsoncxx::v_noabi::string::view_or_value > const & default_language() const
The current default_language setting.
Definition index.hpp:549
mongocxx::v_noabi::options::index::index
index()=default
Default initialization.
mongocxx::v_noabi::options::index::partial_filter_expression
index & partial_filter_expression(bsoncxx::v_noabi::document::view partial_filter_expression)
Sets the document for the partial filter expression for partial indexes.
Definition index.hpp:588
mongocxx::v_noabi::options::index::twod_location_max
bsoncxx::v_noabi::stdx::optional< double > const & twod_location_max() const
The current upper inclusive boundary for the longitude and latitude values.
Definition index.hpp:694
mongocxx::v_noabi::options::index::background
bsoncxx::v_noabi::stdx::optional< bool > const & background() const
The current background setting.
Definition index.hpp:245
mongocxx::v_noabi::options::index::collation
bsoncxx::v_noabi::stdx::optional< bsoncxx::v_noabi::document::view > const & collation() const
Retrieves the current collation for this index.
Definition index.hpp:356
mongocxx::v_noabi::options::index::view_or_value
operator bsoncxx::v_noabi::document::view_or_value()
Conversion operator that provides a view of the options in document form.
mongocxx::v_noabi::options::index::twod_sphere_version
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.
Definition index.hpp:612
mongocxx::v_noabi::options::index::sparse
index & sparse(bool sparse)
Whether or not to create a sparse index. Sparse indexes only reference documents with the indexed fie...
Definition index.hpp:374
mongocxx::v_noabi::options::index::hidden
bsoncxx::v_noabi::stdx::optional< bool > const & hidden() const
The current hidden setting.
Definition index.hpp:301
view_or_value.hpp
Provides bsoncxx::v_noabi::document::view_or_value.
index-fwd.hpp
Declares mongocxx::v_noabi::options::index.
indexes.hpp
Provides mongocxx::v1::indexes.
MONGOCXX_DEPRECATED
#define MONGOCXX_DEPRECATED
Declares the associated entity as deprecated.
Definition export.hpp:25
MONGOCXX_ABI_NO_EXPORT
#define MONGOCXX_ABI_NO_EXPORT
Excludes the associated entity from being part of the ABI.
Definition export.hpp:20
MONGOCXX_ABI_EXPORT_UNSTABLE
#define MONGOCXX_ABI_EXPORT_UNSTABLE
Exports the associated entity as part of the unstable ABI.
Definition config.hpp:23
MONGOCXX_ABI_EXPORT_CDECL_UNSTABLE
#define MONGOCXX_ABI_EXPORT_CDECL_UNSTABLE(...)
Equivalent to MONGOCXX_ABI_EXPORT_UNSTABLE with MONGOCXX_ABI_CDECL.
Definition config.hpp:28
postlude.hpp
The mongocxx v_noabi macro guard postlude header.
prelude.hpp
The mongocxx v_noabi macro guard prelude header.
bsoncxx::v_noabi::to_v1
v1::element::view to_v1(v_noabi::array::element const &v)
Convert to the bsoncxx::v1 equivalent of v.
Definition element.hpp:132
bsoncxx
The top-level namespace within which all bsoncxx library entities are declared.
mongocxx::v1
Declares entities whose ABI stability is guaranteed for documented symbols.
mongocxx::v_noabi::options
Declares entities representing options to use with various commands.
mongocxx::v_noabi
Declares entities whose ABI stability is NOT guaranteed.
mongocxx::v_noabi::to_v1
v1::bulk_write to_v1(v_noabi::bulk_write v)
Convert to the mongocxx::v1 equivalent of v.
Definition bulk_write.hpp:162
mongocxx::v_noabi::from_v1
v_noabi::bulk_write from_v1(v1::bulk_write v)
Convert to the mongocxx::v_noabi equivalent of v.
Definition bulk_write.hpp:155
mongocxx
The top-level namespace within which all mongocxx library entities are declared.
view_or_value.hpp
Provides bsoncxx::v_noabi::string::view_or_value.
value.hpp
Provides bsoncxx::v_noabi::document::value.
view.hpp
Provides bsoncxx::v_noabi::document::view.
optional.hpp
Provides std::optional-related polyfills for library API usage.
collection-fwd.hpp
Declares mongocxx::v_noabi::collection.