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

mysqlViewWithSchema() — drizzle-orm Function Reference

Architecture documentation for the mysqlViewWithSchema() function in view.ts from the drizzle-orm codebase.

Entity Profile

Dependency Diagram

graph TD
  e0b816c4_7b35_2969_3889_1c8b49c14c60["mysqlViewWithSchema()"]
  f3a29a26_df86_4100_d5ea_bc3a420b1722["view.ts"]
  e0b816c4_7b35_2969_3889_1c8b49c14c60 -->|defined in| f3a29a26_df86_4100_d5ea_bc3a420b1722
  2ebb40e8_dd92_4723_e4d5_437ffedf7af0["mysqlView()"]
  2ebb40e8_dd92_4723_e4d5_437ffedf7af0 -->|calls| e0b816c4_7b35_2969_3889_1c8b49c14c60
  style e0b816c4_7b35_2969_3889_1c8b49c14c60 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

drizzle-orm/src/mysql-core/view.ts lines 178–187

export function mysqlViewWithSchema(
	name: string,
	selection: Record<string, MySqlColumnBuilderBase> | undefined,
	schema: string | undefined,
): ViewBuilder | ManualViewBuilder {
	if (selection) {
		return new ManualViewBuilder(name, selection, schema);
	}
	return new ViewBuilder(name, schema);
}

Domain

Subdomains

Called By

Frequently Asked Questions

What does mysqlViewWithSchema() do?
mysqlViewWithSchema() is a function in the drizzle-orm codebase, defined in drizzle-orm/src/mysql-core/view.ts.
Where is mysqlViewWithSchema() defined?
mysqlViewWithSchema() is defined in drizzle-orm/src/mysql-core/view.ts at line 178.
What calls mysqlViewWithSchema()?
mysqlViewWithSchema() is called by 1 function(s): mysqlView.

Analyze Your Own Codebase

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

Try Supermodel Free