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

build() — drizzle-orm Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  5a630fe2_c1a3_629f_2a96_b6c138f5ac5e["build()"]
  dc873c7f_852d_4b51_72e1_023c109f06d1["MySqlTimestampBuilder"]
  5a630fe2_c1a3_629f_2a96_b6c138f5ac5e -->|defined in| dc873c7f_852d_4b51_72e1_023c109f06d1
  style 5a630fe2_c1a3_629f_2a96_b6c138f5ac5e fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

drizzle-orm/src/mysql-core/columns/timestamp.ts lines 28–35

	override build<TTableName extends string>(
		table: AnyMySqlTable<{ name: TTableName }>,
	): MySqlTimestamp<MakeColumnConfig<T, TTableName>> {
		return new MySqlTimestamp<MakeColumnConfig<T, TTableName>>(
			table,
			this.config as ColumnBuilderRuntimeConfig<any, any>,
		);
	}

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/columns/timestamp.ts.
Where is build() defined?
build() is defined in drizzle-orm/src/mysql-core/columns/timestamp.ts at line 28.

Analyze Your Own Codebase

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

Try Supermodel Free