Home / Function/ getUpdated() — astro Function Reference

getUpdated() — astro Function Reference

Architecture documentation for the getUpdated() function in migration-queries.ts from the astro codebase.

Entity Profile

Dependency Diagram

graph TD
  04db3956_82f0_08c0_732f_2a9307d6eafb["getUpdated()"]
  d1459290_7e42_1f92_05bd_dcc3aeda9fd3["migration-queries.ts"]
  04db3956_82f0_08c0_732f_2a9307d6eafb -->|defined in| d1459290_7e42_1f92_05bd_dcc3aeda9fd3
  60f71256_8537_0bef_2828_e36165f8890c["getChangeIndexQueries()"]
  60f71256_8537_0bef_2828_e36165f8890c -->|calls| 04db3956_82f0_08c0_732f_2a9307d6eafb
  style 04db3956_82f0_08c0_732f_2a9307d6eafb fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/db/src/core/cli/migration-queries.ts lines 360–368

function getUpdated<T>(oldObj: Record<string, T>, newObj: Record<string, T>) {
	const updated: Record<string, T> = {};
	for (const [key, value] of Object.entries(newObj)) {
		const oldValue = oldObj[key];
		if (!oldValue) continue;
		if (deepDiff(oldValue, value)) updated[key] = value;
	}
	return updated;
}

Domain

Subdomains

Frequently Asked Questions

What does getUpdated() do?
getUpdated() is a function in the astro codebase, defined in packages/db/src/core/cli/migration-queries.ts.
Where is getUpdated() defined?
getUpdated() is defined in packages/db/src/core/cli/migration-queries.ts at line 360.
What calls getUpdated()?
getUpdated() is called by 1 function(s): getChangeIndexQueries.

Analyze Your Own Codebase

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

Try Supermodel Free