MongoDB C++ Driver
mongocxx-3.10.2
|
Class representing the optional arguments to a MongoDB GridFS upload operation. More...
#include <upload.hpp>
Public Member Functions | |
upload & | chunk_size_bytes (std::int32_t chunk_size_bytes) |
Sets the chunk size of the GridFS file being uploaded. More... | |
const stdx::optional< std::int32_t > & | chunk_size_bytes () const |
Gets the chunk size of the GridFS file being uploaded. More... | |
upload & | metadata (bsoncxx::v_noabi::document::view_or_value metadata) |
Sets the metadata field of the GridFS file being uploaded. More... | |
const stdx::optional< bsoncxx::v_noabi::document::view_or_value > & | metadata () const |
Gets the metadata of the GridFS file being uploaded. More... | |
Class representing the optional arguments to a MongoDB GridFS upload operation.
const stdx::optional<std::int32_t>& mongocxx::v_noabi::options::gridfs::upload::chunk_size_bytes | ( | ) | const |
Gets the chunk size of the GridFS file being uploaded.
upload& mongocxx::v_noabi::options::gridfs::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 options::gridfs::bucket.
chunk_size_bytes | The size of the chunks in bytes. |
const stdx::optional<bsoncxx::v_noabi::document::view_or_value>& mongocxx::v_noabi::options::gridfs::upload::metadata | ( | ) | const |
Gets the metadata of the GridFS file being uploaded.
upload& mongocxx::v_noabi::options::gridfs::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 in the form of a BSON document.
metadata | The metadata document for the GridFS file. |