[CXX-1240] Investigate making mongocxx::gridfs::bucket constructor private Created: 02/Mar/17  Updated: 24/Mar/17  Resolved: 24/Mar/17

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

Type: Task Priority: Major - P3
Reporter: Samuel Rossi (Inactive) Assignee: J Rassi
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on CXX-1130 Implement GridFS Spec Closed

 Description   

An alternative to having a public constructor for mongocxx::gridfs::bucket would be to have a method on mongocxx::database that returns a bucket (similar to how collections work). We should decide if this is a better API, and if so, implement it.



 Comments   
Comment by Githook User [ 24/Mar/17 ]

Author:

{u'username': u'jrassi', u'name': u'J. Rassi', u'email': u'rassi@10gen.com'}

Message: CXX-1240 Add database::gridfs_bucket() method

This replaces the two-argument gridfs::bucket constructor as the
canonical way for users to create GridFS buckets. This change also
makes that constructor private (though callable from the database
class through a new friend declaration).
Branch: master
https://github.com/mongodb/mongo-cxx-driver/commit/fef29a18afa0e7d4b58f8259c9728d3a07ef3832

Generated at Wed Feb 07 22:01:53 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.