Home / Type/ PgUpdateWithJoins Type — drizzle-orm Architecture

PgUpdateWithJoins Type — drizzle-orm Architecture

Architecture documentation for the PgUpdateWithJoins type/interface in update.ts from the drizzle-orm codebase.

Entity Profile

Dependency Diagram

graph TD
  22a2a786_b801_4f66_e574_2517311951e6["PgUpdateWithJoins"]
  ebf76db1_7804_287b_622a_ab94e9efc196["update.ts"]
  22a2a786_b801_4f66_e574_2517311951e6 -->|defined in| ebf76db1_7804_287b_622a_ab94e9efc196
  style 22a2a786_b801_4f66_e574_2517311951e6 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

drizzle-orm/src/pg-core/query-builders/update.ts lines 125–146

export type PgUpdateWithJoins<
	T extends AnyPgUpdate,
	TDynamic extends boolean,
	TFrom extends PgTable | Subquery | PgViewBase | SQL,
> = TDynamic extends true ? T : Omit<
	PgUpdateBase<
		T['_']['table'],
		T['_']['queryResult'],
		TFrom,
		T['_']['selectedFields'],
		T['_']['returning'],
		AppendToNullabilityMap<T['_']['nullabilityMap'], GetSelectTableName<TFrom>, 'inner'>,
		[...T['_']['joins'], {
			name: GetSelectTableName<TFrom>;
			joinType: 'inner';
			table: TFrom;
		}],
		TDynamic,
		Exclude<T['_']['excludedMethods'] | 'from', 'leftJoin' | 'rightJoin' | 'innerJoin' | 'fullJoin'>
	>,
	Exclude<T['_']['excludedMethods'] | 'from', 'leftJoin' | 'rightJoin' | 'innerJoin' | 'fullJoin'>
>;

Frequently Asked Questions

What is the PgUpdateWithJoins type?
PgUpdateWithJoins is a type/interface in the drizzle-orm codebase, defined in drizzle-orm/src/pg-core/query-builders/update.ts.
Where is PgUpdateWithJoins defined?
PgUpdateWithJoins is defined in drizzle-orm/src/pg-core/query-builders/update.ts at line 125.

Analyze Your Own Codebase

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

Try Supermodel Free