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

Function updateMany

packages/core/fumadb/src/adapters/drizzle/query.ts:312–322  ·  view source on GitHub ↗
(table, v)

Source from the content-addressed store, hash-verified

310 },
311
312 async updateMany(table, v) {
313 const drizzleTable = toDrizzle(table);
314
315 let query = db.update(drizzleTable).set(mapValues(v.set, table));
316
317 if (v.where) {
318 query = query.where(buildWhere(toDrizzleColumn, v.where)) as any;
319 }
320
321 await query;
322 },
323
324 async create(table, values) {
325 const idField = table.getIdColumn().names.drizzle;

Callers

nothing calls this directly

Calls 5

toDrizzleFunction · 0.85
setMethod · 0.80
mapValuesFunction · 0.70
buildWhereFunction · 0.70
updateMethod · 0.65

Tested by

no test coverage detected