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.
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.