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

constructor() — drizzle-orm Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  8b139f11_bba3_049b_60ee_2dd339f4efc0["constructor()"]
  595dfe8c_9744_6c52_7ea0_241ba48288f8["MySqlFloatBuilder"]
  8b139f11_bba3_049b_60ee_2dd339f4efc0 -->|defined in| 595dfe8c_9744_6c52_7ea0_241ba48288f8
  style 8b139f11_bba3_049b_60ee_2dd339f4efc0 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

drizzle-orm/src/mysql-core/columns/float.ts lines 22–27

	constructor(name: T['name'], config: MySqlFloatConfig | undefined) {
		super(name, 'number', 'MySqlFloat');
		this.config.precision = config?.precision;
		this.config.scale = config?.scale;
		this.config.unsigned = config?.unsigned;
	}

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/float.ts.
Where is constructor() defined?
constructor() is defined in drizzle-orm/src/mysql-core/columns/float.ts at line 22.

Analyze Your Own Codebase

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

Try Supermodel Free