@prisma/query-plan-executor 7.4.0 → 7.5.0-dev.10
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 +1 -1
- package/dist/index.js +23 -2
- package/package.json +6 -6
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -101325,7 +101325,7 @@ __export(index_exports, {
|
|
|
101325
101325
|
module.exports = __toCommonJS(index_exports);
|
|
101326
101326
|
|
|
101327
101327
|
// package.json
|
|
101328
|
-
var version = "7.
|
|
101328
|
+
var version = "7.5.0-dev.10";
|
|
101329
101329
|
|
|
101330
101330
|
// ../../node_modules/.pnpm/temporal-polyfill@0.3.0/node_modules/temporal-polyfill/chunks/internal.js
|
|
101331
101331
|
function clampProp(e2, n2, t2, o2, r2) {
|
|
@@ -109757,7 +109757,10 @@ function normalizeJsonProtocolValues(result) {
|
|
|
109757
109757
|
function isTaggedValue(value) {
|
|
109758
109758
|
return value !== null && typeof value == "object" && typeof value["$type"] === "string";
|
|
109759
109759
|
}
|
|
109760
|
-
function normalizeTaggedValue({
|
|
109760
|
+
function normalizeTaggedValue({
|
|
109761
|
+
$type,
|
|
109762
|
+
value
|
|
109763
|
+
}) {
|
|
109761
109764
|
switch ($type) {
|
|
109762
109765
|
case "BigInt":
|
|
109763
109766
|
return { $type, value: String(value) };
|
|
@@ -109769,6 +109772,12 @@ function normalizeTaggedValue({ $type, value }) {
|
|
|
109769
109772
|
return { $type, value: String(new Decimal(value)) };
|
|
109770
109773
|
case "Json":
|
|
109771
109774
|
return { $type, value: JSON.stringify(JSON.parse(value)) };
|
|
109775
|
+
case "Raw":
|
|
109776
|
+
return { $type, value };
|
|
109777
|
+
case "FieldRef":
|
|
109778
|
+
return { $type, value };
|
|
109779
|
+
case "Enum":
|
|
109780
|
+
return { $type, value };
|
|
109772
109781
|
default:
|
|
109773
109782
|
assertNever(value, "Unknown tagged value");
|
|
109774
109783
|
}
|
|
@@ -111180,6 +111189,7 @@ var QueryInterpreter = class _QueryInterpreter {
|
|
|
111180
111189
|
}
|
|
111181
111190
|
case "process": {
|
|
111182
111191
|
const { value, lastInsertId } = await this.interpretNode(node.args.expr, context2);
|
|
111192
|
+
evaluateProcessingParameters(node.args.operations, context2.scope, context2.generators);
|
|
111183
111193
|
return { value: processRecords(value, node.args.operations), lastInsertId };
|
|
111184
111194
|
}
|
|
111185
111195
|
case "initializeRecord": {
|
|
@@ -111355,6 +111365,17 @@ function applyComments(query2, sqlCommenter) {
|
|
|
111355
111365
|
sql: appendSqlComment(query2.sql, comment)
|
|
111356
111366
|
};
|
|
111357
111367
|
}
|
|
111368
|
+
function evaluateProcessingParameters(ops, scope, generators) {
|
|
111369
|
+
const cursor = ops.pagination?.cursor;
|
|
111370
|
+
if (cursor) {
|
|
111371
|
+
for (const [key, value] of Object.entries(cursor)) {
|
|
111372
|
+
cursor[key] = evaluateArg(value, scope, generators);
|
|
111373
|
+
}
|
|
111374
|
+
}
|
|
111375
|
+
for (const nested of Object.values(ops.nested)) {
|
|
111376
|
+
evaluateProcessingParameters(nested, scope, generators);
|
|
111377
|
+
}
|
|
111378
|
+
}
|
|
111358
111379
|
async function getCrypto() {
|
|
111359
111380
|
return globalThis.crypto ?? await import("node:crypto");
|
|
111360
111381
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prisma/query-plan-executor",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.5.0-dev.10",
|
|
4
4
|
"description": "This package is intended for Prisma's internal use",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -20,11 +20,11 @@
|
|
|
20
20
|
"temporal-polyfill": "0.3.0",
|
|
21
21
|
"vitest": "3.2.4",
|
|
22
22
|
"zod": "4.1.3",
|
|
23
|
-
"@prisma/adapter-pg": "7.
|
|
24
|
-
"@prisma/adapter-mariadb": "7.
|
|
25
|
-
"@prisma/
|
|
26
|
-
"@prisma/
|
|
27
|
-
"@prisma/driver-adapter-utils": "7.
|
|
23
|
+
"@prisma/adapter-pg": "7.5.0-dev.10",
|
|
24
|
+
"@prisma/adapter-mariadb": "7.5.0-dev.10",
|
|
25
|
+
"@prisma/adapter-mssql": "7.5.0-dev.10",
|
|
26
|
+
"@prisma/client-engine-runtime": "7.5.0-dev.10",
|
|
27
|
+
"@prisma/driver-adapter-utils": "7.5.0-dev.10"
|
|
28
28
|
},
|
|
29
29
|
"files": [
|
|
30
30
|
"dist"
|