@prisma/query-plan-executor 7.10.0-dev.16 → 7.10.0-dev.18
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 +17 -6
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -93473,7 +93473,7 @@ __export(index_exports, {
|
|
|
93473
93473
|
module.exports = __toCommonJS(index_exports);
|
|
93474
93474
|
|
|
93475
93475
|
// package.json
|
|
93476
|
-
var version = "7.10.0-dev.
|
|
93476
|
+
var version = "7.10.0-dev.18";
|
|
93477
93477
|
|
|
93478
93478
|
// ../../node_modules/.pnpm/temporal-polyfill@0.3.0/node_modules/temporal-polyfill/chunks/internal.js
|
|
93479
93479
|
function clampProp(e2, n2, t2, o2, r2) {
|
|
@@ -106526,7 +106526,7 @@ var MariaDbTransaction = class extends MariaDbQueryable {
|
|
|
106526
106526
|
this.onError(err);
|
|
106527
106527
|
} finally {
|
|
106528
106528
|
this.cleanup?.();
|
|
106529
|
-
await this.client
|
|
106529
|
+
await releaseConnection(this.client);
|
|
106530
106530
|
}
|
|
106531
106531
|
}
|
|
106532
106532
|
async rollback() {
|
|
@@ -106537,7 +106537,7 @@ var MariaDbTransaction = class extends MariaDbQueryable {
|
|
|
106537
106537
|
this.onError(err);
|
|
106538
106538
|
} finally {
|
|
106539
106539
|
this.cleanup?.();
|
|
106540
|
-
await this.client
|
|
106540
|
+
await releaseConnection(this.client);
|
|
106541
106541
|
}
|
|
106542
106542
|
}
|
|
106543
106543
|
async createSavepoint(name22) {
|
|
@@ -106579,7 +106579,7 @@ var PrismaMariaDbAdapter = class extends MariaDbQueryable {
|
|
|
106579
106579
|
};
|
|
106580
106580
|
conn.on("error", onError);
|
|
106581
106581
|
const cleanup = () => {
|
|
106582
|
-
conn.
|
|
106582
|
+
conn.off("error", onError);
|
|
106583
106583
|
};
|
|
106584
106584
|
try {
|
|
106585
106585
|
const tx = new MariaDbTransaction(conn, this.mariadbOptions, options, cleanup);
|
|
@@ -106593,8 +106593,11 @@ var PrismaMariaDbAdapter = class extends MariaDbQueryable {
|
|
|
106593
106593
|
await tx.conn.query({ sql: "BEGIN" }).catch(this.onError.bind(this));
|
|
106594
106594
|
return tx;
|
|
106595
106595
|
} catch (error44) {
|
|
106596
|
-
|
|
106597
|
-
|
|
106596
|
+
try {
|
|
106597
|
+
cleanup();
|
|
106598
|
+
} finally {
|
|
106599
|
+
await releaseConnection(conn);
|
|
106600
|
+
}
|
|
106598
106601
|
this.onError(error44);
|
|
106599
106602
|
}
|
|
106600
106603
|
}
|
|
@@ -106712,6 +106715,14 @@ function rewriteConnectionString(url2) {
|
|
|
106712
106715
|
}
|
|
106713
106716
|
return url2;
|
|
106714
106717
|
}
|
|
106718
|
+
async function releaseConnection(conn) {
|
|
106719
|
+
const poolConn = conn;
|
|
106720
|
+
if (typeof poolConn.release === "function") {
|
|
106721
|
+
await poolConn.release();
|
|
106722
|
+
} else {
|
|
106723
|
+
await conn.end();
|
|
106724
|
+
}
|
|
106725
|
+
}
|
|
106715
106726
|
|
|
106716
106727
|
// ../../node_modules/.pnpm/async-mutex@0.5.0/node_modules/async-mutex/index.mjs
|
|
106717
106728
|
var E_TIMEOUT = new Error("timeout while waiting for mutex to become available");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prisma/query-plan-executor",
|
|
3
|
-
"version": "7.10.0-dev.
|
|
3
|
+
"version": "7.10.0-dev.18",
|
|
4
4
|
"description": "This package is intended for Prisma's internal use",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -19,11 +19,11 @@
|
|
|
19
19
|
"hono": "^4.12.23",
|
|
20
20
|
"temporal-polyfill": "0.3.0",
|
|
21
21
|
"zod": "4.1.3",
|
|
22
|
-
"@prisma/adapter-
|
|
23
|
-
"@prisma/adapter-
|
|
24
|
-
"@prisma/
|
|
25
|
-
"@prisma/driver-adapter-utils": "7.10.0-dev.
|
|
26
|
-
"@prisma/
|
|
22
|
+
"@prisma/adapter-mariadb": "7.10.0-dev.18",
|
|
23
|
+
"@prisma/adapter-pg": "7.10.0-dev.18",
|
|
24
|
+
"@prisma/adapter-mssql": "7.10.0-dev.18",
|
|
25
|
+
"@prisma/driver-adapter-utils": "7.10.0-dev.18",
|
|
26
|
+
"@prisma/client-engine-runtime": "7.10.0-dev.18"
|
|
27
27
|
},
|
|
28
28
|
"files": [
|
|
29
29
|
"dist"
|