Home / Function/ GelSquasher.squashIdxPush() — drizzle-orm Function Reference

GelSquasher.squashIdxPush() — drizzle-orm Function Reference

Architecture documentation for the GelSquasher.squashIdxPush() function in gelSchema.ts from the drizzle-orm codebase.

Entity Profile

Dependency Diagram

graph TD
  37c692d1_2f33_6155_d154_d13381c13ba6["GelSquasher.squashIdxPush()"]
  964b24c5_3481_bed3_69f7_b6e4cefe58bb["gelSchema.ts"]
  37c692d1_2f33_6155_d154_d13381c13ba6 -->|defined in| 964b24c5_3481_bed3_69f7_b6e4cefe58bb
  style 37c692d1_2f33_6155_d154_d13381c13ba6 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

drizzle-kit/src/serializer/gelSchema.ts lines 345–352

	squashIdxPush: (idx: Index) => {
		index.parse(idx);
		return `${idx.name};${
			idx.columns
				.map((c) => `${c.isExpression ? '' : c.expression}--${c.asc}--${c.nulls}`)
				.join(',,')
		};${idx.isUnique};${idx.method};${JSON.stringify(idx.with)}`;
	},

Domain

Subdomains

Frequently Asked Questions

What does GelSquasher.squashIdxPush() do?
GelSquasher.squashIdxPush() is a function in the drizzle-orm codebase, defined in drizzle-kit/src/serializer/gelSchema.ts.
Where is GelSquasher.squashIdxPush() defined?
GelSquasher.squashIdxPush() is defined in drizzle-kit/src/serializer/gelSchema.ts at line 345.

Analyze Your Own Codebase

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

Try Supermodel Free