method ID1PreparedStatement.all
ID1PreparedStatement.all<T = Record<string, unknown>>(): Promise<D1Result<T>>

Runs the statement and returns every row.

Type Parameters

T = Record<string, unknown>

The row shape

Return Type

Promise<D1Result<T>>

The rows plus D1's result metadata

Usage

import { type ID1PreparedStatement } from "cloudflare-plugin/src/index.ts";