@prisma/query-plan-executor 7.5.0-dev.40 → 7.5.0-dev.41

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.
Files changed (2) hide show
  1. package/dist/index.js +24 -11
  2. package/package.json +6 -6
package/dist/index.js CHANGED
@@ -101325,7 +101325,7 @@ __export(index_exports, {
101325
101325
  module.exports = __toCommonJS(index_exports);
101326
101326
 
101327
101327
  // package.json
101328
- var version = "7.5.0-dev.40";
101328
+ var version = "7.5.0-dev.41";
101329
101329
 
101330
101330
  // ../../node_modules/.pnpm/temporal-polyfill@0.3.0/node_modules/temporal-polyfill/chunks/internal.js
101331
101331
  function clampProp(e2, n2, t2, o2, r2) {
@@ -114308,7 +114308,7 @@ var MariaDbQueryable = class {
114308
114308
  typeCast
114309
114309
  };
114310
114310
  const values = args.map((arg, i2) => mapArg(arg, query2.argTypes[i2]));
114311
- return await this.client.query(req, values);
114311
+ return await this.client.execute(req, values);
114312
114312
  } catch (e2) {
114313
114313
  const error44 = e2;
114314
114314
  this.onError(error44);
@@ -114322,27 +114322,40 @@ var MariaDbQueryable = class {
114322
114322
  var MariaDbTransaction = class extends MariaDbQueryable {
114323
114323
  constructor(conn, options, cleanup) {
114324
114324
  super(conn);
114325
+ this.conn = conn;
114325
114326
  this.options = options;
114326
114327
  this.cleanup = cleanup;
114327
114328
  }
114328
114329
  async commit() {
114329
114330
  debug4(`[js::commit]`);
114330
- this.cleanup?.();
114331
- await this.client.end();
114331
+ try {
114332
+ await this.client.query({ sql: "COMMIT" });
114333
+ } catch (err) {
114334
+ this.onError(err);
114335
+ } finally {
114336
+ this.cleanup?.();
114337
+ await this.client.end();
114338
+ }
114332
114339
  }
114333
114340
  async rollback() {
114334
114341
  debug4(`[js::rollback]`);
114335
- this.cleanup?.();
114336
- await this.client.end();
114342
+ try {
114343
+ await this.client.query({ sql: "ROLLBACK" });
114344
+ } catch (err) {
114345
+ this.onError(err);
114346
+ } finally {
114347
+ this.cleanup?.();
114348
+ await this.client.end();
114349
+ }
114337
114350
  }
114338
114351
  async createSavepoint(name22) {
114339
- await this.executeRaw({ sql: `SAVEPOINT ${name22}`, args: [], argTypes: [] });
114352
+ await this.client.query({ sql: `SAVEPOINT ${name22}` }).catch(this.onError.bind(this));
114340
114353
  }
114341
114354
  async rollbackToSavepoint(name22) {
114342
- await this.executeRaw({ sql: `ROLLBACK TO ${name22}`, args: [], argTypes: [] });
114355
+ await this.client.query({ sql: `ROLLBACK TO ${name22}` }).catch(this.onError.bind(this));
114343
114356
  }
114344
114357
  async releaseSavepoint(name22) {
114345
- await this.executeRaw({ sql: `RELEASE SAVEPOINT ${name22}`, args: [], argTypes: [] });
114358
+ await this.client.query({ sql: `RELEASE SAVEPOINT ${name22}` }).catch(this.onError.bind(this));
114346
114359
  }
114347
114360
  };
114348
114361
  var PrismaMariaDbAdapter = class extends MariaDbQueryable {
@@ -114362,7 +114375,7 @@ var PrismaMariaDbAdapter = class extends MariaDbQueryable {
114362
114375
  }
114363
114376
  async startTransaction(isolationLevel) {
114364
114377
  const options = {
114365
- usePhantomQuery: false
114378
+ usePhantomQuery: true
114366
114379
  };
114367
114380
  const tag2 = "[js::startTransaction]";
114368
114381
  debug4("%s options: %O", tag2, options);
@@ -114384,7 +114397,7 @@ var PrismaMariaDbAdapter = class extends MariaDbQueryable {
114384
114397
  argTypes: []
114385
114398
  });
114386
114399
  }
114387
- await tx.executeRaw({ sql: "BEGIN", args: [], argTypes: [] });
114400
+ await tx.conn.query({ sql: "BEGIN" }).catch(this.onError.bind(this));
114388
114401
  return tx;
114389
114402
  } catch (error44) {
114390
114403
  await conn.end();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prisma/query-plan-executor",
3
- "version": "7.5.0-dev.40",
3
+ "version": "7.5.0-dev.41",
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.11.7",
20
20
  "temporal-polyfill": "0.3.0",
21
21
  "zod": "4.1.3",
22
- "@prisma/adapter-mssql": "7.5.0-dev.40",
23
- "@prisma/adapter-mariadb": "7.5.0-dev.40",
24
- "@prisma/driver-adapter-utils": "7.5.0-dev.40",
25
- "@prisma/adapter-pg": "7.5.0-dev.40",
26
- "@prisma/client-engine-runtime": "7.5.0-dev.40"
22
+ "@prisma/adapter-pg": "7.5.0-dev.41",
23
+ "@prisma/adapter-mariadb": "7.5.0-dev.41",
24
+ "@prisma/client-engine-runtime": "7.5.0-dev.41",
25
+ "@prisma/adapter-mssql": "7.5.0-dev.41",
26
+ "@prisma/driver-adapter-utils": "7.5.0-dev.41"
27
27
  },
28
28
  "files": [
29
29
  "dist"