Expand description
Action builders for gridfs.
Structsยง
- Delete
- Deletes a specific [
FilesCollectionDocument
] and its associated chunks. Construct withGridFsBucket::delete
. - Delete
ByName - Deletes a named [
FilesCollectionDocument
] and its associated chunks. Construct withGridFsBucket::delete_by_name
. - Drop
- Removes all of the files and their associated chunks from a bucket. Construct with
GridFsBucket::drop
. - Find
- Finds and returns the
FilesCollectionDocument
s within a bucket that match a given filter. Construct withGridFsBucket::find
. - FindOne
- Finds and returns a single
FilesCollectionDocument
within a bucket that matches a given filter. Construct withGridFsBucket::find_one
. - Open
Download Stream - Opens and returns a
GridFsDownloadStream
from which the application can read the contents of the stored file specified by an id. Construct withGridFsBucket::open_download_stream
. - Open
Download Stream ByName - Opens and returns a
GridFsDownloadStream
from which the application can read the contents of the stored file specified by a filename. Construct withGridFsBucket::open_download_stream_by_name
. - Open
Upload Stream - Creates and returns a
GridFsUploadStream
that the application can write the contents of a file to. Construct withGridFsBucket::open_upload_stream
. - Rename
- Renames a file. Construct with
GridFsBucket::rename
. - Rename
ByName - Renames a file selected by name. Construct with
GridFsBucket::rename_by_name
.