[CXX-1538] Delete public bulk_write constructor Created: 28/Mar/18  Updated: 28/Oct/23  Resolved: 03/Jul/18

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

Type: New Feature Priority: Major - P3
Reporter: A. Jesse Jiryu Davis Assignee: Evgeni Dobranov
Resolution: Fixed Votes: 0
Labels: neweng
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on CXX-1549 Deprecate public bulk_write constructors Closed
Epic Link: Simplify Bulk API

 Description   

collection::create_bulk_write uses a supported C Driver function. Creating a bulk_write directly with a public constructor is a second way to accomplish the same goal without additional value for users. It uses a deprecated C Driver function and therefore requires the C Driver to continue supporting a second way to accomplish the same goal without additional value.

Let's make collection::create_bulk_write the sole way to build bulk_write instances.



 Comments   
Comment by Githook User [ 03/Jul/18 ]

Author:

{'username': 'edobranov', 'name': 'Evgeni Dobranov', 'email': 'evobranov@gmail.com'}

Message: CXX-1538 Delete public bulk_write constructor
Branch: master
https://github.com/mongodb/mongo-cxx-driver/commit/1e65205eb9bc1215b7f6bdd5f2cfeafbf013b49d

Comment by Andrew Morrow (Inactive) [ 28/Mar/18 ]

We should think about whether we want to deprecate it in 3.3 before removing in 3.4. If we opt to deprecate, we should use the deprecation tag technique:

https://github.com/mongodb/mongo-cxx-driver/blob/f2850eea3a9c332e8d9ec10781cc4c0ec2aa5a8d/src/mongocxx/read_preference.hpp#L102-L113

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