getSQLType() — drizzle-orm Function Reference
Architecture documentation for the getSQLType() function in float.ts from the drizzle-orm codebase.
Entity Profile
Dependency Diagram
graph TD 8e528dbe_54c1_3590_68a8_dffec3d804b8["getSQLType()"] e783f914_167d_f346_7793_049921b85256["SingleStoreFloat"] 8e528dbe_54c1_3590_68a8_dffec3d804b8 -->|defined in| e783f914_167d_f346_7793_049921b85256 f5ebfefd_02a9_974d_61ed_86a2f8d3c420["float()"] 8e528dbe_54c1_3590_68a8_dffec3d804b8 -->|calls| f5ebfefd_02a9_974d_61ed_86a2f8d3c420 style 8e528dbe_54c1_3590_68a8_dffec3d804b8 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
drizzle-orm/src/singlestore-core/columns/float.ts lines 50–60
getSQLType(): string {
let type = '';
if (this.precision !== undefined && this.scale !== undefined) {
type += `float(${this.precision},${this.scale})`;
} else if (this.precision === undefined) {
type += 'float';
} else {
type += `float(${this.precision},0)`;
}
return this.unsigned ? `${type} unsigned` : type;
}
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does getSQLType() do?
getSQLType() is a function in the drizzle-orm codebase, defined in drizzle-orm/src/singlestore-core/columns/float.ts.
Where is getSQLType() defined?
getSQLType() is defined in drizzle-orm/src/singlestore-core/columns/float.ts at line 50.
What does getSQLType() call?
getSQLType() calls 1 function(s): float.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free