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

getSQLType() — drizzle-orm Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  468528c5_4537_17b2_4585_8088b5432d90["getSQLType()"]
  6282a5d0_a4d5_9e60_2602_f60fa2613e0d["MySqlDateTimeString"]
  468528c5_4537_17b2_4585_8088b5432d90 -->|defined in| 6282a5d0_a4d5_9e60_2602_f60fa2613e0d
  19c7163d_8a5b_ce74_d7d1_184ba83f3d18["getSQLType()"]
  19c7163d_8a5b_ce74_d7d1_184ba83f3d18 -->|calls| 468528c5_4537_17b2_4585_8088b5432d90
  19c7163d_8a5b_ce74_d7d1_184ba83f3d18["getSQLType()"]
  468528c5_4537_17b2_4585_8088b5432d90 -->|calls| 19c7163d_8a5b_ce74_d7d1_184ba83f3d18
  style 468528c5_4537_17b2_4585_8088b5432d90 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

drizzle-orm/src/mysql-core/columns/datetime.ts lines 108–111

	getSQLType(): string {
		const precision = this.fsp === undefined ? '' : `(${this.fsp})`;
		return `datetime${precision}`;
	}

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/mysql-core/columns/datetime.ts.
Where is getSQLType() defined?
getSQLType() is defined in drizzle-orm/src/mysql-core/columns/datetime.ts at line 108.
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