-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Fixed the connection string for master/slave set up #17
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Conversation
This pull request breaks the code if there are no credentials. Are you sure you only need to add credentials once for multiple hosts? |
Added a default value, would this work? I assumed that user:pass credentials would always be required. |
Can you confirm that the correct DSN is |
Yes I have confirmed it, I use mongolab.com for my remote mongo host. In order to connect to their master/slave set up the connection string is provided in mongodb://username:password@10.0.0.1:port,10.0.0.2:port format. Also when testing the site I'm building currently with Laravel, the DSN was erroring out and as soon as I updated the logic, it worked. So my thoughts are that the user/pass only need to be specified once in the master/slave set up. |
- Fix support for % and _ in like expression and escaped \% and \_ - Keep ilike and regexp operators as aliases for like and regex - Allow /, # and ~ as regex delimiters - Add functional tests on regexp and not regexp - Add support for not regex
- Fix support for % and _ in like expression and escaped \% and \_ - Keep ilike and regexp operators as aliases for like and regex - Allow /, # and ~ as regex delimiters - Add functional tests on regexp and not regexp - Add support for not regex
The previous version was adding the user:password twice in the connection string resulting in an error. ✌️