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
  095e3175_79fe_0b03_dd09_593e6551b9ff["build()"]
  f09f540f_e712_59b4_f49c_4a0480fadd5a["GelTimestampBuilder"]
  095e3175_79fe_0b03_dd09_593e6551b9ff -->|defined in| f09f540f_e712_59b4_f49c_4a0480fadd5a
  style 095e3175_79fe_0b03_dd09_593e6551b9ff fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

drizzle-orm/src/gel-core/columns/timestamp.ts lines 32–39

	override build<TTableName extends string>(
		table: AnyGelTable<{ name: TTableName }>,
	): GelTimestamp<MakeColumnConfig<T, TTableName>> {
		return new GelTimestamp<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/gel-core/columns/timestamp.ts.
Where is build() defined?
build() is defined in drizzle-orm/src/gel-core/columns/timestamp.ts at line 32.

Analyze Your Own Codebase

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

Try Supermodel Free