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

getSQLType() — drizzle-orm Function Reference

Architecture documentation for the getSQLType() function in double.ts from the drizzle-orm codebase.

Entity Profile

Dependency Diagram

graph TD
  47191642_4503_f191_fbbb_648debca8083["getSQLType()"]
  116aec34_4ef2_8dee_568c_b77dffc8bd93["MySqlDouble"]
  47191642_4503_f191_fbbb_648debca8083 -->|defined in| 116aec34_4ef2_8dee_568c_b77dffc8bd93
  d29384c4_9609_b61b_09dc_9f355a9e8d5c["double()"]
  47191642_4503_f191_fbbb_648debca8083 -->|calls| d29384c4_9609_b61b_09dc_9f355a9e8d5c
  style 47191642_4503_f191_fbbb_648debca8083 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

drizzle-orm/src/mysql-core/columns/double.ts lines 46–56

	getSQLType(): string {
		let type = '';
		if (this.precision !== undefined && this.scale !== undefined) {
			type += `double(${this.precision},${this.scale})`;
		} else if (this.precision === undefined) {
			type += 'double';
		} else {
			type += `double(${this.precision})`;
		}
		return this.unsigned ? `${type} unsigned` : type;
	}

Domain

Subdomains

Calls

Frequently Asked Questions

What does getSQLType() do?
getSQLType() is a function in the drizzle-orm codebase, defined in drizzle-orm/src/mysql-core/columns/double.ts.
Where is getSQLType() defined?
getSQLType() is defined in drizzle-orm/src/mysql-core/columns/double.ts at line 46.
What does getSQLType() call?
getSQLType() calls 1 function(s): double.

Analyze Your Own Codebase

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

Try Supermodel Free