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

tableRenameKey() — drizzle-orm Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

drizzle-kit/src/utils.ts lines 286–289

export const tableRenameKey = (it: NamedWithSchema) => {
	const out = it.schema ? `"${it.schema}"."${it.name}"` : `"${it.name}"`;
	return out;
};

Domain

Subdomains

Frequently Asked Questions

What does tableRenameKey() do?
tableRenameKey() is a function in the drizzle-orm codebase, defined in drizzle-kit/src/utils.ts.
Where is tableRenameKey() defined?
tableRenameKey() is defined in drizzle-kit/src/utils.ts at line 286.
What calls tableRenameKey()?
tableRenameKey() 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