(name, { set, where })
| 595 | return record; |
| 596 | }, |
| 597 | async updateMany(name, { set, where }) { |
| 598 | const table = toTable(name); |
| 599 | let conditions = where ? buildCondition(table.columns, where) : undefined; |
| 600 | if (conditions === true) conditions = undefined; |
| 601 | if (conditions === false) return; |
| 602 | |
| 603 | const constrainedWhere = await applyUpdatePolicies( |
| 604 | table, |
| 605 | conditions, |
| 606 | set, |
| 607 | context, |
| 608 | "update", |
| 609 | ); |
| 610 | if (constrainedWhere === false) return; |
| 611 | return internal.updateMany(table, { set, where: constrainedWhere }); |
| 612 | }, |
| 613 | async transaction(run) { |
| 614 | return internal.transaction((transactionInstance) => |
| 615 | run(withQueryContext(transactionInstance, context)), |
nothing calls this directly
no test coverage detected