-
-
Notifications
You must be signed in to change notification settings - Fork 618
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Property 'releaseConnection' does not exist on type 'Pool'. #1761
Comments
I am having the same problem. I am using |
The doc here is wrong, please fix it. |
@JiaJiaJiang, the documentation is correct. The pool.getConnection((err, conn) => {
pool.releaseConnection(conn);
}); The pool.getConnection((err, conn) => {
conn.release();
}); In fact, the type |
@amirhossein-karimi and @jake-knerr, can you check this in |
After version
And for
I'm closing this Issue, but feel free to ask anything 🙋🏻♂️ |
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); })
The text was updated successfully, but these errors were encountered: