method IDataSource.delete
IDataSource.delete(id: EntityKey): Promise<boolean>

Delete an entity by primary key.

Parameters

The primary key value (scalar or composite record)

Return Type

Promise<boolean>

true when a row was deleted, false when none matched. On a deferred-write transaction this reports whether a committed row matched, and the delete itself lands at commit.

Usage

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