Skip to content

Commit 9d05288

Browse files
committed
Allow BoundPool as a Pool name also
1 parent 7d29878 commit 9d05288

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
"pg-minify": "~0.5.3",
5050
"pg-sql2": "^1.0.0-alpha1.0",
5151
"pluralize": "^3.0.0",
52-
"postgraphile-core": "0.1.0-alpha.40",
52+
"postgraphile-core": "0.1.0-alpha.41",
5353
"postgres-interval": "^1.0.2",
5454
"send": "^0.16.1",
5555
"tslib": "^1.5.0"

src/postgraphql/postgraphql.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ function constructorName(obj: mixed): string | null {
166166
function quacksLikePgPool(pgConfig: any): boolean {
167167
// A diagnosis of exclusion
168168
if (!pgConfig || typeof pgConfig !== 'object') return false
169-
if (constructorName(pgConfig) !== 'Pool') return false
169+
if (constructorName(pgConfig) !== 'Pool' && constructorName(pgConfig) !== 'BoundPool') return false
170170
if (!pgConfig['Client']) return false
171171
if (!pgConfig['options']) return false
172172
if (typeof pgConfig['connect'] !== 'function') return false

yarn.lock

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2696,9 +2696,9 @@ graceful-fs@^4.1.11, graceful-fs@^4.1.2, graceful-fs@^4.1.6, graceful-fs@^4.1.9:
26962696
version "1.0.1"
26972697
resolved "https://registry.yarnpkg.com/graceful-readlink/-/graceful-readlink-1.0.1.tgz#4cafad76bc62f02fa039b2f94e9a3dd3a391a725"
26982698

2699-
2700-
version "0.1.0-alpha.40"
2701-
resolved "https://registry.yarnpkg.com/graphile-build-pg/-/graphile-build-pg-0.1.0-alpha.40.tgz#cccd8f7097c70a4bcd1837de98c859350caf61ae"
2699+
2700+
version "0.1.0-alpha.41"
2701+
resolved "https://registry.yarnpkg.com/graphile-build-pg/-/graphile-build-pg-0.1.0-alpha.41.tgz#da93b380ed463440e998eb562e2c9fa8f15eeefd"
27022702
dependencies:
27032703
babel-runtime ">=6 <7"
27042704
chalk "^2.1.0"
@@ -4904,13 +4904,13 @@ postcss@^6.0.1:
49044904
source-map "^0.5.6"
49054905
supports-color "^4.1.0"
49064906

4907-
4908-
version "0.1.0-alpha.40"
4909-
resolved "https://registry.yarnpkg.com/postgraphile-core/-/postgraphile-core-0.1.0-alpha.40.tgz#c81edb507054d303807ad9fa27dde8363eed06df"
4907+
4908+
version "0.1.0-alpha.41"
4909+
resolved "https://registry.yarnpkg.com/postgraphile-core/-/postgraphile-core-0.1.0-alpha.41.tgz#a1c5f575d0c177e3fbc0a34d999b4c9162fac216"
49104910
dependencies:
49114911
babel-runtime ">=6 <7"
49124912
graphile-build "0.1.0-alpha.39"
4913-
graphile-build-pg "0.1.0-alpha.40"
4913+
graphile-build-pg "0.1.0-alpha.41"
49144914

49154915
postgres-array@~1.0.0:
49164916
version "1.0.2"

0 commit comments

Comments
 (0)