@prisma/query-plan-executor 7.10.0-dev.14 → 7.10.0-dev.16
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 +15 -1
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -93473,7 +93473,7 @@ __export(index_exports, {
|
|
|
93473
93473
|
module.exports = __toCommonJS(index_exports);
|
|
93474
93474
|
|
|
93475
93475
|
// package.json
|
|
93476
|
-
var version = "7.10.0-dev.
|
|
93476
|
+
var version = "7.10.0-dev.16";
|
|
93477
93477
|
|
|
93478
93478
|
// ../../node_modules/.pnpm/temporal-polyfill@0.3.0/node_modules/temporal-polyfill/chunks/internal.js
|
|
93479
93479
|
function clampProp(e2, n2, t2, o2, r2) {
|
|
@@ -101944,6 +101944,7 @@ function getErrorCode(err) {
|
|
|
101944
101944
|
case "UniqueConstraintViolation":
|
|
101945
101945
|
return "P2002";
|
|
101946
101946
|
case "ForeignKeyConstraintViolation":
|
|
101947
|
+
case "RestrictViolation":
|
|
101947
101948
|
return "P2003";
|
|
101948
101949
|
case "InvalidInputValue":
|
|
101949
101950
|
return "P2007";
|
|
@@ -102016,6 +102017,7 @@ function renderErrorMessage(err) {
|
|
|
102016
102017
|
case "UniqueConstraintViolation":
|
|
102017
102018
|
return `Unique constraint failed on the ${renderConstraint(err.cause.constraint)}`;
|
|
102018
102019
|
case "ForeignKeyConstraintViolation":
|
|
102020
|
+
case "RestrictViolation":
|
|
102019
102021
|
return `Foreign key constraint violated on the ${renderConstraint(err.cause.constraint)}`;
|
|
102020
102022
|
case "UnsupportedNativeDataType":
|
|
102021
102023
|
return `Failed to deserialize column of type '${err.cause.type}'. If you're using $queryRaw and this column is explicitly marked as \`Unsupported\` in your Prisma schema, try casting this column to any supported Prisma type such as \`String\`.`;
|
|
@@ -108165,6 +108167,18 @@ function mapDriverError3(error44) {
|
|
|
108165
108167
|
constraint
|
|
108166
108168
|
};
|
|
108167
108169
|
}
|
|
108170
|
+
case "23001": {
|
|
108171
|
+
let constraint;
|
|
108172
|
+
if (error44.column) {
|
|
108173
|
+
constraint = { fields: [error44.column] };
|
|
108174
|
+
} else if (error44.constraint) {
|
|
108175
|
+
constraint = { index: error44.constraint };
|
|
108176
|
+
}
|
|
108177
|
+
return {
|
|
108178
|
+
kind: "RestrictViolation",
|
|
108179
|
+
constraint
|
|
108180
|
+
};
|
|
108181
|
+
}
|
|
108168
108182
|
case "3D000":
|
|
108169
108183
|
return {
|
|
108170
108184
|
kind: "DatabaseDoesNotExist",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prisma/query-plan-executor",
|
|
3
|
-
"version": "7.10.0-dev.
|
|
3
|
+
"version": "7.10.0-dev.16",
|
|
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",
|
|
@@ -19,11 +19,11 @@
|
|
|
19
19
|
"hono": "^4.12.23",
|
|
20
20
|
"temporal-polyfill": "0.3.0",
|
|
21
21
|
"zod": "4.1.3",
|
|
22
|
-
"@prisma/adapter-
|
|
23
|
-
"@prisma/adapter-mssql": "7.10.0-dev.
|
|
24
|
-
"@prisma/
|
|
25
|
-
"@prisma/
|
|
26
|
-
"@prisma/
|
|
22
|
+
"@prisma/adapter-pg": "7.10.0-dev.16",
|
|
23
|
+
"@prisma/adapter-mssql": "7.10.0-dev.16",
|
|
24
|
+
"@prisma/client-engine-runtime": "7.10.0-dev.16",
|
|
25
|
+
"@prisma/driver-adapter-utils": "7.10.0-dev.16",
|
|
26
|
+
"@prisma/adapter-mariadb": "7.10.0-dev.16"
|
|
27
27
|
},
|
|
28
28
|
"files": [
|
|
29
29
|
"dist"
|