Skip to main content
Version: Next

EmExecuteOptions

Options for the modern signature of SqlEntityManager.execute().

Hierarchy

Index

Properties

optionalconnectionType

connectionType?: ConnectionType

Connection to use outside a transaction. Defaults to 'write'; an active transaction always takes precedence.

optionalinheritedinflightQueryAbortStrategy

inflightQueryAbortStrategy?: InflightQueryAbortStrategy

Strategy used when the signal fires while the query is in flight. See InflightQueryAbortStrategy for caveats around streams and MongoDB.

optionalloggerContext

loggerContext?: LoggingOptions

Logger context payload forwarded to Logger.logQuery.

optionalmethod

method?: get | all | run

Result shape — 'all' for rows, 'get' for a single row, 'run' for affected count. Defaults to 'all'.

optionalinheritedsignal

signal?: AbortSignal

AbortSignal that cancels the query when fired.