We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 95651b6 commit 0692e59Copy full SHA for 0692e59
lib/index.js
@@ -367,6 +367,7 @@ function parseOptions(url, options = {}) {
367
options.user = String(options.username || options.user)
368
options.pass = String(options.password || options.pass)
369
options.host = String(options.hostname || options.host)
370
+ options.database = options.db || options.database
371
options.port = parseInt(options.port)
372
373
if (!options.path && options.host.indexOf('/') > -1)
0 commit comments