Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added support for server URI strings for use with mongoDB clusters, c…
…loses #2
- Loading branch information
Showing
2 changed files
with
18 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
d9425c3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried locally (with a similar implementation) and the credentials and database are also ignored -> need to update documentation on this.
I'll check your code but I'm pretty sure it's working fine.
Beware of the logs: DBURI can contain credentials.
Something like
DBURI.replaceAll("mongodb://.*@", "mongodb://<user:password>@")
will work for the log.I'll compare with code from work and update tomorrow.
Thanks for the work.