method ID1PreparedStatement.first
ID1PreparedStatement.first<T = Record<string, unknown>>(): Promise<T | null>

Runs the statement and returns the first row.

Type Parameters

T = Record<string, unknown>

The row shape

Return Type

Promise<T | null>

The first row, or null when there are none

Usage

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