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

pgTableCreator() — drizzle-orm Function Reference

Architecture documentation for the pgTableCreator() function in table.ts from the drizzle-orm codebase.

Entity Profile

Dependency Diagram

graph TD
  acb44198_384a_c886_4234_b308c98c05c6["pgTableCreator()"]
  2d5c8884_973c_561c_def6_5e394ea36d1a["table.ts"]
  acb44198_384a_c886_4234_b308c98c05c6 -->|defined in| 2d5c8884_973c_561c_def6_5e394ea36d1a
  dae5654f_1fee_289f_bc31_bb7199ac008e["pgTableWithSchema()"]
  acb44198_384a_c886_4234_b308c98c05c6 -->|calls| dae5654f_1fee_289f_bc31_bb7199ac008e
  style acb44198_384a_c886_4234_b308c98c05c6 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

drizzle-orm/src/pg-core/table.ts lines 248–252

export function pgTableCreator(customizeTableName: (name: string) => string): PgTableFn {
	return (name, columns, extraConfig) => {
		return pgTableWithSchema(customizeTableName(name) as typeof name, columns, extraConfig, undefined, name);
	};
}

Domain

Subdomains

Frequently Asked Questions

What does pgTableCreator() do?
pgTableCreator() is a function in the drizzle-orm codebase, defined in drizzle-orm/src/pg-core/table.ts.
Where is pgTableCreator() defined?
pgTableCreator() is defined in drizzle-orm/src/pg-core/table.ts at line 248.
What does pgTableCreator() call?
pgTableCreator() calls 1 function(s): pgTableWithSchema.

Analyze Your Own Codebase

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

Try Supermodel Free