method

sqlite.Statement.iterate

...params: ParamsType
): IterableIterator<ReturnType>;

Execute the prepared statement and return an iterator over the results.

A statement has one cursor, and its newest run owns it: after another call of get, all, values, raw, run or iterate on the same Statement, the next step of this iterator throws. Use Database.prepare to get a statement with a cursor of its own.

@param params

optional values to bind to the statement. If omitted, the statement is run with the last bound values or no parameters if there are none.