fix(mysql): Add definition for PoolCluster.end with callback

This commit is contained in:
satoshun00
2017-04-11 19:12:27 +09:00
parent 14f8fb1b17
commit bdbd1efbd0
2 changed files with 3 additions and 2 deletions
+1
View File
@@ -101,6 +101,7 @@ interface IPoolCluster {
add(group: string, config: IPoolConfig): void;
end(): void;
end(callback: (err: IError, ...args: any[]) => void): void;
getConnection(callback: (err: IError, connection: IConnection) => void): void;
getConnection(group: string, callback: (err: IError, connection: IConnection) => void): void;
+2 -2
View File
@@ -17,7 +17,7 @@ connection.query('SELECT 1 + 1 AS solution', function (err, rows, fields) {
console.log('The solution is: ', rows[0].solution);
});
connection.end();
connection.end(function (err) {});
connection = mysql.createConnection({
host: 'example.org',
@@ -396,4 +396,4 @@ connection = mysql.createConnection({ debug: ['ComQueryPacket', 'RowDataPacket']
var type: mysql.FieldType = mysql.FieldType.SHORT;
var info: mysql.IFieldInfo;
info.type = type;
info.type = type;