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.
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
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.
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.
A GridFS store.