interface D1AdapterOptions
Since 0.2.0

Options for D1Adapter.

Properties

readonly
optional
tables: Readonly<Record<string, D1EntityMapping>>

Per-entity table and primary-key overrides, keyed by the entity name passed to getRepository().

An entity with no entry uses its own name as the table and 'id' as the key, which is why the zero-config path works for a schema whose table names already match.

Usage

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