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

pgTable() — drizzle-orm Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

drizzle-orm/src/pg-core/table.ts lines 244–246

export const pgTable: PgTableFn = (name, columns, extraConfig) => {
	return pgTableWithSchema(name, columns, extraConfig, undefined);
};

Domain

Subdomains

Frequently Asked Questions

What does pgTable() do?
pgTable() is a function in the drizzle-orm codebase, defined in drizzle-orm/src/pg-core/table.ts.
Where is pgTable() defined?
pgTable() is defined in drizzle-orm/src/pg-core/table.ts at line 244.
What does pgTable() call?
pgTable() calls 1 function(s): pgTableWithSchema.
What calls pgTable()?
pgTable() is called by 2 function(s): constructor, pgSchema.

Analyze Your Own Codebase

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

Try Supermodel Free