UNPKG

mysql2

Version:

fast mysql driver. Implements core protocol, prepared statements, ssl and compression in native JS

20 lines (14 loc) 366 B
'use strict'; const PromiseConnection = require('./connection.js'); class PromisePoolConnection extends PromiseConnection { constructor(connection, promiseImpl) { super(connection, promiseImpl); } destroy() { return this.connection.destroy(); } async [Symbol.asyncDispose]() { this.release(); } } module.exports = PromisePoolConnection;