Home / Type/ PgUpdateReturning Type — drizzle-orm Architecture

PgUpdateReturning Type — drizzle-orm Architecture

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

drizzle-orm/src/pg-core/query-builders/update.ts lines 251–278

export type PgUpdateReturning<
	T extends AnyPgUpdate,
	TDynamic extends boolean,
	TSelectedFields extends SelectedFields,
> = PgUpdateWithout<
	PgUpdateBase<
		T['_']['table'],
		T['_']['queryResult'],
		T['_']['from'],
		TSelectedFields,
		SelectResult<
			AccumulateToResult<
				T,
				'partial',
				T['_']['joins'],
				TSelectedFields
			>,
			'partial',
			T['_']['nullabilityMap']
		>,
		T['_']['nullabilityMap'],
		T['_']['joins'],
		TDynamic,
		T['_']['excludedMethods']
	>,
	TDynamic,
	'returning'
>;

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free