79 if (_bypass_document_validation) {
109 if (_write_concern) {
113 if (_bypass_document_validation) {
150 return _bypass_document_validation;
167 _read_concern = std::move(rc);
180 return _read_concern;
197 _write_concern = std::move(wc);
210 return _write_concern;
297 return {std::move(v)};
306 return {std::move(v)};
A polyfill for std::optional<T>.
Definition optional.hpp:799
A union of BSON type values.
Definition value.hpp:52
insert()=default
Default initialization.
Options for an "insertMany" operation.
Definition insert_many_options.hpp:49
insert_many_options & read_concern(v1::read_concern v)
Set the "readConcern" field.
insert_many_options & write_concern(v1::write_concern v)
Set the "writeConcern" field.
insert_many_options & bypass_document_validation(bool v)
Set the "bypassDocumentValidation" field.
insert_many_options & comment(bsoncxx::v1::types::value v)
Set the "comment" field.
insert_many_options & ordered(bool v)
Set the "ordered" field.
Options for an "insertOne" operation.
Definition insert_one_options.hpp:48
insert_one_options & read_concern(v1::read_concern v)
Set the "readConcern" field.
insert_one_options & comment(bsoncxx::v1::types::value v)
Set the "comment" field.
insert_one_options & write_concern(v1::write_concern v)
Set the "writeConcern" field.
insert_one_options & bypass_document_validation(bool v)
Set the "bypassDocumentValidation" field.
Used by mongocxx::v_noabi::collection.
Definition insert.hpp:45
operator v1::insert_one_options() const
Convert to the mongocxx::v1 equivalent.
Definition insert.hpp:99
operator v1::insert_many_options() const
Convert to the mongocxx::v1 equivalent.
Definition insert.hpp:65
insert()=default
Default initialization.
insert & write_concern(v_noabi::write_concern wc)
Sets the write_concern for this operation.
Definition insert.hpp:196
insert & comment(bsoncxx::v_noabi::types::bson_value::view_or_value comment)
Sets the comment for this operation.
Definition insert.hpp:261
bsoncxx::v_noabi::stdx::optional< bool > const & ordered() const
The current ordered value for this operation.
Definition insert.hpp:244
bsoncxx::v_noabi::stdx::optional< v_noabi::read_concern > const & read_concern() const
The current read_concern for this operation.
Definition insert.hpp:179
insert & bypass_document_validation(bool bypass_document_validation)
Sets the bypass_document_validation option. If true, allows the write to opt-out of document level va...
Definition insert.hpp:139
bsoncxx::v_noabi::stdx::optional< bsoncxx::v_noabi::types::bson_value::view_or_value > const & comment() const
The current comment for this operation.
Definition insert.hpp:274
insert & ordered(bool ordered)
Definition insert.hpp:231
bsoncxx::v_noabi::stdx::optional< v_noabi::write_concern > const & write_concern() const
The current write_concern for this operation.
Definition insert.hpp:209
insert & read_concern(v_noabi::read_concern rc)
Sets the read_concern for this operation.
Definition insert.hpp:166
bsoncxx::v_noabi::stdx::optional< bool > const & bypass_document_validation() const
Gets the current value of the bypass_document_validation option.
Definition insert.hpp:149
Controls the consistency and isolation properties of data read from replica sets and sharded clusters...
Definition read_concern.hpp:54
The level of acknowledgment requested for write operations to a MongoDB server.
Definition write_concern.hpp:54
Declares mongocxx::v_noabi::options::insert.
Provides mongocxx::v1::insert_many_options.
Provides mongocxx::v1::insert_one_options.
#define MONGOCXX_ABI_EXPORT_CDECL_UNSTABLE(...)
Equivalent to MONGOCXX_ABI_EXPORT_UNSTABLE with MONGOCXX_ABI_CDECL.
Definition config.hpp:28
The mongocxx v_noabi macro guard postlude header.
The mongocxx v_noabi macro guard prelude header.
v_noabi::view_or_value< view, value > view_or_value
Equivalent to v_noabi::view_or_value<view, value>.
Definition view_or_value.hpp:31
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.
Provides bsoncxx::v_noabi::types::bson_value::view_or_value.
Provides bsoncxx::v1::types::value.
Provides bsoncxx::v_noabi::document::view.
Provides std::optional-related polyfills for library API usage.
Provides bsoncxx::v_noabi::types::bson_value::view.
Provides mongocxx::v_noabi::read_concern.
Provides mongocxx::v_noabi::write_concern.