Home / Function/ getDropTableQueriesForSnapshot() — astro Function Reference

getDropTableQueriesForSnapshot() — astro Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  fa3ca796_edc6_1c8f_30d6_9c7723935852["getDropTableQueriesForSnapshot()"]
  d1459290_7e42_1f92_05bd_dcc3aeda9fd3["migration-queries.ts"]
  fa3ca796_edc6_1c8f_30d6_9c7723935852 -->|defined in| d1459290_7e42_1f92_05bd_dcc3aeda9fd3
  8d0e7bb2_007f_5d88_64a2_3b0646b309a1["getMigrationQueries()"]
  8d0e7bb2_007f_5d88_64a2_3b0646b309a1 -->|calls| fa3ca796_edc6_1c8f_30d6_9c7723935852
  style fa3ca796_edc6_1c8f_30d6_9c7723935852 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/db/src/core/cli/migration-queries.ts lines 472–479

function getDropTableQueriesForSnapshot(snapshot: DBSnapshot) {
	const queries = [];
	for (const tableName of Object.keys(snapshot.schema)) {
		const dropQuery = getDropTableIfExistsQuery(tableName);
		queries.unshift(dropQuery);
	}
	return queries;
}

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free