build() — drizzle-orm Function Reference
Architecture documentation for the build() function in common.ts from the drizzle-orm codebase.
Entity Profile
Dependency Diagram
graph TD 01764b62_b6db_8b73_0171_616892ec5c9c["build()"] 2efa6388_8186_dd3f_61aa_27d3d4ff929d["PgArrayBuilder"] 01764b62_b6db_8b73_0171_616892ec5c9c -->|defined in| 2efa6388_8186_dd3f_61aa_27d3d4ff929d 3a0536d3_86e4_f7b5_0e29_8780a4cb37a4["build()"] 01764b62_b6db_8b73_0171_616892ec5c9c -->|calls| 3a0536d3_86e4_f7b5_0e29_8780a4cb37a4 style 01764b62_b6db_8b73_0171_616892ec5c9c fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
drizzle-orm/src/pg-core/columns/common.ts lines 297–306
override build<TTableName extends string>(
table: AnyPgTable<{ name: TTableName }>,
): PgArray<MakeColumnConfig<T, TTableName> & { size: T['size']; baseBuilder: T['baseBuilder'] }, TBase> {
const baseColumn = this.config.baseBuilder.build(table);
return new PgArray<MakeColumnConfig<T, TTableName> & { size: T['size']; baseBuilder: T['baseBuilder'] }, TBase>(
table as AnyPgTable<{ name: MakeColumnConfig<T, TTableName>['tableName'] }>,
this.config as ColumnBuilderRuntimeConfig<any, any>,
baseColumn,
);
}
Domain
Subdomains
Defined In
Calls
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/common.ts.
Where is build() defined?
build() is defined in drizzle-orm/src/pg-core/columns/common.ts at line 297.
What does build() call?
build() calls 1 function(s): build.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free