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

mapFromDriverValue() — drizzle-orm Function Reference

Architecture documentation for the mapFromDriverValue() function in date.ts from the drizzle-orm codebase.

Entity Profile

Dependency Diagram

graph TD
  6d7a7992_47d0_ba5c_dae5_6290fa74c6d7["mapFromDriverValue()"]
  28b72c6e_0aff_6246_a307_23e8521f183f["PgDateString"]
  6d7a7992_47d0_ba5c_dae5_6290fa74c6d7 -->|defined in| 28b72c6e_0aff_6246_a307_23e8521f183f
  4f2fc1d9_29f3_f5bf_8e24_aeec80c09793["mapFromDriverValue()"]
  4f2fc1d9_29f3_f5bf_8e24_aeec80c09793 -->|calls| 6d7a7992_47d0_ba5c_dae5_6290fa74c6d7
  4f2fc1d9_29f3_f5bf_8e24_aeec80c09793["mapFromDriverValue()"]
  6d7a7992_47d0_ba5c_dae5_6290fa74c6d7 -->|calls| 4f2fc1d9_29f3_f5bf_8e24_aeec80c09793
  style 6d7a7992_47d0_ba5c_dae5_6290fa74c6d7 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

drizzle-orm/src/pg-core/columns/date.ts lines 87–91

	override mapFromDriverValue(value: Date | string): string {
		if (typeof value === 'string') return value;

		return value.toISOString().slice(0, -14);
	}

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free