File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -100,7 +100,9 @@ declare namespace serverlessMysql {
100
100
config ( config ?: string | MySQL . ConnectionConfig ) : MySQL . ConnectionConfig
101
101
query < T > ( ...args ) : Promise < T >
102
102
end ( ) : Promise < void >
103
- escape ( str : string ) : MySQL . EscapeFunctions
103
+ escape : MySQL . EscapeFunctions [ 'escape' ] ,
104
+ escapeId : MySQL . EscapeFunctions [ 'escapeId' ] ,
105
+ format : MySQL . EscapeFunctions [ 'format' ] ,
104
106
quit ( ) : void
105
107
transaction ( ) : Transaction
106
108
getCounter ( ) : number
Original file line number Diff line number Diff line change @@ -418,6 +418,9 @@ module.exports = (params) => {
418
418
}
419
419
420
420
let escape = MYSQL . escape
421
+ let escapeId = MYSQL . escapeId
422
+ let format = MYSQL . format
423
+
421
424
// Set MySQL configs
422
425
config ( connCfg )
423
426
@@ -429,6 +432,8 @@ module.exports = (params) => {
429
432
query,
430
433
end,
431
434
escape,
435
+ escapeId,
436
+ format,
432
437
quit,
433
438
transaction,
434
439
getCounter,
You can’t perform that action at this time.
0 commit comments