list takes a filter
This commit is contained in:
@@ -94,6 +94,10 @@ namespace mongo {
|
||||
return _client.query( _filesNS.c_str() , emptyObj );
|
||||
}
|
||||
|
||||
auto_ptr<DBClientCursor> GridFS::list( BSONObj o ){
|
||||
return _client.query( _filesNS.c_str() , o );
|
||||
}
|
||||
|
||||
Chunk GridFile::getChunk( int n ){
|
||||
_exists();
|
||||
BSONObjBuilder b;
|
||||
|
||||
@@ -74,6 +74,11 @@ namespace mongo {
|
||||
*/
|
||||
auto_ptr<DBClientCursor> list();
|
||||
|
||||
/**
|
||||
* convenience method to get all the files with a filter
|
||||
*/
|
||||
auto_ptr<DBClientCursor> list( BSONObj query );
|
||||
|
||||
private:
|
||||
DBClientBase& _client;
|
||||
string _filesNS;
|
||||
|
||||
Reference in New Issue
Block a user