orchid-orm 1.17.9 → 1.17.11
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.d.ts +4 -4
- 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.mjs
CHANGED
|
@@ -629,7 +629,7 @@ const nestedInsert$2 = ({ query, primaryKeys, foreignKeys }) => {
|
|
|
629
629
|
}
|
|
630
630
|
items[i] = data2;
|
|
631
631
|
}
|
|
632
|
-
await t.
|
|
632
|
+
await t.insertMany(items);
|
|
633
633
|
}
|
|
634
634
|
};
|
|
635
635
|
};
|
|
@@ -658,7 +658,7 @@ const nestedUpdate$2 = ({ query, primaryKeys, foreignKeys }) => {
|
|
|
658
658
|
for (let i = 0; i < len; i++) {
|
|
659
659
|
obj[foreignKeys[i]] = record[primaryKeys[i]];
|
|
660
660
|
}
|
|
661
|
-
await t.
|
|
661
|
+
await t.insert(obj);
|
|
662
662
|
}
|
|
663
663
|
if (params.set) {
|
|
664
664
|
const obj = {};
|
|
@@ -928,7 +928,7 @@ const nestedUpdate$1 = ({ query, primaryKeys, foreignKeys }) => {
|
|
|
928
928
|
for (let i = 0; i < len; i++) {
|
|
929
929
|
obj[foreignKeys[i]] = data[0][primaryKeys[i]];
|
|
930
930
|
}
|
|
931
|
-
await t.
|
|
931
|
+
await t.insertMany(
|
|
932
932
|
params.create.map((create) => __spreadValues$4(__spreadValues$4({}, create), obj))
|
|
933
933
|
);
|
|
934
934
|
delete t.q[toSQLCacheKey];
|
|
@@ -1201,7 +1201,7 @@ const insertToJoinTable = (state, joinTableTransaction, data, idsRows) => {
|
|
|
1201
1201
|
records.push(record);
|
|
1202
1202
|
}
|
|
1203
1203
|
}
|
|
1204
|
-
return joinTableTransaction.
|
|
1204
|
+
return joinTableTransaction.insertMany(records);
|
|
1205
1205
|
};
|
|
1206
1206
|
const nestedInsert = ({
|
|
1207
1207
|
relatedTableQuery,
|
|
@@ -1337,7 +1337,7 @@ const nestedInsert = ({
|
|
|
1337
1337
|
records.push(record);
|
|
1338
1338
|
}
|
|
1339
1339
|
}
|
|
1340
|
-
await joinTableQuery.
|
|
1340
|
+
await joinTableQuery.insertMany(records);
|
|
1341
1341
|
};
|
|
1342
1342
|
};
|
|
1343
1343
|
const nestedUpdate = (state) => {
|