File tree Expand file tree Collapse file tree 3 files changed +7
-1
lines changed
Expand file tree Collapse file tree 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) {
218218 return crypto . createHash ( 'md5' ) . update ( string ) . digest ( 'hex' ) ;
219219} ;
220220
221+ // expose a Query constructor
222+ Client . Query = Query ;
223+
221224module . exports = Client ;
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ var PG = function(clientConstructor) {
1313 EventEmitter . call ( this ) ;
1414 this . Client = clientConstructor ;
1515 this . Connection = require ( __dirname + '/connection' ) ;
16- this . Query = require ( __dirname + '/query' ) ;
16+ this . Query = clientConstructor . Query
1717 this . defaults = defaults ;
1818} ;
1919
Original file line number Diff line number Diff line change @@ -171,4 +171,7 @@ var clientBuilder = function(config) {
171171 return connection ;
172172} ;
173173
174+ // expose a Query constructor
175+ clientBuilder . Query = NativeQuery ;
176+
174177module . exports = clientBuilder ;
You can’t perform that action at this time.
0 commit comments