Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
10 lines
542 B
Plaintext
10 lines
542 B
Plaintext
import type { PayloadRequest } from 'payload';
|
|
import type { DrizzleAdapter } from '../types.js';
|
|
/**
|
|
* Returns current db transaction instance from req or adapter.drizzle itself
|
|
*
|
|
* If a transaction session doesn't exist (e.g., it was already committed/rolled back),
|
|
* falls back to the default adapter.drizzle instance to prevent errors.
|
|
*/
|
|
export declare const getTransaction: <T extends DrizzleAdapter = DrizzleAdapter>(adapter: T, req?: Partial<PayloadRequest>) => Promise<T["drizzle"]>;
|
|
//# sourceMappingURL=getTransaction.d.ts.map |