@prisma/adapter-pg 7.2.0-integration-engines-7-2-0-3-aqrln-zpupkzknszlw-04d61c41ec1a025cabe14093fa3121a5f45040ab.1 → 7.3.0-integration-fix-6-19-0-cloudflare-accelerate-engine.1

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/README.md CHANGED
@@ -8,7 +8,7 @@ This package contains the driver adapter for Prisma ORM that enables usage of th
8
8
 
9
9
  ## Usage
10
10
 
11
- This section explains how you can use it with Prisma ORM and the `@prisma/adapter-pg` driver adapter. Be sure that the `DATABASE_URL` environment variable is set to your PostgreSQL connection string (e.g. loaded using `dotenv` from a `.env` file).
11
+ This section explains how you can use it with Prisma ORM and the `@prisma/adapter-pg` driver adapter. Be sure that the `DATABASE_URL` environment variable is set to your PostgreSQL connection string (e.g. in a `.env` file).
12
12
 
13
13
  ### 1. Install the dependencies
14
14
 
package/dist/index.js CHANGED
@@ -50,9 +50,6 @@ var import_pg = __toESM(require("pg"));
50
50
  var import_postgres_array = require("postgres-array");
51
51
  var { types } = import_pg.default;
52
52
  var { builtins: ScalarColumnType, getTypeParser } = types;
53
- var AdditionalScalarColumnType = {
54
- NAME: 19
55
- };
56
53
  var ArrayColumnType = {
57
54
  BIT_ARRAY: 1561,
58
55
  BOOL_ARRAY: 1e3,
@@ -243,7 +240,6 @@ function fieldToColumnType(fieldTypeId) {
243
240
  case ScalarColumnType.INET:
244
241
  case ScalarColumnType.CIDR:
245
242
  case ScalarColumnType.XML:
246
- case AdditionalScalarColumnType.NAME:
247
243
  return import_driver_adapter_utils.ColumnTypeEnum.Text;
248
244
  case ScalarColumnType.BYTEA:
249
245
  return import_driver_adapter_utils.ColumnTypeEnum.Bytes;
@@ -475,11 +471,6 @@ function mapDriverError(error) {
475
471
  kind: "ValueOutOfRange",
476
472
  cause: error.message
477
473
  };
478
- case "22P02":
479
- return {
480
- kind: "InvalidInputValue",
481
- message: error.message
482
- };
483
474
  case "23505": {
484
475
  const fields = error.detail?.match(/Key \(([^)]+)\)/)?.at(1)?.split(", ");
485
476
  return {
package/dist/index.mjs CHANGED
@@ -14,9 +14,6 @@ import pg from "pg";
14
14
  import { parse as parseArray } from "postgres-array";
15
15
  var { types } = pg;
16
16
  var { builtins: ScalarColumnType, getTypeParser } = types;
17
- var AdditionalScalarColumnType = {
18
- NAME: 19
19
- };
20
17
  var ArrayColumnType = {
21
18
  BIT_ARRAY: 1561,
22
19
  BOOL_ARRAY: 1e3,
@@ -207,7 +204,6 @@ function fieldToColumnType(fieldTypeId) {
207
204
  case ScalarColumnType.INET:
208
205
  case ScalarColumnType.CIDR:
209
206
  case ScalarColumnType.XML:
210
- case AdditionalScalarColumnType.NAME:
211
207
  return ColumnTypeEnum.Text;
212
208
  case ScalarColumnType.BYTEA:
213
209
  return ColumnTypeEnum.Bytes;
@@ -439,11 +435,6 @@ function mapDriverError(error) {
439
435
  kind: "ValueOutOfRange",
440
436
  cause: error.message
441
437
  };
442
- case "22P02":
443
- return {
444
- kind: "InvalidInputValue",
445
- message: error.message
446
- };
447
438
  case "23505": {
448
439
  const fields = error.detail?.match(/Key \(([^)]+)\)/)?.at(1)?.split(", ");
449
440
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prisma/adapter-pg",
3
- "version": "7.2.0-integration-engines-7-2-0-3-aqrln-zpupkzknszlw-04d61c41ec1a025cabe14093fa3121a5f45040ab.1",
3
+ "version": "7.3.0-integration-fix-6-19-0-cloudflare-accelerate-engine.1",
4
4
  "description": "Prisma's driver adapter for \"pg\"",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -31,13 +31,13 @@
31
31
  "license": "Apache-2.0",
32
32
  "sideEffects": false,
33
33
  "dependencies": {
34
- "pg": "^8.16.3",
35
34
  "postgres-array": "3.0.4",
36
- "@prisma/driver-adapter-utils": "7.2.0-integration-engines-7-2-0-3-aqrln-zpupkzknszlw-04d61c41ec1a025cabe14093fa3121a5f45040ab.1"
35
+ "pg": "^8.11.3",
36
+ "@prisma/driver-adapter-utils": "7.3.0-integration-fix-6-19-0-cloudflare-accelerate-engine.1"
37
37
  },
38
38
  "devDependencies": {
39
39
  "@types/pg": "8.11.11",
40
- "@prisma/debug": "7.2.0-integration-engines-7-2-0-3-aqrln-zpupkzknszlw-04d61c41ec1a025cabe14093fa3121a5f45040ab.1"
40
+ "@prisma/debug": "7.3.0-integration-fix-6-19-0-cloudflare-accelerate-engine.1"
41
41
  },
42
42
  "scripts": {
43
43
  "dev": "DEV=true tsx helpers/build.ts",