method IDataSource.update
IDataSource.update(
data: Partial<Record<string, unknown>>
): Promise<Record<string, unknown>>

Update an existing entity by primary key.

Parameters

The primary key value

data: Partial<Record<string, unknown>>

The columns to merge into the row

Return Type

Promise<Record<string, unknown>>

The updated row

Throws

Error

When no row has that key

Usage

import { type IDataSource } from "common/src/index.ts";