(table, { where, ...v })
| 323 | await model.deleteMany({ where }); |
| 324 | }, |
| 325 | async upsert(table, { where, ...v }) { |
| 326 | await init; |
| 327 | |
| 328 | await getPrismaModel(table).upsert({ |
| 329 | where: where ? buildWhere(where) : {}, |
| 330 | create: mapValues(table, v.create, true), |
| 331 | update: mapValues(table, v.update), |
| 332 | }); |
| 333 | }, |
| 334 | async transaction(run) { |
| 335 | await init; |
| 336 |
nothing calls this directly
no test coverage detected