@prisma/adapter-neon 7.5.0-dev.3 → 7.5.0-dev.30
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 +9 -0
- package/dist/index.mjs +9 -0
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -604,6 +604,15 @@ var NeonTransaction = class extends NeonWsQueryable {
|
|
|
604
604
|
this.cleanup?.();
|
|
605
605
|
this.client.release();
|
|
606
606
|
}
|
|
607
|
+
async createSavepoint(name2) {
|
|
608
|
+
await this.executeRaw({ sql: `SAVEPOINT ${name2}`, args: [], argTypes: [] });
|
|
609
|
+
}
|
|
610
|
+
async rollbackToSavepoint(name2) {
|
|
611
|
+
await this.executeRaw({ sql: `ROLLBACK TO SAVEPOINT ${name2}`, args: [], argTypes: [] });
|
|
612
|
+
}
|
|
613
|
+
async releaseSavepoint(name2) {
|
|
614
|
+
await this.executeRaw({ sql: `RELEASE SAVEPOINT ${name2}`, args: [], argTypes: [] });
|
|
615
|
+
}
|
|
607
616
|
};
|
|
608
617
|
var PrismaNeonAdapter = class extends NeonWsQueryable {
|
|
609
618
|
constructor(pool, options) {
|
package/dist/index.mjs
CHANGED
|
@@ -567,6 +567,15 @@ var NeonTransaction = class extends NeonWsQueryable {
|
|
|
567
567
|
this.cleanup?.();
|
|
568
568
|
this.client.release();
|
|
569
569
|
}
|
|
570
|
+
async createSavepoint(name2) {
|
|
571
|
+
await this.executeRaw({ sql: `SAVEPOINT ${name2}`, args: [], argTypes: [] });
|
|
572
|
+
}
|
|
573
|
+
async rollbackToSavepoint(name2) {
|
|
574
|
+
await this.executeRaw({ sql: `ROLLBACK TO SAVEPOINT ${name2}`, args: [], argTypes: [] });
|
|
575
|
+
}
|
|
576
|
+
async releaseSavepoint(name2) {
|
|
577
|
+
await this.executeRaw({ sql: `RELEASE SAVEPOINT ${name2}`, args: [], argTypes: [] });
|
|
578
|
+
}
|
|
570
579
|
};
|
|
571
580
|
var PrismaNeonAdapter = class extends NeonWsQueryable {
|
|
572
581
|
constructor(pool, options) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prisma/adapter-neon",
|
|
3
|
-
"version": "7.5.0-dev.
|
|
3
|
+
"version": "7.5.0-dev.30",
|
|
4
4
|
"description": "Prisma's driver adapter for \"@neondatabase/serverless\"",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -33,10 +33,10 @@
|
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"postgres-array": "3.0.4",
|
|
35
35
|
"@neondatabase/serverless": ">0.6.0 <2",
|
|
36
|
-
"@prisma/driver-adapter-utils": "7.5.0-dev.
|
|
36
|
+
"@prisma/driver-adapter-utils": "7.5.0-dev.30"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@prisma/debug": "7.5.0-dev.
|
|
39
|
+
"@prisma/debug": "7.5.0-dev.30"
|
|
40
40
|
},
|
|
41
41
|
"scripts": {
|
|
42
42
|
"dev": "DEV=true tsx helpers/build.ts",
|