MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / createMany

Function createMany

packages/core/fumadb/src/adapters/memory/index.ts:215–220  ·  view source on GitHub ↗
(table, values)

Source from the content-addressed store, hash-verified

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));

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected