IPool of mysql has end function like IConnection or IPoolCluster.

User should call end function to close all connection in a pool. See
https://github.com/felixge/node-mysql/#closing-all-the-connections-in-a-pool
for more information.
This commit is contained in:
Seulgi Kim
2015-03-20 02:38:04 +09:00
parent 95ce1d9e82
commit 161225da51

3
mysql/mysql.d.ts vendored
View File

@@ -83,6 +83,9 @@ declare module "mysql" {
query: IQueryFunction;
end(): void;
end(callback: (err: IError, ...args: any[]) => void): void;
on(ev: string, callback: (...args: any[]) => void): IPool;
on(ev: 'connection', callback: (connection: IConnection) => void): IPool;
on(ev: 'error', callback: (err: IError) => void): IPool;