parsePgArrayValue() — drizzle-orm Function Reference
Architecture documentation for the parsePgArrayValue() function in array.ts from the drizzle-orm codebase.
Entity Profile
Dependency Diagram
graph TD 9bd8f108_e790_68be_584f_9612a4ca6db5["parsePgArrayValue()"] 130b9d90_0857_a430_5925_31f66ac4c0f5["array.ts"] 9bd8f108_e790_68be_584f_9612a4ca6db5 -->|defined in| 130b9d90_0857_a430_5925_31f66ac4c0f5 dc9d1f73_a2ff_12f4_b526_49befc681084["parsePgNestedArray()"] dc9d1f73_a2ff_12f4_b526_49befc681084 -->|calls| 9bd8f108_e790_68be_584f_9612a4ca6db5 style 9bd8f108_e790_68be_584f_9612a4ca6db5 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
drizzle-orm/src/pg-core/utils/array.ts lines 1–24
function parsePgArrayValue(arrayString: string, startFrom: number, inQuotes: boolean): [string, number] {
for (let i = startFrom; i < arrayString.length; i++) {
const char = arrayString[i];
if (char === '\\') {
i++;
continue;
}
if (char === '"') {
return [arrayString.slice(startFrom, i).replace(/\\/g, ''), i + 1];
}
if (inQuotes) {
continue;
}
if (char === ',' || char === '}') {
return [arrayString.slice(startFrom, i).replace(/\\/g, ''), i];
}
}
return [arrayString.slice(startFrom).replace(/\\/g, ''), arrayString.length];
}
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does parsePgArrayValue() do?
parsePgArrayValue() is a function in the drizzle-orm codebase, defined in drizzle-orm/src/pg-core/utils/array.ts.
Where is parsePgArrayValue() defined?
parsePgArrayValue() is defined in drizzle-orm/src/pg-core/utils/array.ts at line 1.
What calls parsePgArrayValue()?
parsePgArrayValue() is called by 1 function(s): parsePgNestedArray.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free