Mdistributed
Bun

method

TransactionSQL.distributed

name: string,
): Promise<ContextCallbackResult<T>>;

Alternative method to begin a distributed transaction

Referenced types

type TransactionContextCallback<T> = ContextCallback<T, TransactionSQL>

Callback function type for transaction contexts

type ContextCallbackResult<T> = T extends PromiseLike<any>[] ? AwaitPromisesArray<T> : Awaited<T>