nitro-sqliteType aliases
ExecuteAsyncQuery
TypeScriptSource files: TypeScript
ExecuteAsyncQuery = <Row>(query, params?) => Promise<QueryResult<Row>>
Queue one SQL statement and resolve with its typed rows.
Type Parameters
Row
Row extends QueryResultRow = QueryResultRow
Parameters
query
string
SQL statement with optional positional or named placeholders.
params?
Positional values or a record keyed by exact SQL placeholder names, including their prefixes.
Returns
Promise<QueryResult<Row>>