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 845eb10e_1dd2_2f47_c78f_f430d37ab022["constructor()"] 75e51155_c57f_39a2_2fd6_ab7f572ed32a["MySqlCustomColumn"] 845eb10e_1dd2_2f47_c78f_f430d37ab022 -->|defined in| 75e51155_c57f_39a2_2fd6_ab7f572ed32a f07dd2d8_5f23_811a_af9b_2852efd2543f["constructor()"] f07dd2d8_5f23_811a_af9b_2852efd2543f -->|calls| 845eb10e_1dd2_2f47_c78f_f430d37ab022 f07dd2d8_5f23_811a_af9b_2852efd2543f["constructor()"] 845eb10e_1dd2_2f47_c78f_f430d37ab022 -->|calls| f07dd2d8_5f23_811a_af9b_2852efd2543f style 845eb10e_1dd2_2f47_c78f_f430d37ab022 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
drizzle-orm/src/mysql-core/columns/custom.ts lines 67–75
constructor(
table: AnyMySqlTable<{ name: T['tableName'] }>,
config: MySqlCustomColumnBuilder<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/mysql-core/columns/custom.ts.
Where is constructor() defined?
constructor() is defined in drizzle-orm/src/mysql-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