62 if (_chunk_size_bytes) {
96 return _chunk_size_bytes;
142 return {std::move(v)};
A BSON document.
Definition value.hpp:46
A polyfill for std::optional<T>.
Definition optional.hpp:799
upload()=default
Default initialization.
Options related to uploading a file to a GridFS bucket.
Definition upload_options.hpp:48
upload_options & metadata(bsoncxx::v1::document::value metadata)
Set the "metadata" field.
upload_options & chunk_size_bytes(std::int32_t chunk_size_bytes)
Set the "chunkSizeBytes" field.
Used by mongocxx::v_noabi::gridfs::bucket.
Definition upload.hpp:42
bsoncxx::v_noabi::stdx::optional< std::int32_t > const & chunk_size_bytes() const
Gets the chunk size of the GridFS file being uploaded.
Definition upload.hpp:95
bsoncxx::v_noabi::stdx::optional< bsoncxx::v_noabi::document::view_or_value > const & metadata() const
Gets the metadata of the GridFS file being uploaded.
Definition upload.hpp:121
upload & metadata(bsoncxx::v_noabi::document::view_or_value metadata)
Sets the metadata field of the GridFS file being uploaded. A GridFS file can store arbitrary metadata...
Definition upload.hpp:110
upload()=default
Default initialization.
operator v1::gridfs::upload_options() const
Convert to the mongocxx::v1 equivalent.
Definition upload.hpp:57
upload & chunk_size_bytes(std::int32_t chunk_size_bytes)
Sets the chunk size of the GridFS file being uploaded. Defaults to the chunk size specified in option...
Definition upload.hpp:84
Provides bsoncxx::v_noabi::document::view_or_value.
#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< v_noabi::document::view, v_noabi::document::value > view_or_value
Equivalent to v_noabi::view_or_value<v_noabi::document::view, v_noabi::document::value>.
Definition view_or_value.hpp:30
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 specific to GridFS.
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::gridfs::upload.
Provides mongocxx::v1::gridfs::upload_options.
Provides bsoncxx::v1::document::value.
Provides bsoncxx::v_noabi::document::view.
Provides std::optional-related polyfills for library API usage.