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