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

Commit 4903a957 by Daniel Schwartz

removing disable prot and using null port propertty instead

1 parent 93e4aa3d
......@@ -44,7 +44,9 @@ module.exports = (function() {
this.isConnecting = true
this.isConnected = false
var conStr = '<%= protocol %>://<%= user %>:<%= password %>@<%= host %><% if(!disablePort) { %>:<%= port %><% } %>/<%= database %>';
var conStr = '<%= protocol %>://<%= user %>:<%= password %>@<%= host %><% if(!port) { %>:<%= port %><% } %>/<%= database %>';
console.log(conStr);
conStr = Utils._.template(conStr)({
user: this.config.username,
password: this.config.password,
......@@ -52,7 +54,6 @@ module.exports = (function() {
host: this.config.host,
port: this.config.port,
protocol: this.config.protocol,
disablePort: this.config.disablePort
})
var pg = require("pg")
......
......@@ -16,7 +16,6 @@ module.exports = (function() {
host: 'localhost',
port: 3306,
protocol: 'tcp',
disablePort: false,
define: {},
query: {},
sync: {},
......@@ -40,8 +39,7 @@ module.exports = (function() {
host : this.options.host,
port : this.options.port,
pool : this.options.pool,
protocol: this.options.protocol,
disablePort: this.options.disablePort
protocol: this.options.protocol
}
var ConnectorManager = require("./dialects/" + this.options.dialect + "/connector-manager")
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!