21 #include <bsoncxx/document/value.hpp>
22 #include <bsoncxx/stdx/optional.hpp>
23 #include <bsoncxx/stdx/string_view.hpp>
24 #include <bsoncxx/types/bson_value/view.hpp>
25 #include <bsoncxx/view_or_value.hpp>
26 #include <mongocxx/client_session.hpp>
27 #include <mongocxx/collection.hpp>
28 #include <mongocxx/result/gridfs/upload.hpp>
29 #include <mongocxx/stdx.hpp>
31 #include <mongocxx/config/prelude.hpp>
34 inline namespace v_noabi {
71 explicit operator
bool() const noexcept;
91 void write(const std::uint8_t* bytes, std::
size_t length);
105 result::gridfs::upload close();
123 std::int32_t chunk_size() const;
150 bsoncxx::types::bson_value::view
id,
151 stdx::string_view filename,
154 std::int32_t chunk_size,
155 stdx::optional<
bsoncxx::document::view_or_value> metadata = {});
157 MONGOCXX_PRIVATE
void finish_chunk();
158 MONGOCXX_PRIVATE
void flush_chunks();
160 class MONGOCXX_PRIVATE impl;
162 MONGOCXX_PRIVATE impl& _get_impl();
163 MONGOCXX_PRIVATE
const impl& _get_impl()
const;
165 std::unique_ptr<impl> _impl;
173 #if defined(MONGOCXX_TEST_MACRO_GUARDS_FIX_MISSING_POSTLUDE)
174 #include <mongocxx/config/postlude.hpp>
Use a session for a sequence of operations, optionally with either causal consistency or snapshots.
Definition: client_session.hpp:40
Class representing server side document groupings within a MongoDB database.
Definition: collection.hpp:85
Class representing a GridFS bucket.
Definition: bucket.hpp:62
Class used to upload a GridFS file.
Definition: uploader.hpp:40
uploader() noexcept
Default constructs an uploader object.
The top-level namespace for bsoncxx library entities.
Definition: element.hpp:24
The top-level namespace for mongocxx library entities.
Definition: bulk_write.hpp:24