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

Function updateMany

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

Source from the content-addressed store, hash-verified

538 },
539
540 async updateMany(table, v) {
541 const drizzleTable = toDrizzle(table);
542
543 let query = db.update(drizzleTable).set(mapValues(v.set, table));
544
545 if (v.where) {
546 query = query.where(buildWhere(toDrizzleColumn, v.where)) as any;
547 }
548
549 await query;
550 },
551
552 async create(table, values) {
553 const idField = table.getIdColumn().names.drizzle;

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected