Expose keep-alive connection param

This commit is contained in:
Daniel García Aubert 2016-12-07 15:46:26 +01:00
parent fa8cfcaebf
commit 27d9813114

View File

@ -59,6 +59,7 @@ var ConnectionParameters = function(config) {
this.client_encoding = val("client_encoding", config);
//a domain socket begins with '/'
this.isDomainSocket = (!(this.host||'').indexOf('/'));
this.keepAlive = config.keepAlive || false;
this.application_name = val('application_name', config, 'PGAPPNAME');
this.fallback_application_name = val('fallback_application_name', config, false);