constructor() — drizzle-orm Function Reference
Architecture documentation for the constructor() function in enum.ts from the drizzle-orm codebase.
Entity Profile
Dependency Diagram
graph TD a94bf5c6_7f05_5bb2_c745_962d0df78923["constructor()"] f4597e2e_04d1_9f0a_2d80_57f330b139cc["PgEnumColumn"] a94bf5c6_7f05_5bb2_c745_962d0df78923 -->|defined in| f4597e2e_04d1_9f0a_2d80_57f330b139cc style a94bf5c6_7f05_5bb2_c745_962d0df78923 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
drizzle-orm/src/pg-core/columns/enum.ts lines 131–137
constructor(
table: AnyPgTable<{ name: T['tableName'] }>,
config: PgEnumColumnBuilder<T>['config'],
) {
super(table, config);
this.enum = config.enum;
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does constructor() do?
constructor() is a function in the drizzle-orm codebase, defined in drizzle-orm/src/pg-core/columns/enum.ts.
Where is constructor() defined?
constructor() is defined in drizzle-orm/src/pg-core/columns/enum.ts at line 131.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free