File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -100,6 +100,7 @@ declare namespace serverlessMysql {
100
100
config ( config ?: MySQL . ConnectionConfig ) : MySQL . ConnectionConfig
101
101
query < T > ( ...args ) : Promise < T >
102
102
end ( ) : Promise < void >
103
+ escape ( str : string ) : MySQL . EscapeFunctions
103
104
quit ( ) : void
104
105
transaction ( ) : Transaction
105
106
getCounter ( ) : number
Original file line number Diff line number Diff line change @@ -373,16 +373,18 @@ module.exports = (params) => {
373
373
onKillError = typeof cfg . onKillError === 'function' ? cfg . onKillError : ( ) => { }
374
374
375
375
let connCfg = typeof cfg . config === 'object' && ! Array . isArray ( cfg . config ) ? cfg . config : { }
376
-
376
+ let escape = MYSQL . escape
377
377
// Set MySQL configs
378
378
config ( connCfg )
379
379
380
+
380
381
// Return public methods
381
382
return {
382
383
connect,
383
384
config,
384
385
query,
385
386
end,
387
+ escape,
386
388
quit,
387
389
transaction,
388
390
getCounter,
You can’t perform that action at this time.
0 commit comments