MySqlSquasher.unsquashIdx() — drizzle-orm Function Reference
Architecture documentation for the MySqlSquasher.unsquashIdx() function in mysqlSchema.ts from the drizzle-orm codebase.
Entity Profile
Dependency Diagram
graph TD db7cb1a9_07f3_77c8_120e_ccca67d5b5c6["MySqlSquasher.unsquashIdx()"] f2ee16c1_40e6_43f3_15b2_c391a3ac170b["mysqlSchema.ts"] db7cb1a9_07f3_77c8_120e_ccca67d5b5c6 -->|defined in| f2ee16c1_40e6_43f3_15b2_c391a3ac170b style db7cb1a9_07f3_77c8_120e_ccca67d5b5c6 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
drizzle-kit/src/serializer/mysqlSchema.ts lines 229–240
unsquashIdx: (input: string): Index => {
const [name, columnsString, isUnique, using, algorithm, lock] = input.split(';');
const destructed = {
name,
columns: columnsString.split(','),
isUnique: isUnique === 'true',
using: using ? using : undefined,
algorithm: algorithm ? algorithm : undefined,
lock: lock ? lock : undefined,
};
return index.parse(destructed);
},
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does MySqlSquasher.unsquashIdx() do?
MySqlSquasher.unsquashIdx() is a function in the drizzle-orm codebase, defined in drizzle-kit/src/serializer/mysqlSchema.ts.
Where is MySqlSquasher.unsquashIdx() defined?
MySqlSquasher.unsquashIdx() is defined in drizzle-kit/src/serializer/mysqlSchema.ts at line 229.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free