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

constructor() — drizzle-orm Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  98c2cee6_7e52_b391_1954_cc05abed0567["constructor()"]
  9e7e83c5_5a6d_c359_ade5_20291ee29d42["PgTimeBuilder"]
  98c2cee6_7e52_b391_1954_cc05abed0567 -->|defined in| 9e7e83c5_5a6d_c359_ade5_20291ee29d42
  8c593f11_949b_84ce_89ed_9572aafaf86f["constructor()"]
  8c593f11_949b_84ce_89ed_9572aafaf86f -->|calls| 98c2cee6_7e52_b391_1954_cc05abed0567
  8c593f11_949b_84ce_89ed_9572aafaf86f["constructor()"]
  98c2cee6_7e52_b391_1954_cc05abed0567 -->|calls| 8c593f11_949b_84ce_89ed_9572aafaf86f
  style 98c2cee6_7e52_b391_1954_cc05abed0567 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

drizzle-orm/src/pg-core/columns/time.ts lines 25–33

	constructor(
		name: T['name'],
		readonly withTimezone: boolean,
		readonly precision: number | undefined,
	) {
		super(name, 'string', 'PgTime');
		this.config.withTimezone = withTimezone;
		this.config.precision = precision;
	}

Domain

Subdomains

Called By

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free