Home / Function/ upPgSnapshot() — drizzle-orm Function Reference

upPgSnapshot() — drizzle-orm Function Reference

Architecture documentation for the upPgSnapshot() function in api.ts from the drizzle-orm codebase.

Entity Profile

Dependency Diagram

graph TD
  fb615daf_c1b3_54c2_744f_21d8ddb15504["upPgSnapshot()"]
  e668bfef_9125_1ef0_2f94_a0f9605584bd["api.ts"]
  fb615daf_c1b3_54c2_744f_21d8ddb15504 -->|defined in| e668bfef_9125_1ef0_2f94_a0f9605584bd
  style fb615daf_c1b3_54c2_744f_21d8ddb15504 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

drizzle-kit/src/api.ts lines 660–668

export const upPgSnapshot = (snapshot: Record<string, unknown>) => {
	if (snapshot.version === '5') {
		return upPgV7(upPgV6(snapshot));
	}
	if (snapshot.version === '6') {
		return upPgV7(snapshot);
	}
	return snapshot;
};

Domain

Subdomains

Frequently Asked Questions

What does upPgSnapshot() do?
upPgSnapshot() is a function in the drizzle-orm codebase, defined in drizzle-kit/src/api.ts.
Where is upPgSnapshot() defined?
upPgSnapshot() is defined in drizzle-kit/src/api.ts at line 660.

Analyze Your Own Codebase

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

Try Supermodel Free