* Returns a `loggerContext` payload that carries the abort fields alongside any existing * context. The connection layer strips them before logging — this avoids widening the public * `Connection.execute()` signature.
( loggerContext: LoggingOptions | undefined, options?: AbortQueryOptions, )
| 87 | * `Connection.execute()` signature. |
| 88 | */ |
| 89 | function withAbortContext( |
| 90 | loggerContext: LoggingOptions | undefined, |
| 91 | options?: AbortQueryOptions, |
| 92 | ): LoggingOptions | undefined { |
| 93 | const abort = pickAbortOptions(options); |
| 94 | if (!abort) { |
| 95 | return loggerContext; |
| 96 | } |
| 97 | return { ...(loggerContext as Dictionary), ...abort } as LoggingOptions; |
| 98 | } |
| 99 | |
| 100 | /** Base class for SQL database drivers, implementing find/insert/update/delete using QueryBuilder. */ |
| 101 | export abstract class AbstractSqlDriver< |
no test coverage detected