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 ac0478db_f1e5_a98d_8457_8fc76a1fda59["getSQLType()"] 4f671212_ff34_e901_4b7f_1b0837ba7591["SingleStoreDecimalBigInt"] ac0478db_f1e5_a98d_8457_8fc76a1fda59 -->|defined in| 4f671212_ff34_e901_4b7f_1b0837ba7591 762c9a86_44aa_cf25_2ff8_23edb6d16846["decimal()"] ac0478db_f1e5_a98d_8457_8fc76a1fda59 -->|calls| 762c9a86_44aa_cf25_2ff8_23edb6d16846 5932fd6a_6afc_0e21_8fee_3c3ec75a21b0["getSQLType()"] ac0478db_f1e5_a98d_8457_8fc76a1fda59 -->|calls| 5932fd6a_6afc_0e21_8fee_3c3ec75a21b0 style ac0478db_f1e5_a98d_8457_8fc76a1fda59 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
drizzle-orm/src/singlestore-core/columns/decimal.ts lines 181–192
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
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 181.
What does getSQLType() call?
getSQLType() calls 2 function(s): decimal, getSQLType.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free