mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 14:57:10 +00:00
Merge pull request #17423 from MarcusNoble/master
Added ping method to MySQL IConnection
This commit is contained in:
Vendored
+2
@@ -58,6 +58,8 @@ interface IConnection {
|
||||
end(callback: (err: IError, ...args: any[]) => void): void;
|
||||
end(options: any, callback: (err: IError, ...args: any[]) => void): void;
|
||||
|
||||
ping(callback: (err: IError) => void): void;
|
||||
|
||||
destroy(): void;
|
||||
|
||||
pause(): void;
|
||||
|
||||
@@ -148,6 +148,11 @@ connection.connect(function (err) {
|
||||
console.log('connected as id ' + connection.threadId);
|
||||
});
|
||||
|
||||
connection.ping(function (err) {
|
||||
if (err) throw err;
|
||||
console.log('Ping was successful');
|
||||
})
|
||||
|
||||
/// Pools
|
||||
|
||||
var poolConfig = {
|
||||
|
||||
Reference in New Issue
Block a user