Home / Function/ transaction() — drizzle-orm Function Reference

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
  bcfa2cc6_6708_998e_7e6b_51f418547da4["transaction()"]
  9b87d13f_b108_a6bb_f37d_c1cb86125580["MySqlRemoteSession"]
  bcfa2cc6_6708_998e_7e6b_51f418547da4 -->|defined in| 9b87d13f_b108_a6bb_f37d_c1cb86125580
  style bcfa2cc6_6708_998e_7e6b_51f418547da4 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

drizzle-orm/src/mysql-proxy/session.ts lines 85–90

	override async transaction<T>(
		_transaction: (tx: MySqlProxyTransaction<TFullSchema, TSchema>) => Promise<T>,
		_config?: MySqlTransactionConfig,
	): Promise<T> {
		throw new Error('Transactions are not supported by the MySql Proxy driver');
	}

Domain

Subdomains

Frequently Asked Questions

What does transaction() do?
transaction() is a function in the drizzle-orm codebase, defined in drizzle-orm/src/mysql-proxy/session.ts.
Where is transaction() defined?
transaction() is defined in drizzle-orm/src/mysql-proxy/session.ts at line 85.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free