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