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

getSQLType() — drizzle-orm Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  91d99110_0cf3_c7ea_e773_b6ac4b7962ec["getSQLType()"]
  a980906d_aa06_8377_649f_0683f63cea85["MySqlReal"]
  91d99110_0cf3_c7ea_e773_b6ac4b7962ec -->|defined in| a980906d_aa06_8377_649f_0683f63cea85
  8bc0da67_7db4_cd9c_5e36_858a09bb65ef["real()"]
  91d99110_0cf3_c7ea_e773_b6ac4b7962ec -->|calls| 8bc0da67_7db4_cd9c_5e36_858a09bb65ef
  style 91d99110_0cf3_c7ea_e773_b6ac4b7962ec fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

drizzle-orm/src/mysql-core/columns/real.ts lines 48–56

	getSQLType(): string {
		if (this.precision !== undefined && this.scale !== undefined) {
			return `real(${this.precision}, ${this.scale})`;
		} else if (this.precision === undefined) {
			return 'real';
		} else {
			return `real(${this.precision})`;
		}
	}

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/real.ts.
Where is getSQLType() defined?
getSQLType() is defined in drizzle-orm/src/mysql-core/columns/real.ts at line 48.
What does getSQLType() call?
getSQLType() calls 1 function(s): real.

Analyze Your Own Codebase

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

Try Supermodel Free