getColumnNameAndConfig() — drizzle-orm Function Reference
Architecture documentation for the getColumnNameAndConfig() function in utils.ts from the drizzle-orm codebase.
Entity Profile
Dependency Diagram
graph TD e5b57740_4e05_8c61_0111_203b5f8f6061["getColumnNameAndConfig()"] 99737bc3_a631_a054_9291_f966c791930f["utils.ts"] e5b57740_4e05_8c61_0111_203b5f8f6061 -->|defined in| 99737bc3_a631_a054_9291_f966c791930f style e5b57740_4e05_8c61_0111_203b5f8f6061 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
drizzle-orm/src/utils.ts lines 256–263
export function getColumnNameAndConfig<
TConfig extends Record<string, any> | undefined,
>(a: string | TConfig | undefined, b: TConfig | undefined) {
return {
name: typeof a === 'string' && a.length > 0 ? a : '' as string,
config: typeof a === 'object' ? a : b as TConfig,
};
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does getColumnNameAndConfig() do?
getColumnNameAndConfig() is a function in the drizzle-orm codebase, defined in drizzle-orm/src/utils.ts.
Where is getColumnNameAndConfig() defined?
getColumnNameAndConfig() is defined in drizzle-orm/src/utils.ts at line 256.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free