distributed

Bun

Symbol

SavepointSQL.distributed

distributed(name: string, fn: SQLTransactionContextCallback): Promise<any>

Alternative method to begin a distributed transaction

Referenced types

type SQLTransactionContextCallback = (sql: TransactionSQL) => Promise<any> | SQLQuery[]

Callback function type for transaction contexts