(table, values)
| 213 | return cloneValue(row); |
| 214 | }, |
| 215 | async createMany(table, values) { |
| 216 | const idColumn = table.getIdColumn(); |
| 217 | return Promise.all(values.map((value) => this.create(table, value))).then((rows) => |
| 218 | rows.map((row) => ({ _id: row[idColumn.ormName] })) |
| 219 | ); |
| 220 | }, |
| 221 | async deleteMany(table, v) { |
| 222 | const rows = tableRows(db, table); |
| 223 | db[table.ormName] = rows.filter((row) => !matchesCondition(row, v.where)); |
nothing calls this directly
no outgoing calls
no test coverage detected