Skip to content

Commit 5be8d6b

Browse files
skeggsedougwilson
authored andcommitted
Add Support for Fully URL-Configured Pools
Fixes #811 (I think)
1 parent ea9a27c commit 5be8d6b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/PoolConfig.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ var ConnectionConfig = require('./ConnectionConfig');
33

44
module.exports = PoolConfig;
55
function PoolConfig(options) {
6+
if (typeof options === 'string') {
7+
options = ConnectionConfig.parse(options);
8+
}
9+
610
this.connectionConfig = new ConnectionConfig(options);
711
this.waitForConnections = (options.waitForConnections === undefined)
812
? true

0 commit comments

Comments
 (0)