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
不要怂,就是干,撸起袖子干!
You need to sign in or sign up before continuing.
Commit 54ce0bb6
authored
Mar 18, 2014
by
Mark Engel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use configured pgModule to access required ConenctionParameters instead of using hardcoded pg
1 parent
50fea7b0
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
lib/dialects/postgres/connector-manager.js
lib/dialects/postgres/connector-manager.js
View file @
54ce0bb
var
Query
=
require
(
"./query"
)
,
Utils
=
require
(
"../../utils"
)
,
ConnectionParameters
=
require
(
'pg/lib/connection-parameters'
)
module
.
exports
=
(
function
()
{
var
ConnectorManager
=
function
(
sequelize
,
config
)
{
...
...
@@ -20,6 +19,7 @@ module.exports = (function() {
this
.
pendingQueries
=
0
this
.
clientDrained
=
true
this
.
maxConcurrentQueries
=
(
this
.
config
.
maxConcurrentQueries
||
50
)
this
.
ConnectionParameters
=
require
(
pgModule
+
'/lib/connection-parameters'
)
this
.
onProcessExit
=
function
()
{
this
.
disconnect
()
...
...
@@ -83,7 +83,7 @@ module.exports = (function() {
this
.
isConnected
=
false
var
uri
=
this
.
sequelize
.
getQueryInterface
().
QueryGenerator
.
databaseConnectionUri
(
this
.
config
)
,
config
=
new
ConnectionParameters
(
uri
)
,
config
=
new
this
.
ConnectionParameters
(
uri
)
// set pooling parameters if specified
if
(
this
.
pooling
)
{
...
...
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