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

text() — drizzle-orm Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  8ff6ba9f_51de_58aa_2902_28b570e45482["text()"]
  a6ad19c8_cb59_7946_dc83_6851df433535["text.ts"]
  8ff6ba9f_51de_58aa_2902_28b570e45482 -->|defined in| a6ad19c8_cb59_7946_dc83_6851df433535
  style 8ff6ba9f_51de_58aa_2902_28b570e45482 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

drizzle-orm/src/pg-core/columns/text.ts lines 64–67

export function text(a?: string | PgTextConfig, b: PgTextConfig = {}): any {
	const { name, config } = getColumnNameAndConfig<PgTextConfig>(a, b);
	return new PgTextBuilder(name, config as any);
}

Domain

Subdomains

Frequently Asked Questions

What does text() do?
text() is a function in the drizzle-orm codebase, defined in drizzle-orm/src/pg-core/columns/text.ts.
Where is text() defined?
text() is defined in drizzle-orm/src/pg-core/columns/text.ts at line 64.

Analyze Your Own Codebase

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

Try Supermodel Free