Uploaded image for project: 'Rust Driver'
  1. Rust Driver
  2. RUST-1048

Expose the default database from Client and ClientOptions

    • Type: Icon: New Feature New Feature
    • Resolution: Fixed
    • Priority: Icon: Unknown Unknown
    • 2.1.0
    • Affects Version/s: None
    • Component/s: 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 Unassigned
            Reporter:
            patrick.freed@mongodb.com Patrick Freed
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: