mapAllResult() — drizzle-orm Function Reference
Architecture documentation for the mapAllResult() function in session.ts from the drizzle-orm codebase.
Entity Profile
Dependency Diagram
graph TD e31cf8b1_0be9_851d_c68e_0ec8fe84cc9f["mapAllResult()"] ff6327fa_3ca0_d8aa_5802_e6bcba97a470["RemotePreparedQuery"] e31cf8b1_0be9_851d_c68e_0ec8fe84cc9f -->|defined in| ff6327fa_3ca0_d8aa_5802_e6bcba97a470 e8e23828_e987_b492_a737_7751c166d171["all()"] e8e23828_e987_b492_a737_7751c166d171 -->|calls| e31cf8b1_0be9_851d_c68e_0ec8fe84cc9f style e31cf8b1_0be9_851d_c68e_0ec8fe84cc9f fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
drizzle-orm/src/sqlite-proxy/session.ts lines 185–205
override mapAllResult(rows: unknown, isFromBatch?: boolean): unknown {
if (isFromBatch) {
rows = (rows as SqliteRemoteResult).rows;
}
if (!this.fields && !this.customResultMapper) {
return rows;
}
if (this.customResultMapper) {
return this.customResultMapper(rows as unknown[][]) as T['all'];
}
return (rows as unknown[][]).map((row) => {
return mapResultRow(
this.fields!,
row,
this.joinsNotNullableMap,
);
});
}
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does mapAllResult() do?
mapAllResult() is a function in the drizzle-orm codebase, defined in drizzle-orm/src/sqlite-proxy/session.ts.
Where is mapAllResult() defined?
mapAllResult() is defined in drizzle-orm/src/sqlite-proxy/session.ts at line 185.
What calls mapAllResult()?
mapAllResult() is called by 1 function(s): all.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free