pqb 0.27.5 → 0.27.6
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 +7 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1426,8 +1426,9 @@ const processJoinArgs = (joinTo, first, args, joinSubQuery) => {
|
|
|
1426
1426
|
};
|
|
1427
1427
|
const makeJoinQueryBuilder = (joinedQuery, joinedShapes, joinTo) => {
|
|
1428
1428
|
const q = joinedQuery.baseQuery.clone();
|
|
1429
|
-
q.q.joinedShapes = joinedShapes;
|
|
1430
1429
|
q.baseQuery = q;
|
|
1430
|
+
q.q.as = joinedQuery.q.as;
|
|
1431
|
+
q.q.joinedShapes = joinedShapes;
|
|
1431
1432
|
q.q.joinTo = joinTo;
|
|
1432
1433
|
return q;
|
|
1433
1434
|
};
|
|
@@ -6046,12 +6047,15 @@ const _queryCreateMany = (q, data) => {
|
|
|
6046
6047
|
};
|
|
6047
6048
|
const _queryInsertMany = (q, data) => {
|
|
6048
6049
|
const ctx = createCtx();
|
|
6049
|
-
|
|
6050
|
+
let result = insert(
|
|
6050
6051
|
q,
|
|
6051
6052
|
handleManyData(q, data, ctx),
|
|
6052
6053
|
"object",
|
|
6053
6054
|
true
|
|
6054
6055
|
);
|
|
6056
|
+
if (!data.length)
|
|
6057
|
+
result = result.none();
|
|
6058
|
+
return result;
|
|
6055
6059
|
};
|
|
6056
6060
|
const _queryCreateRaw = (q, args) => {
|
|
6057
6061
|
createSelect(q);
|
|
@@ -10720,7 +10724,7 @@ class QueryMethods {
|
|
|
10720
10724
|
* ```
|
|
10721
10725
|
*/
|
|
10722
10726
|
none() {
|
|
10723
|
-
return extendQuery(this, noneMethods);
|
|
10727
|
+
return this.then === noneMethods.then ? this : extendQuery(this, noneMethods);
|
|
10724
10728
|
}
|
|
10725
10729
|
/**
|
|
10726
10730
|
* `modify` allows modifying the query with your function:
|