(name, { set, where })
| 413 | return record; |
| 414 | }, |
| 415 | async updateMany(name, { set, where }) { |
| 416 | const table = toTable(name); |
| 417 | let conditions = where ? buildCondition(table.columns, where) : undefined; |
| 418 | if (conditions === true) conditions = undefined; |
| 419 | if (conditions === false) return; |
| 420 | |
| 421 | const constrainedWhere = await applyUpdatePolicies( |
| 422 | table, |
| 423 | conditions, |
| 424 | set, |
| 425 | context, |
| 426 | "update", |
| 427 | ); |
| 428 | if (constrainedWhere === false) return; |
| 429 | return internal.updateMany(table, { set, where: constrainedWhere }); |
| 430 | }, |
| 431 | async transaction(run) { |
| 432 | return internal.transaction((transactionInstance) => |
| 433 | run(withQueryContext(transactionInstance, context)), |
nothing calls this directly
no test coverage detected