NitroSQLite
nitro-sqliteInterfaces

PreparedStatement

TypeScript

Source files: TypeScript

A reusable SQL statement bound to the connection that prepared it. Each execution resets the statement and its bindings before applying new values. Finalize it before closing the connection.

Properties

execute

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

Execute on the calling thread. Throws if the statement is finalized, its connection is closed, or the managed connection is busy.


executeAsync

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

Queue execution on a background thread and resolve with the query result.


executeRaw

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

Execute on the calling thread like execute, returning rows as arrays of column values.


executeRawAsync

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

Queue execution like executeAsync and resolve with rows as arrays of column values.


isFinalized

readonly isFinalized: boolean

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

Whether finalize() has released the native statement.

Methods

finalize()

finalize(): void

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

Release the native statement. Calling this more than once is safe.

Returns

void

On this page