(table, v)
| 161 | return limited.map((row) => selectRow(table, row, v.select)); |
| 162 | }, |
| 163 | async updateMany(table, v) { |
| 164 | for (const row of tableRows(db, table)) { |
| 165 | if (!matchesCondition(row, v.where)) continue; |
| 166 | Object.assign(row, cloneValue(v.set)); |
| 167 | } |
| 168 | }, |
| 169 | async upsert(table, v) { |
| 170 | const existing = tableRows(db, table).find((row) => matchesCondition(row, v.where)); |
| 171 | if (existing) { |
nothing calls this directly
no test coverage detected