Home / Function/ getSQLType() — drizzle-orm Function Reference

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
  c44545f7_8019_5e76_41c2_1befe355f962["getSQLType()"]
  286e6c00_1dd2_05f1_bc72_442401a4c833["PgTimestamp"]
  c44545f7_8019_5e76_41c2_1befe355f962 -->|defined in| 286e6c00_1dd2_05f1_bc72_442401a4c833
  8a373000_0682_2557_a5cd_b89d3330ea51["getSQLType()"]
  8a373000_0682_2557_a5cd_b89d3330ea51 -->|calls| c44545f7_8019_5e76_41c2_1befe355f962
  8a373000_0682_2557_a5cd_b89d3330ea51["getSQLType()"]
  c44545f7_8019_5e76_41c2_1befe355f962 -->|calls| 8a373000_0682_2557_a5cd_b89d3330ea51
  style c44545f7_8019_5e76_41c2_1befe355f962 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

drizzle-orm/src/pg-core/columns/timestamp.ts lines 56–59

	getSQLType(): string {
		const precision = this.precision === undefined ? '' : ` (${this.precision})`;
		return `timestamp${precision}${this.withTimezone ? ' with time zone' : ''}`;
	}

Domain

Subdomains

Calls

Called By

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 56.
What does getSQLType() call?
getSQLType() calls 1 function(s): 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