interface DrizzleCompositeKeyOptions
Since 0.2.0

Per-entity overrides for the Drizzle adapter.

The only override exercised today is DrizzleCompositeKeyOptions.primaryKey, which replaces the hardcoded 'id' column the adapter reads otherwise. A scalar name yields a single-column key; an array yields a composite-key predicate that ANDs every named column.

Properties

Since 0.2.0
readonly
optional
primaryKey: string | readonly string[]

Primary-key column(s) for this entity.

Defaults to ['id'] when absent — the adapter's previous hardcoded path, so an unconfigured entity behaves exactly as it did before, including its refuse-by-name on an absent id column.

Pass an array for a composite-key table that has no id column but carries a compound primary key (e.g. { tenantId, flag }).

Usage

import { type DrizzleCompositeKeyOptions } from "database-plugin/src/index.ts";