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

constructor() — drizzle-orm Function Reference

Architecture documentation for the constructor() function in update.ts from the drizzle-orm codebase.

Entity Profile

Dependency Diagram

graph TD
  4c644af9_834b_2357_da93_8a1579658c03["constructor()"]
  b3550288_69f4_670f_8c2e_e82d7003a700["PgUpdateBase"]
  4c644af9_834b_2357_da93_8a1579658c03 -->|defined in| b3550288_69f4_670f_8c2e_e82d7003a700
  55576350_9554_88f3_742f_3fddd8931816["constructor()"]
  55576350_9554_88f3_742f_3fddd8931816 -->|calls| 4c644af9_834b_2357_da93_8a1579658c03
  55576350_9554_88f3_742f_3fddd8931816["constructor()"]
  4c644af9_834b_2357_da93_8a1579658c03 -->|calls| 55576350_9554_88f3_742f_3fddd8931816
  style 4c644af9_834b_2357_da93_8a1579658c03 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

drizzle-orm/src/pg-core/query-builders/update.ts lines 368–379

	constructor(
		table: TTable,
		set: UpdateSet,
		private session: PgSession,
		private dialect: PgDialect,
		withList?: Subquery[],
	) {
		super();
		this.config = { set, table, withList, joins: [] };
		this.tableName = getTableLikeName(table);
		this.joinsNotNullableMap = typeof this.tableName === 'string' ? { [this.tableName]: true } : {};
	}

Domain

Subdomains

Called By

Frequently Asked Questions

What does constructor() do?
constructor() is a function in the drizzle-orm codebase, defined in drizzle-orm/src/pg-core/query-builders/update.ts.
Where is constructor() defined?
constructor() is defined in drizzle-orm/src/pg-core/query-builders/update.ts at line 368.
What does constructor() call?
constructor() calls 1 function(s): constructor.
What calls constructor()?
constructor() is called by 1 function(s): constructor.

Analyze Your Own Codebase

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

Try Supermodel Free