@prisma/orm-family-sql 8.0.0-rc.18-dev.34 → 8.0.0-rc.18-dev.36

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.
@@ -18,7 +18,7 @@ import { AsyncIterableResult, RuntimeCore, applyMutationDefaults, assertMutation
18
18
  import { invariant } from "@prisma/orm-framework/utils/assertions";
19
19
  import { createExecutionStack } from "@prisma/orm-framework/components/execution";
20
20
  import { hashContent } from "@prisma/orm-framework/utils/hash-content";
21
- //#region ../../../2-sql/5-runtime/dist/exports-DVsHk8HP.mjs
21
+ //#region ../../../2-sql/5-runtime/dist/exports-fEqieYlP.mjs
22
22
  /** The symbol-keyed member through which a runtime, connection, transaction, `withTransaction` context or activity handle starts activities; user-facing types do not show it. */
23
23
  const activitySource = Symbol("activitySource");
24
24
  function hasActivitySourceMember(target) {
@@ -2248,6 +2248,12 @@ var RowsBeneath = class {
2248
2248
  function transactionClosedError() {
2249
2249
  return runtimeError$1("RUNTIME.TRANSACTION_CLOSED", "Cannot use a transaction operation after the transaction has ended. Consume query results and await execute calls inside the transaction callback.", {});
2250
2250
  }
2251
+ /**
2252
+ * Adds a client's members to the context `withTransaction` passes. The context is the prototype, not spread, so live accessors such as `invalidated` keep reading the transaction's state; spreading would copy their value once.
2253
+ */
2254
+ function withTransactionMembers(txCtx, members) {
2255
+ return Object.assign(castAs(Object.create(txCtx)), members);
2256
+ }
2251
2257
  async function withTransaction(runtime, fn) {
2252
2258
  const connection = await runtime.connection();
2253
2259
  let transaction;
@@ -2366,6 +2372,6 @@ async function withTransaction(runtime, fn) {
2366
2372
  }
2367
2373
  }
2368
2374
  //#endregion
2369
- export { startActivityOn as _, budgets as a, withTransaction as b, createSqlExecutionStack as c, encodeParamsWithMetadata as d, extractCodecIds as f, planContentHashOn as g, lowerSqlPlan as h, activitySource as i, delegatingActivitySource as l, lints as m, PreparedStatementImpl as n, createAstCodecRegistry as o, findActivitySource as p, SqlRuntimeBase as r, createExecutionContext as s, PreparedExecutionImpl as t, deriveParamMetadata as u, validateCodecRegistryCompleteness as v, validateContractCodecMappings as y };
2375
+ export { startActivityOn as _, budgets as a, withTransaction as b, createSqlExecutionStack as c, encodeParamsWithMetadata as d, extractCodecIds as f, planContentHashOn as g, lowerSqlPlan as h, activitySource as i, delegatingActivitySource as l, lints as m, PreparedStatementImpl as n, createAstCodecRegistry as o, findActivitySource as p, SqlRuntimeBase as r, createExecutionContext as s, PreparedExecutionImpl as t, deriveParamMetadata as u, validateCodecRegistryCompleteness as v, withTransactionMembers as x, validateContractCodecMappings as y };
2370
2376
 
2371
- //# sourceMappingURL=exports-DVsHk8HP-M-qeQrkz.mjs.map
2377
+ //# sourceMappingURL=exports-fEqieYlP-BuvGzB4B.mjs.map