Home / Function/ getColumnCasing() — drizzle-orm Function Reference

getColumnCasing() — drizzle-orm Function Reference

Architecture documentation for the getColumnCasing() function in casing.ts from the drizzle-orm codebase.

Entity Profile

Dependency Diagram

graph TD
  28c82d92_75b9_f8d4_89a3_9efb6eef87e6["getColumnCasing()"]
  5c81fdb3_ce13_bae3_7b2d_234662703206["CasingCache"]
  28c82d92_75b9_f8d4_89a3_9efb6eef87e6 -->|defined in| 5c81fdb3_ce13_bae3_7b2d_234662703206
  7e5328d2_b26d_89a1_f1f5_24c63e5ea74a["cacheTable()"]
  28c82d92_75b9_f8d4_89a3_9efb6eef87e6 -->|calls| 7e5328d2_b26d_89a1_f1f5_24c63e5ea74a
  style 28c82d92_75b9_f8d4_89a3_9efb6eef87e6 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

drizzle-orm/src/casing.ts lines 45–56

	getColumnCasing(column: Column): string {
		if (!column.keyAsName) return column.name;

		const schema = column.table[Table.Symbol.Schema] ?? 'public';
		const tableName = column.table[Table.Symbol.OriginalName];
		const key = `${schema}.${tableName}.${column.name}`;

		if (!this.cache[key]) {
			this.cacheTable(column.table);
		}
		return this.cache[key]!;
	}

Domain

Subdomains

Calls

Frequently Asked Questions

What does getColumnCasing() do?
getColumnCasing() is a function in the drizzle-orm codebase, defined in drizzle-orm/src/casing.ts.
Where is getColumnCasing() defined?
getColumnCasing() is defined in drizzle-orm/src/casing.ts at line 45.
What does getColumnCasing() call?
getColumnCasing() calls 1 function(s): cacheTable.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free