@prisma/adapter-mariadb 6.15.0-dev.4 → 6.15.0-dev.5
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.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +4 -0
- package/dist/index.mjs +4 -0
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -389,6 +389,10 @@ var PrismaMariaDbAdapter = class extends MariaDbQueryable {
|
|
|
389
389
|
const tag = "[js::startTransaction]";
|
|
390
390
|
debug("%s options: %O", tag, options);
|
|
391
391
|
const conn = await this.client.getConnection().catch((error) => onError(error));
|
|
392
|
+
conn.on("error", (err) => {
|
|
393
|
+
debug(`Error from connection: ${err.message} %O`, err);
|
|
394
|
+
this.options?.onConnectionError?.(err);
|
|
395
|
+
});
|
|
392
396
|
try {
|
|
393
397
|
const tx = new MariaDbTransaction(conn, options);
|
|
394
398
|
if (isolationLevel) {
|
package/dist/index.mjs
CHANGED
|
@@ -353,6 +353,10 @@ var PrismaMariaDbAdapter = class extends MariaDbQueryable {
|
|
|
353
353
|
const tag = "[js::startTransaction]";
|
|
354
354
|
debug("%s options: %O", tag, options);
|
|
355
355
|
const conn = await this.client.getConnection().catch((error) => onError(error));
|
|
356
|
+
conn.on("error", (err) => {
|
|
357
|
+
debug(`Error from connection: ${err.message} %O`, err);
|
|
358
|
+
this.options?.onConnectionError?.(err);
|
|
359
|
+
});
|
|
356
360
|
try {
|
|
357
361
|
const tx = new MariaDbTransaction(conn, options);
|
|
358
362
|
if (isolationLevel) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prisma/adapter-mariadb",
|
|
3
|
-
"version": "6.15.0-dev.
|
|
3
|
+
"version": "6.15.0-dev.5",
|
|
4
4
|
"description": "Prisma's driver adapter for \"mariadb\"",
|
|
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
|
"mariadb": "3.4.2",
|
|
35
|
-
"@prisma/driver-adapter-utils": "6.15.0-dev.
|
|
35
|
+
"@prisma/driver-adapter-utils": "6.15.0-dev.5"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"vitest": "3.0.9"
|