orchid-orm 1.17.9 → 1.17.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +5 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -5
- package/dist/index.mjs.map +1 -1
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -630,7 +630,7 @@ const nestedInsert$2 = ({ query, primaryKeys, foreignKeys }) => {
|
|
|
630
630
|
}
|
|
631
631
|
items[i] = data2;
|
|
632
632
|
}
|
|
633
|
-
await t.
|
|
633
|
+
await t.insertMany(items);
|
|
634
634
|
}
|
|
635
635
|
};
|
|
636
636
|
};
|
|
@@ -659,7 +659,7 @@ const nestedUpdate$2 = ({ query, primaryKeys, foreignKeys }) => {
|
|
|
659
659
|
for (let i = 0; i < len; i++) {
|
|
660
660
|
obj[foreignKeys[i]] = record[primaryKeys[i]];
|
|
661
661
|
}
|
|
662
|
-
await t.
|
|
662
|
+
await t.insert(obj);
|
|
663
663
|
}
|
|
664
664
|
if (params.set) {
|
|
665
665
|
const obj = {};
|
|
@@ -929,7 +929,7 @@ const nestedUpdate$1 = ({ query, primaryKeys, foreignKeys }) => {
|
|
|
929
929
|
for (let i = 0; i < len; i++) {
|
|
930
930
|
obj[foreignKeys[i]] = data[0][primaryKeys[i]];
|
|
931
931
|
}
|
|
932
|
-
await t.
|
|
932
|
+
await t.insertMany(
|
|
933
933
|
params.create.map((create) => __spreadValues$4(__spreadValues$4({}, create), obj))
|
|
934
934
|
);
|
|
935
935
|
delete t.q[pqb.toSQLCacheKey];
|
|
@@ -1202,7 +1202,7 @@ const insertToJoinTable = (state, joinTableTransaction, data, idsRows) => {
|
|
|
1202
1202
|
records.push(record);
|
|
1203
1203
|
}
|
|
1204
1204
|
}
|
|
1205
|
-
return joinTableTransaction.
|
|
1205
|
+
return joinTableTransaction.insertMany(records);
|
|
1206
1206
|
};
|
|
1207
1207
|
const nestedInsert = ({
|
|
1208
1208
|
relatedTableQuery,
|
|
@@ -1338,7 +1338,7 @@ const nestedInsert = ({
|
|
|
1338
1338
|
records.push(record);
|
|
1339
1339
|
}
|
|
1340
1340
|
}
|
|
1341
|
-
await joinTableQuery.
|
|
1341
|
+
await joinTableQuery.insertMany(records);
|
|
1342
1342
|
};
|
|
1343
1343
|
};
|
|
1344
1344
|
const nestedUpdate = (state) => {
|