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

Function executeValues

packages/sql-sqlite-react-native/src/SqliteClient.ts:138–146  ·  view source on GitHub ↗
(sql, params)

Source from the content-addressed store, hash-verified

136 return run(sql, params)
137 },
138 executeValues(sql, params) {
139 return Effect.map(run(sql, params), (results) => {
140 if (results.length === 0) {
141 return []
142 }
143 const columns = Object.keys(results[0])
144 return results.map((row) => columns.map((column) => row[column]))
145 })
146 },
147 executeUnprepared(sql, params, transformRows) {
148 return this.execute(sql, params, transformRows)
149 },

Callers

nothing calls this directly

Calls 3

keysMethod · 0.80
runFunction · 0.70
mapMethod · 0.65

Tested by

no test coverage detected