Skip to content

Add Support for Fully URL-Configured Pools #812

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

Closed
wants to merge 1 commit into from
Closed

Add Support for Fully URL-Configured Pools #812

wants to merge 1 commit into from

Conversation

skeggse
Copy link
Contributor

@skeggse skeggse commented May 12, 2014

Fixes #811 (I think)

@dougwilson
Copy link
Member

Thank you. This seems fine, but I need to add tests :D

@dougwilson
Copy link
Member

I'm not really sure if the connection string (which is meant to be for the connection) should be intermingled with the pool (which is application-dependent, really). How about allowing createPool(connStr, poolOpts)?

@dougwilson dougwilson self-assigned this May 14, 2014
@@ -3,6 +3,10 @@ var ConnectionConfig = require('./ConnectionConfig');

module.exports = PoolConfig;
function PoolConfig(options) {
if (typeof options === 'string') {
options = ConnectionConfig.parse(options);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be ConnectionConfig.parseUrl; there is no ConnectionConfig.parse

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Uh yep herp derp

Fixes #811 (I think)

Signed-off-by: Eli Skeggs <[email protected]>
@dougwilson dougwilson added this to the 2.3 milestone May 14, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

Support URL Config for Pool
2 participants