getSQLType() — drizzle-orm Function Reference
Architecture documentation for the getSQLType() function in timestamp.ts from the drizzle-orm codebase.
Entity Profile
Dependency Diagram
graph TD 8a373000_0682_2557_a5cd_b89d3330ea51["getSQLType()"] 5dafd4db_e70f_41bc_554b_872fae3209da["PgTimestampString"] 8a373000_0682_2557_a5cd_b89d3330ea51 -->|defined in| 5dafd4db_e70f_41bc_554b_872fae3209da c44545f7_8019_5e76_41c2_1befe355f962["getSQLType()"] c44545f7_8019_5e76_41c2_1befe355f962 -->|calls| 8a373000_0682_2557_a5cd_b89d3330ea51 606daf11_4465_25a0_a2c1_37de8b7e7303["getSQLType()"] 606daf11_4465_25a0_a2c1_37de8b7e7303 -->|calls| 8a373000_0682_2557_a5cd_b89d3330ea51 a3fa3796_367a_c5c3_524d_2119b83ede94["getSQLType()"] a3fa3796_367a_c5c3_524d_2119b83ede94 -->|calls| 8a373000_0682_2557_a5cd_b89d3330ea51 c44545f7_8019_5e76_41c2_1befe355f962["getSQLType()"] 8a373000_0682_2557_a5cd_b89d3330ea51 -->|calls| c44545f7_8019_5e76_41c2_1befe355f962 style 8a373000_0682_2557_a5cd_b89d3330ea51 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
drizzle-orm/src/pg-core/columns/timestamp.ts lines 122–125
getSQLType(): string {
const precision = this.precision === undefined ? '' : `(${this.precision})`;
return `timestamp${precision}${this.withTimezone ? ' with time zone' : ''}`;
}
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/timestamp.ts.
Where is getSQLType() defined?
getSQLType() is defined in drizzle-orm/src/pg-core/columns/timestamp.ts at line 122.
What does getSQLType() call?
getSQLType() calls 1 function(s): getSQLType.
What calls getSQLType()?
getSQLType() is called by 3 function(s): getSQLType, getSQLType, getSQLType.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free