Home / Class/ PgProxyTransaction Class — drizzle-orm Architecture

PgProxyTransaction Class — drizzle-orm Architecture

Architecture documentation for the PgProxyTransaction class in session.ts from the drizzle-orm codebase.

Entity Profile

Dependency Diagram

graph TD
  6e436b7a_26f7_c45b_8fd8_6dc24259253c["PgProxyTransaction"]
  271f5ca2_4cd0_ab39_be04_a2370f5c940c["session.ts"]
  6e436b7a_26f7_c45b_8fd8_6dc24259253c -->|defined in| 271f5ca2_4cd0_ab39_be04_a2370f5c940c
  b2683e55_fb0b_492c_10bc_a132028550e0["transaction()"]
  6e436b7a_26f7_c45b_8fd8_6dc24259253c -->|method| b2683e55_fb0b_492c_10bc_a132028550e0

Relationship Graph

Source Code

drizzle-orm/src/pg-proxy/session.ts lines 78–89

export class PgProxyTransaction<
	TFullSchema extends Record<string, unknown>,
	TSchema extends TablesRelationalConfig,
> extends PgTransaction<PgRemoteQueryResultHKT, TFullSchema, TSchema> {
	static override readonly [entityKind]: string = 'PgProxyTransaction';

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

Domain

Frequently Asked Questions

What is the PgProxyTransaction class?
PgProxyTransaction is a class in the drizzle-orm codebase, defined in drizzle-orm/src/pg-proxy/session.ts.
Where is PgProxyTransaction defined?
PgProxyTransaction is defined in drizzle-orm/src/pg-proxy/session.ts at line 78.

Analyze Your Own Codebase

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

Try Supermodel Free