Uploaded image for project: 'Node.js Driver'
  1. Node.js Driver
  2. NODE-2998

Make connection string parsing public

    • Type: Icon: New Feature New Feature
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • 4.0.0
    • Affects Version/s: None
    • Component/s: Shell
    • Not Needed

      In mongosh, we just added connection string parsing code

      https://github.com/mongodb-js/mongosh/blob/f6e31c9cf0f79b6f9becbbb7a77f528ae88118bc/packages/service-provider-core/src/connection-string.ts

      which is closely adapted from the driver source code (as mentioned in a comment there).

      It would be nice if the driver’s parseURI function could be exposed publicly, or maintained in a separate dependency, so that it’s easier to re-use.

            Assignee:
            anna.henningsen@mongodb.com Anna Henningsen
            Reporter:
            anna.henningsen@mongodb.com Anna Henningsen
            Daria Pardue
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: