mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +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:
Vendored
+3
@@ -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