Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support mongo connection string #70

Merged
merged 2 commits into from
May 20, 2016
Merged

Conversation

mmmdreg
Copy link
Contributor

@mmmdreg mmmdreg commented May 18, 2016

Quick PR for #68.

Use can now pass in a mongo connection string which is a lot more powerful than passing in individual host/port or servers.

As discussed in the issue, this is especially useful for supporting different environments (dev/prod etc).

Implemented by converting host/port/db/auth/servers etc to a connection string and using MongoClient.connect, which is more simple than the deprecated way of creating ReplSet/Servet etc depending on the parameters.

All tests pass except some unrelated elasticsearch/redis tests which I do not have installed.

@adrai
Copy link
Contributor

adrai commented May 18, 2016

I'll try to look at it tomorrow...

@adrai adrai merged commit be8b231 into thenativeweb:master May 20, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants