type alias ReadColumn

Run one column's declared read transform (e.g. decrypt) on a stored value — identity when the column declares none or the value is null. For reading a single column back without building a whole row. rowId (when known) lets the transform name the record in error reports.

Type Parameters

Row

Definition

<K extends keyof Row & string>(
col: K,
value: Row[K],
rowId?: unknown,
) => Promise<Row[K]>

Usage

import { type ReadColumn } from "docs/database.ts";