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

constructor() — drizzle-orm Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  c1e84569_1b57_96ff_9c38_2786f576a57a["constructor()"]
  9eb0a518_bd52_162d_88b3_c7a43fa0edbb["PgSerialBuilder"]
  c1e84569_1b57_96ff_9c38_2786f576a57a -->|defined in| 9eb0a518_bd52_162d_88b3_c7a43fa0edbb
  917bc6fa_bc5d_66e0_14b2_5322af41ce41["constructor()"]
  c1e84569_1b57_96ff_9c38_2786f576a57a -->|calls| 917bc6fa_bc5d_66e0_14b2_5322af41ce41
  style c1e84569_1b57_96ff_9c38_2786f576a57a fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

drizzle-orm/src/pg-core/columns/serial.ts lines 29–33

	constructor(name: T['name']) {
		super(name, 'number', 'PgSerial');
		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/serial.ts.
Where is constructor() defined?
constructor() is defined in drizzle-orm/src/pg-core/columns/serial.ts at line 29.
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