transaction() — drizzle-orm Function Reference
Architecture documentation for the transaction() function in session.ts from the drizzle-orm codebase.
Entity Profile
Dependency Diagram
graph TD ca4764f6_7a8e_03a2_61f9_d8b45d36c681["transaction()"] 888979d4_9d8c_966b_390a_9002dbce6142["GelDbTransaction"] ca4764f6_7a8e_03a2_61f9_d8b45d36c681 -->|defined in| 888979d4_9d8c_966b_390a_9002dbce6142 731efcce_91b3_f2d8_b038_268ef8f3a226["transaction()"] 731efcce_91b3_f2d8_b038_268ef8f3a226 -->|calls| ca4764f6_7a8e_03a2_61f9_d8b45d36c681 731efcce_91b3_f2d8_b038_268ef8f3a226["transaction()"] ca4764f6_7a8e_03a2_61f9_d8b45d36c681 -->|calls| 731efcce_91b3_f2d8_b038_268ef8f3a226 style ca4764f6_7a8e_03a2_61f9_d8b45d36c681 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
drizzle-orm/src/gel/session.ts lines 175–182
override async transaction<T>(transaction: (tx: GelDbTransaction<TFullSchema, TSchema>) => Promise<T>): Promise<T> {
const tx = new GelDbTransaction<TFullSchema, TSchema>(
this.dialect,
this.session,
this.schema,
);
return await transaction(tx);
}
Domain
Subdomains
Defined In
Calls
Called By
Source
Frequently Asked Questions
What does transaction() do?
transaction() is a function in the drizzle-orm codebase, defined in drizzle-orm/src/gel/session.ts.
Where is transaction() defined?
transaction() is defined in drizzle-orm/src/gel/session.ts at line 175.
What does transaction() call?
transaction() calls 1 function(s): transaction.
What calls transaction()?
transaction() is called by 1 function(s): transaction.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free