onDelete() — drizzle-orm Function Reference
Architecture documentation for the onDelete() function in foreign-keys.ts from the drizzle-orm codebase.
Entity Profile
Dependency Diagram
graph TD 8900a10c_90a9_e2e3_5212_f4097f6e028c["onDelete()"] 46597bc3_9b07_1c82_2d4e_eaf86f61d36f["ForeignKeyBuilder"] 8900a10c_90a9_e2e3_5212_f4097f6e028c -->|defined in| 46597bc3_9b07_1c82_2d4e_eaf86f61d36f style 8900a10c_90a9_e2e3_5212_f4097f6e028c fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
drizzle-orm/src/mysql-core/foreign-keys.ts lines 53–56
onDelete(action: UpdateDeleteAction): this {
this._onDelete = action;
return this;
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does onDelete() do?
onDelete() is a function in the drizzle-orm codebase, defined in drizzle-orm/src/mysql-core/foreign-keys.ts.
Where is onDelete() defined?
onDelete() is defined in drizzle-orm/src/mysql-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