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