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 1fc13a86_1dcb_8a85_8c0f_65cd4961b1fd["getSQLType()"] ef6d900a_4f40_cf94_e5b4_712288da5799["SingleStoreDouble"] 1fc13a86_1dcb_8a85_8c0f_65cd4961b1fd -->|defined in| ef6d900a_4f40_cf94_e5b4_712288da5799 e6ff7e22_bc11_6c16_78b7_4d7a975c4da1["double()"] 1fc13a86_1dcb_8a85_8c0f_65cd4961b1fd -->|calls| e6ff7e22_bc11_6c16_78b7_4d7a975c4da1 style 1fc13a86_1dcb_8a85_8c0f_65cd4961b1fd fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
drizzle-orm/src/singlestore-core/columns/double.ts lines 50–60
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
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/double.ts.
Where is getSQLType() defined?
getSQLType() is defined in drizzle-orm/src/singlestore-core/columns/double.ts at line 50.
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