100 if (_commit_quorum) {
168 return _write_concern;
221 return _commit_quorum;
241 return {std::move(v)};
248 return {std::move(v)};
A BSON document.
Definition value.hpp:46
A polyfill for std::optional<T>.
Definition optional.hpp:799
index_view()=default
Default initialization.
Options for mongocxx::v1::indexes::create_many.
Definition indexes.hpp:536
create_many_options & write_concern(v1::write_concern v)
Set the "writeConcern" field.
create_many_options & commit_quorum(bsoncxx::v1::document::value v)
Set the "commitQuorum" field.
create_many_options & max_time(std::chrono::milliseconds v)
Set the "maxTimeMS" field.
Options for mongocxx::v1::indexes::create_one.
Definition indexes.hpp:435
create_one_options & write_concern(v1::write_concern v)
Set the "writeConcern" field.
create_one_options & commit_quorum(bsoncxx::v1::document::value v)
Set the "commitQuorum" field.
create_one_options & max_time(std::chrono::milliseconds v)
Set the "maxTimeMS" field.
Used by MongoDB index view operations.
Definition index_view.hpp:45
bsoncxx::v_noabi::stdx::optional< v_noabi::write_concern > const & write_concern() const
Gets the current write concern.
Definition index_view.hpp:167
index_view & commit_quorum(std::string commit_quorum)
Sets the commit quorum for this operation.
operator v1::indexes::create_many_options() const
Convert to the mongocxx::v1 equivalent.
Definition index_view.hpp:65
index_view & commit_quorum(std::int32_t commit_quorum)
Sets the commit quorum for this operation.
operator v1::indexes::create_one_options() const
Convert to the mongocxx::v1 equivalent.
Definition index_view.hpp:86
bsoncxx::v_noabi::stdx::optional< bsoncxx::v_noabi::document::value > const commit_quorum() const
Gets the current commitQuorum setting.
Definition index_view.hpp:220
index_view & write_concern(v_noabi::write_concern write_concern)
Sets the write concern for this operation.
Definition index_view.hpp:153
bsoncxx::v_noabi::stdx::optional< std::chrono::milliseconds > const & max_time() const
The current max_time setting.
Definition index_view.hpp:136
index_view & max_time(std::chrono::milliseconds max_time)
Sets the maximum amount of time for this operation to run (server-side) in milliseconds.
Definition index_view.hpp:122
index_view()=default
Default initialization.
The level of acknowledgment requested for write operations to a MongoDB server.
Definition write_concern.hpp:54
Provides mongocxx::v1::indexes.
#define MONGOCXX_ABI_EXPORT_CDECL(...)
Equivalent to MONGOCXX_ABI_EXPORT with MONGOCXX_ABI_CDECL.
Definition export.hpp:52
The mongocxx v_noabi macro guard postlude header.
The mongocxx v_noabi macro guard prelude header.
v1::element::view to_v1(v_noabi::array::element const &v)
Convert to the bsoncxx::v1 equivalent of v.
Definition element.hpp:132
Declares entities whose ABI stability is guaranteed for documented symbols.
Declares entities representing options to use with various commands.
Declares entities whose ABI stability is NOT guaranteed.
v1::bulk_write to_v1(v_noabi::bulk_write v)
Convert to the mongocxx::v1 equivalent of v.
Definition bulk_write.hpp:162
v_noabi::bulk_write from_v1(v1::bulk_write v)
Convert to the mongocxx::v_noabi equivalent of v.
Definition bulk_write.hpp:155
The top-level namespace within which all mongocxx library entities are declared.
Declares mongocxx::v_noabi::options::index_view.
Provides bsoncxx::v1::document::value.
Provides bsoncxx::v_noabi::document::value.
Provides bsoncxx::v_noabi::document::view.
Provides std::optional-related polyfills for library API usage.
Provides mongocxx::v_noabi::write_concern.