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 f9699cff_0bf8_a469_bab0_facb44e99e7c["view()"] 0ff94ef8_b176_7009_9517_327e186dd2d1["select.ts"] f9699cff_0bf8_a469_bab0_facb44e99e7c -->|defined in| 0ff94ef8_b176_7009_9517_327e186dd2d1 style f9699cff_0bf8_a469_bab0_facb44e99e7c fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
drizzle-orm/type-tests/sqlite/select.ts lines 817–824
const view = sqliteView('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/sqlite/select.ts.
Where is view() defined?
view() is defined in drizzle-orm/type-tests/sqlite/select.ts at line 817.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free