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

Function deleteMany

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

Source from the content-addressed store, hash-verified

563 return await internal.createMany(table, values);
564 },
565 async deleteMany(name, { where }) {
566 const table = toTable(name);
567 let conditions = where ? buildCondition(table.columns, where) : undefined;
568 if (conditions === true) conditions = undefined;
569 if (conditions === false) return;
570
571 const constrainedWhere = await applyDeletePolicies(table, conditions, context);
572 if (constrainedWhere === false) return;
573 await internal.deleteMany(table, { where: constrainedWhere });
574 },
575 async findMany(name, options = {}) {
576 const table = toTable(name);
577 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