function withIsolationSupport
Since 0.5.0
withIsolationSupport<TDatabase extends object>(bridge: DrizzleTransactionBridge<TDatabase>): DrizzleTransactionBridge<TDatabase>

Declares that an application-owned Drizzle bridge forwards transaction options to its driver.

The declaration cannot prove the bridge uses options; callers must make that assertion explicitly rather than letting an unbranded bridge silently ignore an isolation request.

Type Parameters

TDatabase extends object

Exact configured Drizzle database type

Parameters

Promise-aware bridge that honours its optional options

Return Type

The same bridge, branded for createDrizzleDatabase

Usage

import { withIsolationSupport } from "database-plugin/src/index.ts";