RawClient.$transaction() method

Run fn inside a transaction.

Signature:

$transaction<T>(fn: (tx: RawExecutor) => Promise<T>): Promise<T>;

Parameters

Parameter

Type

Description

fn

(tx: RawExecutor) => Promise<T>

Returns:

Promise<T>

Remarks

installChangeTriggers() needs this so the whole reconciliation — the function, the added triggers and the dropped ones — either lands or does not.

Read this page as plain markdown — no HTML, no navigation. For pasting into an LLM, or for an agent to fetch.