types / mysql2

Typings for https://github.com/sidorares/node-mysql2
ISC License
41 stars 23 forks source link

Add missing end() method for the promise pool #17

Closed UnrealQuester closed 6 years ago

UnrealQuester commented 6 years ago

The regular pool has an end() method because it extends mysql.Connection.

The promise Pool cannot extend mysql.Connection and is therefore missing its end() method. In the promise version, end() takes no arguments and returns a promise that rejects if one of the connections fails to close.