Expose the default database from Client and ClientOptions

XMLWordPrintableJSON

    • Type: New Feature
    • Resolution: Fixed
    • Priority: Unknown
    • 2.1.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      See https://github.com/mongodb/mongo-rust-driver/issues/475 for more details.

      This could possibly create tricky situations however. For example, imagine a user parses a URI like "mongodb://user:pass@localhost/myauthdb" into a ClientOptions, and then sets the default_database on the options to be something else. The one in the credential will still be "myauthdb", which could be surprising. That being said, this case is fairly contrived and could even be considered expected/desired behavior.

              Assignee:
              Unassigned
              Reporter:
              Patrick Freed
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: