File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed
Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -24,12 +24,14 @@ export interface ConnectionEnqueueMessage {
2424
2525export interface QueryStartMessage {
2626 connection : PoolConnectionPromisify ;
27+ values ?: object | any [ ] ;
2728 sql : string ;
2829}
2930
3031export interface QueryEndMessage {
3132 connection : PoolConnectionPromisify ;
3233 sql : string ;
34+ values ?: object | any [ ] ;
3335 duration : number ;
3436 error ?: Error ;
3537}
Original file line number Diff line number Diff line change @@ -92,6 +92,7 @@ export abstract class Operator {
9292 let lastError : Error | undefined ;
9393 channels . queryStart . publish ( {
9494 sql,
95+ values,
9596 connection : this . #connection,
9697 } as QueryStartMessage ) ;
9798 try {
@@ -112,6 +113,7 @@ export abstract class Operator {
112113 channels . queryEnd . publish ( {
113114 sql,
114115 connection : this . #connection,
116+ values,
115117 duration,
116118 error : lastError ,
117119 } as QueryEndMessage ) ;
You can’t perform that action at this time.
0 commit comments