makePgArray() — drizzle-orm Function Reference
Architecture documentation for the makePgArray() function in array.ts from the drizzle-orm codebase.
Entity Profile
Dependency Diagram
graph TD 55428d8a_cd18_f6bb_dda7_3cfc4a7abf0b["makePgArray()"] 130b9d90_0857_a430_5925_31f66ac4c0f5["array.ts"] 55428d8a_cd18_f6bb_dda7_3cfc4a7abf0b -->|defined in| 130b9d90_0857_a430_5925_31f66ac4c0f5 bda7ff33_58a8_5dfe_54f0_35000f749ac4["mapToDriverValue()"] bda7ff33_58a8_5dfe_54f0_35000f749ac4 -->|calls| 55428d8a_cd18_f6bb_dda7_3cfc4a7abf0b style 55428d8a_cd18_f6bb_dda7_3cfc4a7abf0b fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
drizzle-orm/src/pg-core/utils/array.ts lines 81–95
export function makePgArray(array: any[]): string {
return `{${
array.map((item) => {
if (Array.isArray(item)) {
return makePgArray(item);
}
if (typeof item === 'string') {
return `"${item.replace(/\\/g, '\\\\').replace(/"/g, '\\"')}"`;
}
return `${item}`;
}).join(',')
}}`;
}
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does makePgArray() do?
makePgArray() is a function in the drizzle-orm codebase, defined in drizzle-orm/src/pg-core/utils/array.ts.
Where is makePgArray() defined?
makePgArray() is defined in drizzle-orm/src/pg-core/utils/array.ts at line 81.
What calls makePgArray()?
makePgArray() is called by 1 function(s): mapToDriverValue.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free