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

constructor() — drizzle-orm Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  44670d50_a945_ced0_747e_17e36b09344b["constructor()"]
  301a76a4_dce7_8c50_1480_a166225f2023["PgTextBuilder"]
  44670d50_a945_ced0_747e_17e36b09344b -->|defined in| 301a76a4_dce7_8c50_1480_a166225f2023
  917bc6fa_bc5d_66e0_14b2_5322af41ce41["constructor()"]
  44670d50_a945_ced0_747e_17e36b09344b -->|calls| 917bc6fa_bc5d_66e0_14b2_5322af41ce41
  style 44670d50_a945_ced0_747e_17e36b09344b fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

drizzle-orm/src/pg-core/columns/text.ts lines 22–28

	constructor(
		name: T['name'],
		config: PgTextConfig<T['enumValues']>,
	) {
		super(name, 'string', 'PgText');
		this.config.enumValues = config.enum;
	}

Domain

Subdomains

Frequently Asked Questions

What does constructor() do?
constructor() is a function in the drizzle-orm codebase, defined in drizzle-orm/src/pg-core/columns/text.ts.
Where is constructor() defined?
constructor() is defined in drizzle-orm/src/pg-core/columns/text.ts at line 22.
What does constructor() call?
constructor() calls 1 function(s): constructor.

Analyze Your Own Codebase

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

Try Supermodel Free