Home / Function/ SingleStoreSquasher.unsquashIdx() — drizzle-orm Function Reference

SingleStoreSquasher.unsquashIdx() — drizzle-orm Function Reference

Architecture documentation for the SingleStoreSquasher.unsquashIdx() function in singlestoreSchema.ts from the drizzle-orm codebase.

Entity Profile

Dependency Diagram

graph TD
  872e988c_4ba9_bd6c_9831_fca3ad9e5a79["SingleStoreSquasher.unsquashIdx()"]
  d63c81a6_6779_4926_bffe_7351e12a4301["singlestoreSchema.ts"]
  872e988c_4ba9_bd6c_9831_fca3ad9e5a79 -->|defined in| d63c81a6_6779_4926_bffe_7351e12a4301
  style 872e988c_4ba9_bd6c_9831_fca3ad9e5a79 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

drizzle-kit/src/serializer/singlestoreSchema.ts lines 144–155

	unsquashIdx: (input: string): Index => {
		const [name, columnsString, isUnique, using, algorithm, lock] = input.split(';');
		const destructed = {
			name,
			columns: columnsString.split(','),
			isUnique: isUnique === 'true',
			using: using ? using : undefined,
			algorithm: algorithm ? algorithm : undefined,
			lock: lock ? lock : undefined,
		};
		return index.parse(destructed);
	},

Domain

Subdomains

Frequently Asked Questions

What does SingleStoreSquasher.unsquashIdx() do?
SingleStoreSquasher.unsquashIdx() is a function in the drizzle-orm codebase, defined in drizzle-kit/src/serializer/singlestoreSchema.ts.
Where is SingleStoreSquasher.unsquashIdx() defined?
SingleStoreSquasher.unsquashIdx() is defined in drizzle-kit/src/serializer/singlestoreSchema.ts at line 144.

Analyze Your Own Codebase

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

Try Supermodel Free