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 7ce18ea3_3394_261b_e457_365e17f34ccb["onDelete()"] 75bd2780_4502_b790_c39c_65e09a1659d8["ForeignKeyBuilder"] 7ce18ea3_3394_261b_e457_365e17f34ccb -->|defined in| 75bd2780_4502_b790_c39c_65e09a1659d8 style 7ce18ea3_3394_261b_e457_365e17f34ccb fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
drizzle-orm/src/sqlite-core/foreign-keys.ts lines 58–61
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/sqlite-core/foreign-keys.ts.
Where is onDelete() defined?
onDelete() is defined in drizzle-orm/src/sqlite-core/foreign-keys.ts at line 58.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free