Miterate
Bun

method

sqlite.SQLTagStore.iterate

stringElements: TemplateStringsArray,
...boundParameters: SQLInputValue[]
): Iterator<Record<string, SQLOutputValue>>;

Executes the given SQL query and returns an iterator over the resulting rows.

This function is intended to be used as a template literal tag, not to be called directly.

@param stringElements

Template literal elements containing the SQL query.

@param boundParameters

Parameter values to be bound to placeholders in the template string.

@returns

An iterator that yields objects representing the rows returned by the query.

Referenced types

type SQLInputValue = null | number | bigint | string | NodeJS.ArrayBufferView
type SQLOutputValue = null | number | bigint | string | NodeJS.NonSharedUint8Array