MCPcopy Index your code
hub / github.com/Effect-TS/effect / rowToObject

Function rowToObject

packages/sql-sqlite-wasm/src/SqliteClient.ts:421–427  ·  view source on GitHub ↗
(columns: Array<string>, row: Array<any>)

Source from the content-addressed store, hash-verified

419 })
420
421function rowToObject(columns: Array<string>, row: Array<any>) {
422 const obj: Record<string, any> = {}
423 for (let i = 0; i < columns.length; i++) {
424 obj[columns[i]] = row[i]
425 }
426 return obj
427}
428const extractObject = (rows: [Array<string>, Array<any>]) => rows[1].map((row) => rowToObject(rows[0], row))
429const extractRows = (rows: [Array<string>, Array<any>]) => rows[1]
430

Callers 1

extractObjectFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…