mapFromDriverValue() — drizzle-orm Function Reference
Architecture documentation for the mapFromDriverValue() function in json.ts from the drizzle-orm codebase.
Entity Profile
Dependency Diagram
graph TD 81ec6a90_d650_c1d2_0979_dc032788aad7["mapFromDriverValue()"] d653799a_baee_dea6_ff41_5ce8e536bfb3["PgJson"] 81ec6a90_d650_c1d2_0979_dc032788aad7 -->|defined in| d653799a_baee_dea6_ff41_5ce8e536bfb3 1f33ffb2_46aa_25c3_eb1b_080a0c7ad381["mapFromDriverValue()"] 81ec6a90_d650_c1d2_0979_dc032788aad7 -->|calls| 1f33ffb2_46aa_25c3_eb1b_080a0c7ad381 style 81ec6a90_d650_c1d2_0979_dc032788aad7 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
drizzle-orm/src/pg-core/columns/json.ts lines 48–57
override mapFromDriverValue(value: T['data'] | string): T['data'] {
if (typeof value === 'string') {
try {
return JSON.parse(value);
} catch {
return value as T['data'];
}
}
return value;
}
Domain
Subdomains
Defined In
Calls
Source
Frequently Asked Questions
What does mapFromDriverValue() do?
mapFromDriverValue() is a function in the drizzle-orm codebase, defined in drizzle-orm/src/pg-core/columns/json.ts.
Where is mapFromDriverValue() defined?
mapFromDriverValue() is defined in drizzle-orm/src/pg-core/columns/json.ts at line 48.
What does mapFromDriverValue() call?
mapFromDriverValue() calls 1 function(s): mapFromDriverValue.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free