[CXX-2146] Create setters for URI options Created: 16/Dec/20  Updated: 30/Jun/23

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

Type: Improvement Priority: Major - P3
Reporter: Clyde Bazile III (Inactive) Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Epic Link: CXX usability improvements

 Description   

In the C driver, there are setters for URI options. For example, we can use a function like mongoc_uri_set_auth_source to set the URI's auth source.

There's no such concept in the C++ driver. Instead, users are forced to pass options through the URI string. This is error-prone; a typo in a string will throw a runtime error at best, while a typo in a function name will cause a compile-time error.


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