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

constructor() — drizzle-orm Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  96aa47b4_f24e_b886_e45d_1aee8de48b41["constructor()"]
  fe375fb2_b010_8bef_21b5_35b1ac695891["PgSmallSerialBuilder"]
  96aa47b4_f24e_b886_e45d_1aee8de48b41 -->|defined in| fe375fb2_b010_8bef_21b5_35b1ac695891
  917bc6fa_bc5d_66e0_14b2_5322af41ce41["constructor()"]
  96aa47b4_f24e_b886_e45d_1aee8de48b41 -->|calls| 917bc6fa_bc5d_66e0_14b2_5322af41ce41
  style 96aa47b4_f24e_b886_e45d_1aee8de48b41 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

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

	constructor(name: T['name']) {
		super(name, 'number', 'PgSmallSerial');
		this.config.hasDefault = true;
		this.config.notNull = true;
	}

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/smallserial.ts.
Where is constructor() defined?
constructor() is defined in drizzle-orm/src/pg-core/columns/smallserial.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