Home / Type/ PgTableWithColumns Type — drizzle-orm Architecture

PgTableWithColumns Type — drizzle-orm Architecture

Architecture documentation for the PgTableWithColumns type/interface in table.ts from the drizzle-orm codebase.

Entity Profile

Dependency Diagram

graph TD
  55b1e00d_56a4_44ba_5baa_fb8d5c6f7d4e["PgTableWithColumns"]
  2d5c8884_973c_561c_def6_5e394ea36d1a["table.ts"]
  55b1e00d_56a4_44ba_5baa_fb8d5c6f7d4e -->|defined in| 2d5c8884_973c_561c_def6_5e394ea36d1a
  style 55b1e00d_56a4_44ba_5baa_fb8d5c6f7d4e fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

drizzle-orm/src/pg-core/table.ts lines 58–68

export type PgTableWithColumns<T extends TableConfig> =
	& PgTable<T>
	& {
		[Key in keyof T['columns']]: T['columns'][Key];
	}
	& {
		enableRLS: () => Omit<
			PgTableWithColumns<T>,
			'enableRLS'
		>;
	};

Frequently Asked Questions

What is the PgTableWithColumns type?
PgTableWithColumns is a type/interface in the drizzle-orm codebase, defined in drizzle-orm/src/pg-core/table.ts.
Where is PgTableWithColumns defined?
PgTableWithColumns is defined in drizzle-orm/src/pg-core/table.ts at line 58.

Analyze Your Own Codebase

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

Try Supermodel Free