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

constructor() — drizzle-orm Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  e80e0847_7948_e6f7_072b_990f4d198366["constructor()"]
  f55760b6_7943_3dd0_bfdc_527f070211df["PgCharBuilder"]
  e80e0847_7948_e6f7_072b_990f4d198366 -->|defined in| f55760b6_7943_3dd0_bfdc_527f070211df
  e7a14176_1df2_b6f3_196a_14b3caa1959f["constructor()"]
  e80e0847_7948_e6f7_072b_990f4d198366 -->|calls| e7a14176_1df2_b6f3_196a_14b3caa1959f
  style e80e0847_7948_e6f7_072b_990f4d198366 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

drizzle-orm/src/pg-core/columns/char.ts lines 31–35

	constructor(name: T['name'], config: PgCharConfig<T['enumValues'], T['length']>) {
		super(name, 'string', 'PgChar');
		this.config.length = config.length;
		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/char.ts.
Where is constructor() defined?
constructor() is defined in drizzle-orm/src/pg-core/columns/char.ts at line 31.
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