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
  4cd960dc_6f8e_74da_b19f_8bca1bc443a4["text()"]
  a15f2cb7_4465_6310_5d15_9cfa4ad98d64["text.ts"]
  4cd960dc_6f8e_74da_b19f_8bca1bc443a4 -->|defined in| a15f2cb7_4465_6310_5d15_9cfa4ad98d64
  style 4cd960dc_6f8e_74da_b19f_8bca1bc443a4 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

drizzle-orm/src/sqlite-core/columns/text.ts lines 151–157

export function text(a?: string | SQLiteTextConfig, b: SQLiteTextConfig = {}): any {
	const { name, config } = getColumnNameAndConfig<SQLiteTextConfig>(a, b);
	if (config.mode === 'json') {
		return new SQLiteTextJsonBuilder(name);
	}
	return new SQLiteTextBuilder(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/sqlite-core/columns/text.ts.
Where is text() defined?
text() is defined in drizzle-orm/src/sqlite-core/columns/text.ts at line 151.

Analyze Your Own Codebase

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

Try Supermodel Free