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

Support for MongoDB URIs

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Critical - P2 Critical - P2
    • legacy-0.11.0
    • Affects Version/s: None
    • Component/s: API, Implementation
    • Environment:
      C++ driver from 2.4.9 source (on Windows, though that shouldn't matter for this item). The 2.5.4 source does not look to be any different.

      The C++ driver does not accept connection strings that are URIs from http://docs.mongodb.org/manual/reference/connection-string/

      We have configuration that is shared between apps that use the C++ driver and the C# driver. Because of this issue our work around would be to double-configure Mongo once for the C++ driver and once for everything else.

      Unfortunately, there seems to be no documentation on what the C++ driver currently accepts. A google of "mongodb C++ driver connection string" gives this stack overflow question http://stackoverflow.com/questions/14629281/c-driver-mongodb-connection-options that basically says it's undocumented.

      If MongoDB is not going to get the C++ driver up to snuff with the rest of the drivers, then please at least document how to translate from the URI syntax to something the C++ driver can understand.

            Assignee:
            andrew.morrow@mongodb.com Andrew Morrow (Inactive)
            Reporter:
            timothyb Timothy Byrd
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: