(name, { where })
| 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); |
nothing calls this directly
no test coverage detected