mapInlineParam() — drizzle-orm Function Reference
Architecture documentation for the mapInlineParam() function in sql.ts from the drizzle-orm codebase.
Entity Profile
Dependency Diagram
graph TD 46489340_6e04_faec_9b9b_56050d0e0439["mapInlineParam()"] 2361fb30_407d_7604_384a_a24acc5652f6["SQL"] 46489340_6e04_faec_9b9b_56050d0e0439 -->|defined in| 2361fb30_407d_7604_384a_a24acc5652f6 f5a982b1_e6b9_5bf8_12b4_3d305d59c2ae["buildQueryFromSourceParams()"] f5a982b1_e6b9_5bf8_12b4_3d305d59c2ae -->|calls| 46489340_6e04_faec_9b9b_56050d0e0439 style 46489340_6e04_faec_9b9b_56050d0e0439 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
drizzle-orm/src/sql/sql.ts lines 302–323
private mapInlineParam(
chunk: unknown,
{ escapeString }: BuildQueryConfig,
): string {
if (chunk === null) {
return 'null';
}
if (typeof chunk === 'number' || typeof chunk === 'boolean') {
return chunk.toString();
}
if (typeof chunk === 'string') {
return escapeString(chunk);
}
if (typeof chunk === 'object') {
const mappedValueAsString = chunk.toString();
if (mappedValueAsString === '[object Object]') {
return escapeString(JSON.stringify(chunk));
}
return escapeString(mappedValueAsString);
}
throw new Error('Unexpected param value: ' + chunk);
}
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does mapInlineParam() do?
mapInlineParam() is a function in the drizzle-orm codebase, defined in drizzle-orm/src/sql/sql.ts.
Where is mapInlineParam() defined?
mapInlineParam() is defined in drizzle-orm/src/sql/sql.ts at line 302.
What calls mapInlineParam()?
mapInlineParam() is called by 1 function(s): buildQueryFromSourceParams.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free