withCasing() — drizzle-orm Function Reference
Architecture documentation for the withCasing() function in introspect.ts from the drizzle-orm codebase.
Entity Profile
Dependency Diagram
graph TD 0d8b82d2_e7d2_dc86_a191_1eb736fb428b["withCasing()"] c2c22050_0d5c_404e_2b18_5934c728a89c["introspect.ts"] 0d8b82d2_e7d2_dc86_a191_1eb736fb428b -->|defined in| c2c22050_0d5c_404e_2b18_5934c728a89c d34d3e87_b168_fea6_ac14_fef2ffdc1654["relationsToTypeScript()"] d34d3e87_b168_fea6_ac14_fef2ffdc1654 -->|calls| 0d8b82d2_e7d2_dc86_a191_1eb736fb428b 071bfc71_ad06_c0c4_cba2_360298dd4b47["assertUnreachable()"] 0d8b82d2_e7d2_dc86_a191_1eb736fb428b -->|calls| 071bfc71_ad06_c0c4_cba2_360298dd4b47 style 0d8b82d2_e7d2_dc86_a191_1eb736fb428b fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
drizzle-kit/src/cli/commands/introspect.ts lines 739–748
const withCasing = (value: string, casing: Casing) => {
if (casing === 'preserve') {
return value;
}
if (casing === 'camel') {
return value.camelCase();
}
assertUnreachable(casing);
};
Domain
Subdomains
Defined In
Calls
Called By
Source
Frequently Asked Questions
What does withCasing() do?
withCasing() is a function in the drizzle-orm codebase, defined in drizzle-kit/src/cli/commands/introspect.ts.
Where is withCasing() defined?
withCasing() is defined in drizzle-kit/src/cli/commands/introspect.ts at line 739.
What does withCasing() call?
withCasing() calls 1 function(s): assertUnreachable.
What calls withCasing()?
withCasing() is called by 1 function(s): relationsToTypeScript.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free