Home / Function/ PgSquasher.unsquashPK() — drizzle-orm Function Reference

PgSquasher.unsquashPK() — drizzle-orm Function Reference

Architecture documentation for the PgSquasher.unsquashPK() function in pgSchema.ts from the drizzle-orm codebase.

Entity Profile

Dependency Diagram

graph TD
  b29ab463_926e_883f_f993_047df9bedd83["PgSquasher.unsquashPK()"]
  cbf63853_6723_30fc_5ded_88a8944f77c4["pgSchema.ts"]
  b29ab463_926e_883f_f993_047df9bedd83 -->|defined in| cbf63853_6723_30fc_5ded_88a8944f77c4
  style b29ab463_926e_883f_f993_047df9bedd83 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

drizzle-kit/src/serializer/pgSchema.ts lines 670–673

	unsquashPK: (pk: string): PrimaryKey => {
		const splitted = pk.split(';');
		return { name: splitted[1], columns: splitted[0].split(',') };
	},

Domain

Subdomains

Frequently Asked Questions

What does PgSquasher.unsquashPK() do?
PgSquasher.unsquashPK() is a function in the drizzle-orm codebase, defined in drizzle-kit/src/serializer/pgSchema.ts.
Where is PgSquasher.unsquashPK() defined?
PgSquasher.unsquashPK() is defined in drizzle-kit/src/serializer/pgSchema.ts at line 670.

Analyze Your Own Codebase

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

Try Supermodel Free