orchid-orm 1.17.8 → 1.17.9
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.count()._createMany(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.count()._create(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.count()._createMany(
|
|
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.count()._createMany(records);
|
|
1206
1206
|
};
|
|
1207
1207
|
const nestedInsert = ({
|
|
1208
1208
|
relatedTableQuery,
|
|
@@ -1580,7 +1580,7 @@ const makeRelationQuery = (table, relationName, data, q) => {
|
|
|
1580
1580
|
get() {
|
|
1581
1581
|
var _a;
|
|
1582
1582
|
const toTable = q.clone();
|
|
1583
|
-
const query = this.isSubQuery ? toTable : toTable._whereExists(
|
|
1583
|
+
const query = this.q.isSubQuery ? toTable : toTable._whereExists(
|
|
1584
1584
|
this.baseQuery,
|
|
1585
1585
|
(q2) => data.reverseJoin(this, toTable)
|
|
1586
1586
|
);
|