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 a24bfd56_d9b3_ef51_1ea6_63c46659103c["getSQLType()"] 993cf3ff_0cb8_4698_0676_d3eb6866d22b["PgNumericBigInt"] a24bfd56_d9b3_ef51_1ea6_63c46659103c -->|defined in| 993cf3ff_0cb8_4698_0676_d3eb6866d22b bb29d8f1_017a_7d6e_0c9f_e38ed2c355f7["numeric()"] a24bfd56_d9b3_ef51_1ea6_63c46659103c -->|calls| bb29d8f1_017a_7d6e_0c9f_e38ed2c355f7 aa7e25ab_74d3_4171_5aee_d962d5c777e0["getSQLType()"] a24bfd56_d9b3_ef51_1ea6_63c46659103c -->|calls| aa7e25ab_74d3_4171_5aee_d962d5c777e0 style a24bfd56_d9b3_ef51_1ea6_63c46659103c fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
drizzle-orm/src/pg-core/columns/numeric.ts lines 190–198
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
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 190.
What does getSQLType() call?
getSQLType() calls 2 function(s): getSQLType, numeric.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free