newYorkers2() — drizzle-orm Function Reference
Architecture documentation for the newYorkers2() function in tables.ts from the drizzle-orm codebase.
Entity Profile
Dependency Diagram
graph TD 8f11cc48_089e_c135_b06f_9e1c08ea01ed["newYorkers2()"] 998b0a13_62af_9408_d100_2bb61b49b6b9["tables.ts"] 8f11cc48_089e_c135_b06f_9e1c08ea01ed -->|defined in| 998b0a13_62af_9408_d100_2bb61b49b6b9 style 8f11cc48_089e_c135_b06f_9e1c08ea01ed fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
drizzle-orm/type-tests/pg/tables.ts lines 547–557
.as((qb) => {
const sq = qb
.$with('sq')
.as(
qb.select({ userId: users.id, cityId: cities.id })
.from(users)
.leftJoin(cities, eq(cities.id, users.homeCity))
.where(sql`${users.age1} > 18`),
);
return qb.with(sq).select().from(sq).where(sql`${users.homeCity} = 1`);
});
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does newYorkers2() do?
newYorkers2() is a function in the drizzle-orm codebase, defined in drizzle-orm/type-tests/pg/tables.ts.
Where is newYorkers2() defined?
newYorkers2() is defined in drizzle-orm/type-tests/pg/tables.ts at line 547.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free