MCPcopy Create free account
hub / github.com/mikro-orm/mikro-orm / pickAbortOptions

Function pickAbortOptions

packages/sql/src/AbstractSqlDriver.ts:74–82  ·  view source on GitHub ↗

Extracts cancellation controls from any options bag that extends `AbortQueryOptions`.

(options?: AbortQueryOptions)

Source from the content-addressed store, hash-verified

72
73/** Extracts cancellation controls from any options bag that extends `AbortQueryOptions`. */
74function pickAbortOptions(options?: AbortQueryOptions): AbortQueryOptions | undefined {
75 if (!options || (options.signal == null && options.inflightQueryAbortStrategy == null)) {
76 return undefined;
77 }
78 return {
79 signal: options.signal,
80 inflightQueryAbortStrategy: options.inflightQueryAbortStrategy,
81 };
82}
83
84/**
85 * Returns a `loggerContext` payload that carries the abort fields alongside any existing

Callers 12

withAbortContextFunction · 0.85
countFunction · 0.85
nativeInsertFunction · 0.85
nativeCloneSimpleFunction · 0.85
nativeCloneTPTFunction · 0.85
nativeUpdateFunction · 0.85
nativeUpdateManyFunction · 0.85
nativeDeleteFunction · 0.85
syncCollectionsFunction · 0.85
processManyToManyFunction · 0.85
lockPessimisticFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected