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

getSQLType() — drizzle-orm Function Reference

Architecture documentation for the getSQLType() function in interval.ts from the drizzle-orm codebase.

Entity Profile

Dependency Diagram

graph TD
  606daf11_4465_25a0_a2c1_37de8b7e7303["getSQLType()"]
  247fe285_c237_1a1d_3682_469ce790d820["PgInterval"]
  606daf11_4465_25a0_a2c1_37de8b7e7303 -->|defined in| 247fe285_c237_1a1d_3682_469ce790d820
  8a373000_0682_2557_a5cd_b89d3330ea51["getSQLType()"]
  606daf11_4465_25a0_a2c1_37de8b7e7303 -->|calls| 8a373000_0682_2557_a5cd_b89d3330ea51
  style 606daf11_4465_25a0_a2c1_37de8b7e7303 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

drizzle-orm/src/pg-core/columns/interval.ts lines 47–51

	getSQLType(): string {
		const fields = this.fields ? ` ${this.fields}` : '';
		const precision = this.precision ? `(${this.precision})` : '';
		return `interval${fields}${precision}`;
	}

Domain

Subdomains

Calls

Frequently Asked Questions

What does getSQLType() do?
getSQLType() is a function in the drizzle-orm codebase, defined in drizzle-orm/src/pg-core/columns/interval.ts.
Where is getSQLType() defined?
getSQLType() is defined in drizzle-orm/src/pg-core/columns/interval.ts at line 47.
What does getSQLType() call?
getSQLType() calls 1 function(s): getSQLType.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free