@prisma/query-plan-executor 7.2.0-integration-fix-enums-mapped-types-v7.2 → 7.2.0-integration-engines-7-2-0-3-aqrln-zpupkzknszlw-04d61c41ec1a025cabe14093fa3121a5f45040ab.1

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 +30 -40
  2. package/package.json +6 -6
package/dist/index.js CHANGED
@@ -97773,7 +97773,7 @@ __export(index_exports, {
97773
97773
  module.exports = __toCommonJS(index_exports);
97774
97774
 
97775
97775
  // package.json
97776
- var version = "7.2.0-integration-fix-enums-mapped-types-v7.2";
97776
+ var version = "7.2.0-integration-engines-7-2-0-3-aqrln-zpupkzknszlw-04d61c41ec1a025cabe14093fa3121a5f45040ab.1";
97777
97777
 
97778
97778
  // ../../node_modules/.pnpm/temporal-polyfill@0.3.0/node_modules/temporal-polyfill/chunks/internal.js
97779
97779
  function clampProp(e2, n2, t2, o2, r2) {
@@ -109472,7 +109472,7 @@ var SpanProxy = class {
109472
109472
  parentId,
109473
109473
  attributes,
109474
109474
  links,
109475
- name: `prisma:engine:${this.#name}`,
109475
+ name: `prisma:accelerate:${this.#name}`,
109476
109476
  kind: serializeSpanKind(this.#kind),
109477
109477
  startTime: this.#startTime,
109478
109478
  endTime: instantToHrTime(endTime)
@@ -111897,59 +111897,49 @@ var App = class _App {
111897
111897
  * @param transactionId - Transaction ID if running within a transaction
111898
111898
  */
111899
111899
  async query(queryPlan, placeholderValues, comments, resourceLimits, transactionId) {
111900
- return await this.#tracingHandler.runInChildSpan("query", async () => {
111901
- const queryable = transactionId !== null ? await this.#transactionManager.getTransaction({ id: transactionId }, "query") : this.#db;
111902
- const sqlCommenter = comments && Object.keys(comments).length > 0 ? {
111903
- plugins: [() => comments],
111904
- // For pre-computed comments, we use a placeholder queryInfo since the actual
111905
- // query info was already used on the client side to compute the comments
111906
- queryInfo: { type: "single", action: "queryRaw", query: {} }
111907
- } : void 0;
111908
- const queryInterpreter = QueryInterpreter.forSql({
111909
- placeholderValues,
111910
- tracingHelper: this.#tracingHandler,
111911
- transactionManager: transactionId === null ? { enabled: true, manager: this.#transactionManager } : { enabled: false },
111912
- onQuery: logQuery,
111913
- sqlCommenter
111914
- });
111915
- const result = await Promise.race([
111916
- queryInterpreter.run(queryPlan, queryable),
111917
- import_promises3.default.setTimeout(resourceLimits.queryTimeout.total("milliseconds"), void 0, { ref: false }).then(() => {
111918
- throw new ResourceLimitError("Query timeout exceeded");
111919
- })
111920
- ]);
111921
- return normalizeJsonProtocolValues(result);
111900
+ const queryable = transactionId !== null ? await this.#transactionManager.getTransaction({ id: transactionId }, "query") : this.#db;
111901
+ const sqlCommenter = comments && Object.keys(comments).length > 0 ? {
111902
+ plugins: [() => comments],
111903
+ // For pre-computed comments, we use a placeholder queryInfo since the actual
111904
+ // query info was already used on the client side to compute the comments
111905
+ queryInfo: { type: "single", action: "queryRaw", query: {} }
111906
+ } : void 0;
111907
+ const queryInterpreter = QueryInterpreter.forSql({
111908
+ placeholderValues,
111909
+ tracingHelper: this.#tracingHandler,
111910
+ transactionManager: transactionId === null ? { enabled: true, manager: this.#transactionManager } : { enabled: false },
111911
+ onQuery: logQuery,
111912
+ sqlCommenter
111922
111913
  });
111914
+ const result = await Promise.race([
111915
+ queryInterpreter.run(queryPlan, queryable),
111916
+ import_promises3.default.setTimeout(resourceLimits.queryTimeout.total("milliseconds"), void 0, { ref: false }).then(() => {
111917
+ throw new ResourceLimitError("Query timeout exceeded");
111918
+ })
111919
+ ]);
111920
+ return normalizeJsonProtocolValues(result);
111923
111921
  }
111924
111922
  /**
111925
111923
  * Starts a new transaction.
111926
111924
  */
111927
111925
  async startTransaction(options, resourceLimits) {
111928
- return await this.#tracingHandler.runInChildSpan("start_transaction", () => {
111929
- const timeout = Math.min(options.timeout ?? Infinity, resourceLimits.maxTransactionTimeout.total("milliseconds"));
111930
- return this.#transactionManager.startTransaction({
111931
- ...options,
111932
- timeout
111933
- });
111926
+ const timeout = Math.min(options.timeout ?? Infinity, resourceLimits.maxTransactionTimeout.total("milliseconds"));
111927
+ return this.#transactionManager.startTransaction({
111928
+ ...options,
111929
+ timeout
111934
111930
  });
111935
111931
  }
111936
111932
  /**
111937
111933
  * Commits a transaction.
111938
111934
  */
111939
- async commitTransaction(transactionId) {
111940
- return await this.#tracingHandler.runInChildSpan(
111941
- "commit_transaction",
111942
- () => this.#transactionManager.commitTransaction(transactionId)
111943
- );
111935
+ commitTransaction(transactionId) {
111936
+ return this.#transactionManager.commitTransaction(transactionId);
111944
111937
  }
111945
111938
  /**
111946
111939
  * Rolls back a transaction.
111947
111940
  */
111948
- async rollbackTransaction(transactionId) {
111949
- return await this.#tracingHandler.runInChildSpan(
111950
- "rollback_transaction",
111951
- () => this.#transactionManager.rollbackTransaction(transactionId)
111952
- );
111941
+ rollbackTransaction(transactionId) {
111942
+ return this.#transactionManager.rollbackTransaction(transactionId);
111953
111943
  }
111954
111944
  /**
111955
111945
  * Retrieves connection information necessary for building the queries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prisma/query-plan-executor",
3
- "version": "7.2.0-integration-fix-enums-mapped-types-v7.2",
3
+ "version": "7.2.0-integration-engines-7-2-0-3-aqrln-zpupkzknszlw-04d61c41ec1a025cabe14093fa3121a5f45040ab.1",
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",
@@ -20,11 +20,11 @@
20
20
  "temporal-polyfill": "0.3.0",
21
21
  "vitest": "3.2.4",
22
22
  "zod": "4.1.3",
23
- "@prisma/adapter-pg": "7.2.0-integration-fix-enums-mapped-types-v7.2",
24
- "@prisma/adapter-mssql": "7.2.0-integration-fix-enums-mapped-types-v7.2",
25
- "@prisma/client-engine-runtime": "7.2.0-integration-fix-enums-mapped-types-v7.2",
26
- "@prisma/adapter-mariadb": "7.2.0-integration-fix-enums-mapped-types-v7.2",
27
- "@prisma/driver-adapter-utils": "7.2.0-integration-fix-enums-mapped-types-v7.2"
23
+ "@prisma/adapter-pg": "7.2.0-integration-engines-7-2-0-3-aqrln-zpupkzknszlw-04d61c41ec1a025cabe14093fa3121a5f45040ab.1",
24
+ "@prisma/adapter-mssql": "7.2.0-integration-engines-7-2-0-3-aqrln-zpupkzknszlw-04d61c41ec1a025cabe14093fa3121a5f45040ab.1",
25
+ "@prisma/driver-adapter-utils": "7.2.0-integration-engines-7-2-0-3-aqrln-zpupkzknszlw-04d61c41ec1a025cabe14093fa3121a5f45040ab.1",
26
+ "@prisma/client-engine-runtime": "7.2.0-integration-engines-7-2-0-3-aqrln-zpupkzknszlw-04d61c41ec1a025cabe14093fa3121a5f45040ab.1",
27
+ "@prisma/adapter-mariadb": "7.2.0-integration-engines-7-2-0-3-aqrln-zpupkzknszlw-04d61c41ec1a025cabe14093fa3121a5f45040ab.1"
28
28
  },
29
29
  "files": [
30
30
  "dist"