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

Function deleteMany

packages/core/fumadb/src/query/orm/index.ts:383–392  ·  view source on GitHub ↗
(name, { where })

Source from the content-addressed store, hash-verified

381 return await internal.createMany(table, values);
382 },
383 async deleteMany(name, { where }) {
384 const table = toTable(name);
385 let conditions = where ? buildCondition(table.columns, where) : undefined;
386 if (conditions === true) conditions = undefined;
387 if (conditions === false) return;
388
389 const constrainedWhere = await applyDeletePolicies(table, conditions, context);
390 if (constrainedWhere === false) return;
391 await internal.deleteMany(table, { where: constrainedWhere });
392 },
393 async findMany(name, options = {}) {
394 const table = toTable(name);
395 let compiledOptions = buildFindOptions(table, options as FindManyOptions);

Callers

nothing calls this directly

Calls 3

buildConditionFunction · 0.90
toTableFunction · 0.85
applyDeletePoliciesFunction · 0.85

Tested by

no test coverage detected