Skip to content

Commit

Permalink
Adds enableKeepAlive and keepAliveInitialDelay.
Browse files Browse the repository at this point in the history
  • Loading branch information
benbotto committed Dec 13, 2019
1 parent 0943dee commit 607aa29
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/connection_config.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,12 @@ const validOptions = {
dateStrings: 1,
debug: 1,
decimalNumbers: 1,
enableKeepAlive: 1,
flags: 1,
host: 1,
insecureAuth: 1,
isServer: 1,
keepAliveInitialDelay: 1,
localAddress: 1,
maxPreparedStatements: 1,
multipleStatements: 1,
Expand Down Expand Up @@ -93,6 +95,8 @@ class ConnectionConfig {
this.debug = options.debug;
this.trace = options.trace !== false;
this.stringifyObjects = options.stringifyObjects || false;
this.enableKeepAlive = !!options.enableKeepAlive;
this.keepAliveInitialDelay = options.keepAliveInitialDelay || 0;
if (
options.timezone &&
!/^(?:local|Z|[ +-]\d\d:\d\d)$/.test(options.timezone)
Expand Down

0 comments on commit 607aa29

Please sign in to comment.