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

Relationship Graph

Source Code

drizzle-orm/src/sqlite-core/foreign-keys.ts lines 53–56

	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/sqlite-core/foreign-keys.ts.
Where is onUpdate() defined?
onUpdate() is defined in drizzle-orm/src/sqlite-core/foreign-keys.ts at line 53.

Analyze Your Own Codebase

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

Try Supermodel Free