Skip to content

Commit 3a964f9

Browse files
committed
Fixed ConnectionConfig #1564
1 parent 2244347 commit 3a964f9

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

index.d.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,14 @@ export interface ConnectionOptions extends mysql.ConnectionOptions {
186186
};
187187
}
188188

189+
export interface ConnectionConfig extends ConnectionOptions {
190+
mergeFlags(defaultFlags: string[], userFlags: string[] | string): number;
191+
getDefaultFlags(options?: ConnectionOptions): string[];
192+
getCharsetNumber(charset: string): number;
193+
getSSLProfile(name: string): { ca: string[] };
194+
parseUrl(url: string): { host: string, port: number, database: string, user: string, password: string, [key: string]: any };
195+
}
196+
189197
export interface PoolOptions extends mysql.PoolOptions, ConnectionOptions {}
190198

191199
export function createConnection(connectionUri: string): Connection;

0 commit comments

Comments
 (0)