Home / Type/ PgUpdateReturningAll Type — drizzle-orm Architecture

PgUpdateReturningAll Type — drizzle-orm Architecture

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

drizzle-orm/src/pg-core/query-builders/update.ts lines 220–249

export type PgUpdateReturningAll<T extends AnyPgUpdate, TDynamic extends boolean> = PgUpdateWithout<
	PgUpdateBase<
		T['_']['table'],
		T['_']['queryResult'],
		T['_']['from'],
		Equal<T['_']['joins'], []> extends true ? T['_']['table']['_']['columns'] : Simplify<
			& Record<T['_']['table']['_']['name'], T['_']['table']['_']['columns']>
			& {
				[K in keyof T['_']['joins'] as T['_']['joins'][K]['table']['_']['name']]:
					T['_']['joins'][K]['table']['_']['columns'];
			}
		>,
		SelectResult<
			AccumulateToResult<
				T,
				'single',
				T['_']['joins'],
				GetSelectTableSelection<T['_']['table']>
			>,
			'partial',
			T['_']['nullabilityMap']
		>,
		T['_']['nullabilityMap'],
		T['_']['joins'],
		TDynamic,
		T['_']['excludedMethods']
	>,
	TDynamic,
	'returning'
>;

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free