Skip to main content
Deno 2 is finally here 🎉️
Learn more
Latest
method PreparedQuery.prototype.iterEntries
import { PreparedQuery } from "https://deno.land/x/sqlite@v3.9.1/src/query.ts";

Like iter except each row is returned as an object containing key-value pairs.

Example

const query = db.prepareQuery<[number, string], { id: number, name: string }>("SELECT id, name FROM people");
for (const { id, name } of query.iterEntries()) {
  // ...
}

Parameters

optional
params: P

Returns

RowsIterator<O>