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 57b36aa4_c7e7_49d2_5e2e_f073d37b48be["build()"] 8c89b24d_db5b_dccf_7a0e_83cd57fdb81a["PgCharBuilder"] 57b36aa4_c7e7_49d2_5e2e_f073d37b48be -->|defined in| 8c89b24d_db5b_dccf_7a0e_83cd57fdb81a style 57b36aa4_c7e7_49d2_5e2e_f073d37b48be fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
drizzle-orm/src/pg-core/columns/char.ts lines 38–45
override build<TTableName extends string>(
table: AnyPgTable<{ name: TTableName }>,
): PgChar<MakeColumnConfig<T, TTableName> & { length: T['length'] }> {
return new PgChar<MakeColumnConfig<T, TTableName> & { length: T['length'] }>(
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/pg-core/columns/char.ts.
Where is build() defined?
build() is defined in drizzle-orm/src/pg-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