build() — drizzle-orm Function Reference
Architecture documentation for the build() function in char.ts from the drizzle-orm codebase.
Entity Profile
Dependency Diagram
graph TD 8afcca1b_c177_009d_413f_b77d30f80ba2["build()"] 43b0eb49_7be6_7093_09f8_b5c8438eec69["MySqlCharBuilder"] 8afcca1b_c177_009d_413f_b77d30f80ba2 -->|defined in| 43b0eb49_7be6_7093_09f8_b5c8438eec69 style 8afcca1b_c177_009d_413f_b77d30f80ba2 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
drizzle-orm/src/mysql-core/columns/char.ts lines 38–45
override build<TTableName extends string>(
table: AnyMySqlTable<{ name: TTableName }>,
): MySqlChar<MakeColumnConfig<T, TTableName> & { length: T['length']; enumValues: T['enumValues'] }> {
return new MySqlChar<MakeColumnConfig<T, TTableName> & { length: T['length']; enumValues: T['enumValues'] }>(
table,
this.config as ColumnBuilderRuntimeConfig<any, any>,
);
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does build() do?
build() is a function in the drizzle-orm codebase, defined in drizzle-orm/src/mysql-core/columns/char.ts.
Where is build() defined?
build() is defined in drizzle-orm/src/mysql-core/columns/char.ts at line 38.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free