[CXX-2113] Build URI Created: 23/Sep/20  Updated: 31/Oct/23

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

Type: Improvement Priority: Major - P3
Reporter: Luke Mauldin Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: rb-track
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

All


Issue Links:
Related
related to CDRIVER-3803 Provide API for serializing a mongoc_... Backlog
Epic Link: CXX usability improvements
Quarter: FY24Q4
Backwards Compatibility: Fully Compatible

 Description   

CXX driver should allow a way to update a `uri` similar to how the C driver allows.  Scenario: start from a C-string that is like: `
mongodb://localhost:27017/Play` and want to set the `AppName` after parsing the URI.  The C driver supports this scenario but the CXX driver `uri` class does not offer setters.
As an alternative, if the C driver API supported converting `mongoc_uri_t` into a string, the building up/modification of the uri could be done with the C API and then converted into a C string and used as the input for the CXX driver.



 Comments   
Comment by Kevin Albertson [ 23/Sep/20 ]

Hi luke.mauldin@l3harris.com! Thank you for the feature request. I agree it could be useful to have setters, or have a way to serialize a C driver mongoc_uri_t to a final URI. I filed CDRIVER-3803 to track that request in the C driver.

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