Home / Function/ SQLiteSquasher.unsquashFK() — drizzle-orm Function Reference

SQLiteSquasher.unsquashFK() — drizzle-orm Function Reference

Architecture documentation for the SQLiteSquasher.unsquashFK() function in sqliteSchema.ts from the drizzle-orm codebase.

Entity Profile

Dependency Diagram

graph TD
  53d98424_98ba_7776_3a5f_f31e49aa98d1["SQLiteSquasher.unsquashFK()"]
  03c276d3_0efe_66e2_9ba9_e67edbf29418["sqliteSchema.ts"]
  53d98424_98ba_7776_3a5f_f31e49aa98d1 -->|defined in| 03c276d3_0efe_66e2_9ba9_e67edbf29418
  style 53d98424_98ba_7776_3a5f_f31e49aa98d1 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

drizzle-kit/src/serializer/sqliteSchema.ts lines 201–222

	unsquashFK: (input: string): ForeignKey => {
		const [
			name,
			tableFrom,
			columnsFromStr,
			tableTo,
			columnsToStr,
			onUpdate,
			onDelete,
		] = input.split(';');

		const result: ForeignKey = fk.parse({
			name,
			tableFrom,
			columnsFrom: columnsFromStr.split(','),
			tableTo,
			columnsTo: columnsToStr.split(','),
			onUpdate,
			onDelete,
		});
		return result;
	},

Domain

Subdomains

Frequently Asked Questions

What does SQLiteSquasher.unsquashFK() do?
SQLiteSquasher.unsquashFK() is a function in the drizzle-orm codebase, defined in drizzle-kit/src/serializer/sqliteSchema.ts.
Where is SQLiteSquasher.unsquashFK() defined?
SQLiteSquasher.unsquashFK() is defined in drizzle-kit/src/serializer/sqliteSchema.ts at line 201.

Analyze Your Own Codebase

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

Try Supermodel Free