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

view() — drizzle-orm Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  b33a489c_77dc_f0ed_f60c_af89c7668627["view()"]
  e0590ec9_eee4_a25d_2bbf_54c94ac5420f["select.ts"]
  b33a489c_77dc_f0ed_f60c_af89c7668627 -->|defined in| e0590ec9_eee4_a25d_2bbf_54c94ac5420f
  style b33a489c_77dc_f0ed_f60c_af89c7668627 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

drizzle-orm/type-tests/pg/select.ts lines 1202–1209

	const view = pgView('view').as((qb) =>
		qb.select({
			table: table1,
			column: table2.age,
			nested: {
				column: table3.phone,
			},
		}).from(table1).innerJoin(table2, sql``).leftJoin(table3, sql``)

Domain

Subdomains

Frequently Asked Questions

What does view() do?
view() is a function in the drizzle-orm codebase, defined in drizzle-orm/type-tests/pg/select.ts.
Where is view() defined?
view() is defined in drizzle-orm/type-tests/pg/select.ts at line 1202.

Analyze Your Own Codebase

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

Try Supermodel Free