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

Commit 4903a957 by Daniel Schwartz

removing disable prot and using null port propertty instead

1 parent 93e4aa3d
...@@ -44,7 +44,9 @@ module.exports = (function() { ...@@ -44,7 +44,9 @@ module.exports = (function() {
this.isConnecting = true this.isConnecting = true
this.isConnected = false 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)({ conStr = Utils._.template(conStr)({
user: this.config.username, user: this.config.username,
password: this.config.password, password: this.config.password,
...@@ -52,7 +54,6 @@ module.exports = (function() { ...@@ -52,7 +54,6 @@ module.exports = (function() {
host: this.config.host, host: this.config.host,
port: this.config.port, port: this.config.port,
protocol: this.config.protocol, protocol: this.config.protocol,
disablePort: this.config.disablePort
}) })
var pg = require("pg") var pg = require("pg")
......
...@@ -16,7 +16,6 @@ module.exports = (function() { ...@@ -16,7 +16,6 @@ module.exports = (function() {
host: 'localhost', host: 'localhost',
port: 3306, port: 3306,
protocol: 'tcp', protocol: 'tcp',
disablePort: false,
define: {}, define: {},
query: {}, query: {},
sync: {}, sync: {},
...@@ -40,8 +39,7 @@ module.exports = (function() { ...@@ -40,8 +39,7 @@ module.exports = (function() {
host : this.options.host, host : this.options.host,
port : this.options.port, port : this.options.port,
pool : this.options.pool, pool : this.options.pool,
protocol: this.options.protocol, protocol: this.options.protocol
disablePort: this.options.disablePort
} }
var ConnectorManager = require("./dialects/" + this.options.dialect + "/connector-manager") 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!