NitroSQLite
nitro-sqliteType aliases

ExecuteLazyAsyncQuery

TypeScript

Source files: TypeScript

ExecuteLazyAsyncQuery = <Row>(query, params?) => Promise<LazyQueryResult<Row>>

Queue a statement and resolve with the completed result, whose rows convert on access.

Type Parameters

Row

Row extends QueryResultRow = QueryResultRow

Parameters

query

string

SQL statement with optional positional placeholders.

params?

SQLiteQueryParams

Values bound to the placeholders.

Returns

Promise<LazyQueryResult<Row>>

Throws

SQLiteError as a rejected promise if the statement fails.

On this page