The database where this store is located.
The prefix of this store. The files
and chunks
collections will be actually named prefix.files
and prefix.chunks
.
The chunks
collection
Creates the needed index on the chunks
collection, if none.
Creates the needed index on the chunks
collection, if none.
Please note that you should really consider reading http://www.mongodb.org/display/DOCS/Indexes before doing this, especially in production.
A future containing true if the index was created, false if it already exists.
Produces an enumerator of chunks of bytes from the chunks
collection
matching the given file metadata.
Produces an enumerator of chunks of bytes from the chunks
collection
matching the given file metadata.
the file to be read
The files
collection
Finds the files matching the given selector.
Finds the files matching the given selector.
The type of the selector document. An implicit Writer[S]
must be in the scope.
The document to select the files to return
Reads the given file and writes its contents to the given OutputStream
Removes a file from this store.
Removes a file from this store. Note that if the file does not actually exist, the returned future will not be hold an error.
The file id to remove from this store.
Removes a file from this store.
Removes a file from this store. Note that if the file does not actually exist, the returned future will not be hold an error.
The file entry to remove from this store.
Saves the content provided by the given enumerator with the given metadata.
Saves the content provided by the given enumerator with the given metadata.
Producer of content.
Metadata of the file to store.
Size of the chunks. Defaults to 256kB.
A future of a ReadFile[Id].
Writes the data provided by the given InputStream to the given file.
(gridFS: StringAdd).self
(gridFS: StringFormat).self
Gets an Iteratee
that will consume data to put into a GridFS store.
Gets an Iteratee
that will consume data to put into a GridFS store.
Type of the id of this file (generally BSONObjectID
or BSONValue
).
Metadata of the file to store.
Size of the chunks. Defaults to 256kB.
An Iteratee
that will consume data to put into a GridFS store.
(Since version 0.12.0) Will be moved to the separate iteratee module
(gridFS: ArrowAssoc[GridFS[P]]).x
(Since version 2.10.0) Use leftOfArrow
instead
(gridFS: Ensuring[GridFS[P]]).x
(Since version 2.10.0) Use resultOfEnsuring
instead
A GridFS store.