File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -142,7 +142,11 @@ export interface Pool extends mysql.Connection {
142
142
on ( event : 'enqueue' , listener : ( ) => any ) : this;
143
143
promise ( promiseImpl ?: PromiseConstructor ) : PromisePool ;
144
144
}
145
-
145
+
146
+ type authPlugins =
147
+ ( pluginMetadata : { connection : Connection ; command : string } ) =>
148
+ ( pluginData : Buffer ) => Promise < string > ;
149
+
146
150
export interface ConnectionOptions extends mysql . ConnectionOptions {
147
151
charsetNumber ?: number ;
148
152
compress ?: boolean ;
@@ -162,6 +166,9 @@ export interface ConnectionOptions extends mysql.ConnectionOptions {
162
166
Promise ?: any ;
163
167
queueLimit ?: number ;
164
168
waitForConnections ?: boolean ;
169
+ authPlugins ?: {
170
+ [ key : string ] : authPlugins ;
171
+ } ;
165
172
}
166
173
167
174
export interface PoolOptions extends mysql . PoolOptions , ConnectionOptions { }
You can’t perform that action at this time.
0 commit comments