getSQLType() — drizzle-orm Function Reference
Architecture documentation for the getSQLType() function in decimal.ts from the drizzle-orm codebase.
Entity Profile
Dependency Diagram
graph TD 52aed0ca_cedf_acc7_dd2f_ea9c3471207d["getSQLType()"] 65a999b1_1b09_57e9_1f00_691d44d1eb31["SingleStoreDecimalNumber"] 52aed0ca_cedf_acc7_dd2f_ea9c3471207d -->|defined in| 65a999b1_1b09_57e9_1f00_691d44d1eb31 5932fd6a_6afc_0e21_8fee_3c3ec75a21b0["getSQLType()"] 5932fd6a_6afc_0e21_8fee_3c3ec75a21b0 -->|calls| 52aed0ca_cedf_acc7_dd2f_ea9c3471207d 762c9a86_44aa_cf25_2ff8_23edb6d16846["decimal()"] 52aed0ca_cedf_acc7_dd2f_ea9c3471207d -->|calls| 762c9a86_44aa_cf25_2ff8_23edb6d16846 5932fd6a_6afc_0e21_8fee_3c3ec75a21b0["getSQLType()"] 52aed0ca_cedf_acc7_dd2f_ea9c3471207d -->|calls| 5932fd6a_6afc_0e21_8fee_3c3ec75a21b0 style 52aed0ca_cedf_acc7_dd2f_ea9c3471207d fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
drizzle-orm/src/singlestore-core/columns/decimal.ts lines 121–132
getSQLType(): string {
let type = '';
if (this.precision !== undefined && this.scale !== undefined) {
type += `decimal(${this.precision},${this.scale})`;
} else if (this.precision === undefined) {
type += 'decimal';
} else {
type += `decimal(${this.precision})`;
}
type = type === 'decimal(10,0)' || type === 'decimal(10)' ? 'decimal' : type;
return this.unsigned ? `${type} unsigned` : type;
}
Domain
Subdomains
Calls
Called By
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/decimal.ts.
Where is getSQLType() defined?
getSQLType() is defined in drizzle-orm/src/singlestore-core/columns/decimal.ts at line 121.
What does getSQLType() call?
getSQLType() calls 2 function(s): decimal, getSQLType.
What calls getSQLType()?
getSQLType() is called by 1 function(s): getSQLType.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free