74 if (_bypass_document_validation) {
100 if (_write_concern) {
104 if (_bypass_document_validation) {
141 return _bypass_document_validation;
158 _write_concern = std::move(wc);
171 return _write_concern;
257 return {std::move(v)};
266 return {std::move(v)};
A polyfill for std::optional<T>.
Definition optional.hpp:799
A union of BSON type values.
Definition value.hpp:54
insert()=default
Default initialization.
Options for an "insertMany" operation.
Definition insert_many_options.hpp:49
insert_many_options & comment(bsoncxx::v1::types::value comment)
Set the "comment" field.
insert_many_options & write_concern(v1::write_concern wc)
Set the "write_concern" field.
insert_many_options & ordered(bool ordered)
Set the "ordered" field.
insert_many_options & bypass_document_validation(bool bypass_document_validation)
Set the "bypass_document_validation" field.
Options for an "insertOne" operation.
Definition insert_one_options.hpp:48
insert_one_options & comment(bsoncxx::v1::types::value comment)
Set the "comment" field.
insert_one_options & bypass_document_validation(bool bypass_document_validation)
Set the "bypassDocumentValidation" field.
insert_one_options & write_concern(v1::write_concern wc)
Set the "writeConcern" field.
Used by mongocxx::v_noabi::collection.
Definition insert.hpp:44
operator v1::insert_one_options() const
Convert to the mongocxx::v1 equivalent.
Definition insert.hpp:94
operator v1::insert_many_options() const
Convert to the mongocxx::v1 equivalent.
Definition insert.hpp:64
insert()=default
Default initialization.
insert & write_concern(v_noabi::write_concern wc)
Sets the write_concern for this operation.
Definition insert.hpp:157
insert & comment(bsoncxx::v_noabi::types::bson_value::view_or_value comment)
Sets the comment for this operation.
Definition insert.hpp:222
bsoncxx::v_noabi::stdx::optional< bool > const & ordered() const
The current ordered value for this operation.
Definition insert.hpp:205
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:130
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:235
insert & ordered(bool ordered)
Definition insert.hpp:192
bsoncxx::v_noabi::stdx::optional< v_noabi::write_concern > const & write_concern() const
The current write_concern for this operation.
Definition insert.hpp:170
bsoncxx::v_noabi::stdx::optional< bool > const & bypass_document_validation() const
Gets the current value of the bypass_document_validation option.
Definition insert.hpp:140
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(...)
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.
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::write_concern.