D1Binding
import type { D1Binding } from "@pitlane/data-table-d1";The slice of Cloudflare's D1 API this driver uses.
Declared structurally rather than imported from @cloudflare/workers-types,
so the package adds no dependency and no ambient global types to a consumer
that does not already have them. A real D1Database binding satisfies it;
so does a test double.
Methods
batch()
batch(statements): Promise<D1Result[]>;Parameters
statements
Returns
Promise<D1Result[]>
exec()
exec(query): Promise<unknown>;Parameters
query
string
Returns
Promise<unknown>
prepare()
prepare(query): D1PreparedStatement;Parameters
query
string