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
  23652b53_0690_ce9a_4b01_f91ac08e091a["getSQLType()"]
  ad401251_51fe_6012_f57b_2a16d8e6a367["SingleStoreReal"]
  23652b53_0690_ce9a_4b01_f91ac08e091a -->|defined in| ad401251_51fe_6012_f57b_2a16d8e6a367
  4ba489a7_927a_083b_6524_ec6ce37c475a["real()"]
  23652b53_0690_ce9a_4b01_f91ac08e091a -->|calls| 4ba489a7_927a_083b_6524_ec6ce37c475a
  style 23652b53_0690_ce9a_4b01_f91ac08e091a fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

drizzle-orm/src/singlestore-core/columns/real.ts lines 54–62

	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/singlestore-core/columns/real.ts.
Where is getSQLType() defined?
getSQLType() is defined in drizzle-orm/src/singlestore-core/columns/real.ts at line 54.
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