getSQLType() — drizzle-orm Function Reference
Architecture documentation for the getSQLType() function in numeric.ts from the drizzle-orm codebase.
Entity Profile
Dependency Diagram
graph TD 4c02654a_7c36_8b9e_5891_60519153f4a9["getSQLType()"] 1c376bae_2f4f_7e86_dd1a_8fcdf08819a5["PgNumeric"] 4c02654a_7c36_8b9e_5891_60519153f4a9 -->|defined in| 1c376bae_2f4f_7e86_dd1a_8fcdf08819a5 5ee9a2be_2c6a_2a7b_e2e3_fc2f4e07143b["getSQLType()"] 5ee9a2be_2c6a_2a7b_e2e3_fc2f4e07143b -->|calls| 4c02654a_7c36_8b9e_5891_60519153f4a9 459ccb58_0181_0546_b363_f88841b82ba4["getSQLType()"] 459ccb58_0181_0546_b363_f88841b82ba4 -->|calls| 4c02654a_7c36_8b9e_5891_60519153f4a9 9c6dd918_a3a0_dc26_c05f_dca515c15928["numeric()"] 4c02654a_7c36_8b9e_5891_60519153f4a9 -->|calls| 9c6dd918_a3a0_dc26_c05f_dca515c15928 5ee9a2be_2c6a_2a7b_e2e3_fc2f4e07143b["getSQLType()"] 4c02654a_7c36_8b9e_5891_60519153f4a9 -->|calls| 5ee9a2be_2c6a_2a7b_e2e3_fc2f4e07143b style 4c02654a_7c36_8b9e_5891_60519153f4a9 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
drizzle-orm/src/pg-core/columns/numeric.ts lines 58–66
getSQLType(): string {
if (this.precision !== undefined && this.scale !== undefined) {
return `numeric(${this.precision}, ${this.scale})`;
} else if (this.precision === undefined) {
return 'numeric';
} else {
return `numeric(${this.precision})`;
}
}
Domain
Subdomains
Defined In
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/pg-core/columns/numeric.ts.
Where is getSQLType() defined?
getSQLType() is defined in drizzle-orm/src/pg-core/columns/numeric.ts at line 58.
What does getSQLType() call?
getSQLType() calls 2 function(s): getSQLType, numeric.
What calls getSQLType()?
getSQLType() is called by 2 function(s): getSQLType, getSQLType.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free