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 a87774bc_6384_837e_0a6c_c2297a6f20b6["view()"] eac5037d_76b6_ca59_e2c2_e7a440dd574a["select.ts"] a87774bc_6384_837e_0a6c_c2297a6f20b6 -->|defined in| eac5037d_76b6_ca59_e2c2_e7a440dd574a style a87774bc_6384_837e_0a6c_c2297a6f20b6 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
drizzle-orm/type-tests/mysql/select.ts lines 771–778
const view = mysqlView('view').as((qb) =>
qb.select({
table: table1,
column: table2.age,
nested: {
column: table3.phone,
},
}).from(table1).innerJoin(table2, sql``).leftJoin(table3, sql``)
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does view() do?
view() is a function in the drizzle-orm codebase, defined in drizzle-orm/type-tests/mysql/select.ts.
Where is view() defined?
view() is defined in drizzle-orm/type-tests/mysql/select.ts at line 771.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free