mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-16 19:09:18 +08:00
Fix problem in express-myconnection as result of changes.
This commit is contained in:
15
mysql/mysql.d.ts
vendored
15
mysql/mysql.d.ts
vendored
@@ -8,14 +8,24 @@
|
||||
declare module "mysql" {
|
||||
import stream = require("stream");
|
||||
|
||||
function createConnection(connectionUri: string): IConnection;
|
||||
function createConnection(config: IConnectionConfig): IConnection;
|
||||
function createConnection(connectionUri: string): IConnection;
|
||||
function createConnection(config: IConnectionConfig): IConnection;
|
||||
function createPool(config: IPoolConfig): IPool;
|
||||
function createPoolCluster(config?: IPoolClusterConfig): IPoolCluster;
|
||||
function escape(value: any): string;
|
||||
function format(sql: string): string;
|
||||
function format(sql: string, values: Array<any>): string;
|
||||
|
||||
interface IMySql {
|
||||
createConnection(connectionUri: string): IConnection;
|
||||
createConnection(config: IConnectionConfig): IConnection;
|
||||
createPool(config: IPoolConfig): IPool;
|
||||
createPoolCluster(config?: IPoolClusterConfig): IPoolCluster;
|
||||
escape(value: any): string;
|
||||
format(sql: string): string;
|
||||
format(sql: string, values: Array<any>): string;
|
||||
}
|
||||
|
||||
interface IConnectionStatic {
|
||||
createQuery(sql: string): IQuery;
|
||||
createQuery(sql: string, callback: (err: IError, ...args: any[]) => void): IQuery;
|
||||
@@ -477,3 +487,4 @@ declare module "mysql" {
|
||||
fatal: boolean;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user