@@ -72,6 +72,8 @@ export interface Connection extends mysql.Connection {
72
72
) : mysql . Query ;
73
73
ping ( callback ?: ( err : mysql . QueryError | null ) => any ) : void ;
74
74
promise ( promiseImpl ?: PromiseConstructor ) : PromiseConnection ;
75
+ unprepare ( sql : string ) : mysql . PrepareStatementInfo ;
76
+ prepare ( sql : string , callback ?: ( err : mysql . QueryError | null , statement : mysql . PrepareStatementInfo ) => any ) : mysql . Prepare ;
75
77
}
76
78
77
79
export interface PoolConnection extends mysql . PoolConnection , Connection {
@@ -149,6 +151,8 @@ export interface Pool extends mysql.Connection {
149
151
on ( event : 'release' , listener : ( connection : PoolConnection ) => any ) : this;
150
152
on ( event : 'enqueue' , listener : ( ) => any ) : this;
151
153
promise ( promiseImpl ?: PromiseConstructor ) : PromisePool ;
154
+ unprepare ( sql : string ) : mysql . PrepareStatementInfo ;
155
+ prepare ( sql : string , callback ?: ( err : mysql . QueryError | null , statement : mysql . PrepareStatementInfo ) => any ) : mysql . Prepare ;
152
156
}
153
157
154
158
type authPlugins = ( pluginMetadata : {
@@ -182,14 +186,6 @@ export interface ConnectionOptions extends mysql.ConnectionOptions {
182
186
} ;
183
187
}
184
188
185
- export interface ConnectionConfig extends ConnectionOptions {
186
- static mergeFlags ( defaultFlags : string [ ] , userFlags : string [ ] | string ) : number ;
187
- static getDefaultFlags ( options ?: ConnectionOptions ) : string [ ] ;
188
- static getCharsetNumber ( charset : string ) : number ;
189
- static getSSLProfile ( name : string ) : { ca : string [ ] } ;
190
- static parseUrl ( url : string ) : { host : string , port : number , database : string , user : string , password : string , [ key : string ] : any } ;
191
- }
192
-
193
189
export interface PoolOptions extends mysql . PoolOptions , ConnectionOptions { }
194
190
195
191
export function createConnection ( connectionUri : string ) : Connection ;
0 commit comments