@prisma/adapter-neon 6.5.0-dev.54 → 6.5.0-dev.56
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 +8 -5
- package/dist/index.mjs +10 -5
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -5,6 +5,7 @@ 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;
|
|
8
9
|
var __export = (target, all) => {
|
|
9
10
|
for (var name2 in all)
|
|
10
11
|
__defProp(target, name2, { get: all[name2], enumerable: true });
|
|
@@ -26,6 +27,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
26
27
|
mod
|
|
27
28
|
));
|
|
28
29
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
30
|
+
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
29
31
|
|
|
30
32
|
// src/index.ts
|
|
31
33
|
var index_exports = {};
|
|
@@ -77,12 +79,13 @@ var ArrayColumnType = {
|
|
|
77
79
|
var _UnsupportedNativeDataType = class _UnsupportedNativeDataType extends Error {
|
|
78
80
|
constructor(code) {
|
|
79
81
|
super();
|
|
82
|
+
__publicField(this, "type");
|
|
80
83
|
this.type = _UnsupportedNativeDataType.typeNames[code] || "Unknown";
|
|
81
84
|
this.message = `Unsupported column type ${this.type}`;
|
|
82
85
|
}
|
|
83
86
|
};
|
|
84
87
|
// map of type codes to type names
|
|
85
|
-
_UnsupportedNativeDataType
|
|
88
|
+
__publicField(_UnsupportedNativeDataType, "typeNames", {
|
|
86
89
|
16: "bool",
|
|
87
90
|
17: "bytea",
|
|
88
91
|
18: "char",
|
|
@@ -195,7 +198,7 @@ _UnsupportedNativeDataType.typeNames = {
|
|
|
195
198
|
5078: "anycompatiblearray",
|
|
196
199
|
5079: "anycompatiblenonarray",
|
|
197
200
|
5080: "anycompatiblerange"
|
|
198
|
-
};
|
|
201
|
+
});
|
|
199
202
|
var UnsupportedNativeDataType = _UnsupportedNativeDataType;
|
|
200
203
|
function fieldToColumnType(fieldTypeId) {
|
|
201
204
|
switch (fieldTypeId) {
|
|
@@ -372,8 +375,8 @@ function fixArrayBufferValues(values) {
|
|
|
372
375
|
var debug = (0, import_driver_adapter_utils2.Debug)("prisma:driver-adapter:neon");
|
|
373
376
|
var NeonQueryable = class {
|
|
374
377
|
constructor() {
|
|
375
|
-
this
|
|
376
|
-
this
|
|
378
|
+
__publicField(this, "provider", "postgres");
|
|
379
|
+
__publicField(this, "adapterName", name);
|
|
377
380
|
}
|
|
378
381
|
/**
|
|
379
382
|
* Execute a query given as SQL, interpolating the given parameters.
|
|
@@ -508,7 +511,7 @@ const adapter = new PrismaNeon(pool)
|
|
|
508
511
|
}
|
|
509
512
|
super(pool);
|
|
510
513
|
this.options = options;
|
|
511
|
-
this
|
|
514
|
+
__publicField(this, "isRunning", true);
|
|
512
515
|
}
|
|
513
516
|
executeScript(_script) {
|
|
514
517
|
throw new Error("Not implemented yet");
|
package/dist/index.mjs
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
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
|
+
|
|
1
5
|
// src/neon.ts
|
|
2
6
|
import * as neon from "@neondatabase/serverless";
|
|
3
7
|
import { Debug, DriverAdapterError } from "@prisma/driver-adapter-utils";
|
|
@@ -40,12 +44,13 @@ var ArrayColumnType = {
|
|
|
40
44
|
var _UnsupportedNativeDataType = class _UnsupportedNativeDataType extends Error {
|
|
41
45
|
constructor(code) {
|
|
42
46
|
super();
|
|
47
|
+
__publicField(this, "type");
|
|
43
48
|
this.type = _UnsupportedNativeDataType.typeNames[code] || "Unknown";
|
|
44
49
|
this.message = `Unsupported column type ${this.type}`;
|
|
45
50
|
}
|
|
46
51
|
};
|
|
47
52
|
// map of type codes to type names
|
|
48
|
-
_UnsupportedNativeDataType
|
|
53
|
+
__publicField(_UnsupportedNativeDataType, "typeNames", {
|
|
49
54
|
16: "bool",
|
|
50
55
|
17: "bytea",
|
|
51
56
|
18: "char",
|
|
@@ -158,7 +163,7 @@ _UnsupportedNativeDataType.typeNames = {
|
|
|
158
163
|
5078: "anycompatiblearray",
|
|
159
164
|
5079: "anycompatiblenonarray",
|
|
160
165
|
5080: "anycompatiblerange"
|
|
161
|
-
};
|
|
166
|
+
});
|
|
162
167
|
var UnsupportedNativeDataType = _UnsupportedNativeDataType;
|
|
163
168
|
function fieldToColumnType(fieldTypeId) {
|
|
164
169
|
switch (fieldTypeId) {
|
|
@@ -335,8 +340,8 @@ function fixArrayBufferValues(values) {
|
|
|
335
340
|
var debug = Debug("prisma:driver-adapter:neon");
|
|
336
341
|
var NeonQueryable = class {
|
|
337
342
|
constructor() {
|
|
338
|
-
this
|
|
339
|
-
this
|
|
343
|
+
__publicField(this, "provider", "postgres");
|
|
344
|
+
__publicField(this, "adapterName", name);
|
|
340
345
|
}
|
|
341
346
|
/**
|
|
342
347
|
* Execute a query given as SQL, interpolating the given parameters.
|
|
@@ -471,7 +476,7 @@ const adapter = new PrismaNeon(pool)
|
|
|
471
476
|
}
|
|
472
477
|
super(pool);
|
|
473
478
|
this.options = options;
|
|
474
|
-
this
|
|
479
|
+
__publicField(this, "isRunning", true);
|
|
475
480
|
}
|
|
476
481
|
executeScript(_script) {
|
|
477
482
|
throw new Error("Not implemented yet");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prisma/adapter-neon",
|
|
3
|
-
"version": "6.5.0-dev.
|
|
3
|
+
"version": "6.5.0-dev.56",
|
|
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.2",
|
|
35
|
-
"@prisma/driver-adapter-utils": "6.5.0-dev.
|
|
35
|
+
"@prisma/driver-adapter-utils": "6.5.0-dev.56"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@neondatabase/serverless": "0.10.2",
|