normalizeRow() — drizzle-orm Function Reference
Architecture documentation for the normalizeRow() function in session.ts from the drizzle-orm codebase.
Entity Profile
Dependency Diagram
graph TD bb0788ee_a927_7910_44c3_12f7e03f242c["normalizeRow()"] ff7302a0_54ae_bf0b_e5e1_c6569ad91f08["session.ts"] bb0788ee_a927_7910_44c3_12f7e03f242c -->|defined in| ff7302a0_54ae_bf0b_e5e1_c6569ad91f08 ccf60a99_5ce4_66cc_70fd_f24f33c8b72a["mapAllResult()"] ccf60a99_5ce4_66cc_70fd_f24f33c8b72a -->|calls| bb0788ee_a927_7910_44c3_12f7e03f242c 6d6d92e9_e667_6497_a735_12c9046eb0af["mapGetResult()"] 6d6d92e9_e667_6497_a735_12c9046eb0af -->|calls| bb0788ee_a927_7910_44c3_12f7e03f242c style bb0788ee_a927_7910_44c3_12f7e03f242c fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
drizzle-orm/src/libsql/session.ts lines 300–311
function normalizeRow(obj: any) {
// The libSQL node-sqlite3 compatibility wrapper returns rows
// that can be accessed both as objects and arrays. Let's
// turn them into objects what's what other SQLite drivers
// do.
return Object.keys(obj).reduce((acc: Record<string, any>, key) => {
if (Object.prototype.propertyIsEnumerable.call(obj, key)) {
acc[key] = obj[key];
}
return acc;
}, {});
}
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does normalizeRow() do?
normalizeRow() is a function in the drizzle-orm codebase, defined in drizzle-orm/src/libsql/session.ts.
Where is normalizeRow() defined?
normalizeRow() is defined in drizzle-orm/src/libsql/session.ts at line 300.
What calls normalizeRow()?
normalizeRow() is called by 2 function(s): mapAllResult, mapGetResult.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free