Home / Function/ createCurrentSnapshot() — astro Function Reference

createCurrentSnapshot() — astro Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  fac1c70c_9954_0aa9_b93c_29948b35da20["createCurrentSnapshot()"]
  d1459290_7e42_1f92_05bd_dcc3aeda9fd3["migration-queries.ts"]
  fac1c70c_9954_0aa9_b93c_29948b35da20 -->|defined in| d1459290_7e42_1f92_05bd_dcc3aeda9fd3
  style fac1c70c_9954_0aa9_b93c_29948b35da20 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/db/src/core/cli/migration-queries.ts lines 481–484

export function createCurrentSnapshot({ tables = {} }: DBConfig): DBSnapshot {
	const schema = JSON.parse(JSON.stringify(tables));
	return { version: MIGRATION_VERSION, schema };
}

Domain

Subdomains

Frequently Asked Questions

What does createCurrentSnapshot() do?
createCurrentSnapshot() is a function in the astro codebase, defined in packages/db/src/core/cli/migration-queries.ts.
Where is createCurrentSnapshot() defined?
createCurrentSnapshot() is defined in packages/db/src/core/cli/migration-queries.ts at line 481.

Analyze Your Own Codebase

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

Try Supermodel Free