Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
public
/
sequelize
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
不要怂,就是干,撸起袖子干!
Commit 4903a957
authored
Jun 09, 2012
by
Daniel Schwartz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removing disable prot and using null port propertty instead
1 parent
93e4aa3d
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
5 deletions
lib/dialects/postgres/connector-manager.js
lib/sequelize.js
lib/dialects/postgres/connector-manager.js
View file @
4903a95
...
...
@@ -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"
)
...
...
lib/sequelize.js
View file @
4903a95
...
...
@@ -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"
)
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment