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

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 +26 -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.43";
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) {
@@ -106737,7 +106737,9 @@ var PrismaClientValidationError = class extends Error {
106737
106737
  };
106738
106738
  setClassName(PrismaClientValidationError, "PrismaClientValidationError");
106739
106739
  var secret = Symbol();
106740
+ var PRISMA_OBJECT_ENUM_VALUE = Symbol.for("prisma.objectEnumValue");
106740
106741
  var ObjectEnumValue = class {
106742
+ [PRISMA_OBJECT_ENUM_VALUE] = true;
106741
106743
  #representation;
106742
106744
  constructor(arg) {
106743
106745
  if (arg === secret) {
@@ -114308,7 +114310,7 @@ var MariaDbQueryable = class {
114308
114310
  typeCast
114309
114311
  };
114310
114312
  const values = args.map((arg, i2) => mapArg(arg, query2.argTypes[i2]));
114311
- return await this.client.query(req, values);
114313
+ return await this.client.execute(req, values);
114312
114314
  } catch (e2) {
114313
114315
  const error44 = e2;
114314
114316
  this.onError(error44);
@@ -114322,27 +114324,40 @@ var MariaDbQueryable = class {
114322
114324
  var MariaDbTransaction = class extends MariaDbQueryable {
114323
114325
  constructor(conn, options, cleanup) {
114324
114326
  super(conn);
114327
+ this.conn = conn;
114325
114328
  this.options = options;
114326
114329
  this.cleanup = cleanup;
114327
114330
  }
114328
114331
  async commit() {
114329
114332
  debug4(`[js::commit]`);
114330
- this.cleanup?.();
114331
- await this.client.end();
114333
+ try {
114334
+ await this.client.query({ sql: "COMMIT" });
114335
+ } catch (err) {
114336
+ this.onError(err);
114337
+ } finally {
114338
+ this.cleanup?.();
114339
+ await this.client.end();
114340
+ }
114332
114341
  }
114333
114342
  async rollback() {
114334
114343
  debug4(`[js::rollback]`);
114335
- this.cleanup?.();
114336
- await this.client.end();
114344
+ try {
114345
+ await this.client.query({ sql: "ROLLBACK" });
114346
+ } catch (err) {
114347
+ this.onError(err);
114348
+ } finally {
114349
+ this.cleanup?.();
114350
+ await this.client.end();
114351
+ }
114337
114352
  }
114338
114353
  async createSavepoint(name22) {
114339
- await this.executeRaw({ sql: `SAVEPOINT ${name22}`, args: [], argTypes: [] });
114354
+ await this.client.query({ sql: `SAVEPOINT ${name22}` }).catch(this.onError.bind(this));
114340
114355
  }
114341
114356
  async rollbackToSavepoint(name22) {
114342
- await this.executeRaw({ sql: `ROLLBACK TO ${name22}`, args: [], argTypes: [] });
114357
+ await this.client.query({ sql: `ROLLBACK TO ${name22}` }).catch(this.onError.bind(this));
114343
114358
  }
114344
114359
  async releaseSavepoint(name22) {
114345
- await this.executeRaw({ sql: `RELEASE SAVEPOINT ${name22}`, args: [], argTypes: [] });
114360
+ await this.client.query({ sql: `RELEASE SAVEPOINT ${name22}` }).catch(this.onError.bind(this));
114346
114361
  }
114347
114362
  };
114348
114363
  var PrismaMariaDbAdapter = class extends MariaDbQueryable {
@@ -114362,7 +114377,7 @@ var PrismaMariaDbAdapter = class extends MariaDbQueryable {
114362
114377
  }
114363
114378
  async startTransaction(isolationLevel) {
114364
114379
  const options = {
114365
- usePhantomQuery: false
114380
+ usePhantomQuery: true
114366
114381
  };
114367
114382
  const tag2 = "[js::startTransaction]";
114368
114383
  debug4("%s options: %O", tag2, options);
@@ -114384,7 +114399,7 @@ var PrismaMariaDbAdapter = class extends MariaDbQueryable {
114384
114399
  argTypes: []
114385
114400
  });
114386
114401
  }
114387
- await tx.executeRaw({ sql: "BEGIN", args: [], argTypes: [] });
114402
+ await tx.conn.query({ sql: "BEGIN" }).catch(this.onError.bind(this));
114388
114403
  return tx;
114389
114404
  } catch (error44) {
114390
114405
  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.43",
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.43",
23
+ "@prisma/adapter-mariadb": "7.5.0-dev.43",
24
+ "@prisma/adapter-mssql": "7.5.0-dev.43",
25
+ "@prisma/client-engine-runtime": "7.5.0-dev.43",
26
+ "@prisma/driver-adapter-utils": "7.5.0-dev.43"
27
27
  },
28
28
  "files": [
29
29
  "dist"