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

constructor() — drizzle-orm Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  682f90a5_783f_5d02_96c5_d2759c5754d1["constructor()"]
  6edb91c6_642f_c146_205b_95afefe88b58["MySqlDateTimeBuilder"]
  682f90a5_783f_5d02_96c5_d2759c5754d1 -->|defined in| 6edb91c6_642f_c146_205b_95afefe88b58
  782c12fb_8fae_1d45_8f74_c86072fa3a99["constructor()"]
  782c12fb_8fae_1d45_8f74_c86072fa3a99 -->|calls| 682f90a5_783f_5d02_96c5_d2759c5754d1
  2a07f7e7_daec_b1e1_ef6b_377e2b315235["constructor()"]
  2a07f7e7_daec_b1e1_ef6b_377e2b315235 -->|calls| 682f90a5_783f_5d02_96c5_d2759c5754d1
  c1370bc6_699f_22c5_4ebe_68a7648ce173["constructor()"]
  c1370bc6_699f_22c5_4ebe_68a7648ce173 -->|calls| 682f90a5_783f_5d02_96c5_d2759c5754d1
  782c12fb_8fae_1d45_8f74_c86072fa3a99["constructor()"]
  682f90a5_783f_5d02_96c5_d2759c5754d1 -->|calls| 782c12fb_8fae_1d45_8f74_c86072fa3a99
  style 682f90a5_783f_5d02_96c5_d2759c5754d1 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

drizzle-orm/src/mysql-core/columns/datetime.ts lines 22–25

	constructor(name: T['name'], config: MySqlDatetimeConfig | undefined) {
		super(name, 'date', 'MySqlDateTime');
		this.config.fsp = config?.fsp;
	}

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free