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

columnRenameKey() — drizzle-orm Function Reference

Architecture documentation for the columnRenameKey() function in utils.ts from the drizzle-orm codebase.

Entity Profile

Dependency Diagram

graph TD
  ff884a92_2f63_1d96_fe03_1ec44d241238["columnRenameKey()"]
  5847e5ae_7b4a_4b02_b68f_883ef88b3c1a["utils.ts"]
  ff884a92_2f63_1d96_fe03_1ec44d241238 -->|defined in| 5847e5ae_7b4a_4b02_b68f_883ef88b3c1a
  9905c44a_4a5a_9009_582c_0ace92587750["prepareMigrationMeta()"]
  9905c44a_4a5a_9009_582c_0ace92587750 -->|calls| ff884a92_2f63_1d96_fe03_1ec44d241238
  style ff884a92_2f63_1d96_fe03_1ec44d241238 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

drizzle-kit/src/utils.ts lines 291–300

export const columnRenameKey = (
	table: string,
	schema: string,
	column: string,
) => {
	const out = schema
		? `"${schema}"."${table}"."${column}"`
		: `"${table}"."${column}"`;
	return out;
};

Domain

Subdomains

Frequently Asked Questions

What does columnRenameKey() do?
columnRenameKey() is a function in the drizzle-orm codebase, defined in drizzle-kit/src/utils.ts.
Where is columnRenameKey() defined?
columnRenameKey() is defined in drizzle-kit/src/utils.ts at line 291.
What calls columnRenameKey()?
columnRenameKey() is called by 1 function(s): prepareMigrationMeta.

Analyze Your Own Codebase

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

Try Supermodel Free