@prisma/client-engine-runtime 7.4.0 → 7.5.0-dev.2
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.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +12 -0
- package/dist/index.mjs +12 -0
- package/dist/query-plan.d.ts +1 -1
- package/package.json +5 -5
package/dist/index.d.mts
CHANGED
|
@@ -212,7 +212,7 @@ export declare function normalizeJsonProtocolValues(result: unknown): unknown;
|
|
|
212
212
|
export declare function normalizeRawJsonProtocolResponse(response: RawResponse): RawResponse;
|
|
213
213
|
|
|
214
214
|
export declare type Pagination = {
|
|
215
|
-
cursor: Record<string,
|
|
215
|
+
cursor: Record<string, unknown> | null;
|
|
216
216
|
take: number | null;
|
|
217
217
|
skip: number | null;
|
|
218
218
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -212,7 +212,7 @@ export declare function normalizeJsonProtocolValues(result: unknown): unknown;
|
|
|
212
212
|
export declare function normalizeRawJsonProtocolResponse(response: RawResponse): RawResponse;
|
|
213
213
|
|
|
214
214
|
export declare type Pagination = {
|
|
215
|
-
cursor: Record<string,
|
|
215
|
+
cursor: Record<string, unknown> | null;
|
|
216
216
|
take: number | null;
|
|
217
217
|
skip: number | null;
|
|
218
218
|
};
|
package/dist/index.js
CHANGED
|
@@ -1729,6 +1729,7 @@ var QueryInterpreter = class _QueryInterpreter {
|
|
|
1729
1729
|
}
|
|
1730
1730
|
case "process": {
|
|
1731
1731
|
const { value, lastInsertId } = await this.interpretNode(node.args.expr, context);
|
|
1732
|
+
evaluateProcessingParameters(node.args.operations, context.scope, context.generators);
|
|
1732
1733
|
return { value: processRecords(value, node.args.operations), lastInsertId };
|
|
1733
1734
|
}
|
|
1734
1735
|
case "initializeRecord": {
|
|
@@ -1904,6 +1905,17 @@ function applyComments(query, sqlCommenter) {
|
|
|
1904
1905
|
sql: appendSqlComment(query.sql, comment)
|
|
1905
1906
|
};
|
|
1906
1907
|
}
|
|
1908
|
+
function evaluateProcessingParameters(ops, scope, generators) {
|
|
1909
|
+
const cursor = ops.pagination?.cursor;
|
|
1910
|
+
if (cursor) {
|
|
1911
|
+
for (const [key, value] of Object.entries(cursor)) {
|
|
1912
|
+
cursor[key] = evaluateArg(value, scope, generators);
|
|
1913
|
+
}
|
|
1914
|
+
}
|
|
1915
|
+
for (const nested of Object.values(ops.nested)) {
|
|
1916
|
+
evaluateProcessingParameters(nested, scope, generators);
|
|
1917
|
+
}
|
|
1918
|
+
}
|
|
1907
1919
|
|
|
1908
1920
|
// src/raw-json-protocol.ts
|
|
1909
1921
|
var import_client_runtime_utils4 = require("@prisma/client-runtime-utils");
|
package/dist/index.mjs
CHANGED
|
@@ -1678,6 +1678,7 @@ var QueryInterpreter = class _QueryInterpreter {
|
|
|
1678
1678
|
}
|
|
1679
1679
|
case "process": {
|
|
1680
1680
|
const { value, lastInsertId } = await this.interpretNode(node.args.expr, context);
|
|
1681
|
+
evaluateProcessingParameters(node.args.operations, context.scope, context.generators);
|
|
1681
1682
|
return { value: processRecords(value, node.args.operations), lastInsertId };
|
|
1682
1683
|
}
|
|
1683
1684
|
case "initializeRecord": {
|
|
@@ -1853,6 +1854,17 @@ function applyComments(query, sqlCommenter) {
|
|
|
1853
1854
|
sql: appendSqlComment(query.sql, comment)
|
|
1854
1855
|
};
|
|
1855
1856
|
}
|
|
1857
|
+
function evaluateProcessingParameters(ops, scope, generators) {
|
|
1858
|
+
const cursor = ops.pagination?.cursor;
|
|
1859
|
+
if (cursor) {
|
|
1860
|
+
for (const [key, value] of Object.entries(cursor)) {
|
|
1861
|
+
cursor[key] = evaluateArg(value, scope, generators);
|
|
1862
|
+
}
|
|
1863
|
+
}
|
|
1864
|
+
for (const nested of Object.values(ops.nested)) {
|
|
1865
|
+
evaluateProcessingParameters(nested, scope, generators);
|
|
1866
|
+
}
|
|
1867
|
+
}
|
|
1856
1868
|
|
|
1857
1869
|
// src/raw-json-protocol.ts
|
|
1858
1870
|
import { Decimal as Decimal4 } from "@prisma/client-runtime-utils";
|
package/dist/query-plan.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prisma/client-engine-runtime",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.5.0-dev.2",
|
|
4
4
|
"description": "This package is intended for Prisma's internal use",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -31,10 +31,10 @@
|
|
|
31
31
|
"nanoid": "5.1.5",
|
|
32
32
|
"ulid": "3.0.0",
|
|
33
33
|
"uuid": "11.1.0",
|
|
34
|
-
"@prisma/
|
|
35
|
-
"@prisma/
|
|
36
|
-
"@prisma/
|
|
37
|
-
"@prisma/
|
|
34
|
+
"@prisma/debug": "7.5.0-dev.2",
|
|
35
|
+
"@prisma/client-runtime-utils": "7.5.0-dev.2",
|
|
36
|
+
"@prisma/driver-adapter-utils": "7.5.0-dev.2",
|
|
37
|
+
"@prisma/sqlcommenter": "7.5.0-dev.2"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@codspeed/benchmark.js-plugin": "4.0.0",
|