Home / Function/ build() — drizzle-orm Function Reference

build() — drizzle-orm Function Reference

Architecture documentation for the build() function in primary-keys.ts from the drizzle-orm codebase.

Entity Profile

Dependency Diagram

graph TD
  cd65a11d_75ea_a9b3_c3c6_9a66d4da6977["build()"]
  3deb220b_61cc_e661_7d0d_e70e532fee18["PrimaryKeyBuilder"]
  cd65a11d_75ea_a9b3_c3c6_9a66d4da6977 -->|defined in| 3deb220b_61cc_e661_7d0d_e70e532fee18
  ed204ff7_3e66_4124_7788_616d3713b13c["mysqlTableWithSchema()"]
  ed204ff7_3e66_4124_7788_616d3713b13c -->|calls| cd65a11d_75ea_a9b3_c3c6_9a66d4da6977
  e9c2bb6f_c7e1_6e72_558c_8671d9a37ece["getTableConfig()"]
  e9c2bb6f_c7e1_6e72_558c_8671d9a37ece -->|calls| cd65a11d_75ea_a9b3_c3c6_9a66d4da6977
  style cd65a11d_75ea_a9b3_c3c6_9a66d4da6977 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

drizzle-orm/src/mysql-core/primary-keys.ts lines 43–45

	build(table: MySqlTable): PrimaryKey {
		return new PrimaryKey(table, this.columns, this.name);
	}

Domain

Subdomains

Frequently Asked Questions

What does build() do?
build() is a function in the drizzle-orm codebase, defined in drizzle-orm/src/mysql-core/primary-keys.ts.
Where is build() defined?
build() is defined in drizzle-orm/src/mysql-core/primary-keys.ts at line 43.
What calls build()?
build() is called by 2 function(s): getTableConfig, mysqlTableWithSchema.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free