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

build() — drizzle-orm Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

drizzle-orm/src/sqlite-core/columns/text.ts lines 38–45

	override build<TTableName extends string>(
		table: AnySQLiteTable<{ name: TTableName }>,
	): SQLiteText<MakeColumnConfig<T, TTableName> & { length: T['length'] }> {
		return new SQLiteText<MakeColumnConfig<T, TTableName> & { length: T['length'] }>(
			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/sqlite-core/columns/text.ts.
Where is build() defined?
build() is defined in drizzle-orm/src/sqlite-core/columns/text.ts at line 38.

Analyze Your Own Codebase

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

Try Supermodel Free