constructor() — drizzle-orm Function Reference
Architecture documentation for the constructor() function in custom.ts from the drizzle-orm codebase.
Entity Profile
Dependency Diagram
graph TD 3e35601a_b70f_f1ed_8681_272abcb6220c["constructor()"] 616e39c3_067e_587c_3b70_077e328f99e3["GelCustomColumn"] 3e35601a_b70f_f1ed_8681_272abcb6220c -->|defined in| 616e39c3_067e_587c_3b70_077e328f99e3 77b7a358_c940_2a94_0c7b_f8a82806c035["constructor()"] 77b7a358_c940_2a94_0c7b_f8a82806c035 -->|calls| 3e35601a_b70f_f1ed_8681_272abcb6220c 77b7a358_c940_2a94_0c7b_f8a82806c035["constructor()"] 3e35601a_b70f_f1ed_8681_272abcb6220c -->|calls| 77b7a358_c940_2a94_0c7b_f8a82806c035 style 3e35601a_b70f_f1ed_8681_272abcb6220c fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
drizzle-orm/src/gel-core/columns/custom.ts lines 67–75
constructor(
table: AnyGelTable<{ name: T['tableName'] }>,
config: GelCustomColumnBuilder<T>['config'],
) {
super(table, config);
this.sqlName = config.customTypeParams.dataType(config.fieldConfig);
this.mapTo = config.customTypeParams.toDriver;
this.mapFrom = config.customTypeParams.fromDriver;
}
Domain
Subdomains
Defined In
Calls
Called By
Source
Frequently Asked Questions
What does constructor() do?
constructor() is a function in the drizzle-orm codebase, defined in drizzle-orm/src/gel-core/columns/custom.ts.
Where is constructor() defined?
constructor() is defined in drizzle-orm/src/gel-core/columns/custom.ts at line 67.
What does constructor() call?
constructor() calls 1 function(s): constructor.
What calls constructor()?
constructor() is called by 1 function(s): constructor.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free