MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / updateMany

Function updateMany

packages/core/fumadb/src/adapters/memory/index.ts:163–168  ·  view source on GitHub ↗
(table, v)

Source from the content-addressed store, hash-verified

161 return limited.map((row) => selectRow(table, row, v.select));
162 },
163 async updateMany(table, v) {
164 for (const row of tableRows(db, table)) {
165 if (!matchesCondition(row, v.where)) continue;
166 Object.assign(row, cloneValue(v.set));
167 }
168 },
169 async upsert(table, v) {
170 const existing = tableRows(db, table).find((row) => matchesCondition(row, v.where));
171 if (existing) {

Callers

nothing calls this directly

Calls 3

tableRowsFunction · 0.85
matchesConditionFunction · 0.85
cloneValueFunction · 0.85

Tested by

no test coverage detected