NitroSQLite
nitro-sqliteInterfaces

ExecuteAsyncOptions

TypeScript

Source files: TypeScript

Options for asynchronous reads on a connection or prepared statement.

Properties

signal?

optional signal?: ReadCancellationSignal

Defined in: packages/nitro-sqlite/src/types.ts:218

Cancels this execution. When supplied, only read queries outside an explicit transaction are allowed. Cancellation rejects with a SQLiteError of type OperationCancelled, with signal.reason as its cause. A signal supplied to writes, PRAGMAs, transaction commands, or load_extension() rejects with SqlExecutionError. A read inside an explicit transaction also rejects with SqlExecutionError and leaves that transaction intact. An abort after native completion has no effect.

On this page