@prisma/adapter-pg 6.20.0-dev.8 → 6.20.0-dev.9
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 +1 -1
- package/dist/index.js +4 -0
- package/dist/index.mjs +4 -0
- package/package.json +4 -4
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.
|
|
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).
|
|
12
12
|
|
|
13
13
|
### 1. Install the dependencies
|
|
14
14
|
|
package/dist/index.js
CHANGED
|
@@ -50,6 +50,9 @@ 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
|
+
};
|
|
53
56
|
var ArrayColumnType = {
|
|
54
57
|
BIT_ARRAY: 1561,
|
|
55
58
|
BOOL_ARRAY: 1e3,
|
|
@@ -240,6 +243,7 @@ function fieldToColumnType(fieldTypeId) {
|
|
|
240
243
|
case ScalarColumnType.INET:
|
|
241
244
|
case ScalarColumnType.CIDR:
|
|
242
245
|
case ScalarColumnType.XML:
|
|
246
|
+
case AdditionalScalarColumnType.NAME:
|
|
243
247
|
return import_driver_adapter_utils.ColumnTypeEnum.Text;
|
|
244
248
|
case ScalarColumnType.BYTEA:
|
|
245
249
|
return import_driver_adapter_utils.ColumnTypeEnum.Bytes;
|
package/dist/index.mjs
CHANGED
|
@@ -14,6 +14,9 @@ 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
|
+
};
|
|
17
20
|
var ArrayColumnType = {
|
|
18
21
|
BIT_ARRAY: 1561,
|
|
19
22
|
BOOL_ARRAY: 1e3,
|
|
@@ -204,6 +207,7 @@ function fieldToColumnType(fieldTypeId) {
|
|
|
204
207
|
case ScalarColumnType.INET:
|
|
205
208
|
case ScalarColumnType.CIDR:
|
|
206
209
|
case ScalarColumnType.XML:
|
|
210
|
+
case AdditionalScalarColumnType.NAME:
|
|
207
211
|
return ColumnTypeEnum.Text;
|
|
208
212
|
case ScalarColumnType.BYTEA:
|
|
209
213
|
return ColumnTypeEnum.Bytes;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prisma/adapter-pg",
|
|
3
|
-
"version": "6.20.0-dev.
|
|
3
|
+
"version": "6.20.0-dev.9",
|
|
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",
|
|
34
35
|
"postgres-array": "3.0.4",
|
|
35
|
-
"
|
|
36
|
-
"@prisma/driver-adapter-utils": "6.20.0-dev.8"
|
|
36
|
+
"@prisma/driver-adapter-utils": "6.20.0-dev.9"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"@types/pg": "8.11.11",
|
|
40
|
-
"@prisma/debug": "6.20.0-dev.
|
|
40
|
+
"@prisma/debug": "6.20.0-dev.9"
|
|
41
41
|
},
|
|
42
42
|
"scripts": {
|
|
43
43
|
"dev": "DEV=true tsx helpers/build.ts",
|