-
Type: Improvement
-
Resolution: Fixed
-
Priority: Unknown
-
Affects Version/s: None
-
Component/s: GridFS
-
None
Keeping the GridFS API in a separate package deviates from the existing pattern of having all MongoDB API operations in the mongo package and creates visibility issues for code in the gridfs package that needs to access configurations from a mongo.Client. Merge the gridfs package into the mongo package to resolve those issues.
Definition of done:
- Merge all code from the gridfs package into the mongo package.
- Rename type gridfs.Bucket to mongo.GridFSBucket
- Add a function to *mongo.Database that creates a *mongo.GridFSBucket for that database (e.g. .Bucket() or .GridFS()).
- (Optional) Consider removing the Client.Timeout function, which was added to allow accessing the timeoutMS value from the gridfs package.
- depends on
-
GODRIVER-2520 Simplify GridFS timeout API
- Closed