File tree 3 files changed +7
-1
lines changed
3 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -218,4 +218,7 @@ Client.md5 = function(string) {
218
218
return crypto . createHash ( 'md5' ) . update ( string ) . digest ( 'hex' ) ;
219
219
} ;
220
220
221
+ // expose a Query constructor
222
+ Client . Query = Query ;
223
+
221
224
module . exports = Client ;
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ var PG = function(clientConstructor) {
13
13
EventEmitter . call ( this ) ;
14
14
this . Client = clientConstructor ;
15
15
this . Connection = require ( __dirname + '/connection' ) ;
16
- this . Query = require ( __dirname + '/query' ) ;
16
+ this . Query = clientConstructor . Query
17
17
this . defaults = defaults ;
18
18
} ;
19
19
Original file line number Diff line number Diff line change @@ -171,4 +171,7 @@ var clientBuilder = function(config) {
171
171
return connection ;
172
172
} ;
173
173
174
+ // expose a Query constructor
175
+ clientBuilder . Query = NativeQuery ;
176
+
174
177
module . exports = clientBuilder ;
You can’t perform that action at this time.
0 commit comments