133 const options::gridfs::upload& options = {});
167 bsoncxx::v_noabi::stdx::string_view filename,
168 const options::gridfs::upload& options = {});
200 bsoncxx::v_noabi::stdx::string_view filename,
201 const options::gridfs::upload& options = {});
237 bsoncxx::v_noabi::types::bson_value::view
id,
238 bsoncxx::v_noabi::stdx::string_view filename,
239 const options::gridfs::upload& options = {});
284 std::istream* source,
285 const options::gridfs::upload& options = {});
333 bsoncxx::v_noabi::stdx::string_view filename,
334 std::istream* source,
335 const options::gridfs::upload& options = {});
380 bsoncxx::v_noabi::stdx::string_view filename,
381 std::istream* source,
382 const options::gridfs::upload& options = {});
430 bsoncxx::v_noabi::types::bson_value::view
id,
431 bsoncxx::v_noabi::stdx::string_view filename,
432 std::istream* source,
433 const options::gridfs::upload& options = {});
474 bsoncxx::v_noabi::types::bson_value::view
id);
507 std::ostream* destination,
536 bsoncxx::v_noabi::types::bson_value::view
id,
537 std::ostream* destination);
547 bsoncxx::v_noabi::types::bson_value::view
id,
548 std::ostream* destination,
602 find(
bsoncxx::v_noabi::document::view_or_value filter, const options::
find& options = {});
629 bsoncxx::v_noabi::document::view_or_value filter,
630 const options::
find& options = {});
641 friend ::mongocxx::v_noabi::database;
646 void create_indexes_if_nonexistent(
const client_session* session);
656 std::istream* source,
666 std::ostream* destination,
675 const impl& _get_impl()
const;
677 std::unique_ptr<impl> _impl;
A polyfill for std::optional<T>.
Definition optional.hpp:826
A polyfill for std::string_view.
Definition string_view.hpp:436
A view-only variant that can contain any BSON type.
Definition view.hpp:54
Use a session for a sequence of operations, optionally with either causal consistency or snapshots.
Definition client_session.hpp:48
Class representing a pointer to the result set of a query on a MongoDB server.
Definition cursor.hpp:42
Class representing a MongoDB database.
Definition database.hpp:46
Class representing a GridFS bucket.
Definition bucket.hpp:66
downloader open_download_stream(bsoncxx::v_noabi::types::bson_value::view id)
Opens a gridfs::downloader to read a GridFS file.
void delete_file(bsoncxx::v_noabi::types::bson_value::view id)
Deletes a GridFS file from the bucket.
void upload_from_stream_with_id(bsoncxx::v_noabi::types::bson_value::view id, bsoncxx::v_noabi::stdx::string_view filename, std::istream *source, const options::gridfs::upload &options={})
Creates a new GridFS file with a user-supplied unique id by uploading bytes from an input stream.
bucket() noexcept
Default constructs a bucket object. The bucket is equivalent to the state of a moved from bucket....
result::gridfs::upload upload_from_stream(bsoncxx::v_noabi::stdx::string_view filename, std::istream *source, const options::gridfs::upload &options={})
Creates a new GridFS file by uploading bytes from an input stream. The id of the file will be automat...
void download_to_stream(bsoncxx::v_noabi::types::bson_value::view id, std::ostream *destination)
Downloads the contents of a stored GridFS file from the bucket and writes it to a stream.
cursor find(bsoncxx::v_noabi::document::view_or_value filter, const options::find &options={})
Finds the documents in the files collection of the bucket which match the provided filter.
uploader open_upload_stream_with_id(bsoncxx::v_noabi::types::bson_value::view id, bsoncxx::v_noabi::stdx::string_view filename, const options::gridfs::upload &options={})
Opens a gridfs::uploader to create a new GridFS file.
uploader open_upload_stream(bsoncxx::v_noabi::stdx::string_view filename, const options::gridfs::upload &options={})
Opens a gridfs::uploader to create a new GridFS file. The id of the file will be automatically genera...
bsoncxx::v_noabi::stdx::string_view bucket_name() const
Gets the name of the GridFS bucket.
Class used to download a GridFS file.
Definition downloader.hpp:48
Class used to upload a GridFS file.
Definition uploader.hpp:43
Class representing the optional arguments to a MongoDB GridFS bucket creation operation.
Definition bucket.hpp:37
Class representing the optional arguments to a MongoDB GridFS upload operation.
Definition upload.hpp:32
Class representing the result of a GridFS upload operation.
Definition upload.hpp:30
Provides mongocxx::v_noabi::cursor.
Declares mongocxx::v_noabi::database.
Provides bsoncxx::v_noabi::document::view_or_value.
Provides utilities to download GridFS files.
Provides mongocxx::v_noabi::options::find.
Declares mongocxx::v_noabi::gridfs::bucket.
#define MONGOCXX_ABI_EXPORT_CDECL(...)
Equivalent to MONGOCXX_ABI_EXPORT with MONGOCXX_ABI_CDECL.
Definition fwd.hpp:204
The mongocxx macro guard postlude header.
The mongocxx macro guard prelude header.
The top-level namespace within which all bsoncxx library entities are declared.
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.
Provides mongocxx::v_noabi::options::gridfs::bucket.
Provides mongocxx::v_noabi::options::gridfs::upload.
Provides mongocxx::v_noabi::result::gridfs::upload.
Provides std::string_view-related polyfills for library API usage.
Provides bsoncxx::v_noabi::types::bson_value::view.
Provides utilities to upload GridFS files.