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