MySqlSquasher.unsquashFK() — drizzle-orm Function Reference
Architecture documentation for the MySqlSquasher.unsquashFK() function in mysqlSchema.ts from the drizzle-orm codebase.
Entity Profile
Dependency Diagram
graph TD b6bd948b_af0f_c07d_082c_e709326ae64e["MySqlSquasher.unsquashFK()"] f2ee16c1_40e6_43f3_15b2_c391a3ac170b["mysqlSchema.ts"] b6bd948b_af0f_c07d_082c_e709326ae64e -->|defined in| f2ee16c1_40e6_43f3_15b2_c391a3ac170b style b6bd948b_af0f_c07d_082c_e709326ae64e fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
drizzle-kit/src/serializer/mysqlSchema.ts lines 260–281
unsquashFK: (input: string): ForeignKey => {
const [
name,
tableFrom,
columnsFromStr,
tableTo,
columnsToStr,
onUpdate,
onDelete,
] = input.split(';');
const result: ForeignKey = fk.parse({
name,
tableFrom,
columnsFrom: columnsFromStr.split(','),
tableTo,
columnsTo: columnsToStr.split(','),
onUpdate,
onDelete,
});
return result;
},
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does MySqlSquasher.unsquashFK() do?
MySqlSquasher.unsquashFK() is a function in the drizzle-orm codebase, defined in drizzle-kit/src/serializer/mysqlSchema.ts.
Where is MySqlSquasher.unsquashFK() defined?
MySqlSquasher.unsquashFK() is defined in drizzle-kit/src/serializer/mysqlSchema.ts at line 260.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free