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 4febe729
authored
May 07, 2014
by
James Seppi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use pgModule in require of ConnectionParmaters
1 parent
7b2a1370
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 @
4febe72
var
Query
=
require
(
"./query"
)
var
Query
=
require
(
"./query"
)
,
Utils
=
require
(
"../../utils"
)
,
Utils
=
require
(
"../../utils"
)
,
ConnectionParameters
=
require
(
'pg/lib/connection-parameters'
)
module
.
exports
=
(
function
()
{
module
.
exports
=
(
function
()
{
var
ConnectorManager
=
function
(
sequelize
,
config
)
{
var
ConnectorManager
=
function
(
sequelize
,
config
)
{
...
@@ -20,6 +19,7 @@ module.exports = (function() {
...
@@ -20,6 +19,7 @@ module.exports = (function() {
this
.
pendingQueries
=
0
this
.
pendingQueries
=
0
this
.
clientDrained
=
true
this
.
clientDrained
=
true
this
.
maxConcurrentQueries
=
(
this
.
config
.
maxConcurrentQueries
||
50
)
this
.
maxConcurrentQueries
=
(
this
.
config
.
maxConcurrentQueries
||
50
)
this
.
ConnectionParameters
=
require
(
pgModule
+
'/lib/connection-parameters'
)
this
.
onProcessExit
=
function
()
{
this
.
onProcessExit
=
function
()
{
this
.
disconnect
()
this
.
disconnect
()
...
@@ -83,7 +83,7 @@ module.exports = (function() {
...
@@ -83,7 +83,7 @@ module.exports = (function() {
this
.
isConnected
=
false
this
.
isConnected
=
false
var
uri
=
this
.
sequelize
.
getQueryInterface
().
QueryGenerator
.
databaseConnectionUri
(
this
.
config
)
var
uri
=
this
.
sequelize
.
getQueryInterface
().
QueryGenerator
.
databaseConnectionUri
(
this
.
config
)
,
config
=
new
ConnectionParameters
(
uri
)
,
config
=
new
this
.
ConnectionParameters
(
uri
)
// set pooling parameters if specified
// set pooling parameters if specified
if
(
this
.
pooling
)
{
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