Skip to main content
Version: Next

LockOptions

Options for pessimistic and optimistic lock operations.

Hierarchy

Index

Properties

optionalinheritedctx

ctx?: any

optionalinheritedinflightQueryAbortStrategy

inflightQueryAbortStrategy?: InflightQueryAbortStrategy

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

optionallockMode

lockMode?: LockMode

optionallockTableAliases

lockTableAliases?: string[]

optionallockVersion

lockVersion?: number | Date

optionalinheritedloggerContext

loggerContext?: LogContext

optionallogging

logging?: LoggingOptions

optionalinheritedschema

schema?: string

optionalinheritedsignal

signal?: AbortSignal

AbortSignal that cancels the query when fired.