@prisma/client-engine-runtime 7.10.0-dev.14 → 7.10.0-dev.15
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 +2 -0
- package/dist/index.mjs +2 -0
- package/package.json +9 -9
package/dist/index.js
CHANGED
|
@@ -341,6 +341,7 @@ function getErrorCode(err) {
|
|
|
341
341
|
case "UniqueConstraintViolation":
|
|
342
342
|
return "P2002";
|
|
343
343
|
case "ForeignKeyConstraintViolation":
|
|
344
|
+
case "RestrictViolation":
|
|
344
345
|
return "P2003";
|
|
345
346
|
case "InvalidInputValue":
|
|
346
347
|
return "P2007";
|
|
@@ -413,6 +414,7 @@ function renderErrorMessage(err) {
|
|
|
413
414
|
case "UniqueConstraintViolation":
|
|
414
415
|
return `Unique constraint failed on the ${renderConstraint(err.cause.constraint)}`;
|
|
415
416
|
case "ForeignKeyConstraintViolation":
|
|
417
|
+
case "RestrictViolation":
|
|
416
418
|
return `Foreign key constraint violated on the ${renderConstraint(err.cause.constraint)}`;
|
|
417
419
|
case "UnsupportedNativeDataType":
|
|
418
420
|
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\`.`;
|
package/dist/index.mjs
CHANGED
|
@@ -288,6 +288,7 @@ function getErrorCode(err) {
|
|
|
288
288
|
case "UniqueConstraintViolation":
|
|
289
289
|
return "P2002";
|
|
290
290
|
case "ForeignKeyConstraintViolation":
|
|
291
|
+
case "RestrictViolation":
|
|
291
292
|
return "P2003";
|
|
292
293
|
case "InvalidInputValue":
|
|
293
294
|
return "P2007";
|
|
@@ -360,6 +361,7 @@ function renderErrorMessage(err) {
|
|
|
360
361
|
case "UniqueConstraintViolation":
|
|
361
362
|
return `Unique constraint failed on the ${renderConstraint(err.cause.constraint)}`;
|
|
362
363
|
case "ForeignKeyConstraintViolation":
|
|
364
|
+
case "RestrictViolation":
|
|
363
365
|
return `Foreign key constraint violated on the ${renderConstraint(err.cause.constraint)}`;
|
|
364
366
|
case "UnsupportedNativeDataType":
|
|
365
367
|
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\`.`;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prisma/client-engine-runtime",
|
|
3
|
-
"version": "7.10.0-dev.
|
|
3
|
+
"version": "7.10.0-dev.15",
|
|
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,20 +31,20 @@
|
|
|
31
31
|
"nanoid": "5.1.5",
|
|
32
32
|
"ulid": "3.0.0",
|
|
33
33
|
"uuid": "14.0.0",
|
|
34
|
-
"@prisma/
|
|
35
|
-
"@prisma/
|
|
36
|
-
"@prisma/
|
|
37
|
-
"@prisma/
|
|
38
|
-
"@prisma/
|
|
39
|
-
"@prisma/json-protocol": "7.10.0-dev.
|
|
34
|
+
"@prisma/client-runtime-utils": "7.10.0-dev.15",
|
|
35
|
+
"@prisma/debug": "7.10.0-dev.15",
|
|
36
|
+
"@prisma/driver-adapter-utils": "7.10.0-dev.15",
|
|
37
|
+
"@prisma/sqlcommenter": "7.10.0-dev.15",
|
|
38
|
+
"@prisma/param-graph": "7.10.0-dev.15",
|
|
39
|
+
"@prisma/json-protocol": "7.10.0-dev.15"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"@codspeed/benchmark.js-plugin": "4.0.0",
|
|
43
43
|
"@types/benchmark": "2.1.5",
|
|
44
44
|
"@types/node": "~20.19.24",
|
|
45
45
|
"benchmark": "2.1.4",
|
|
46
|
-
"@prisma/
|
|
47
|
-
"@prisma/
|
|
46
|
+
"@prisma/get-dmmf": "7.10.0-dev.15",
|
|
47
|
+
"@prisma/param-graph-builder": "7.10.0-dev.15"
|
|
48
48
|
},
|
|
49
49
|
"files": [
|
|
50
50
|
"dist"
|