[CXX-249] better remove api on GridFS and GridFile Created: 10/Jan/14  Updated: 07/Jan/15  Resolved: 07/Jan/15

Status: Closed
Project: C++ Driver
Component/s: API
Affects Version/s: None
Fix Version/s: None

Type: New Feature Priority: Major - P3
Reporter: Thomas Riccardi Assignee: Unassigned
Resolution: Won't Fix Votes: 0
Labels: cxxmove, gridfs, legacy-cxx, query, remove
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

The current api to find files in GridFS is great: one easy by filename, and one extensive by BSONObj query.
However, to remove files we only have "removeFile()" by filename.

It would be a great (and easy to implement) addition to have a BSONObj query api for remove (optionally with a skip and limit too, but it's less useful, and should also be added to the find method).

Also, there is no remove() method on the GridFile class, this could be really useful too.

Currently when multiple files have the same filename we have to manually delete the documents in fs.files and fs.chunks collections, like it's done in GridFS::removeFile().



 Comments   
Comment by Andrew Morrow (Inactive) [ 07/Jan/15 ]

riccardi@systran.fr There is ongoing work around designing an improved GridFS API for drivers, which would be implemented only for the non-legacy driver C++ driver, since we are not planning major changes to the legacy API.

A time-frame has not yet been established.

Comment by Thomas Riccardi [ 07/Jan/15 ]

Is it planned in the non-legacy driver? With which time-frame for a release?

Comment by Adam Midvidy [ 07/Jan/15 ]

At this time we do not plan significant changes to the API of the legacy driver.

Generated at Wed Feb 07 21:58:38 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.