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

Commit 8cc128a2 by Javier Echenique

Added options to fix #490. Now you can use a connection string (i.e. Heroku) and…

… options can be passed as second parameter.
1 parent 5cd5c641
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!