Uploaded image for project: 'C++ Driver'
  1. C++ Driver
  2. CXX-2146

Create setters for URI options

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Major - P3 Major - P3
    • None
    • None
    • API
    • None

    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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            clyde.bazile@mongodb.com Clyde Bazile III (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: