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

onUpdate() — drizzle-orm Function Reference

Architecture documentation for the onUpdate() function in foreign-keys.ts from the drizzle-orm codebase.

Entity Profile

Dependency Diagram

graph TD
  1aba56e8_9d6f_9f21_e683_4ad40b760383["onUpdate()"]
  dbda35af_725c_bbfb_ce7e_01f35541cefa["ForeignKeyBuilder"]
  1aba56e8_9d6f_9f21_e683_4ad40b760383 -->|defined in| dbda35af_725c_bbfb_ce7e_01f35541cefa
  style 1aba56e8_9d6f_9f21_e683_4ad40b760383 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

drizzle-orm/src/gel-core/foreign-keys.ts lines 48–51

	onUpdate(action: UpdateDeleteAction): this {
		this._onUpdate = action === undefined ? 'no action' : action;
		return this;
	}

Domain

Subdomains

Frequently Asked Questions

What does onUpdate() do?
onUpdate() is a function in the drizzle-orm codebase, defined in drizzle-orm/src/gel-core/foreign-keys.ts.
Where is onUpdate() defined?
onUpdate() is defined in drizzle-orm/src/gel-core/foreign-keys.ts at line 48.

Analyze Your Own Codebase

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

Try Supermodel Free