type alias EntityKey
Since 0.2.0

A primary key value: a scalar string, a scalar number, or a composite key expressed as a readonly record of named columns to values.

A composite key is a record, never an array, because a composite key is named columns and an array would force the caller to depend on a column order the mapping owns. The scalar arms are retained so every existing call site and every existing adapter keeps compiling.

Definition

string | number | Readonly<Record<string, string | number>>

Usage

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