@prisma/adapter-neon 6.6.0-dev.24 → 6.6.0-dev.26
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 +121 -126
- package/dist/index.mjs +121 -128
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -5,7 +5,6 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
5
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
6
|
var __getProtoOf = Object.getPrototypeOf;
|
|
7
7
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
9
8
|
var __export = (target, all) => {
|
|
10
9
|
for (var name2 in all)
|
|
11
10
|
__defProp(target, name2, { get: all[name2], enumerable: true });
|
|
@@ -27,7 +26,6 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
27
26
|
mod
|
|
28
27
|
));
|
|
29
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
30
|
-
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
31
29
|
|
|
32
30
|
// src/index.ts
|
|
33
31
|
var index_exports = {};
|
|
@@ -76,130 +74,129 @@ var ArrayColumnType = {
|
|
|
76
74
|
VARCHAR_ARRAY: 1015,
|
|
77
75
|
XML_ARRAY: 143
|
|
78
76
|
};
|
|
79
|
-
var
|
|
77
|
+
var UnsupportedNativeDataType = class _UnsupportedNativeDataType extends Error {
|
|
78
|
+
// map of type codes to type names
|
|
79
|
+
static typeNames = {
|
|
80
|
+
16: "bool",
|
|
81
|
+
17: "bytea",
|
|
82
|
+
18: "char",
|
|
83
|
+
19: "name",
|
|
84
|
+
20: "int8",
|
|
85
|
+
21: "int2",
|
|
86
|
+
22: "int2vector",
|
|
87
|
+
23: "int4",
|
|
88
|
+
24: "regproc",
|
|
89
|
+
25: "text",
|
|
90
|
+
26: "oid",
|
|
91
|
+
27: "tid",
|
|
92
|
+
28: "xid",
|
|
93
|
+
29: "cid",
|
|
94
|
+
30: "oidvector",
|
|
95
|
+
32: "pg_ddl_command",
|
|
96
|
+
71: "pg_type",
|
|
97
|
+
75: "pg_attribute",
|
|
98
|
+
81: "pg_proc",
|
|
99
|
+
83: "pg_class",
|
|
100
|
+
114: "json",
|
|
101
|
+
142: "xml",
|
|
102
|
+
194: "pg_node_tree",
|
|
103
|
+
269: "table_am_handler",
|
|
104
|
+
325: "index_am_handler",
|
|
105
|
+
600: "point",
|
|
106
|
+
601: "lseg",
|
|
107
|
+
602: "path",
|
|
108
|
+
603: "box",
|
|
109
|
+
604: "polygon",
|
|
110
|
+
628: "line",
|
|
111
|
+
650: "cidr",
|
|
112
|
+
700: "float4",
|
|
113
|
+
701: "float8",
|
|
114
|
+
705: "unknown",
|
|
115
|
+
718: "circle",
|
|
116
|
+
774: "macaddr8",
|
|
117
|
+
790: "money",
|
|
118
|
+
829: "macaddr",
|
|
119
|
+
869: "inet",
|
|
120
|
+
1033: "aclitem",
|
|
121
|
+
1042: "bpchar",
|
|
122
|
+
1043: "varchar",
|
|
123
|
+
1082: "date",
|
|
124
|
+
1083: "time",
|
|
125
|
+
1114: "timestamp",
|
|
126
|
+
1184: "timestamptz",
|
|
127
|
+
1186: "interval",
|
|
128
|
+
1266: "timetz",
|
|
129
|
+
1560: "bit",
|
|
130
|
+
1562: "varbit",
|
|
131
|
+
1700: "numeric",
|
|
132
|
+
1790: "refcursor",
|
|
133
|
+
2202: "regprocedure",
|
|
134
|
+
2203: "regoper",
|
|
135
|
+
2204: "regoperator",
|
|
136
|
+
2205: "regclass",
|
|
137
|
+
2206: "regtype",
|
|
138
|
+
2249: "record",
|
|
139
|
+
2275: "cstring",
|
|
140
|
+
2276: "any",
|
|
141
|
+
2277: "anyarray",
|
|
142
|
+
2278: "void",
|
|
143
|
+
2279: "trigger",
|
|
144
|
+
2280: "language_handler",
|
|
145
|
+
2281: "internal",
|
|
146
|
+
2283: "anyelement",
|
|
147
|
+
2287: "_record",
|
|
148
|
+
2776: "anynonarray",
|
|
149
|
+
2950: "uuid",
|
|
150
|
+
2970: "txid_snapshot",
|
|
151
|
+
3115: "fdw_handler",
|
|
152
|
+
3220: "pg_lsn",
|
|
153
|
+
3310: "tsm_handler",
|
|
154
|
+
3361: "pg_ndistinct",
|
|
155
|
+
3402: "pg_dependencies",
|
|
156
|
+
3500: "anyenum",
|
|
157
|
+
3614: "tsvector",
|
|
158
|
+
3615: "tsquery",
|
|
159
|
+
3642: "gtsvector",
|
|
160
|
+
3734: "regconfig",
|
|
161
|
+
3769: "regdictionary",
|
|
162
|
+
3802: "jsonb",
|
|
163
|
+
3831: "anyrange",
|
|
164
|
+
3838: "event_trigger",
|
|
165
|
+
3904: "int4range",
|
|
166
|
+
3906: "numrange",
|
|
167
|
+
3908: "tsrange",
|
|
168
|
+
3910: "tstzrange",
|
|
169
|
+
3912: "daterange",
|
|
170
|
+
3926: "int8range",
|
|
171
|
+
4072: "jsonpath",
|
|
172
|
+
4089: "regnamespace",
|
|
173
|
+
4096: "regrole",
|
|
174
|
+
4191: "regcollation",
|
|
175
|
+
4451: "int4multirange",
|
|
176
|
+
4532: "nummultirange",
|
|
177
|
+
4533: "tsmultirange",
|
|
178
|
+
4534: "tstzmultirange",
|
|
179
|
+
4535: "datemultirange",
|
|
180
|
+
4536: "int8multirange",
|
|
181
|
+
4537: "anymultirange",
|
|
182
|
+
4538: "anycompatiblemultirange",
|
|
183
|
+
4600: "pg_brin_bloom_summary",
|
|
184
|
+
4601: "pg_brin_minmax_multi_summary",
|
|
185
|
+
5017: "pg_mcv_list",
|
|
186
|
+
5038: "pg_snapshot",
|
|
187
|
+
5069: "xid8",
|
|
188
|
+
5077: "anycompatible",
|
|
189
|
+
5078: "anycompatiblearray",
|
|
190
|
+
5079: "anycompatiblenonarray",
|
|
191
|
+
5080: "anycompatiblerange"
|
|
192
|
+
};
|
|
193
|
+
type;
|
|
80
194
|
constructor(code) {
|
|
81
195
|
super();
|
|
82
|
-
__publicField(this, "type");
|
|
83
196
|
this.type = _UnsupportedNativeDataType.typeNames[code] || "Unknown";
|
|
84
197
|
this.message = `Unsupported column type ${this.type}`;
|
|
85
198
|
}
|
|
86
199
|
};
|
|
87
|
-
// map of type codes to type names
|
|
88
|
-
__publicField(_UnsupportedNativeDataType, "typeNames", {
|
|
89
|
-
16: "bool",
|
|
90
|
-
17: "bytea",
|
|
91
|
-
18: "char",
|
|
92
|
-
19: "name",
|
|
93
|
-
20: "int8",
|
|
94
|
-
21: "int2",
|
|
95
|
-
22: "int2vector",
|
|
96
|
-
23: "int4",
|
|
97
|
-
24: "regproc",
|
|
98
|
-
25: "text",
|
|
99
|
-
26: "oid",
|
|
100
|
-
27: "tid",
|
|
101
|
-
28: "xid",
|
|
102
|
-
29: "cid",
|
|
103
|
-
30: "oidvector",
|
|
104
|
-
32: "pg_ddl_command",
|
|
105
|
-
71: "pg_type",
|
|
106
|
-
75: "pg_attribute",
|
|
107
|
-
81: "pg_proc",
|
|
108
|
-
83: "pg_class",
|
|
109
|
-
114: "json",
|
|
110
|
-
142: "xml",
|
|
111
|
-
194: "pg_node_tree",
|
|
112
|
-
269: "table_am_handler",
|
|
113
|
-
325: "index_am_handler",
|
|
114
|
-
600: "point",
|
|
115
|
-
601: "lseg",
|
|
116
|
-
602: "path",
|
|
117
|
-
603: "box",
|
|
118
|
-
604: "polygon",
|
|
119
|
-
628: "line",
|
|
120
|
-
650: "cidr",
|
|
121
|
-
700: "float4",
|
|
122
|
-
701: "float8",
|
|
123
|
-
705: "unknown",
|
|
124
|
-
718: "circle",
|
|
125
|
-
774: "macaddr8",
|
|
126
|
-
790: "money",
|
|
127
|
-
829: "macaddr",
|
|
128
|
-
869: "inet",
|
|
129
|
-
1033: "aclitem",
|
|
130
|
-
1042: "bpchar",
|
|
131
|
-
1043: "varchar",
|
|
132
|
-
1082: "date",
|
|
133
|
-
1083: "time",
|
|
134
|
-
1114: "timestamp",
|
|
135
|
-
1184: "timestamptz",
|
|
136
|
-
1186: "interval",
|
|
137
|
-
1266: "timetz",
|
|
138
|
-
1560: "bit",
|
|
139
|
-
1562: "varbit",
|
|
140
|
-
1700: "numeric",
|
|
141
|
-
1790: "refcursor",
|
|
142
|
-
2202: "regprocedure",
|
|
143
|
-
2203: "regoper",
|
|
144
|
-
2204: "regoperator",
|
|
145
|
-
2205: "regclass",
|
|
146
|
-
2206: "regtype",
|
|
147
|
-
2249: "record",
|
|
148
|
-
2275: "cstring",
|
|
149
|
-
2276: "any",
|
|
150
|
-
2277: "anyarray",
|
|
151
|
-
2278: "void",
|
|
152
|
-
2279: "trigger",
|
|
153
|
-
2280: "language_handler",
|
|
154
|
-
2281: "internal",
|
|
155
|
-
2283: "anyelement",
|
|
156
|
-
2287: "_record",
|
|
157
|
-
2776: "anynonarray",
|
|
158
|
-
2950: "uuid",
|
|
159
|
-
2970: "txid_snapshot",
|
|
160
|
-
3115: "fdw_handler",
|
|
161
|
-
3220: "pg_lsn",
|
|
162
|
-
3310: "tsm_handler",
|
|
163
|
-
3361: "pg_ndistinct",
|
|
164
|
-
3402: "pg_dependencies",
|
|
165
|
-
3500: "anyenum",
|
|
166
|
-
3614: "tsvector",
|
|
167
|
-
3615: "tsquery",
|
|
168
|
-
3642: "gtsvector",
|
|
169
|
-
3734: "regconfig",
|
|
170
|
-
3769: "regdictionary",
|
|
171
|
-
3802: "jsonb",
|
|
172
|
-
3831: "anyrange",
|
|
173
|
-
3838: "event_trigger",
|
|
174
|
-
3904: "int4range",
|
|
175
|
-
3906: "numrange",
|
|
176
|
-
3908: "tsrange",
|
|
177
|
-
3910: "tstzrange",
|
|
178
|
-
3912: "daterange",
|
|
179
|
-
3926: "int8range",
|
|
180
|
-
4072: "jsonpath",
|
|
181
|
-
4089: "regnamespace",
|
|
182
|
-
4096: "regrole",
|
|
183
|
-
4191: "regcollation",
|
|
184
|
-
4451: "int4multirange",
|
|
185
|
-
4532: "nummultirange",
|
|
186
|
-
4533: "tsmultirange",
|
|
187
|
-
4534: "tstzmultirange",
|
|
188
|
-
4535: "datemultirange",
|
|
189
|
-
4536: "int8multirange",
|
|
190
|
-
4537: "anymultirange",
|
|
191
|
-
4538: "anycompatiblemultirange",
|
|
192
|
-
4600: "pg_brin_bloom_summary",
|
|
193
|
-
4601: "pg_brin_minmax_multi_summary",
|
|
194
|
-
5017: "pg_mcv_list",
|
|
195
|
-
5038: "pg_snapshot",
|
|
196
|
-
5069: "xid8",
|
|
197
|
-
5077: "anycompatible",
|
|
198
|
-
5078: "anycompatiblearray",
|
|
199
|
-
5079: "anycompatiblenonarray",
|
|
200
|
-
5080: "anycompatiblerange"
|
|
201
|
-
});
|
|
202
|
-
var UnsupportedNativeDataType = _UnsupportedNativeDataType;
|
|
203
200
|
function fieldToColumnType(fieldTypeId) {
|
|
204
201
|
switch (fieldTypeId) {
|
|
205
202
|
case ScalarColumnType.INT2:
|
|
@@ -374,10 +371,8 @@ function fixArrayBufferValues(values) {
|
|
|
374
371
|
// src/neon.ts
|
|
375
372
|
var debug = (0, import_driver_adapter_utils2.Debug)("prisma:driver-adapter:neon");
|
|
376
373
|
var NeonQueryable = class {
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
__publicField(this, "adapterName", name);
|
|
380
|
-
}
|
|
374
|
+
provider = "postgres";
|
|
375
|
+
adapterName = name;
|
|
381
376
|
/**
|
|
382
377
|
* Execute a query given as SQL, interpolating the given parameters.
|
|
383
378
|
*/
|
|
@@ -511,8 +506,8 @@ const adapter = new PrismaNeon(pool)
|
|
|
511
506
|
}
|
|
512
507
|
super(pool);
|
|
513
508
|
this.options = options;
|
|
514
|
-
__publicField(this, "isRunning", true);
|
|
515
509
|
}
|
|
510
|
+
isRunning = true;
|
|
516
511
|
executeScript(_script) {
|
|
517
512
|
throw new Error("Not implemented yet");
|
|
518
513
|
}
|
|
@@ -533,9 +528,9 @@ const adapter = new PrismaNeon(pool)
|
|
|
533
528
|
}
|
|
534
529
|
};
|
|
535
530
|
var PrismaNeonHTTP = class extends NeonQueryable {
|
|
531
|
+
client;
|
|
536
532
|
constructor(client) {
|
|
537
533
|
super();
|
|
538
|
-
__publicField(this, "client");
|
|
539
534
|
this.client = client.query ?? client;
|
|
540
535
|
}
|
|
541
536
|
executeScript(_script) {
|
package/dist/index.mjs
CHANGED
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3
|
-
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4
|
-
|
|
5
1
|
// src/neon.ts
|
|
6
2
|
import * as neon from "@neondatabase/serverless";
|
|
7
3
|
import { Debug, DriverAdapterError } from "@prisma/driver-adapter-utils";
|
|
@@ -41,130 +37,129 @@ var ArrayColumnType = {
|
|
|
41
37
|
VARCHAR_ARRAY: 1015,
|
|
42
38
|
XML_ARRAY: 143
|
|
43
39
|
};
|
|
44
|
-
var
|
|
40
|
+
var UnsupportedNativeDataType = class _UnsupportedNativeDataType extends Error {
|
|
41
|
+
// map of type codes to type names
|
|
42
|
+
static typeNames = {
|
|
43
|
+
16: "bool",
|
|
44
|
+
17: "bytea",
|
|
45
|
+
18: "char",
|
|
46
|
+
19: "name",
|
|
47
|
+
20: "int8",
|
|
48
|
+
21: "int2",
|
|
49
|
+
22: "int2vector",
|
|
50
|
+
23: "int4",
|
|
51
|
+
24: "regproc",
|
|
52
|
+
25: "text",
|
|
53
|
+
26: "oid",
|
|
54
|
+
27: "tid",
|
|
55
|
+
28: "xid",
|
|
56
|
+
29: "cid",
|
|
57
|
+
30: "oidvector",
|
|
58
|
+
32: "pg_ddl_command",
|
|
59
|
+
71: "pg_type",
|
|
60
|
+
75: "pg_attribute",
|
|
61
|
+
81: "pg_proc",
|
|
62
|
+
83: "pg_class",
|
|
63
|
+
114: "json",
|
|
64
|
+
142: "xml",
|
|
65
|
+
194: "pg_node_tree",
|
|
66
|
+
269: "table_am_handler",
|
|
67
|
+
325: "index_am_handler",
|
|
68
|
+
600: "point",
|
|
69
|
+
601: "lseg",
|
|
70
|
+
602: "path",
|
|
71
|
+
603: "box",
|
|
72
|
+
604: "polygon",
|
|
73
|
+
628: "line",
|
|
74
|
+
650: "cidr",
|
|
75
|
+
700: "float4",
|
|
76
|
+
701: "float8",
|
|
77
|
+
705: "unknown",
|
|
78
|
+
718: "circle",
|
|
79
|
+
774: "macaddr8",
|
|
80
|
+
790: "money",
|
|
81
|
+
829: "macaddr",
|
|
82
|
+
869: "inet",
|
|
83
|
+
1033: "aclitem",
|
|
84
|
+
1042: "bpchar",
|
|
85
|
+
1043: "varchar",
|
|
86
|
+
1082: "date",
|
|
87
|
+
1083: "time",
|
|
88
|
+
1114: "timestamp",
|
|
89
|
+
1184: "timestamptz",
|
|
90
|
+
1186: "interval",
|
|
91
|
+
1266: "timetz",
|
|
92
|
+
1560: "bit",
|
|
93
|
+
1562: "varbit",
|
|
94
|
+
1700: "numeric",
|
|
95
|
+
1790: "refcursor",
|
|
96
|
+
2202: "regprocedure",
|
|
97
|
+
2203: "regoper",
|
|
98
|
+
2204: "regoperator",
|
|
99
|
+
2205: "regclass",
|
|
100
|
+
2206: "regtype",
|
|
101
|
+
2249: "record",
|
|
102
|
+
2275: "cstring",
|
|
103
|
+
2276: "any",
|
|
104
|
+
2277: "anyarray",
|
|
105
|
+
2278: "void",
|
|
106
|
+
2279: "trigger",
|
|
107
|
+
2280: "language_handler",
|
|
108
|
+
2281: "internal",
|
|
109
|
+
2283: "anyelement",
|
|
110
|
+
2287: "_record",
|
|
111
|
+
2776: "anynonarray",
|
|
112
|
+
2950: "uuid",
|
|
113
|
+
2970: "txid_snapshot",
|
|
114
|
+
3115: "fdw_handler",
|
|
115
|
+
3220: "pg_lsn",
|
|
116
|
+
3310: "tsm_handler",
|
|
117
|
+
3361: "pg_ndistinct",
|
|
118
|
+
3402: "pg_dependencies",
|
|
119
|
+
3500: "anyenum",
|
|
120
|
+
3614: "tsvector",
|
|
121
|
+
3615: "tsquery",
|
|
122
|
+
3642: "gtsvector",
|
|
123
|
+
3734: "regconfig",
|
|
124
|
+
3769: "regdictionary",
|
|
125
|
+
3802: "jsonb",
|
|
126
|
+
3831: "anyrange",
|
|
127
|
+
3838: "event_trigger",
|
|
128
|
+
3904: "int4range",
|
|
129
|
+
3906: "numrange",
|
|
130
|
+
3908: "tsrange",
|
|
131
|
+
3910: "tstzrange",
|
|
132
|
+
3912: "daterange",
|
|
133
|
+
3926: "int8range",
|
|
134
|
+
4072: "jsonpath",
|
|
135
|
+
4089: "regnamespace",
|
|
136
|
+
4096: "regrole",
|
|
137
|
+
4191: "regcollation",
|
|
138
|
+
4451: "int4multirange",
|
|
139
|
+
4532: "nummultirange",
|
|
140
|
+
4533: "tsmultirange",
|
|
141
|
+
4534: "tstzmultirange",
|
|
142
|
+
4535: "datemultirange",
|
|
143
|
+
4536: "int8multirange",
|
|
144
|
+
4537: "anymultirange",
|
|
145
|
+
4538: "anycompatiblemultirange",
|
|
146
|
+
4600: "pg_brin_bloom_summary",
|
|
147
|
+
4601: "pg_brin_minmax_multi_summary",
|
|
148
|
+
5017: "pg_mcv_list",
|
|
149
|
+
5038: "pg_snapshot",
|
|
150
|
+
5069: "xid8",
|
|
151
|
+
5077: "anycompatible",
|
|
152
|
+
5078: "anycompatiblearray",
|
|
153
|
+
5079: "anycompatiblenonarray",
|
|
154
|
+
5080: "anycompatiblerange"
|
|
155
|
+
};
|
|
156
|
+
type;
|
|
45
157
|
constructor(code) {
|
|
46
158
|
super();
|
|
47
|
-
__publicField(this, "type");
|
|
48
159
|
this.type = _UnsupportedNativeDataType.typeNames[code] || "Unknown";
|
|
49
160
|
this.message = `Unsupported column type ${this.type}`;
|
|
50
161
|
}
|
|
51
162
|
};
|
|
52
|
-
// map of type codes to type names
|
|
53
|
-
__publicField(_UnsupportedNativeDataType, "typeNames", {
|
|
54
|
-
16: "bool",
|
|
55
|
-
17: "bytea",
|
|
56
|
-
18: "char",
|
|
57
|
-
19: "name",
|
|
58
|
-
20: "int8",
|
|
59
|
-
21: "int2",
|
|
60
|
-
22: "int2vector",
|
|
61
|
-
23: "int4",
|
|
62
|
-
24: "regproc",
|
|
63
|
-
25: "text",
|
|
64
|
-
26: "oid",
|
|
65
|
-
27: "tid",
|
|
66
|
-
28: "xid",
|
|
67
|
-
29: "cid",
|
|
68
|
-
30: "oidvector",
|
|
69
|
-
32: "pg_ddl_command",
|
|
70
|
-
71: "pg_type",
|
|
71
|
-
75: "pg_attribute",
|
|
72
|
-
81: "pg_proc",
|
|
73
|
-
83: "pg_class",
|
|
74
|
-
114: "json",
|
|
75
|
-
142: "xml",
|
|
76
|
-
194: "pg_node_tree",
|
|
77
|
-
269: "table_am_handler",
|
|
78
|
-
325: "index_am_handler",
|
|
79
|
-
600: "point",
|
|
80
|
-
601: "lseg",
|
|
81
|
-
602: "path",
|
|
82
|
-
603: "box",
|
|
83
|
-
604: "polygon",
|
|
84
|
-
628: "line",
|
|
85
|
-
650: "cidr",
|
|
86
|
-
700: "float4",
|
|
87
|
-
701: "float8",
|
|
88
|
-
705: "unknown",
|
|
89
|
-
718: "circle",
|
|
90
|
-
774: "macaddr8",
|
|
91
|
-
790: "money",
|
|
92
|
-
829: "macaddr",
|
|
93
|
-
869: "inet",
|
|
94
|
-
1033: "aclitem",
|
|
95
|
-
1042: "bpchar",
|
|
96
|
-
1043: "varchar",
|
|
97
|
-
1082: "date",
|
|
98
|
-
1083: "time",
|
|
99
|
-
1114: "timestamp",
|
|
100
|
-
1184: "timestamptz",
|
|
101
|
-
1186: "interval",
|
|
102
|
-
1266: "timetz",
|
|
103
|
-
1560: "bit",
|
|
104
|
-
1562: "varbit",
|
|
105
|
-
1700: "numeric",
|
|
106
|
-
1790: "refcursor",
|
|
107
|
-
2202: "regprocedure",
|
|
108
|
-
2203: "regoper",
|
|
109
|
-
2204: "regoperator",
|
|
110
|
-
2205: "regclass",
|
|
111
|
-
2206: "regtype",
|
|
112
|
-
2249: "record",
|
|
113
|
-
2275: "cstring",
|
|
114
|
-
2276: "any",
|
|
115
|
-
2277: "anyarray",
|
|
116
|
-
2278: "void",
|
|
117
|
-
2279: "trigger",
|
|
118
|
-
2280: "language_handler",
|
|
119
|
-
2281: "internal",
|
|
120
|
-
2283: "anyelement",
|
|
121
|
-
2287: "_record",
|
|
122
|
-
2776: "anynonarray",
|
|
123
|
-
2950: "uuid",
|
|
124
|
-
2970: "txid_snapshot",
|
|
125
|
-
3115: "fdw_handler",
|
|
126
|
-
3220: "pg_lsn",
|
|
127
|
-
3310: "tsm_handler",
|
|
128
|
-
3361: "pg_ndistinct",
|
|
129
|
-
3402: "pg_dependencies",
|
|
130
|
-
3500: "anyenum",
|
|
131
|
-
3614: "tsvector",
|
|
132
|
-
3615: "tsquery",
|
|
133
|
-
3642: "gtsvector",
|
|
134
|
-
3734: "regconfig",
|
|
135
|
-
3769: "regdictionary",
|
|
136
|
-
3802: "jsonb",
|
|
137
|
-
3831: "anyrange",
|
|
138
|
-
3838: "event_trigger",
|
|
139
|
-
3904: "int4range",
|
|
140
|
-
3906: "numrange",
|
|
141
|
-
3908: "tsrange",
|
|
142
|
-
3910: "tstzrange",
|
|
143
|
-
3912: "daterange",
|
|
144
|
-
3926: "int8range",
|
|
145
|
-
4072: "jsonpath",
|
|
146
|
-
4089: "regnamespace",
|
|
147
|
-
4096: "regrole",
|
|
148
|
-
4191: "regcollation",
|
|
149
|
-
4451: "int4multirange",
|
|
150
|
-
4532: "nummultirange",
|
|
151
|
-
4533: "tsmultirange",
|
|
152
|
-
4534: "tstzmultirange",
|
|
153
|
-
4535: "datemultirange",
|
|
154
|
-
4536: "int8multirange",
|
|
155
|
-
4537: "anymultirange",
|
|
156
|
-
4538: "anycompatiblemultirange",
|
|
157
|
-
4600: "pg_brin_bloom_summary",
|
|
158
|
-
4601: "pg_brin_minmax_multi_summary",
|
|
159
|
-
5017: "pg_mcv_list",
|
|
160
|
-
5038: "pg_snapshot",
|
|
161
|
-
5069: "xid8",
|
|
162
|
-
5077: "anycompatible",
|
|
163
|
-
5078: "anycompatiblearray",
|
|
164
|
-
5079: "anycompatiblenonarray",
|
|
165
|
-
5080: "anycompatiblerange"
|
|
166
|
-
});
|
|
167
|
-
var UnsupportedNativeDataType = _UnsupportedNativeDataType;
|
|
168
163
|
function fieldToColumnType(fieldTypeId) {
|
|
169
164
|
switch (fieldTypeId) {
|
|
170
165
|
case ScalarColumnType.INT2:
|
|
@@ -339,10 +334,8 @@ function fixArrayBufferValues(values) {
|
|
|
339
334
|
// src/neon.ts
|
|
340
335
|
var debug = Debug("prisma:driver-adapter:neon");
|
|
341
336
|
var NeonQueryable = class {
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
__publicField(this, "adapterName", name);
|
|
345
|
-
}
|
|
337
|
+
provider = "postgres";
|
|
338
|
+
adapterName = name;
|
|
346
339
|
/**
|
|
347
340
|
* Execute a query given as SQL, interpolating the given parameters.
|
|
348
341
|
*/
|
|
@@ -476,8 +469,8 @@ const adapter = new PrismaNeon(pool)
|
|
|
476
469
|
}
|
|
477
470
|
super(pool);
|
|
478
471
|
this.options = options;
|
|
479
|
-
__publicField(this, "isRunning", true);
|
|
480
472
|
}
|
|
473
|
+
isRunning = true;
|
|
481
474
|
executeScript(_script) {
|
|
482
475
|
throw new Error("Not implemented yet");
|
|
483
476
|
}
|
|
@@ -498,9 +491,9 @@ const adapter = new PrismaNeon(pool)
|
|
|
498
491
|
}
|
|
499
492
|
};
|
|
500
493
|
var PrismaNeonHTTP = class extends NeonQueryable {
|
|
494
|
+
client;
|
|
501
495
|
constructor(client) {
|
|
502
496
|
super();
|
|
503
|
-
__publicField(this, "client");
|
|
504
497
|
this.client = client.query ?? client;
|
|
505
498
|
}
|
|
506
499
|
executeScript(_script) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prisma/adapter-neon",
|
|
3
|
-
"version": "6.6.0-dev.
|
|
3
|
+
"version": "6.6.0-dev.26",
|
|
4
4
|
"description": "Prisma's driver adapter for \"@neondatabase/serverless\"",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"sideEffects": false,
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"postgres-array": "3.0.4",
|
|
35
|
-
"@prisma/driver-adapter-utils": "6.6.0-dev.
|
|
35
|
+
"@prisma/driver-adapter-utils": "6.6.0-dev.26"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@neondatabase/serverless": "0.10.2",
|