Skip to content

Commit

Permalink
Adding newly added PoolOptions (#16)
Browse files Browse the repository at this point in the history
The following [PR](sidorares/node-mysql2#1081) added two new options to mysql's Pool creation.

I am simply adding them to the library in this PR.
  • Loading branch information
Francois Nadeau authored and unional committed Jan 14, 2020
1 parent a63e8fb commit 41e3814
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions lib/Pool.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,17 @@ declare namespace Pool {
* is no limit to the number of queued connection requests. (Default: 0)
*/
queueLimit?: number;

/**
* Enable keep-alive on the socket. It's disabled by default, but the
* user can enable it and supply an initial delay.
*/
enableKeepAlive?: true;

/**
* If keep-alive is enabled users can supply an initial delay.
*/
keepAliveInitialDelay?: number;
}
}

Expand Down

0 comments on commit 41e3814

Please sign in to comment.