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

SQLiteSquasher.unsquashPushFK() — drizzle-orm Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

drizzle-kit/src/serializer/sqliteSchema.ts lines 228–248

	unsquashPushFK: (input: string): ForeignKey => {
		const [
			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.unsquashPushFK() do?
SQLiteSquasher.unsquashPushFK() is a function in the drizzle-orm codebase, defined in drizzle-kit/src/serializer/sqliteSchema.ts.
Where is SQLiteSquasher.unsquashPushFK() defined?
SQLiteSquasher.unsquashPushFK() is defined in drizzle-kit/src/serializer/sqliteSchema.ts at line 228.

Analyze Your Own Codebase

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

Try Supermodel Free