ColumnAliasProxyHandler Class — drizzle-orm Architecture
Architecture documentation for the ColumnAliasProxyHandler class in alias.ts from the drizzle-orm codebase.
Entity Profile
Dependency Diagram
graph TD 15305ab6_27cf_e44a_11a3_0e2177d768f3["ColumnAliasProxyHandler"] ab181952_5759_c0bf_aeab_f255a140fe2a["alias.ts"] 15305ab6_27cf_e44a_11a3_0e2177d768f3 -->|defined in| ab181952_5759_c0bf_aeab_f255a140fe2a b0677ad6_ec1b_7f26_0fd2_c08f38e6bfc1["constructor()"] 15305ab6_27cf_e44a_11a3_0e2177d768f3 -->|method| b0677ad6_ec1b_7f26_0fd2_c08f38e6bfc1 50951bff_dee6_567b_2f7e_8f0f762fb6cf["get()"] 15305ab6_27cf_e44a_11a3_0e2177d768f3 -->|method| 50951bff_dee6_567b_2f7e_8f0f762fb6cf
Relationship Graph
Source Code
drizzle-orm/src/alias.ts lines 10–22
export class ColumnAliasProxyHandler<TColumn extends Column> implements ProxyHandler<TColumn> {
static readonly [entityKind]: string = 'ColumnAliasProxyHandler';
constructor(private table: Table | View) {}
get(columnObj: TColumn, prop: string | symbol): any {
if (prop === 'table') {
return this.table;
}
return columnObj[prop as keyof TColumn];
}
}
Domain
Defined In
Source
Frequently Asked Questions
What is the ColumnAliasProxyHandler class?
ColumnAliasProxyHandler is a class in the drizzle-orm codebase, defined in drizzle-orm/src/alias.ts.
Where is ColumnAliasProxyHandler defined?
ColumnAliasProxyHandler is defined in drizzle-orm/src/alias.ts at line 10.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free