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

tableKey() — drizzle-orm Function Reference

Architecture documentation for the tableKey() function in views.ts from the drizzle-orm codebase.

Entity Profile

Dependency Diagram

graph TD
  4cb5079d_6d82_701b_e829_b7991446d54e["tableKey()"]
  217e2cbd_4fb7_ceab_251c_5733ece08a8f["views.ts"]
  4cb5079d_6d82_701b_e829_b7991446d54e -->|defined in| 217e2cbd_4fb7_ceab_251c_5733ece08a8f
  1ddc6886_186a_1767_4d50_c29c5fd33094["render()"]
  1ddc6886_186a_1767_4d50_c29c5fd33094 -->|calls| 4cb5079d_6d82_701b_e829_b7991446d54e
  style 4cb5079d_6d82_701b_e829_b7991446d54e fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

drizzle-kit/src/cli/views.ts lines 161–165

export const tableKey = (it: NamedWithSchema) => {
	return it.schema === 'public' || !it.schema
		? it.name
		: `${it.schema}.${it.name}`;
};

Domain

Subdomains

Called By

Frequently Asked Questions

What does tableKey() do?
tableKey() is a function in the drizzle-orm codebase, defined in drizzle-kit/src/cli/views.ts.
Where is tableKey() defined?
tableKey() is defined in drizzle-kit/src/cli/views.ts at line 161.
What calls tableKey()?
tableKey() is called by 1 function(s): render.

Analyze Your Own Codebase

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

Try Supermodel Free