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

view() — drizzle-orm Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  e381c622_9e65_42d3_e759_81ef8f60a5e9["view()"]
  f5bdd4a8_7392_24f0_b17c_d98d0b1db060["pg.test.ts"]
  e381c622_9e65_42d3_e759_81ef8f60a5e9 -->|defined in| f5bdd4a8_7392_24f0_b17c_d98d0b1db060
  style e381c622_9e65_42d3_e759_81ef8f60a5e9 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

drizzle-valibot/tests/pg.test.ts lines 545–545

	const view = pgView('test').as((qb) => qb.select().from(table));

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free