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

preparePgAlterViewAlterSchemaJson() — drizzle-orm Function Reference

Architecture documentation for the preparePgAlterViewAlterSchemaJson() function in jsonStatements.ts from the drizzle-orm codebase.

Entity Profile

Dependency Diagram

graph TD
  c34d10f4_23b0_a3b9_a9f0_624abeb3e81c["preparePgAlterViewAlterSchemaJson()"]
  31231534_0090_8d6c_18c0_6c37edc6b269["jsonStatements.ts"]
  c34d10f4_23b0_a3b9_a9f0_624abeb3e81c -->|defined in| 31231534_0090_8d6c_18c0_6c37edc6b269
  651a6907_400a_48f5_83d0_674559a1b277["applyPgSnapshotsDiff()"]
  651a6907_400a_48f5_83d0_674559a1b277 -->|calls| c34d10f4_23b0_a3b9_a9f0_624abeb3e81c
  style c34d10f4_23b0_a3b9_a9f0_624abeb3e81c fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

drizzle-kit/src/jsonStatements.ts lines 3467–3482

export const preparePgAlterViewAlterSchemaJson = (
	to: string,
	from: string,
	name: string,
	materialized?: boolean,
): JsonAlterViewAlterSchemaStatement => {
	const returnObject: JsonAlterViewAlterSchemaStatement = {
		type: 'alter_view_alter_schema',
		fromSchema: from,
		toSchema: to,
		name,
	};

	if (materialized) returnObject['materialized'] = materialized;
	return returnObject;
};

Domain

Subdomains

Frequently Asked Questions

What does preparePgAlterViewAlterSchemaJson() do?
preparePgAlterViewAlterSchemaJson() is a function in the drizzle-orm codebase, defined in drizzle-kit/src/jsonStatements.ts.
Where is preparePgAlterViewAlterSchemaJson() defined?
preparePgAlterViewAlterSchemaJson() is defined in drizzle-kit/src/jsonStatements.ts at line 3467.
What calls preparePgAlterViewAlterSchemaJson()?
preparePgAlterViewAlterSchemaJson() is called by 1 function(s): applyPgSnapshotsDiff.

Analyze Your Own Codebase

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

Try Supermodel Free