67 if (_chunk_size_bytes) {
75 if (_read_preference) {
134 return _chunk_size_bytes;
160 return _read_concern;
192 return _read_preference;
218 return _write_concern;
241 return {std::move(v)};
A polyfill for std::optional<T>.
Definition optional.hpp:799
bucket()=default
Default initialization.
Options for mongocxx::v1::gridfs::bucket.
Definition bucket.hpp:345
options & read_concern(v1::read_concern v)
Set the "readConcern" field.
options & chunk_size_bytes(std::int32_t v)
Set the "chunkSizeBytes" field.
options & bucket_name(std::string v)
Set the "bucketName" field.
options & write_concern(v1::write_concern v)
Set the "writeConcern" field.
options & read_preference(v1::read_preference v)
Set the "readPreference" field.
Used by mongocxx::v_noabi::gridfs::bucket.
Definition bucket.hpp:43
bsoncxx::v_noabi::stdx::optional< v_noabi::read_concern > const & read_concern() const
Gets the read concern of the bucket.
Definition bucket.hpp:159
bucket & read_concern(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...
Definition bucket.hpp:148
bsoncxx::v_noabi::stdx::optional< v_noabi::read_preference > const & read_preference() const
Gets the read preference of the bucket.
Definition bucket.hpp:191
bucket & read_preference(v_noabi::read_preference read_preference)
Sets the read preference to be used when reading from the GridFS bucket. Defaults to the read prefere...
Definition bucket.hpp:180
bucket & write_concern(v_noabi::write_concern write_concern)
Sets the write concern to be used when writing to the GridFS bucket. Defaults to the write concern of...
Definition bucket.hpp:206
bsoncxx::v_noabi::stdx::optional< std::string > const & bucket_name() const
Gets the name of the bucket.
Definition bucket.hpp:107
operator v1::gridfs::bucket::options() const
Convert to the mongocxx::v1 equivalent.
Definition bucket.hpp:58
bsoncxx::v_noabi::stdx::optional< v_noabi::write_concern > const & write_concern() const
Gets the write concern of the bucket.
Definition bucket.hpp:217
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...
Definition bucket.hpp:122
bucket()=default
Default initialization.
bucket & bucket_name(std::string bucket_name)
Sets the name of the bucket. Defaults to 'fs'.
Definition bucket.hpp:96
bsoncxx::v_noabi::stdx::optional< std::int32_t > const & chunk_size_bytes() const
Gets the size of the chunks in the bucket.
Definition bucket.hpp:133
Controls the consistency and isolation properties of data read from replica sets and sharded clusters...
Definition read_concern.hpp:54
Describes how MongoDB clients route read operations to the members of a replica set or sharded cluste...
Definition read_preference.hpp:59
The level of acknowledgment requested for write operations to a MongoDB server.
Definition write_concern.hpp:54
#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.
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.
Provides mongocxx::v1::gridfs::bucket.
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.
Provides mongocxx::v_noabi::write_concern.