93 return std::move(_uploader);
104 explicit operator
bool() const noexcept {
105 return _uploader.operator bool();
174 return {std::move(v)};
uploader() noexcept
Default constructs an uploader object. The uploader is equivalent to the state of a moved from upload...
Definition uploader.hpp:59
Support for uploading files to a GridFS bucket.
Definition uploader.hpp:44
Used to upload a GridFS file.
Definition uploader.hpp:49
void abort()
Aborts uploading the file.
uploader() noexcept
Default constructs an uploader object. The uploader is equivalent to the state of a moved from upload...
Definition uploader.hpp:59
std::int32_t chunk_size() const
Gets the chunk size of the file being uploaded.
uploader(uploader &&) noexcept=default
Move constructs an uploader.
void write(std::uint8_t const *bytes, std::size_t length)
Writes a specified number of bytes to a GridFS file.
result::gridfs::upload close()
Closes the uploader stream.
The result of a GridFS upload operation.
Definition upload.hpp:35
#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.
Declares entities whose ABI stability is guaranteed for documented symbols.
Declares entities related to GridFS.
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::v_noabi::result::gridfs::upload.
Provides mongocxx::v1::gridfs::uploader.
Provides bsoncxx::v_noabi::document::value.
Provides std::optional-related polyfills for library API usage.
Provides std::string_view-related polyfills for library API usage.
Provides bsoncxx::v_noabi::types::bson_value::view.
Provides mongocxx::v_noabi::client_session.
Provides mongocxx::v_noabi::collection.
Declares mongocxx::v_noabi::gridfs::bucket.
Declares utilities to upload GridFS files.
Provides bsoncxx::v_noabi::view_or_value.