Closed
Description
Hi,
I use the connection pool and according to the documentation, when I release it (connection), I face the following problem .
Property 'releaseConnection' does not exist on type 'Pool'.
notes : i used typescript
and this is my code
pool.getConnection(function (err, conn) { // Do something with the connection conn.query("CREATE DATABASE IF NOT EXISTS zxc CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;", (err, rows, fields) => { if (err) throw err; }); pool.releaseConnection(conn); })