Skip to content

Commit 0692e59

Browse files
committed
Add alias db for database
1 parent 95651b6 commit 0692e59

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/index.js

+1
Original file line numberDiff line numberDiff line change
@@ -367,6 +367,7 @@ function parseOptions(url, options = {}) {
367367
options.user = String(options.username || options.user)
368368
options.pass = String(options.password || options.pass)
369369
options.host = String(options.hostname || options.host)
370+
options.database = options.db || options.database
370371
options.port = parseInt(options.port)
371372

372373
if (!options.path && options.host.indexOf('/') > -1)

0 commit comments

Comments
 (0)