@prisma/client-engine-runtime 6.10.0-dev.3 → 6.10.0-dev.4
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 +10 -2
- package/dist/index.mjs +10 -2
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -403,12 +403,16 @@ function getErrorCode(err) {
|
|
|
403
403
|
return "P2010";
|
|
404
404
|
case "NullConstraintViolation":
|
|
405
405
|
return "P2011";
|
|
406
|
+
case "ValueOutOfRange":
|
|
407
|
+
return "P2020";
|
|
406
408
|
case "TableDoesNotExist":
|
|
407
409
|
return "P2021";
|
|
408
410
|
case "ColumnNotFound":
|
|
409
411
|
return "P2022";
|
|
410
412
|
case "InvalidIsolationLevel":
|
|
411
413
|
return "P2023";
|
|
414
|
+
case "MissingFullTextSearchIndex":
|
|
415
|
+
return "P2030";
|
|
412
416
|
case "TransactionWriteConflict":
|
|
413
417
|
return "P2034";
|
|
414
418
|
case "GenericJs":
|
|
@@ -448,13 +452,15 @@ function renderErrorMessage(err) {
|
|
|
448
452
|
return `The provided value for the column is too long for the column's type. Column: ${column}`;
|
|
449
453
|
}
|
|
450
454
|
case "UniqueConstraintViolation":
|
|
451
|
-
return `Unique constraint failed on the ${renderConstraint(
|
|
455
|
+
return `Unique constraint failed on the ${renderConstraint(err.cause.constraint)}`;
|
|
452
456
|
case "ForeignKeyConstraintViolation":
|
|
453
457
|
return `Foreign key constraint violated on the ${renderConstraint(err.cause.constraint)}`;
|
|
454
458
|
case "UnsupportedNativeDataType":
|
|
455
459
|
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\`.`;
|
|
456
460
|
case "NullConstraintViolation":
|
|
457
|
-
return `Null constraint violation on the ${renderConstraint(
|
|
461
|
+
return `Null constraint violation on the ${renderConstraint(err.cause.constraint)}`;
|
|
462
|
+
case "ValueOutOfRange":
|
|
463
|
+
return `Value out of range for the type. ${err.cause.cause}`;
|
|
458
464
|
case "TableDoesNotExist": {
|
|
459
465
|
const table = err.cause.table ?? "(not available)";
|
|
460
466
|
return `The table \`${table}\` does not exist in the current database.`;
|
|
@@ -465,6 +471,8 @@ function renderErrorMessage(err) {
|
|
|
465
471
|
}
|
|
466
472
|
case "InvalidIsolationLevel":
|
|
467
473
|
return `Invalid isolation level \`${err.cause.level}\``;
|
|
474
|
+
case "MissingFullTextSearchIndex":
|
|
475
|
+
return "Cannot find a fulltext index to use for the native search, try adding a @@fulltext([Fields...]) to your schema";
|
|
468
476
|
case "TransactionWriteConflict":
|
|
469
477
|
return `Transaction failed due to a write conflict or a deadlock. Please retry your transaction`;
|
|
470
478
|
case "GenericJs":
|
package/dist/index.mjs
CHANGED
|
@@ -355,12 +355,16 @@ function getErrorCode(err) {
|
|
|
355
355
|
return "P2010";
|
|
356
356
|
case "NullConstraintViolation":
|
|
357
357
|
return "P2011";
|
|
358
|
+
case "ValueOutOfRange":
|
|
359
|
+
return "P2020";
|
|
358
360
|
case "TableDoesNotExist":
|
|
359
361
|
return "P2021";
|
|
360
362
|
case "ColumnNotFound":
|
|
361
363
|
return "P2022";
|
|
362
364
|
case "InvalidIsolationLevel":
|
|
363
365
|
return "P2023";
|
|
366
|
+
case "MissingFullTextSearchIndex":
|
|
367
|
+
return "P2030";
|
|
364
368
|
case "TransactionWriteConflict":
|
|
365
369
|
return "P2034";
|
|
366
370
|
case "GenericJs":
|
|
@@ -400,13 +404,15 @@ function renderErrorMessage(err) {
|
|
|
400
404
|
return `The provided value for the column is too long for the column's type. Column: ${column}`;
|
|
401
405
|
}
|
|
402
406
|
case "UniqueConstraintViolation":
|
|
403
|
-
return `Unique constraint failed on the ${renderConstraint(
|
|
407
|
+
return `Unique constraint failed on the ${renderConstraint(err.cause.constraint)}`;
|
|
404
408
|
case "ForeignKeyConstraintViolation":
|
|
405
409
|
return `Foreign key constraint violated on the ${renderConstraint(err.cause.constraint)}`;
|
|
406
410
|
case "UnsupportedNativeDataType":
|
|
407
411
|
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\`.`;
|
|
408
412
|
case "NullConstraintViolation":
|
|
409
|
-
return `Null constraint violation on the ${renderConstraint(
|
|
413
|
+
return `Null constraint violation on the ${renderConstraint(err.cause.constraint)}`;
|
|
414
|
+
case "ValueOutOfRange":
|
|
415
|
+
return `Value out of range for the type. ${err.cause.cause}`;
|
|
410
416
|
case "TableDoesNotExist": {
|
|
411
417
|
const table = err.cause.table ?? "(not available)";
|
|
412
418
|
return `The table \`${table}\` does not exist in the current database.`;
|
|
@@ -417,6 +423,8 @@ function renderErrorMessage(err) {
|
|
|
417
423
|
}
|
|
418
424
|
case "InvalidIsolationLevel":
|
|
419
425
|
return `Invalid isolation level \`${err.cause.level}\``;
|
|
426
|
+
case "MissingFullTextSearchIndex":
|
|
427
|
+
return "Cannot find a fulltext index to use for the native search, try adding a @@fulltext([Fields...]) to your schema";
|
|
420
428
|
case "TransactionWriteConflict":
|
|
421
429
|
return `Transaction failed due to a write conflict or a deadlock. Please retry your transaction`;
|
|
422
430
|
case "GenericJs":
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prisma/client-engine-runtime",
|
|
3
|
-
"version": "6.10.0-dev.
|
|
3
|
+
"version": "6.10.0-dev.4",
|
|
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,8 +31,8 @@
|
|
|
31
31
|
"nanoid": "5.1.5",
|
|
32
32
|
"ulid": "3.0.0",
|
|
33
33
|
"uuid": "11.1.0",
|
|
34
|
-
"@prisma/debug": "6.10.0-dev.
|
|
35
|
-
"@prisma/driver-adapter-utils": "6.10.0-dev.
|
|
34
|
+
"@prisma/debug": "6.10.0-dev.4",
|
|
35
|
+
"@prisma/driver-adapter-utils": "6.10.0-dev.4"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@types/jest": "29.5.14",
|