mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-29 09:55:50 +08:00
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:
3
mysql/mysql.d.ts
vendored
3
mysql/mysql.d.ts
vendored
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user