156 stdx::optional<
std::
string> _bucket_name;
157 stdx::optional<
std::int32_t> _chunk_size_bytes;
168#include <mongocxx/config/postlude.hpp>
A polyfill for std::optional<T>.
Definition optional.hpp:874
Class representing the optional arguments to a MongoDB GridFS bucket creation operation.
Definition bucket.hpp:38
const stdx::optional< std::int32_t > & chunk_size_bytes() const
Gets the size of the chunks in the bucket.
bucket & read_concern(mongocxx::v_noabi::read_concern read_concern)
Sets the read concern to be used when reading from the bucket. Defaults to the read concern of the da...
const stdx::optional< std::string > & bucket_name() const
Gets the name of the bucket.
bucket & chunk_size_bytes(std::int32_t chunk_size_bytes)
Sets the size of the chunks in the bucket. This will be used as the chunk size for files uploaded thr...
bucket & bucket_name(std::string bucket_name)
Sets the name of the bucket. Defaults to 'fs'.
A class to represent the read concern. Read concern can be set at the client, database,...
Definition read_concern.hpp:58
Class representing a preference for how the driver routes read operations to members of a replica set...
Definition read_preference.hpp:65
Class representing the server-side requirement for reporting the success of a write operation....
Definition write_concern.hpp:61
#define MONGOCXX_ABI_EXPORT_CDECL(...)
Equivalent to MONGOCXX_ABI_EXPORT with MONGOCXX_ABI_CDECL.
Definition fwd.hpp:222
The mongocxx macro guard prelude header.
The top-level namespace within which all mongocxx library entities are declared.
The top-level namespace reserved for the C++ standard library.
Provides std::optional-related polyfills for library API usage.
Declares mongocxx::v_noabi::options::gridfs::bucket.
Provides mongocxx::v_noabi::read_concern.
Provides mongocxx::v_noabi::read_preference.
Redeclares bsoncxx::v_noabi::stdx in mongocxx::v_noabi::stdx for internal use.
Provides mongocxx::v_noabi::write_concern.