不要怂,就是干,撸起袖子干!

Commit 3274d2d0 by Jan Aagaard Meier

Merge pull request #622 from jechenique/master

Added options when using connection string
2 parents 5cd5c641 8cc128a2
Showing with 2 additions and 1 deletions
......@@ -47,7 +47,8 @@ module.exports = (function() {
var urlParts
options = options || {}
if (arguments.length === 1) {
if (arguments.length === 1 || (arguments.length === 2 && typeof username === 'object')) {
options = username || {}
urlParts = url.parse(arguments[0])
database = urlParts.path.replace(/^\//, '')
dialect = urlParts.protocol
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!