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
  1af8cb30_daa5_7f32_3a1c_66157b54a6df["onUpdate()"]
  46597bc3_9b07_1c82_2d4e_eaf86f61d36f["ForeignKeyBuilder"]
  1af8cb30_daa5_7f32_3a1c_66157b54a6df -->|defined in| 46597bc3_9b07_1c82_2d4e_eaf86f61d36f
  style 1af8cb30_daa5_7f32_3a1c_66157b54a6df fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

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

	onUpdate(action: UpdateDeleteAction): this {
		this._onUpdate = 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/mysql-core/foreign-keys.ts.
Where is onUpdate() defined?
onUpdate() is defined in drizzle-orm/src/mysql-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