@prisma/orm-family-sql 8.0.0-rc.9-dev.1 → 8.0.0-rc.9-dev.3

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 (155) hide show
  1. package/dist/{ast-PAXgfA8z.d.mts → ast-DuLukI6f.d.mts} +3 -3
  2. package/dist/{ast-PAXgfA8z.d.mts.map → ast-DuLukI6f.d.mts.map} +1 -1
  3. package/dist/{authoring-type-constructors-BD-XuavC-CB5uCmck.mjs → authoring-type-constructors-BD-XuavC-Dh-K7Ocl.mjs} +2 -2
  4. package/dist/{authoring-type-constructors-BD-XuavC-CB5uCmck.mjs.map → authoring-type-constructors-BD-XuavC-Dh-K7Ocl.mjs.map} +1 -1
  5. package/dist/builder.d.mts +2 -2
  6. package/dist/builder__runtime.d.mts +8 -8
  7. package/dist/builder__runtime.mjs +2 -2
  8. package/dist/builder__types.d.mts +2 -2
  9. package/dist/{codec-descriptor-registry-N0dhtKaH.mjs → codec-descriptor-registry-ECZ4ohtG.mjs} +2 -2
  10. package/dist/{codec-descriptor-registry-N0dhtKaH.mjs.map → codec-descriptor-registry-ECZ4ohtG.mjs.map} +1 -1
  11. package/dist/{config-types-DHDQ3dST.mjs → config-types-AbijI3Ys.mjs} +2 -2
  12. package/dist/{config-types-DHDQ3dST.mjs.map → config-types-AbijI3Ys.mjs.map} +1 -1
  13. package/dist/{config-types-D9fdKG3g.d.mts → config-types-Bd3ud-mX.d.mts} +3 -3
  14. package/dist/{config-types-D9fdKG3g.d.mts.map → config-types-Bd3ud-mX.d.mts.map} +1 -1
  15. package/dist/{contract-builder-CZSaZ6Vi.mjs → contract-builder-DYDnIGyM.mjs} +24 -5
  16. package/dist/contract-builder-DYDnIGyM.mjs.map +1 -0
  17. package/dist/{contract-builder-CG_tGDbB.d.mts → contract-builder-De_sioHE.d.mts} +15 -3
  18. package/dist/contract-builder-De_sioHE.d.mts.map +1 -0
  19. package/dist/contract-emitter.mjs +1 -1
  20. package/dist/contract-psl.d.mts +1 -1
  21. package/dist/contract-psl.mjs +1 -1
  22. package/dist/contract-psl__provider.d.mts +1 -1
  23. package/dist/contract-psl__provider.mjs +3 -3
  24. package/dist/contract-psl__provider.mjs.map +1 -1
  25. package/dist/contract-ts.d.mts +3 -3
  26. package/dist/contract-ts.mjs +3 -3
  27. package/dist/contract-ts__config-types.d.mts +1 -1
  28. package/dist/contract-ts__config-types.mjs +1 -1
  29. package/dist/contract-ts__contract-builder.d.mts +2 -2
  30. package/dist/contract-ts__contract-builder.mjs +2 -2
  31. package/dist/contract.d.mts +3 -3
  32. package/dist/contract.mjs +3 -3
  33. package/dist/contract__types.d.mts +2 -2
  34. package/dist/contract__types.mjs +2 -2
  35. package/dist/contract__validators.d.mts +2 -2
  36. package/dist/contract__validators.mjs +2 -2
  37. package/dist/{control-DJi35XO2.mjs → control-CMYPT7Ek.mjs} +6 -6
  38. package/dist/{control-DJi35XO2.mjs.map → control-CMYPT7Ek.mjs.map} +1 -1
  39. package/dist/{control-adapter-C99J7aEF-gFfCQmwC.d.mts → control-adapter-C99J7aEF-GODO43Ai.d.mts} +5 -5
  40. package/dist/{control-adapter-C99J7aEF-gFfCQmwC.d.mts.map → control-adapter-C99J7aEF-GODO43Ai.d.mts.map} +1 -1
  41. package/dist/control-adapter-DzTFiMaG.d.mts +1 -0
  42. package/dist/{control-_b_fvUSh.d.mts → control-b-6t8eI_.d.mts} +9 -9
  43. package/dist/{control-_b_fvUSh.d.mts.map → control-b-6t8eI_.d.mts.map} +1 -1
  44. package/dist/{db-BhQdL6Za-DuaPJ5bQ.d.mts → db-BhQdL6Za-DubRGJvv.d.mts} +7 -7
  45. package/dist/{db-BhQdL6Za-DuaPJ5bQ.d.mts.map → db-BhQdL6Za-DubRGJvv.d.mts.map} +1 -1
  46. package/dist/{ddl-types-CXx4vPz6-BsgrnSUY.d.mts → ddl-types-CXx4vPz6-Dko-GTTj.d.mts} +3 -3
  47. package/dist/{ddl-types-CXx4vPz6-BsgrnSUY.d.mts.map → ddl-types-CXx4vPz6-Dko-GTTj.d.mts.map} +1 -1
  48. package/dist/{derived-checks-DPdD01O0-DGqOFjs6.d.mts → derived-checks-DPdD01O0-DNBs1ZDA.d.mts} +2 -2
  49. package/dist/{derived-checks-DPdD01O0-DGqOFjs6.d.mts.map → derived-checks-DPdD01O0-DNBs1ZDA.d.mts.map} +1 -1
  50. package/dist/{derived-checks-BzL102Q0-0nIMlEux.mjs → derived-checks-D_-1X7be-lGe8VdId.mjs} +37 -7
  51. package/dist/derived-checks-D_-1X7be-lGe8VdId.mjs.map +1 -0
  52. package/dist/{diff-ClD1mImE.d.mts → diff-CN1ou7vM.d.mts} +5 -5
  53. package/dist/{diff-ClD1mImE.d.mts.map → diff-CN1ou7vM.d.mts.map} +1 -1
  54. package/dist/{dist-ZK6oeI5e.mjs → dist-D5__KJs-.mjs} +2 -1
  55. package/dist/dist-D5__KJs-.mjs.map +1 -0
  56. package/dist/{expression-DmQbErXU.mjs → expression-B2Ox7zKM.mjs} +2 -2
  57. package/dist/{expression-DmQbErXU.mjs.map → expression-B2Ox7zKM.mjs.map} +1 -1
  58. package/dist/{expression-PL-Tra28.d.mts → expression-mku9I7Ue.d.mts} +5 -5
  59. package/dist/{expression-PL-Tra28.d.mts.map → expression-mku9I7Ue.d.mts.map} +1 -1
  60. package/dist/family.d.mts +9 -9
  61. package/dist/family.mjs +3 -3
  62. package/dist/family__control-adapter.d.mts +2 -2
  63. package/dist/family__control.d.mts +3 -3
  64. package/dist/family__control.mjs +2 -2
  65. package/dist/family__diff.d.mts +2 -2
  66. package/dist/family__diff.mjs +1 -1
  67. package/dist/family__ir.d.mts +1 -1
  68. package/dist/family__ir.mjs +1 -1
  69. package/dist/family__migration.d.mts +1 -1
  70. package/dist/family__pack.mjs +1 -1
  71. package/dist/family__runtime.d.mts +1 -1
  72. package/dist/{index-C5I8D-MB.d.mts → index-CLAshwKN.d.mts} +2 -2
  73. package/dist/{index-C5I8D-MB.d.mts.map → index-CLAshwKN.d.mts.map} +1 -1
  74. package/dist/{index-CrsJm0Rv.d.mts → index-DzBzeTAy.d.mts} +10 -10
  75. package/dist/{index-CrsJm0Rv.d.mts.map → index-DzBzeTAy.d.mts.map} +1 -1
  76. package/dist/{interpreter-BPl_7Cv5-B8FaNBLQ.mjs → interpreter-_KWQDsAm-B2goMgB0.mjs} +53 -7
  77. package/dist/interpreter-_KWQDsAm-B2goMgB0.mjs.map +1 -0
  78. package/dist/ir-I-xciGUH.mjs.map +1 -1
  79. package/dist/{ir-Bghjt-FG.d.mts → ir-R9GE8gsm.d.mts} +2 -2
  80. package/dist/{ir-Bghjt-FG.d.mts.map → ir-R9GE8gsm.d.mts.map} +1 -1
  81. package/dist/{middleware-AhTz1BOW-th-Suxuf.d.mts → middleware-AhTz1BOW-CtQWS4mb.d.mts} +2 -2
  82. package/dist/{middleware-AhTz1BOW-th-Suxuf.d.mts.map → middleware-AhTz1BOW-CtQWS4mb.d.mts.map} +1 -1
  83. package/dist/middleware-Cev-ZFyS.d.mts +1 -0
  84. package/dist/{migration-Chb4Qg0T.d.mts → migration-Bhce5i_m.d.mts} +3 -3
  85. package/dist/{migration-Chb4Qg0T.d.mts.map → migration-Bhce5i_m.d.mts.map} +1 -1
  86. package/dist/operations.d.mts +1 -1
  87. package/dist/orm-client.d.mts +49 -57
  88. package/dist/orm-client.d.mts.map +1 -1
  89. package/dist/orm-client.mjs +26 -69
  90. package/dist/orm-client.mjs.map +1 -1
  91. package/dist/plan-C7VP7jOh.d.mts +2 -0
  92. package/dist/{plan-CDxduYaN-pLIyyJaB.d.mts → plan-CDxduYaN-B2kMLIQQ.d.mts} +3 -3
  93. package/dist/{plan-CDxduYaN-pLIyyJaB.d.mts.map → plan-CDxduYaN-B2kMLIQQ.d.mts.map} +1 -1
  94. package/dist/{prepared-statement-9QpkE6JG-ti591XdQ.d.mts → prepared-statement-9QpkE6JG-B9xqBu5T.d.mts} +16 -16
  95. package/dist/{prepared-statement-9QpkE6JG-ti591XdQ.d.mts.map → prepared-statement-9QpkE6JG-B9xqBu5T.d.mts.map} +1 -1
  96. package/dist/query-lane-context-CGdMIEuv.d.mts +1 -0
  97. package/dist/{query-lane-context-Qa-eddrE-kuZ8Z86-.d.mts → query-lane-context-Qa-eddrE-BQV6J9nV.d.mts} +4 -4
  98. package/dist/{query-lane-context-Qa-eddrE-kuZ8Z86-.d.mts.map → query-lane-context-Qa-eddrE-BQV6J9nV.d.mts.map} +1 -1
  99. package/dist/relational-core.d.mts +11 -11
  100. package/dist/relational-core.mjs +1 -1
  101. package/dist/relational-core__aggregate-descriptor-registry.d.mts +1 -1
  102. package/dist/relational-core__ast.d.mts +3 -3
  103. package/dist/relational-core__codec-descriptor-registry.d.mts +3 -3
  104. package/dist/relational-core__codec-descriptor-registry.mjs +1 -1
  105. package/dist/relational-core__contract-free.d.mts +3 -3
  106. package/dist/relational-core__expression.d.mts +1 -1
  107. package/dist/relational-core__expression.mjs +1 -1
  108. package/dist/relational-core__middleware.d.mts +2 -2
  109. package/dist/relational-core__plan.d.mts +3 -3
  110. package/dist/relational-core__query-lane-context.d.mts +2 -2
  111. package/dist/relational-core__types.d.mts +2 -2
  112. package/dist/{runtime-C88G8y1X.d.mts → runtime-CzCx0TKe.d.mts} +3 -3
  113. package/dist/{runtime-C88G8y1X.d.mts.map → runtime-CzCx0TKe.d.mts.map} +1 -1
  114. package/dist/runtime.d.mts +4 -4
  115. package/dist/runtime.mjs +2 -2
  116. package/dist/runtime__internal__prepared-query.d.mts +1 -1
  117. package/dist/{schema-differ-DpG_gnur-DFAtGezx.d.mts → schema-differ-DpG_gnur-BICVtTHY.d.mts} +2 -2
  118. package/dist/{schema-differ-DpG_gnur-DFAtGezx.d.mts.map → schema-differ-DpG_gnur-BICVtTHY.d.mts.map} +1 -1
  119. package/dist/{schema-verify-C_PEdlAr-Dxxjm6EM.mjs → schema-verify-C_PEdlAr-CmXrFuW1.mjs} +2 -2
  120. package/dist/{schema-verify-C_PEdlAr-Dxxjm6EM.mjs.map → schema-verify-C_PEdlAr-CmXrFuW1.mjs.map} +1 -1
  121. package/dist/{sql-contract-serializer-2oBWuxTe-DKZTf2n8.mjs → sql-contract-serializer-Bxu4a5oQ-D0lKpb4a.mjs} +24 -5
  122. package/dist/sql-contract-serializer-Bxu4a5oQ-D0lKpb4a.mjs.map +1 -0
  123. package/dist/{sql-execution-plan--jKyLpe5-CMGhgO0M.d.mts → sql-execution-plan--jKyLpe5-Bcz9QM2s.d.mts} +2 -2
  124. package/dist/{sql-execution-plan--jKyLpe5-CMGhgO0M.d.mts.map → sql-execution-plan--jKyLpe5-Bcz9QM2s.d.mts.map} +1 -1
  125. package/dist/{types-UcHa2cTe.d.mts → types-C36_3E6_.d.mts} +3 -2
  126. package/dist/types-C36_3E6_.d.mts.map +1 -0
  127. package/dist/{types-CyxGtOOh-BggSa6Fe.d.mts → types-CyxGtOOh-BJnoWm0f.d.mts} +8 -8
  128. package/dist/{types-CyxGtOOh-BggSa6Fe.d.mts.map → types-CyxGtOOh-BJnoWm0f.d.mts.map} +1 -1
  129. package/dist/{types-CUsJrvEl.mjs → types-D0B65hip.mjs} +3 -2
  130. package/dist/types-D0B65hip.mjs.map +1 -0
  131. package/dist/types-DvsoMNLs.d.mts +1 -0
  132. package/dist/{types-IqZMLrFC-BfiR0oFc.d.mts → types-IqZMLrFC-BIRftuU7.d.mts} +4 -4
  133. package/dist/{types-IqZMLrFC-BfiR0oFc.d.mts.map → types-IqZMLrFC-BIRftuU7.d.mts.map} +1 -1
  134. package/dist/{types-v3qxLLxo-DCeKv7yY.d.mts → types-v3qxLLxo-Clw_yBAh.d.mts} +2 -2
  135. package/dist/{types-v3qxLLxo-DCeKv7yY.d.mts.map → types-v3qxLLxo-Clw_yBAh.d.mts.map} +1 -1
  136. package/dist/{validators-Belo8QqM.d.mts → validators-CbqMxQfW.d.mts} +23 -4
  137. package/dist/validators-CbqMxQfW.d.mts.map +1 -0
  138. package/dist/{validators-CrWD6bSP.mjs → validators-DD98VrpC.mjs} +0 -0
  139. package/dist/validators-DD98VrpC.mjs.map +1 -0
  140. package/package.json +17 -17
  141. package/dist/contract-builder-CG_tGDbB.d.mts.map +0 -1
  142. package/dist/contract-builder-CZSaZ6Vi.mjs.map +0 -1
  143. package/dist/control-adapter-D-2mthVg.d.mts +0 -1
  144. package/dist/derived-checks-BzL102Q0-0nIMlEux.mjs.map +0 -1
  145. package/dist/dist-ZK6oeI5e.mjs.map +0 -1
  146. package/dist/interpreter-BPl_7Cv5-B8FaNBLQ.mjs.map +0 -1
  147. package/dist/middleware--TtoxUiW.d.mts +0 -1
  148. package/dist/plan-BHLdb0Z7.d.mts +0 -2
  149. package/dist/query-lane-context-XMvk7fmY.d.mts +0 -1
  150. package/dist/sql-contract-serializer-2oBWuxTe-DKZTf2n8.mjs.map +0 -1
  151. package/dist/types-B0msOnBM.d.mts +0 -1
  152. package/dist/types-CUsJrvEl.mjs.map +0 -1
  153. package/dist/types-UcHa2cTe.d.mts.map +0 -1
  154. package/dist/validators-Belo8QqM.d.mts.map +0 -1
  155. package/dist/validators-CrWD6bSP.mjs.map +0 -1
@@ -0,0 +1,2 @@
1
+ import "./plan-CDxduYaN-B2kMLIQQ.mjs";
2
+ import "./sql-execution-plan--jKyLpe5-Bcz9QM2s.mjs";
@@ -1,6 +1,6 @@
1
1
  import { c as SqlStorage } from "./sql-storage-8LqxeLAY-DH4DdUXx.mjs";
2
- import "./types-UcHa2cTe.mjs";
3
- import { m as AnyQueryAst } from "./types-v3qxLLxo-DCeKv7yY.mjs";
2
+ import "./types-C36_3E6_.mjs";
3
+ import { m as AnyQueryAst } from "./types-v3qxLLxo-Clw_yBAh.mjs";
4
4
  import { Contract } from "@prisma/orm-framework/contract/types";
5
5
  import { QueryPlan } from "@prisma/orm-framework/components/runtime";
6
6
  //#region ../../../2-sql/4-lanes/relational-core/dist/plan-CDxduYaN.d.mts
@@ -43,4 +43,4 @@ interface SqlQueryPlan<Row = unknown> extends QueryPlan<Row> {
43
43
  declare function planFromAst<Row = unknown>(ast: AnyQueryAst, contract: Contract<SqlStorage>, laneId?: string): SqlQueryPlan<Row>;
44
44
  //#endregion
45
45
  export { planFromAst as n, SqlQueryPlan as t };
46
- //# sourceMappingURL=plan-CDxduYaN-pLIyyJaB.d.mts.map
46
+ //# sourceMappingURL=plan-CDxduYaN-B2kMLIQQ.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"plan-CDxduYaN-pLIyyJaB.d.mts","names":[],"sources":["../../../../2-sql/4-lanes/relational-core/dist/plan-CDxduYaN.d.mts"],"mappings":";;;;;;;;;;;;;;;;;;;;UAkBU,aAAa,uBAAuB,UAAU;WAC7C,KAAK;WACL;;;;;;;;;;;;;;;;;;;;iBAoBM,YAAY,eAAe,KAAK,aAAa,UAAU,SAAS,aAAa,kBAAkB,aAAa"}
1
+ {"version":3,"file":"plan-CDxduYaN-B2kMLIQQ.d.mts","names":[],"sources":["../../../../2-sql/4-lanes/relational-core/dist/plan-CDxduYaN.d.mts"],"mappings":";;;;;;;;;;;;;;;;;;;;UAkBU,aAAa,uBAAuB,UAAU;WAC7C,KAAK;WACL;;;;;;;;;;;;;;;;;;;;iBAoBM,YAAY,eAAe,KAAK,aAAa,UAAU,SAAS,aAAa,kBAAkB,aAAa"}
@@ -1,22 +1,22 @@
1
1
  import { c as SqlStorage } from "./sql-storage-8LqxeLAY-DH4DdUXx.mjs";
2
- import "./types-UcHa2cTe.mjs";
3
- import { r as SqlOperationDescriptors } from "./index-C5I8D-MB.mjs";
4
- import { O as ContractCodecRegistry, Ot as SqlCodecCallContext, T as CodecRef$1, lt as LoweredParam, m as AnyQueryAst, ut as LoweredStatement, x as Codec$1 } from "./types-v3qxLLxo-DCeKv7yY.mjs";
2
+ import "./types-C36_3E6_.mjs";
3
+ import { r as SqlOperationDescriptors } from "./index-CLAshwKN.mjs";
4
+ import { O as ContractCodecRegistry, Ot as SqlCodecCallContext, T as CodecRef$1, lt as LoweredParam, m as AnyQueryAst, ut as LoweredStatement, x as Codec$1 } from "./types-v3qxLLxo-Clw_yBAh.mjs";
5
5
  import { c as SqlQueryable, i as SqlDriver, l as SqlStatementStats, r as SqlConnection } from "./driver-types-BQtRkOJ0-Bv2RPSfr.mjs";
6
- import { o as MarkerReadResult, t as Adapter } from "./ast-PAXgfA8z.mjs";
7
- import { t as SqlQueryPlan } from "./plan-CDxduYaN-pLIyyJaB.mjs";
8
- import { a as CodecValue, i as CodecTypesBase, l as RawCodecInferer, o as Expression, t as AffectedCount } from "./expression-PL-Tra28.mjs";
9
- import { t as SqlExecutionPlan } from "./sql-execution-plan--jKyLpe5-CMGhgO0M.mjs";
10
- import "./plan-BHLdb0Z7.mjs";
11
- import { r as ExecutionContext } from "./query-lane-context-Qa-eddrE-kuZ8Z86-.mjs";
12
- import "./query-lane-context-XMvk7fmY.mjs";
13
- import { i as SqlParamRefMutator } from "./middleware-AhTz1BOW-th-Suxuf.mjs";
14
- import "./middleware--TtoxUiW.mjs";
15
- import { h as RuntimeScope } from "./types-CyxGtOOh-BggSa6Fe.mjs";
16
- import "./types-B0msOnBM.mjs";
6
+ import { o as MarkerReadResult, t as Adapter } from "./ast-DuLukI6f.mjs";
7
+ import { t as SqlQueryPlan } from "./plan-CDxduYaN-B2kMLIQQ.mjs";
8
+ import { a as CodecValue, i as CodecTypesBase, l as RawCodecInferer, o as Expression, t as AffectedCount } from "./expression-mku9I7Ue.mjs";
9
+ import { t as SqlExecutionPlan } from "./sql-execution-plan--jKyLpe5-Bcz9QM2s.mjs";
10
+ import "./plan-C7VP7jOh.mjs";
11
+ import { r as ExecutionContext } from "./query-lane-context-Qa-eddrE-BQV6J9nV.mjs";
12
+ import "./query-lane-context-CGdMIEuv.mjs";
13
+ import { i as SqlParamRefMutator } from "./middleware-AhTz1BOW-CtQWS4mb.mjs";
14
+ import "./middleware-Cev-ZFyS.mjs";
15
+ import { h as RuntimeScope } from "./types-CyxGtOOh-BJnoWm0f.mjs";
16
+ import "./types-DvsoMNLs.mjs";
17
17
  import { Contract, JsonValue, PlanMeta } from "@prisma/orm-framework/contract/types";
18
- import { AnyCodecDescriptor, CodecDescriptor } from "@prisma/orm-framework/components/codec";
19
18
  import { AfterExecuteResult, AfterQueryResult, AsyncIterableResult, ExecuteInterceptResult, ExecutionPlan, QueryInterceptResult, RuntimeCore, RuntimeExecuteOptions, RuntimeLog, RuntimeMiddleware, RuntimeMiddlewareContext } from "@prisma/orm-framework/components/runtime";
19
+ import { AnyCodecDescriptor, CodecDescriptor } from "@prisma/orm-framework/components/codec";
20
20
  import { ExecutionStack, RuntimeAdapterDescriptor, RuntimeAdapterInstance, RuntimeDriverDescriptor, RuntimeDriverInstance, RuntimeExtensionDescriptor, RuntimeExtensionInstance, RuntimeTargetDescriptor, RuntimeTargetInstance } from "@prisma/orm-framework/components/execution";
21
21
  //#region ../../../2-sql/5-runtime/dist/prepared-statement-9QpkE6JG.d.mts
22
22
  //#region src/codecs/encoding.d.ts
@@ -526,4 +526,4 @@ declare class PreparedExecutionImpl<Params> implements PreparedExecution<Params>
526
526
  }
527
527
  //#endregion
528
528
  export { SqlMiddlewareContext as A, TransactionContext as B, RuntimeParameterizedCodecDescriptor as C, SqlExecutionStack as D, RuntimeTransaction as E, SqlRuntimeExtensionDescriptor as F, encodeParamsWithMetadata as G, createExecutionContext as H, SqlRuntimeExtensionInstance as I, withTransaction as J, preparedStatementExecute as K, SqlRuntimeTargetDescriptor as L, SqlRuntimeAdapterInstance as M, SqlRuntimeBase as N, SqlExecutionStackWithDriver as O, SqlRuntimeDriverInstance as P, SqlStaticContributions as R, RuntimeMutationDefaultGenerator as S, RuntimeTelemetryEvent as T, createSqlExecutionStack as U, VerifyMarkerOption as V, deriveParamMetadata as W, PreparedStatementInternals as _, DeclaredNullable as a, RuntimeConnection as b, ParamSpec as c, PreparedExecution as d, PreparedExecutionImpl as f, PreparedStatementImpl as g, PreparedStatementExecuteTarget as h, DeclaredCodecId as i, SqlRuntimeAdapterDescriptor as j, SqlMiddleware as k, ParamsFromDeclaration as l, PreparedStatement as m, ConnectionProvider as n, GeneratorStability as o, PreparedFor as p, preparedStatementQuery as q, Declaration as r, MarkerReader as s, BindSiteParams as t, PrepareCallback as u, PreparedStatementQueryTarget as v, RuntimeQueryable as w, RuntimeFamilyAdapter as x, Runtime as y, TelemetryOutcome as z };
529
- //# sourceMappingURL=prepared-statement-9QpkE6JG-ti591XdQ.d.mts.map
529
+ //# sourceMappingURL=prepared-statement-9QpkE6JG-B9xqBu5T.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"prepared-statement-9QpkE6JG-ti591XdQ.d.mts","names":[],"sources":["../../../../2-sql/5-runtime/dist/prepared-statement-9QpkE6JG.d.mts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;UAaU;WACC,OAAO;WACP;;iBAEM,oBAAoB,KAAK,uBAAuB;iBAChD,yBAAyB,4BAA4B,mBAAmB,iBAAiB,KAAK,qBAAqB,iBAAiB,wBAAwB;;;UAGnK,6BAA6B;WAC5B,UAAU,SAAS;;;;;;UAMpB;WACC,KAAK;WACL,MAAM;;UAEP,cAAc,kBAAkB,0BAA0B,iCAAiC,kBAAkB,kBAAkB,mBAAmB;WACjJ;;;;;;;;;;;;;;;;;;;EAmBT,eAAe,OAAO,WAAW,KAAK,uBAAuB,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;EA0BrE,aAAa,MAAM,kBAAkB,KAAK,sBAAsB,SAAS,mBAAmB,oBAAoB;EAChH,gBAAgB,MAAM,kBAAkB,KAAK,uBAAuB,QAAQ;EAC5E,OAAO,KAAK,yBAAyB,MAAM,kBAAkB,KAAK,uBAAuB;EACzF,YAAY,MAAM,kBAAkB,QAAQ,kBAAkB,KAAK,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;EA0B1F,eAAe,MAAM,kBAAkB,KAAK,sBAAsB,SAAS,mBAAmB,oBAAoB;EAClH,kBAAkB,MAAM,kBAAkB,KAAK,uBAAuB,QAAQ;EAC9E,cAAc,MAAM,kBAAkB,QAAQ,oBAA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wBAAwB,QAAQ;EACxK,QAAQ,UAAU,YAAY,KAAK,KAAK,WAAW,iBAAiB,gBAAgB,aAAa,GAAG,UAAU,gBAAgB,GAAG,OAAO,QAAQ,YAAY,sBAAsB,GAAG,KAAK;;YAEhL,iCAAiC,GAAG,KAAK,IAAI,sBAAsB,GAAG,MAAM,qBAAqB,WAAW,cAAc,UAAU,wBAAwB,oBAAoB;;YAEhL,mCAAmC,GAAG,IAAI,sBAAsB,IAAI,qBAAqB,WAAW,cAAc,UAAU,wBAAwB,QAAQ;EACtK,cAAc,QAAQ;UACd;EACR,aAAa;EACb,SAAS;UACD;UACA;UACA;;;UAGA;EACR,cAAc,QAAQ;;iBAEP,gBAAgB,GAAG,SAAS,oBAAoB,KAAK,IAAI,uBAAuB,YAAY,KAAK,QAAQ;;;UAGhH;WACC;WACA,KAAK;WACL,MAAM;WACN,gBAAgB;WAChB,eAAe;WACf,wBAAwB;;cAErB,sBAAsB,QAAQ,gBAAgB,kBAAkB,QAAQ,MAAM;WACjF;WACA,KAAK;WACL,MAAM;WACN,gBAAgB;WAChB,eAAe;WACf,wBAAwB;EACjC,YAAY,WAAW;EACvB,MAAM,QAAQ,kBAAkB,QAAQ,QAAQ,UAAU,wBAAwB,oBAAoB;;;;;;;;;;cAU1F,sBAAsB,mBAAmB,kBAAkB,SAAS;WACvE;WACA,KAAK;WACL,MAAM;WACN,gBAAgB;WAChB,eAAe;WACf,wBAAwB;EACjC,YAAY,WAAW;EACvB,QAAQ,QAAQ,kBAAkB,QAAQ,QAAQ,UAAU,wBAAwB,QAAQ"}
@@ -0,0 +1 @@
1
+ import "./query-lane-context-Qa-eddrE-BQV6J9nV.mjs";
@@ -1,7 +1,7 @@
1
1
  import { c as SqlStorage } from "./sql-storage-8LqxeLAY-DH4DdUXx.mjs";
2
- import "./types-UcHa2cTe.mjs";
3
- import { a as SqlOperationRegistry } from "./index-C5I8D-MB.mjs";
4
- import { O as ContractCodecRegistry, s as AnyExpression } from "./types-v3qxLLxo-DCeKv7yY.mjs";
2
+ import "./types-C36_3E6_.mjs";
3
+ import { a as SqlOperationRegistry } from "./index-CLAshwKN.mjs";
4
+ import { O as ContractCodecRegistry, s as AnyExpression } from "./types-v3qxLLxo-Clw_yBAh.mjs";
5
5
  import { Contract } from "@prisma/orm-framework/contract/types";
6
6
  import { AggregateDescriptor, AggregateResultNullability } from "@prisma/orm-framework/components/components";
7
7
  import { CodecDescriptor, CodecRef } from "@prisma/orm-framework/components/codec";
@@ -148,4 +148,4 @@ interface ExecutionContext<TContract extends Contract<SqlStorage> = Contract<Sql
148
148
  }
149
149
  //#endregion
150
150
  export { MutationDefaultsOptions as a, SqlAggregateDescriptorRegistry as c, TypeHelperRegistry as d, isSqlAggregateDescriptor as f, MutationDefaultsOp as i, SqlAggregateLowering as l, CodecDescriptorRegistry as n, ResolvedSqlAggregate as o, ExecutionContext as r, SqlAggregateDescriptor as s, AppliedMutationDefault as t, SqlAggregateLoweringContext as u };
151
- //# sourceMappingURL=query-lane-context-Qa-eddrE-kuZ8Z86-.d.mts.map
151
+ //# sourceMappingURL=query-lane-context-Qa-eddrE-BQV6J9nV.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"query-lane-context-Qa-eddrE-kuZ8Z86-.d.mts","names":[],"sources":["../../../../2-sql/4-lanes/relational-core/dist/query-lane-context-Qa-eddrE.d.mts"],"mappings":";;;;;;;;;;;;UAUU;WACC,MAAM;WACN,YAAY;;;;;;;KAOlB,wBAAwB,SAAS,gCAAgC;;;;;;;;KAQjE,yBAAyB;WACnB,QAAQ;;;iBAGF,yBAAyB,iBAAiB,SAAS;;;;;;UAM1D;;;;EAIR,cAAc,kBAAkB;;;;;;;;;;;;;;EAchC,kBAAkB,qBAAqB,eAAe,iBAAiB;;;;EAIvE,UAAU,iBAAiB;;;;EAI3B,aAAa,8BAA8B;;;;;;;KAOxC,uBAAuB;WACjB;WACA,QAAQ;WACR,OAAO;;;;;;;UAOR;;;;;;EAMR,QAAQ,mBAAmB,QAAQ,WAAW;;EAE9C,UAAU,iBAAiB;;;;;KAKxB,qBAAqB;KACrB;KACA;WACM;WACA;;KAEN;WACM,IAAI;WACJ;;;;;;;;WAQA;WACA,QAAQ;;;;;WAKR,oBAAoB;;;;;;;UAOrB,iBAAiB,kBAAkB,SAAS,cAAc,SAAS;WAClE,UAAU;;;;WAIV,gBAAgB;;;;WAIhB,kBAAkB;;;;WAIlB,sBAAsB;WACtB,iBAAiB;;;;WAIjB,OAAO;;;;EAIhB,sBAAsB,SAAS,0BAA0B,cAAc"}
1
+ {"version":3,"file":"query-lane-context-Qa-eddrE-BQV6J9nV.d.mts","names":[],"sources":["../../../../2-sql/4-lanes/relational-core/dist/query-lane-context-Qa-eddrE.d.mts"],"mappings":";;;;;;;;;;;;UAUU;WACC,MAAM;WACN,YAAY;;;;;;;KAOlB,wBAAwB,SAAS,gCAAgC;;;;;;;;KAQjE,yBAAyB;WACnB,QAAQ;;;iBAGF,yBAAyB,iBAAiB,SAAS;;;;;;UAM1D;;;;EAIR,cAAc,kBAAkB;;;;;;;;;;;;;;EAchC,kBAAkB,qBAAqB,eAAe,iBAAiB;;;;EAIvE,UAAU,iBAAiB;;;;EAI3B,aAAa,8BAA8B;;;;;;;KAOxC,uBAAuB;WACjB;WACA,QAAQ;WACR,OAAO;;;;;;;UAOR;;;;;;EAMR,QAAQ,mBAAmB,QAAQ,WAAW;;EAE9C,UAAU,iBAAiB;;;;;KAKxB,qBAAqB;KACrB;KACA;WACM;WACA;;KAEN;WACM,IAAI;WACJ;;;;;;;;WAQA;WACA,QAAQ;;;;;WAKR,oBAAoB;;;;;;;UAOrB,iBAAiB,kBAAkB,SAAS,cAAc,SAAS;WAClE,UAAU;;;;WAIV,gBAAgB;;;;WAIhB,kBAAkB;;;;WAIlB,sBAAsB;WACtB,iBAAiB;;;;WAIjB,OAAO;;;;EAIhB,sBAAsB,SAAS,0BAA0B,cAAc"}
@@ -1,13 +1,13 @@
1
- import { $ as JoinAst, A as DeleteAst, At as SqlColumnRef, B as ExistsExpr, Bt as frozenCodecRef, C as CodecDescriptor$1, Ct as RawQueryColumn, D as ColumnRef, Dt as SelectAstOptions, E as CodecTrait$1, Et as SelectAst, F as DescriptorCodecTraits, Ft as UpdateAst, G as ExtractCodecTypes, Gt as whereExprKinds, H as ExpressionFolder, Ht as isQueryAst, I as Direction, It as WhereArg, J as FunctionSourceAlias, K as FunctionCallExpr, L as DoNothingConflictAction, Lt as WindowFn, M as DescriptorCodecId, Mt as TableRef, N as DescriptorCodecInput, Nt as TableSource, O as ContractCodecRegistry, Ot as SqlCodecCallContext, P as DescriptorCodecJson, Pt as ToWhereExpr, Q as InsertValue, R as DoUpdateSetConflictAction, Rt as WindowFuncExpr, S as CodecCallContext$1, St as RawQueryAst, T as CodecRef$1, Tt as RawSqlLiteral, U as ExpressionRewriter, Ut as isWhereExpr, V as ExprVisitor, Vt as isAggregateFn, W as ExpressionSource, Wt as queryAstKinds, X as InsertAst, Y as IdentifierRef, Z as InsertOnConflict, _ as BinaryOp, _t as ParamRef, a as AndExpr, at as JsonValueProjectionVisitor, b as CastExpr, bt as ProjectionItem, c as AnyFromSource, ct as LiteralExpr, d as AnyJsonValueProjection, dt as NativeJsonValueProjection, et as JoinOnExpr, f as AnyOperationArg, ft as NotExpr, g as BinaryExpr, gt as OrderByItem, h as AstRewriter, ht as OrExpr, i as AggregateOpFn, it as JsonObjectExpr, j as DerivedTableSource, jt as SubqueryExpr, k as DefaultValueExpr, kt as SqlCodecInstanceContext, l as AnyInsertOnConflictAction, lt as LoweredParam, m as AnyQueryAst, mt as OperationExpr, n as AggregateExpr, nt as JsonDocumentProjection, o as AnyCodecDescriptor, ot as LimitOffsetValue, p as AnyParamRef, pt as NullCheckExpr, q as FunctionSource, r as AggregateFn, rt as JsonObjectEntry, s as AnyExpression, st as ListExpression, t as AggregateCountFn, tt as JsonArrayAggExpr, u as AnyInsertValue, ut as LoweredStatement, v as CaseBranch, vt as PreparedParamRef, w as CodecJsonValueProjection, wt as RawQueryResult, x as Codec$1, xt as RawExpr, y as CaseExpr, yt as ProjectionExpr, z as EqColJoinOn, zt as aggregateFnNames } from "./types-v3qxLLxo-DCeKv7yY.mjs";
1
+ import { $ as JoinAst, A as DeleteAst, At as SqlColumnRef, B as ExistsExpr, Bt as frozenCodecRef, C as CodecDescriptor$1, Ct as RawQueryColumn, D as ColumnRef, Dt as SelectAstOptions, E as CodecTrait$1, Et as SelectAst, F as DescriptorCodecTraits, Ft as UpdateAst, G as ExtractCodecTypes, Gt as whereExprKinds, H as ExpressionFolder, Ht as isQueryAst, I as Direction, It as WhereArg, J as FunctionSourceAlias, K as FunctionCallExpr, L as DoNothingConflictAction, Lt as WindowFn, M as DescriptorCodecId, Mt as TableRef, N as DescriptorCodecInput, Nt as TableSource, O as ContractCodecRegistry, Ot as SqlCodecCallContext, P as DescriptorCodecJson, Pt as ToWhereExpr, Q as InsertValue, R as DoUpdateSetConflictAction, Rt as WindowFuncExpr, S as CodecCallContext$1, St as RawQueryAst, T as CodecRef$1, Tt as RawSqlLiteral, U as ExpressionRewriter, Ut as isWhereExpr, V as ExprVisitor, Vt as isAggregateFn, W as ExpressionSource, Wt as queryAstKinds, X as InsertAst, Y as IdentifierRef, Z as InsertOnConflict, _ as BinaryOp, _t as ParamRef, a as AndExpr, at as JsonValueProjectionVisitor, b as CastExpr, bt as ProjectionItem, c as AnyFromSource, ct as LiteralExpr, d as AnyJsonValueProjection, dt as NativeJsonValueProjection, et as JoinOnExpr, f as AnyOperationArg, ft as NotExpr, g as BinaryExpr, gt as OrderByItem, h as AstRewriter, ht as OrExpr, i as AggregateOpFn, it as JsonObjectExpr, j as DerivedTableSource, jt as SubqueryExpr, k as DefaultValueExpr, kt as SqlCodecInstanceContext, l as AnyInsertOnConflictAction, lt as LoweredParam, m as AnyQueryAst, mt as OperationExpr, n as AggregateExpr, nt as JsonDocumentProjection, o as AnyCodecDescriptor, ot as LimitOffsetValue, p as AnyParamRef, pt as NullCheckExpr, q as FunctionSource, r as AggregateFn, rt as JsonObjectEntry, s as AnyExpression, st as ListExpression, t as AggregateCountFn, tt as JsonArrayAggExpr, u as AnyInsertValue, ut as LoweredStatement, v as CaseBranch, vt as PreparedParamRef, w as CodecJsonValueProjection, wt as RawQueryResult, x as Codec$1, xt as RawExpr, y as CaseExpr, yt as ProjectionExpr, z as EqColJoinOn, zt as aggregateFnNames } from "./types-v3qxLLxo-Clw_yBAh.mjs";
2
2
  import { a as SqlDriverState, c as SqlQueryable, i as SqlDriver, l as SqlStatementStats, n as PreparedStatementHandle, o as SqlExecuteRequest, r as SqlConnection, s as SqlExplainResult, t as PreparedExecuteRequest, u as SqlTransaction } from "./driver-types-BQtRkOJ0-Bv2RPSfr.mjs";
3
- import { a as DdlColumnDefaultVisitor, c as DdlTableConstraint, d as LiteralColumnDefault, f as PrimaryKeyConstraint, i as DdlColumnDefault, l as ForeignKeyConstraint, m as isDdlNode, n as CheckExpressionConstraint, o as DdlColumnRenderContext, p as UniqueConstraint, r as DdlColumn, s as DdlNode, t as AnyDdlColumnDefault, u as FunctionColumnDefault } from "./ddl-types-CXx4vPz6-BsgrnSUY.mjs";
4
- import { A as sqlFloatDecode, B as sqlTextDecode, C as compact, D as sqlCharEncode, E as sqlCharDescriptor, F as sqlIntColumn, G as sqlVarcharDescriptor, H as sqlTextEncode, I as sqlIntDecode, K as sqlVarcharEncode, L as sqlIntDescriptor, M as sqlFloatDescriptor, N as sqlFloatEncode, O as sqlCharRenderOutputType, P as sqlFloatEncodeJson, R as sqlIntEncode, S as collectOrderedParamRefs, T as sqlCharDecode, U as sqlVarcharColumn, V as sqlTextDescriptor, W as sqlVarcharDecode, _ as SqlIntDescriptor, a as LowererContext, b as SqlVarcharCodec, c as SQL_FLOAT_CODEC_ID, d as SQL_VARCHAR_CODEC_ID, f as SqlCharCodec, g as SqlIntCodec, h as SqlFloatDescriptor, i as Lowerer, j as sqlFloatDecodeJson, k as sqlFloatColumn, l as SQL_INT_CODEC_ID, m as SqlFloatCodec, n as AdapterProfile, o as MarkerReadResult, p as SqlCharDescriptor, q as sqlVarcharRenderOutputType, r as AdapterTarget, s as SQL_CHAR_CODEC_ID, t as Adapter, u as SQL_TEXT_CODEC_ID, v as SqlTextCodec, w as sqlCharColumn, x as SqlVarcharDescriptor, y as SqlTextDescriptor, z as sqlTextColumn } from "./ast-PAXgfA8z.mjs";
5
- import { n as planFromAst, t as SqlQueryPlan } from "./plan-CDxduYaN-pLIyyJaB.mjs";
6
- import { C as buildOperation, D as toExpr, E as param, S as TraitExpression, T as createRawSql, _ as RawSqlStatementBuilder, a as CodecValue, b as ScalarListExpression, c as RawAffectedCountQuery, d as RawRow, f as RawRowQuery, g as RawSqlInterpolation, h as RawSqlBuilder, i as CodecTypesBase, l as RawCodecInferer, m as RawRowSpecEntry, n as BuildOperationSpec, o as Expression, p as RawRowSpec, r as CodecExpression, s as NoReservedRowColumn, t as AffectedCount, u as RawPlanContext, v as RawSqlStatementTag, w as codecOf, x as ScopeField, y as RawSqlTag } from "./expression-PL-Tra28.mjs";
7
- import { t as SqlExecutionPlan } from "./sql-execution-plan--jKyLpe5-CMGhgO0M.mjs";
8
- import "./plan-BHLdb0Z7.mjs";
9
- import { a as MutationDefaultsOptions, c as SqlAggregateDescriptorRegistry, d as TypeHelperRegistry, i as MutationDefaultsOp, n as CodecDescriptorRegistry, o as ResolvedSqlAggregate, r as ExecutionContext, t as AppliedMutationDefault } from "./query-lane-context-Qa-eddrE-kuZ8Z86-.mjs";
10
- import "./query-lane-context-XMvk7fmY.mjs";
11
- import { a as SqlParamRefMutatorInternal, i as SqlParamRefMutator, n as ParamRefEntryUnion, o as createSqlParamRefMutator, r as ParamRefHandle, t as ParamRefEntry } from "./middleware-AhTz1BOW-th-Suxuf.mjs";
12
- import { S as TablesOf, _ as SqlOrmPlan, a as ColumnsOf, b as TableKey, c as META, d as ModelMetadata, f as OperationTypeSignature, g as SqlBuilderOptions, h as RuntimeScope, i as ColumnResolutionContract, l as Meta, m as OperationsForTypeId, n as BuildParamsMap, o as ComputeColumnJsType, p as OperationTypes, r as CodecTypes, s as Expr, t as BuildOptions, u as ModelDef, v as SqlPlan, x as TableMetadata, y as TableDef } from "./types-CyxGtOOh-BggSa6Fe.mjs";
3
+ import { a as DdlColumnDefaultVisitor, c as DdlTableConstraint, d as LiteralColumnDefault, f as PrimaryKeyConstraint, i as DdlColumnDefault, l as ForeignKeyConstraint, m as isDdlNode, n as CheckExpressionConstraint, o as DdlColumnRenderContext, p as UniqueConstraint, r as DdlColumn, s as DdlNode, t as AnyDdlColumnDefault, u as FunctionColumnDefault } from "./ddl-types-CXx4vPz6-Dko-GTTj.mjs";
4
+ import { A as sqlFloatDecode, B as sqlTextDecode, C as compact, D as sqlCharEncode, E as sqlCharDescriptor, F as sqlIntColumn, G as sqlVarcharDescriptor, H as sqlTextEncode, I as sqlIntDecode, K as sqlVarcharEncode, L as sqlIntDescriptor, M as sqlFloatDescriptor, N as sqlFloatEncode, O as sqlCharRenderOutputType, P as sqlFloatEncodeJson, R as sqlIntEncode, S as collectOrderedParamRefs, T as sqlCharDecode, U as sqlVarcharColumn, V as sqlTextDescriptor, W as sqlVarcharDecode, _ as SqlIntDescriptor, a as LowererContext, b as SqlVarcharCodec, c as SQL_FLOAT_CODEC_ID, d as SQL_VARCHAR_CODEC_ID, f as SqlCharCodec, g as SqlIntCodec, h as SqlFloatDescriptor, i as Lowerer, j as sqlFloatDecodeJson, k as sqlFloatColumn, l as SQL_INT_CODEC_ID, m as SqlFloatCodec, n as AdapterProfile, o as MarkerReadResult, p as SqlCharDescriptor, q as sqlVarcharRenderOutputType, r as AdapterTarget, s as SQL_CHAR_CODEC_ID, t as Adapter, u as SQL_TEXT_CODEC_ID, v as SqlTextCodec, w as sqlCharColumn, x as SqlVarcharDescriptor, y as SqlTextDescriptor, z as sqlTextColumn } from "./ast-DuLukI6f.mjs";
5
+ import { n as planFromAst, t as SqlQueryPlan } from "./plan-CDxduYaN-B2kMLIQQ.mjs";
6
+ import { C as buildOperation, D as toExpr, E as param, S as TraitExpression, T as createRawSql, _ as RawSqlStatementBuilder, a as CodecValue, b as ScalarListExpression, c as RawAffectedCountQuery, d as RawRow, f as RawRowQuery, g as RawSqlInterpolation, h as RawSqlBuilder, i as CodecTypesBase, l as RawCodecInferer, m as RawRowSpecEntry, n as BuildOperationSpec, o as Expression, p as RawRowSpec, r as CodecExpression, s as NoReservedRowColumn, t as AffectedCount, u as RawPlanContext, v as RawSqlStatementTag, w as codecOf, x as ScopeField, y as RawSqlTag } from "./expression-mku9I7Ue.mjs";
7
+ import { t as SqlExecutionPlan } from "./sql-execution-plan--jKyLpe5-Bcz9QM2s.mjs";
8
+ import "./plan-C7VP7jOh.mjs";
9
+ import { a as MutationDefaultsOptions, c as SqlAggregateDescriptorRegistry, d as TypeHelperRegistry, i as MutationDefaultsOp, n as CodecDescriptorRegistry, o as ResolvedSqlAggregate, r as ExecutionContext, t as AppliedMutationDefault } from "./query-lane-context-Qa-eddrE-BQV6J9nV.mjs";
10
+ import "./query-lane-context-CGdMIEuv.mjs";
11
+ import { a as SqlParamRefMutatorInternal, i as SqlParamRefMutator, n as ParamRefEntryUnion, o as createSqlParamRefMutator, r as ParamRefHandle, t as ParamRefEntry } from "./middleware-AhTz1BOW-CtQWS4mb.mjs";
12
+ import { S as TablesOf, _ as SqlOrmPlan, a as ColumnsOf, b as TableKey, c as META, d as ModelMetadata, f as OperationTypeSignature, g as SqlBuilderOptions, h as RuntimeScope, i as ColumnResolutionContract, l as Meta, m as OperationsForTypeId, n as BuildParamsMap, o as ComputeColumnJsType, p as OperationTypes, r as CodecTypes, s as Expr, t as BuildOptions, u as ModelDef, v as SqlPlan, x as TableMetadata, y as TableDef } from "./types-CyxGtOOh-BJnoWm0f.mjs";
13
13
  export { Adapter, AdapterProfile, AdapterTarget, AffectedCount, AggregateCountFn, AggregateExpr, AggregateFn, AggregateOpFn, AndExpr, AnyCodecDescriptor, AnyDdlColumnDefault, AnyExpression, AnyFromSource, AnyInsertOnConflictAction, AnyInsertValue, AnyJsonValueProjection, AnyOperationArg, AnyParamRef, AnyQueryAst, AppliedMutationDefault, AstRewriter, BinaryExpr, BinaryOp, BuildOperationSpec, BuildOptions, BuildParamsMap, CaseBranch, CaseExpr, CastExpr, CheckExpressionConstraint, Codec$1 as Codec, type CodecCallContext$1 as CodecCallContext, type CodecDescriptor$1 as CodecDescriptor, CodecDescriptorRegistry, CodecExpression, CodecJsonValueProjection, type CodecRef$1 as CodecRef, type CodecTrait$1 as CodecTrait, CodecTypes, CodecTypesBase, CodecValue, ColumnRef, ColumnResolutionContract, ColumnsOf, ComputeColumnJsType, ContractCodecRegistry, DdlColumn, DdlColumnDefault, DdlColumnDefaultVisitor, DdlColumnRenderContext, DdlNode, DdlTableConstraint, DefaultValueExpr, DeleteAst, DerivedTableSource, DescriptorCodecId, DescriptorCodecInput, DescriptorCodecJson, DescriptorCodecTraits, Direction, DoNothingConflictAction, DoUpdateSetConflictAction, EqColJoinOn, ExecutionContext, ExistsExpr, Expr, ExprVisitor, Expression, ExpressionFolder, ExpressionRewriter, ExpressionSource, ExtractCodecTypes, ForeignKeyConstraint, FunctionCallExpr, FunctionColumnDefault, FunctionSource, FunctionSourceAlias, IdentifierRef, InsertAst, InsertOnConflict, InsertValue, JoinAst, JoinOnExpr, JsonArrayAggExpr, JsonDocumentProjection, JsonObjectEntry, JsonObjectExpr, JsonValueProjectionVisitor, LimitOffsetValue, ListExpression, LiteralColumnDefault, LiteralExpr, LoweredParam, LoweredStatement, Lowerer, LowererContext, META, MarkerReadResult, Meta, ModelDef, ModelMetadata, MutationDefaultsOp, MutationDefaultsOptions, NativeJsonValueProjection, NoReservedRowColumn, NotExpr, NullCheckExpr, OperationExpr, OperationTypeSignature, OperationTypes, OperationsForTypeId, OrExpr, OrderByItem, ParamRef, type ParamRefEntry, type ParamRefEntryUnion, type ParamRefHandle, PreparedExecuteRequest, PreparedParamRef, PreparedStatementHandle, PrimaryKeyConstraint, ProjectionExpr, ProjectionItem, RawAffectedCountQuery, RawCodecInferer, RawExpr, RawPlanContext, RawQueryAst, RawQueryColumn, RawQueryResult, RawRow, RawRowQuery, RawRowSpec, RawRowSpecEntry, RawSqlBuilder, RawSqlInterpolation, RawSqlLiteral, RawSqlStatementBuilder, RawSqlStatementTag, RawSqlTag, ResolvedSqlAggregate, type RuntimeScope, SQL_CHAR_CODEC_ID, SQL_FLOAT_CODEC_ID, SQL_INT_CODEC_ID, SQL_TEXT_CODEC_ID, SQL_VARCHAR_CODEC_ID, ScalarListExpression, ScopeField, SelectAst, SelectAstOptions, SqlAggregateDescriptorRegistry, SqlBuilderOptions, SqlCharCodec, SqlCharDescriptor, SqlCodecCallContext, SqlCodecInstanceContext, SqlColumnRef, SqlConnection, SqlDriver, SqlDriverState, SqlExecuteRequest, type SqlExecutionPlan, SqlExplainResult, SqlFloatCodec, SqlFloatDescriptor, SqlIntCodec, SqlIntDescriptor, type SqlOrmPlan, type SqlParamRefMutator, type SqlParamRefMutatorInternal, SqlPlan, SqlQueryPlan, SqlQueryable, SqlStatementStats, SqlTextCodec, SqlTextDescriptor, SqlTransaction, SqlVarcharCodec, SqlVarcharDescriptor, SubqueryExpr, TableDef, TableKey, TableMetadata, TableRef, TableSource, TablesOf, ToWhereExpr, TraitExpression, TypeHelperRegistry, UniqueConstraint, UpdateAst, WhereArg, WindowFn, WindowFuncExpr, aggregateFnNames, buildOperation, codecOf, collectOrderedParamRefs, compact, createRawSql, createSqlParamRefMutator, frozenCodecRef, isAggregateFn, isDdlNode, isQueryAst, isWhereExpr, param, planFromAst, queryAstKinds, sqlCharColumn, sqlCharDecode, sqlCharDescriptor, sqlCharEncode, sqlCharRenderOutputType, sqlFloatColumn, sqlFloatDecode, sqlFloatDecodeJson, sqlFloatDescriptor, sqlFloatEncode, sqlFloatEncodeJson, sqlIntColumn, sqlIntDecode, sqlIntDescriptor, sqlIntEncode, sqlTextColumn, sqlTextDecode, sqlTextDescriptor, sqlTextEncode, sqlVarcharColumn, sqlVarcharDecode, sqlVarcharDescriptor, sqlVarcharEncode, sqlVarcharRenderOutputType, toExpr, whereExprKinds };
@@ -3,6 +3,6 @@ import { a as ForeignKeyConstraint, c as PrimaryKeyConstraint, i as DdlNode, l a
3
3
  import { n as compact, t as collectOrderedParamRefs } from "./util-DQQgv2j1-D6INZaRG.mjs";
4
4
  import { A as sqlIntColumn, B as sqlVarcharDescriptor, C as sqlCharRenderOutputType, D as sqlFloatDescriptor, E as sqlFloatDecodeJson, F as sqlTextDecode, H as sqlVarcharRenderOutputType, I as sqlTextDescriptor, L as sqlTextEncode, M as sqlIntDescriptor, N as sqlIntEncode, O as sqlFloatEncode, P as sqlTextColumn, R as sqlVarcharColumn, S as sqlCharEncode, T as sqlFloatDecode, V as sqlVarcharEncode, _ as SqlVarcharCodec, a as SQL_FLOAT_CODEC_ID, b as sqlCharDecode, c as SQL_VARCHAR_CODEC_ID, d as SqlFloatCodec, f as SqlFloatDescriptor, g as SqlTextDescriptor, h as SqlTextCodec, i as SQL_CHAR_CODEC_ID, j as sqlIntDecode, k as sqlFloatEncodeJson, l as SqlCharCodec, m as SqlIntDescriptor, n as JsonDocumentProjection, o as SQL_INT_CODEC_ID, p as SqlIntCodec, r as NativeJsonValueProjection, s as SQL_TEXT_CODEC_ID, t as CodecJsonValueProjection, u as SqlCharDescriptor, v as SqlVarcharDescriptor, w as sqlFloatColumn, x as sqlCharDescriptor, y as sqlCharColumn, z as sqlVarcharDecode } from "./ast-5tg0fGPQ.mjs";
5
5
  import { t as planFromAst } from "./plan-Dh0LbYIv-Crx5-ThG.mjs";
6
- import { a as toExpr, i as param, n as codecOf, r as createRawSql, t as buildOperation } from "./expression-DmQbErXU.mjs";
6
+ import { a as toExpr, i as param, n as codecOf, r as createRawSql, t as buildOperation } from "./expression-B2Ox7zKM.mjs";
7
7
  import { t as createSqlParamRefMutator } from "./middleware-CMr4CHNz-DHIUdxlm.mjs";
8
8
  export { AggregateExpr, AndExpr, BinaryExpr, CaseExpr, CastExpr, CheckExpressionConstraint, CodecJsonValueProjection, ColumnRef, DdlColumn, DdlColumnDefault, DdlNode, DefaultValueExpr, DeleteAst, DerivedTableSource, DoNothingConflictAction, DoUpdateSetConflictAction, EqColJoinOn, ExistsExpr, ForeignKeyConstraint, FunctionCallExpr, FunctionColumnDefault, FunctionSource, IdentifierRef, InsertAst, InsertOnConflict, JoinAst, JsonArrayAggExpr, JsonDocumentProjection, JsonObjectExpr, ListExpression, LiteralColumnDefault, LiteralExpr, NativeJsonValueProjection, NotExpr, NullCheckExpr, OperationExpr, OrExpr, OrderByItem, ParamRef, PreparedParamRef, PrimaryKeyConstraint, ProjectionItem, RawExpr, RawQueryAst, SQL_CHAR_CODEC_ID, SQL_FLOAT_CODEC_ID, SQL_INT_CODEC_ID, SQL_TEXT_CODEC_ID, SQL_VARCHAR_CODEC_ID, SelectAst, SqlCharCodec, SqlCharDescriptor, SqlFloatCodec, SqlFloatDescriptor, SqlIntCodec, SqlIntDescriptor, SqlTextCodec, SqlTextDescriptor, SqlVarcharCodec, SqlVarcharDescriptor, SubqueryExpr, TableSource, UniqueConstraint, UpdateAst, WindowFuncExpr, aggregateFnNames, buildOperation, codecOf, collectOrderedParamRefs, compact, createRawSql, createSqlParamRefMutator, frozenCodecRef, isAggregateFn, isDdlNode, isQueryAst, isWhereExpr, param, planFromAst, queryAstKinds, sqlCharColumn, sqlCharDecode, sqlCharDescriptor, sqlCharEncode, sqlCharRenderOutputType, sqlFloatColumn, sqlFloatDecode, sqlFloatDecodeJson, sqlFloatDescriptor, sqlFloatEncode, sqlFloatEncodeJson, sqlIntColumn, sqlIntDecode, sqlIntDescriptor, sqlIntEncode, sqlTextColumn, sqlTextDecode, sqlTextDescriptor, sqlTextEncode, sqlVarcharColumn, sqlVarcharDecode, sqlVarcharDescriptor, sqlVarcharEncode, sqlVarcharRenderOutputType, toExpr, whereExprKinds };
@@ -1,4 +1,4 @@
1
- import { c as SqlAggregateDescriptorRegistry, f as isSqlAggregateDescriptor, l as SqlAggregateLowering, n as CodecDescriptorRegistry, s as SqlAggregateDescriptor, u as SqlAggregateLoweringContext } from "./query-lane-context-Qa-eddrE-kuZ8Z86-.mjs";
1
+ import { c as SqlAggregateDescriptorRegistry, f as isSqlAggregateDescriptor, l as SqlAggregateLowering, n as CodecDescriptorRegistry, s as SqlAggregateDescriptor, u as SqlAggregateLoweringContext } from "./query-lane-context-Qa-eddrE-BQV6J9nV.mjs";
2
2
  //#region ../../../2-sql/4-lanes/relational-core/dist/exports/aggregate-descriptor-registry.d.mts
3
3
  //#region src/aggregate-descriptor-registry.d.ts
4
4
  /**
@@ -1,5 +1,5 @@
1
- import { $ as JoinAst, A as DeleteAst, At as SqlColumnRef, B as ExistsExpr, Bt as frozenCodecRef, C as CodecDescriptor$1, Ct as RawQueryColumn, D as ColumnRef, Dt as SelectAstOptions, E as CodecTrait$1, Et as SelectAst, F as DescriptorCodecTraits, Ft as UpdateAst, G as ExtractCodecTypes, Gt as whereExprKinds, H as ExpressionFolder, Ht as isQueryAst, I as Direction, It as WhereArg, J as FunctionSourceAlias, K as FunctionCallExpr, L as DoNothingConflictAction, Lt as WindowFn, M as DescriptorCodecId, Mt as TableRef, N as DescriptorCodecInput, Nt as TableSource, O as ContractCodecRegistry, Ot as SqlCodecCallContext, P as DescriptorCodecJson, Pt as ToWhereExpr, Q as InsertValue, R as DoUpdateSetConflictAction, Rt as WindowFuncExpr, S as CodecCallContext$1, St as RawQueryAst, T as CodecRef$1, Tt as RawSqlLiteral, U as ExpressionRewriter, Ut as isWhereExpr, V as ExprVisitor, Vt as isAggregateFn, W as ExpressionSource, Wt as queryAstKinds, X as InsertAst, Y as IdentifierRef, Z as InsertOnConflict, _ as BinaryOp, _t as ParamRef, a as AndExpr, at as JsonValueProjectionVisitor, b as CastExpr, bt as ProjectionItem, c as AnyFromSource, ct as LiteralExpr, d as AnyJsonValueProjection, dt as NativeJsonValueProjection, et as JoinOnExpr, f as AnyOperationArg, ft as NotExpr, g as BinaryExpr, gt as OrderByItem, h as AstRewriter, ht as OrExpr, i as AggregateOpFn, it as JsonObjectExpr, j as DerivedTableSource, jt as SubqueryExpr, k as DefaultValueExpr, kt as SqlCodecInstanceContext, l as AnyInsertOnConflictAction, lt as LoweredParam, m as AnyQueryAst, mt as OperationExpr, n as AggregateExpr, nt as JsonDocumentProjection, o as AnyCodecDescriptor, ot as LimitOffsetValue, p as AnyParamRef, pt as NullCheckExpr, q as FunctionSource, r as AggregateFn, rt as JsonObjectEntry, s as AnyExpression, st as ListExpression, t as AggregateCountFn, tt as JsonArrayAggExpr, u as AnyInsertValue, ut as LoweredStatement, v as CaseBranch, vt as PreparedParamRef, w as CodecJsonValueProjection, wt as RawQueryResult, x as Codec$1, xt as RawExpr, y as CaseExpr, yt as ProjectionExpr, z as EqColJoinOn, zt as aggregateFnNames } from "./types-v3qxLLxo-DCeKv7yY.mjs";
1
+ import { $ as JoinAst, A as DeleteAst, At as SqlColumnRef, B as ExistsExpr, Bt as frozenCodecRef, C as CodecDescriptor$1, Ct as RawQueryColumn, D as ColumnRef, Dt as SelectAstOptions, E as CodecTrait$1, Et as SelectAst, F as DescriptorCodecTraits, Ft as UpdateAst, G as ExtractCodecTypes, Gt as whereExprKinds, H as ExpressionFolder, Ht as isQueryAst, I as Direction, It as WhereArg, J as FunctionSourceAlias, K as FunctionCallExpr, L as DoNothingConflictAction, Lt as WindowFn, M as DescriptorCodecId, Mt as TableRef, N as DescriptorCodecInput, Nt as TableSource, O as ContractCodecRegistry, Ot as SqlCodecCallContext, P as DescriptorCodecJson, Pt as ToWhereExpr, Q as InsertValue, R as DoUpdateSetConflictAction, Rt as WindowFuncExpr, S as CodecCallContext$1, St as RawQueryAst, T as CodecRef$1, Tt as RawSqlLiteral, U as ExpressionRewriter, Ut as isWhereExpr, V as ExprVisitor, Vt as isAggregateFn, W as ExpressionSource, Wt as queryAstKinds, X as InsertAst, Y as IdentifierRef, Z as InsertOnConflict, _ as BinaryOp, _t as ParamRef, a as AndExpr, at as JsonValueProjectionVisitor, b as CastExpr, bt as ProjectionItem, c as AnyFromSource, ct as LiteralExpr, d as AnyJsonValueProjection, dt as NativeJsonValueProjection, et as JoinOnExpr, f as AnyOperationArg, ft as NotExpr, g as BinaryExpr, gt as OrderByItem, h as AstRewriter, ht as OrExpr, i as AggregateOpFn, it as JsonObjectExpr, j as DerivedTableSource, jt as SubqueryExpr, k as DefaultValueExpr, kt as SqlCodecInstanceContext, l as AnyInsertOnConflictAction, lt as LoweredParam, m as AnyQueryAst, mt as OperationExpr, n as AggregateExpr, nt as JsonDocumentProjection, o as AnyCodecDescriptor, ot as LimitOffsetValue, p as AnyParamRef, pt as NullCheckExpr, q as FunctionSource, r as AggregateFn, rt as JsonObjectEntry, s as AnyExpression, st as ListExpression, t as AggregateCountFn, tt as JsonArrayAggExpr, u as AnyInsertValue, ut as LoweredStatement, v as CaseBranch, vt as PreparedParamRef, w as CodecJsonValueProjection, wt as RawQueryResult, x as Codec$1, xt as RawExpr, y as CaseExpr, yt as ProjectionExpr, z as EqColJoinOn, zt as aggregateFnNames } from "./types-v3qxLLxo-Clw_yBAh.mjs";
2
2
  import { a as SqlDriverState, c as SqlQueryable, i as SqlDriver, l as SqlStatementStats, n as PreparedStatementHandle, o as SqlExecuteRequest, r as SqlConnection, s as SqlExplainResult, t as PreparedExecuteRequest, u as SqlTransaction } from "./driver-types-BQtRkOJ0-Bv2RPSfr.mjs";
3
- import { a as DdlColumnDefaultVisitor, c as DdlTableConstraint, d as LiteralColumnDefault, f as PrimaryKeyConstraint, i as DdlColumnDefault, l as ForeignKeyConstraint, m as isDdlNode, n as CheckExpressionConstraint, o as DdlColumnRenderContext, p as UniqueConstraint, r as DdlColumn, s as DdlNode, t as AnyDdlColumnDefault, u as FunctionColumnDefault } from "./ddl-types-CXx4vPz6-BsgrnSUY.mjs";
4
- import { A as sqlFloatDecode, B as sqlTextDecode, C as compact, D as sqlCharEncode, E as sqlCharDescriptor, F as sqlIntColumn, G as sqlVarcharDescriptor, H as sqlTextEncode, I as sqlIntDecode, K as sqlVarcharEncode, L as sqlIntDescriptor, M as sqlFloatDescriptor, N as sqlFloatEncode, O as sqlCharRenderOutputType, P as sqlFloatEncodeJson, R as sqlIntEncode, S as collectOrderedParamRefs, T as sqlCharDecode, U as sqlVarcharColumn, V as sqlTextDescriptor, W as sqlVarcharDecode, _ as SqlIntDescriptor, a as LowererContext, b as SqlVarcharCodec, c as SQL_FLOAT_CODEC_ID, d as SQL_VARCHAR_CODEC_ID, f as SqlCharCodec, g as SqlIntCodec, h as SqlFloatDescriptor, i as Lowerer, j as sqlFloatDecodeJson, k as sqlFloatColumn, l as SQL_INT_CODEC_ID, m as SqlFloatCodec, n as AdapterProfile, o as MarkerReadResult, p as SqlCharDescriptor, q as sqlVarcharRenderOutputType, r as AdapterTarget, s as SQL_CHAR_CODEC_ID, t as Adapter, u as SQL_TEXT_CODEC_ID, v as SqlTextCodec, w as sqlCharColumn, x as SqlVarcharDescriptor, y as SqlTextDescriptor, z as sqlTextColumn } from "./ast-PAXgfA8z.mjs";
3
+ import { a as DdlColumnDefaultVisitor, c as DdlTableConstraint, d as LiteralColumnDefault, f as PrimaryKeyConstraint, i as DdlColumnDefault, l as ForeignKeyConstraint, m as isDdlNode, n as CheckExpressionConstraint, o as DdlColumnRenderContext, p as UniqueConstraint, r as DdlColumn, s as DdlNode, t as AnyDdlColumnDefault, u as FunctionColumnDefault } from "./ddl-types-CXx4vPz6-Dko-GTTj.mjs";
4
+ import { A as sqlFloatDecode, B as sqlTextDecode, C as compact, D as sqlCharEncode, E as sqlCharDescriptor, F as sqlIntColumn, G as sqlVarcharDescriptor, H as sqlTextEncode, I as sqlIntDecode, K as sqlVarcharEncode, L as sqlIntDescriptor, M as sqlFloatDescriptor, N as sqlFloatEncode, O as sqlCharRenderOutputType, P as sqlFloatEncodeJson, R as sqlIntEncode, S as collectOrderedParamRefs, T as sqlCharDecode, U as sqlVarcharColumn, V as sqlTextDescriptor, W as sqlVarcharDecode, _ as SqlIntDescriptor, a as LowererContext, b as SqlVarcharCodec, c as SQL_FLOAT_CODEC_ID, d as SQL_VARCHAR_CODEC_ID, f as SqlCharCodec, g as SqlIntCodec, h as SqlFloatDescriptor, i as Lowerer, j as sqlFloatDecodeJson, k as sqlFloatColumn, l as SQL_INT_CODEC_ID, m as SqlFloatCodec, n as AdapterProfile, o as MarkerReadResult, p as SqlCharDescriptor, q as sqlVarcharRenderOutputType, r as AdapterTarget, s as SQL_CHAR_CODEC_ID, t as Adapter, u as SQL_TEXT_CODEC_ID, v as SqlTextCodec, w as sqlCharColumn, x as SqlVarcharDescriptor, y as SqlTextDescriptor, z as sqlTextColumn } from "./ast-DuLukI6f.mjs";
5
5
  export { Adapter, AdapterProfile, AdapterTarget, AggregateCountFn, AggregateExpr, AggregateFn, AggregateOpFn, AndExpr, AnyCodecDescriptor, AnyDdlColumnDefault, AnyExpression, AnyFromSource, AnyInsertOnConflictAction, AnyInsertValue, AnyJsonValueProjection, AnyOperationArg, AnyParamRef, AnyQueryAst, AstRewriter, BinaryExpr, BinaryOp, CaseBranch, CaseExpr, CastExpr, CheckExpressionConstraint, Codec$1 as Codec, type CodecCallContext$1 as CodecCallContext, type CodecDescriptor$1 as CodecDescriptor, CodecJsonValueProjection, type CodecRef$1 as CodecRef, type CodecTrait$1 as CodecTrait, ColumnRef, ContractCodecRegistry, DdlColumn, DdlColumnDefault, DdlColumnDefaultVisitor, DdlColumnRenderContext, DdlNode, DdlTableConstraint, DefaultValueExpr, DeleteAst, DerivedTableSource, DescriptorCodecId, DescriptorCodecInput, DescriptorCodecJson, DescriptorCodecTraits, Direction, DoNothingConflictAction, DoUpdateSetConflictAction, EqColJoinOn, ExistsExpr, ExprVisitor, ExpressionFolder, ExpressionRewriter, ExpressionSource, ExtractCodecTypes, ForeignKeyConstraint, FunctionCallExpr, FunctionColumnDefault, FunctionSource, FunctionSourceAlias, IdentifierRef, InsertAst, InsertOnConflict, InsertValue, JoinAst, JoinOnExpr, JsonArrayAggExpr, JsonDocumentProjection, JsonObjectEntry, JsonObjectExpr, JsonValueProjectionVisitor, LimitOffsetValue, ListExpression, LiteralColumnDefault, LiteralExpr, LoweredParam, LoweredStatement, Lowerer, LowererContext, MarkerReadResult, NativeJsonValueProjection, NotExpr, NullCheckExpr, OperationExpr, OrExpr, OrderByItem, ParamRef, PreparedExecuteRequest, PreparedParamRef, PreparedStatementHandle, PrimaryKeyConstraint, ProjectionExpr, ProjectionItem, RawExpr, RawQueryAst, RawQueryColumn, RawQueryResult, RawSqlLiteral, SQL_CHAR_CODEC_ID, SQL_FLOAT_CODEC_ID, SQL_INT_CODEC_ID, SQL_TEXT_CODEC_ID, SQL_VARCHAR_CODEC_ID, SelectAst, SelectAstOptions, SqlCharCodec, SqlCharDescriptor, SqlCodecCallContext, SqlCodecInstanceContext, SqlColumnRef, SqlConnection, SqlDriver, SqlDriverState, SqlExecuteRequest, SqlExplainResult, SqlFloatCodec, SqlFloatDescriptor, SqlIntCodec, SqlIntDescriptor, SqlQueryable, SqlStatementStats, SqlTextCodec, SqlTextDescriptor, SqlTransaction, SqlVarcharCodec, SqlVarcharDescriptor, SubqueryExpr, TableRef, TableSource, ToWhereExpr, UniqueConstraint, UpdateAst, WhereArg, WindowFn, WindowFuncExpr, aggregateFnNames, collectOrderedParamRefs, compact, frozenCodecRef, isAggregateFn, isDdlNode, isQueryAst, isWhereExpr, queryAstKinds, sqlCharColumn, sqlCharDecode, sqlCharDescriptor, sqlCharEncode, sqlCharRenderOutputType, sqlFloatColumn, sqlFloatDecode, sqlFloatDecodeJson, sqlFloatDescriptor, sqlFloatEncode, sqlFloatEncodeJson, sqlIntColumn, sqlIntDecode, sqlIntDescriptor, sqlIntEncode, sqlTextColumn, sqlTextDecode, sqlTextDescriptor, sqlTextEncode, sqlVarcharColumn, sqlVarcharDecode, sqlVarcharDescriptor, sqlVarcharEncode, sqlVarcharRenderOutputType, whereExprKinds };
@@ -1,7 +1,7 @@
1
1
  import { c as SqlStorage } from "./sql-storage-8LqxeLAY-DH4DdUXx.mjs";
2
- import "./types-UcHa2cTe.mjs";
3
- import { o as AnyCodecDescriptor$1 } from "./types-v3qxLLxo-DCeKv7yY.mjs";
4
- import { n as CodecDescriptorRegistry } from "./query-lane-context-Qa-eddrE-kuZ8Z86-.mjs";
2
+ import "./types-C36_3E6_.mjs";
3
+ import { o as AnyCodecDescriptor$1 } from "./types-v3qxLLxo-Clw_yBAh.mjs";
4
+ import { n as CodecDescriptorRegistry } from "./query-lane-context-Qa-eddrE-BQV6J9nV.mjs";
5
5
  import { CodecRef } from "@prisma/orm-framework/components/codec";
6
6
  //#region ../../../2-sql/4-lanes/relational-core/dist/exports/codec-descriptor-registry.d.mts
7
7
  //#region src/codec-descriptor-registry.d.ts
@@ -1,2 +1,2 @@
1
- import { n as codecRefForStorageColumn, t as buildCodecDescriptorRegistry } from "./codec-descriptor-registry-N0dhtKaH.mjs";
1
+ import { n as codecRefForStorageColumn, t as buildCodecDescriptorRegistry } from "./codec-descriptor-registry-ECZ4ohtG.mjs";
2
2
  export { buildCodecDescriptorRegistry, codecRefForStorageColumn };
@@ -1,7 +1,7 @@
1
1
  import { a as ReferentialAction } from "./foreign-key-C-iTPuRT-C9ip8zFx.mjs";
2
- import "./types-UcHa2cTe.mjs";
3
- import { $ as JoinAst, D as ColumnRef, Et as SelectAst, Ft as UpdateAst, Nt as TableSource, T as CodecRef$1, X as InsertAst, bt as ProjectionItem, c as AnyFromSource, gt as OrderByItem, s as AnyExpression } from "./types-v3qxLLxo-DCeKv7yY.mjs";
4
- import { d as LiteralColumnDefault, f as PrimaryKeyConstraint, l as ForeignKeyConstraint, n as CheckExpressionConstraint, p as UniqueConstraint, r as DdlColumn, t as AnyDdlColumnDefault, u as FunctionColumnDefault } from "./ddl-types-CXx4vPz6-BsgrnSUY.mjs";
2
+ import "./types-C36_3E6_.mjs";
3
+ import { $ as JoinAst, D as ColumnRef, Et as SelectAst, Ft as UpdateAst, Nt as TableSource, T as CodecRef$1, X as InsertAst, bt as ProjectionItem, c as AnyFromSource, gt as OrderByItem, s as AnyExpression } from "./types-v3qxLLxo-Clw_yBAh.mjs";
4
+ import { d as LiteralColumnDefault, f as PrimaryKeyConstraint, l as ForeignKeyConstraint, n as CheckExpressionConstraint, p as UniqueConstraint, r as DdlColumn, t as AnyDdlColumnDefault, u as FunctionColumnDefault } from "./ddl-types-CXx4vPz6-Dko-GTTj.mjs";
5
5
  import { ColumnDefaultLiteralInputValue } from "@prisma/orm-framework/contract/types";
6
6
  import { ParamSpec } from "@prisma/orm-framework/operations";
7
7
  //#region ../../../2-sql/4-lanes/relational-core/dist/exports/contract-free.d.mts
@@ -1,2 +1,2 @@
1
- import { C as buildOperation, D as toExpr, E as param, S as TraitExpression, T as createRawSql, _ as RawSqlStatementBuilder, a as CodecValue, b as ScalarListExpression, c as RawAffectedCountQuery, d as RawRow, f as RawRowQuery, g as RawSqlInterpolation, h as RawSqlBuilder, i as CodecTypesBase, l as RawCodecInferer, m as RawRowSpecEntry, n as BuildOperationSpec, o as Expression, p as RawRowSpec, r as CodecExpression, s as NoReservedRowColumn, t as AffectedCount, u as RawPlanContext, v as RawSqlStatementTag, w as codecOf, x as ScopeField, y as RawSqlTag } from "./expression-PL-Tra28.mjs";
1
+ import { C as buildOperation, D as toExpr, E as param, S as TraitExpression, T as createRawSql, _ as RawSqlStatementBuilder, a as CodecValue, b as ScalarListExpression, c as RawAffectedCountQuery, d as RawRow, f as RawRowQuery, g as RawSqlInterpolation, h as RawSqlBuilder, i as CodecTypesBase, l as RawCodecInferer, m as RawRowSpecEntry, n as BuildOperationSpec, o as Expression, p as RawRowSpec, r as CodecExpression, s as NoReservedRowColumn, t as AffectedCount, u as RawPlanContext, v as RawSqlStatementTag, w as codecOf, x as ScopeField, y as RawSqlTag } from "./expression-mku9I7Ue.mjs";
2
2
  export { AffectedCount, BuildOperationSpec, CodecExpression, CodecTypesBase, CodecValue, Expression, NoReservedRowColumn, RawAffectedCountQuery, RawCodecInferer, RawPlanContext, RawRow, RawRowQuery, RawRowSpec, RawRowSpecEntry, RawSqlBuilder, RawSqlInterpolation, RawSqlStatementBuilder, RawSqlStatementTag, RawSqlTag, ScalarListExpression, ScopeField, TraitExpression, buildOperation, codecOf, createRawSql, param, toExpr };
@@ -1,2 +1,2 @@
1
- import { a as toExpr, i as param, n as codecOf, r as createRawSql, t as buildOperation } from "./expression-DmQbErXU.mjs";
1
+ import { a as toExpr, i as param, n as codecOf, r as createRawSql, t as buildOperation } from "./expression-B2Ox7zKM.mjs";
2
2
  export { buildOperation, codecOf, createRawSql, param, toExpr };
@@ -1,3 +1,3 @@
1
- import { a as SqlParamRefMutatorInternal, i as SqlParamRefMutator, n as ParamRefEntryUnion, o as createSqlParamRefMutator, r as ParamRefHandle, t as ParamRefEntry } from "./middleware-AhTz1BOW-th-Suxuf.mjs";
2
- import "./middleware--TtoxUiW.mjs";
1
+ import { a as SqlParamRefMutatorInternal, i as SqlParamRefMutator, n as ParamRefEntryUnion, o as createSqlParamRefMutator, r as ParamRefHandle, t as ParamRefEntry } from "./middleware-AhTz1BOW-CtQWS4mb.mjs";
2
+ import "./middleware-Cev-ZFyS.mjs";
3
3
  export { type ParamRefEntry, type ParamRefEntryUnion, type ParamRefHandle, type SqlParamRefMutator, type SqlParamRefMutatorInternal, createSqlParamRefMutator };
@@ -1,4 +1,4 @@
1
- import { n as planFromAst, t as SqlQueryPlan } from "./plan-CDxduYaN-pLIyyJaB.mjs";
2
- import { t as SqlExecutionPlan } from "./sql-execution-plan--jKyLpe5-CMGhgO0M.mjs";
3
- import "./plan-BHLdb0Z7.mjs";
1
+ import { n as planFromAst, t as SqlQueryPlan } from "./plan-CDxduYaN-B2kMLIQQ.mjs";
2
+ import { t as SqlExecutionPlan } from "./sql-execution-plan--jKyLpe5-Bcz9QM2s.mjs";
3
+ import "./plan-C7VP7jOh.mjs";
4
4
  export { type SqlExecutionPlan, SqlQueryPlan, planFromAst };
@@ -1,3 +1,3 @@
1
- import { a as MutationDefaultsOptions, c as SqlAggregateDescriptorRegistry, d as TypeHelperRegistry, i as MutationDefaultsOp, n as CodecDescriptorRegistry, o as ResolvedSqlAggregate, r as ExecutionContext, t as AppliedMutationDefault } from "./query-lane-context-Qa-eddrE-kuZ8Z86-.mjs";
2
- import "./query-lane-context-XMvk7fmY.mjs";
1
+ import { a as MutationDefaultsOptions, c as SqlAggregateDescriptorRegistry, d as TypeHelperRegistry, i as MutationDefaultsOp, n as CodecDescriptorRegistry, o as ResolvedSqlAggregate, r as ExecutionContext, t as AppliedMutationDefault } from "./query-lane-context-Qa-eddrE-BQV6J9nV.mjs";
2
+ import "./query-lane-context-CGdMIEuv.mjs";
3
3
  export { AppliedMutationDefault, CodecDescriptorRegistry, ExecutionContext, MutationDefaultsOp, MutationDefaultsOptions, ResolvedSqlAggregate, SqlAggregateDescriptorRegistry, TypeHelperRegistry };
@@ -1,3 +1,3 @@
1
- import { S as TablesOf, _ as SqlOrmPlan, a as ColumnsOf, b as TableKey, c as META, d as ModelMetadata, f as OperationTypeSignature, g as SqlBuilderOptions, h as RuntimeScope, i as ColumnResolutionContract, l as Meta, m as OperationsForTypeId, n as BuildParamsMap, o as ComputeColumnJsType, p as OperationTypes, r as CodecTypes, s as Expr, t as BuildOptions, u as ModelDef, v as SqlPlan, x as TableMetadata, y as TableDef } from "./types-CyxGtOOh-BggSa6Fe.mjs";
2
- import "./types-B0msOnBM.mjs";
1
+ import { S as TablesOf, _ as SqlOrmPlan, a as ColumnsOf, b as TableKey, c as META, d as ModelMetadata, f as OperationTypeSignature, g as SqlBuilderOptions, h as RuntimeScope, i as ColumnResolutionContract, l as Meta, m as OperationsForTypeId, n as BuildParamsMap, o as ComputeColumnJsType, p as OperationTypes, r as CodecTypes, s as Expr, t as BuildOptions, u as ModelDef, v as SqlPlan, x as TableMetadata, y as TableDef } from "./types-CyxGtOOh-BJnoWm0f.mjs";
2
+ import "./types-DvsoMNLs.mjs";
3
3
  export { BuildOptions, BuildParamsMap, CodecTypes, ColumnResolutionContract, ColumnsOf, ComputeColumnJsType, Expr, META, Meta, ModelDef, ModelMetadata, OperationTypeSignature, OperationTypes, OperationsForTypeId, type RuntimeScope, SqlBuilderOptions, type SqlOrmPlan, SqlPlan, TableDef, TableKey, TableMetadata, TablesOf };
@@ -1,6 +1,6 @@
1
1
  import "./resolve-storage-table-Nyrgk4h8.mjs";
2
- import { S as RuntimeMutationDefaultGenerator } from "./prepared-statement-9QpkE6JG-ti591XdQ.mjs";
3
- import "./index-CrsJm0Rv.mjs";
2
+ import { S as RuntimeMutationDefaultGenerator } from "./prepared-statement-9QpkE6JG-B9xqBu5T.mjs";
3
+ import "./index-DzBzeTAy.mjs";
4
4
  import { ResolvedDomainModel, UNBOUND_DOMAIN_NAMESPACE_ID, resolveDomainModel } from "@prisma/orm-framework/contract/types";
5
5
  import { RuntimeFamilyDescriptor, RuntimeFamilyInstance } from "@prisma/orm-framework/components/execution";
6
6
  //#region ../../../2-sql/9-family/dist/runtime.d.mts
@@ -44,4 +44,4 @@ declare const sqlRuntimeFamilyDescriptor: RuntimeFamilyDescriptor<'sql', SqlRunt
44
44
  declare function timestampNowRuntimeGenerator(): RuntimeMutationDefaultGenerator;
45
45
  //#endregion
46
46
  export { timestampNowRuntimeGenerator as a, sqlRuntimeFamilyDescriptor as i, UNBOUND_DOMAIN_NAMESPACE_ID as n, resolveDomainModel as r, ResolvedDomainModel as t };
47
- //# sourceMappingURL=runtime-C88G8y1X.d.mts.map
47
+ //# sourceMappingURL=runtime-CzCx0TKe.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"runtime-C88G8y1X.d.mts","names":[],"sources":["../../../../2-sql/9-family/dist/runtime.d.mts"],"mappings":";;;;;;;;;;;;;;;UAaU,iCAAiC;;;;;;;;;;;cAW7B,4BAA4B,+BAA+B;;;;;;;;;;;;;;;;;iBAiBxD,gCAAgC"}
1
+ {"version":3,"file":"runtime-CzCx0TKe.d.mts","names":[],"sources":["../../../../2-sql/9-family/dist/runtime.d.mts"],"mappings":";;;;;;;;;;;;;;;UAaU,iCAAiC;;;;;;;;;;;cAW7B,4BAA4B,+BAA+B;;;;;;;;;;;;;;;;;iBAiBxD,gCAAgC"}
@@ -1,5 +1,5 @@
1
- import { o as MarkerReadResult } from "./ast-PAXgfA8z.mjs";
2
- import { d as TypeHelperRegistry, r as ExecutionContext } from "./query-lane-context-Qa-eddrE-kuZ8Z86-.mjs";
3
- import { A as SqlMiddlewareContext, B as TransactionContext, C as RuntimeParameterizedCodecDescriptor, D as SqlExecutionStack, E as RuntimeTransaction, F as SqlRuntimeExtensionDescriptor, G as encodeParamsWithMetadata, H as createExecutionContext, I as SqlRuntimeExtensionInstance, J as withTransaction, L as SqlRuntimeTargetDescriptor, M as SqlRuntimeAdapterInstance, N as SqlRuntimeBase, O as SqlExecutionStackWithDriver, P as SqlRuntimeDriverInstance, R as SqlStaticContributions, S as RuntimeMutationDefaultGenerator, T as RuntimeTelemetryEvent, U as createSqlExecutionStack, V as VerifyMarkerOption, W as deriveParamMetadata, _ as PreparedStatementInternals, a as DeclaredNullable, b as RuntimeConnection, c as ParamSpec, d as PreparedExecution, f as PreparedExecutionImpl, g as PreparedStatementImpl, i as DeclaredCodecId, j as SqlRuntimeAdapterDescriptor, k as SqlMiddleware, l as ParamsFromDeclaration, m as PreparedStatement, n as ConnectionProvider, o as GeneratorStability, p as PreparedFor, r as Declaration, s as MarkerReader, t as BindSiteParams, u as PrepareCallback, w as RuntimeQueryable, x as RuntimeFamilyAdapter, y as Runtime, z as TelemetryOutcome } from "./prepared-statement-9QpkE6JG-ti591XdQ.mjs";
4
- import { a as LintsOptions, c as budgets, d as lints, f as lowerSqlPlan, i as ExecuteInterceptResult, l as createAstCodecRegistry, m as validateContractCodecMappings, n as AfterQueryResult, o as Log, p as validateCodecRegistryCompleteness, r as BudgetsOptions, s as QueryInterceptResult, t as AfterExecuteResult, u as extractCodecIds } from "./index-CrsJm0Rv.mjs";
1
+ import { o as MarkerReadResult } from "./ast-DuLukI6f.mjs";
2
+ import { d as TypeHelperRegistry, r as ExecutionContext } from "./query-lane-context-Qa-eddrE-BQV6J9nV.mjs";
3
+ import { A as SqlMiddlewareContext, B as TransactionContext, C as RuntimeParameterizedCodecDescriptor, D as SqlExecutionStack, E as RuntimeTransaction, F as SqlRuntimeExtensionDescriptor, G as encodeParamsWithMetadata, H as createExecutionContext, I as SqlRuntimeExtensionInstance, J as withTransaction, L as SqlRuntimeTargetDescriptor, M as SqlRuntimeAdapterInstance, N as SqlRuntimeBase, O as SqlExecutionStackWithDriver, P as SqlRuntimeDriverInstance, R as SqlStaticContributions, S as RuntimeMutationDefaultGenerator, T as RuntimeTelemetryEvent, U as createSqlExecutionStack, V as VerifyMarkerOption, W as deriveParamMetadata, _ as PreparedStatementInternals, a as DeclaredNullable, b as RuntimeConnection, c as ParamSpec, d as PreparedExecution, f as PreparedExecutionImpl, g as PreparedStatementImpl, i as DeclaredCodecId, j as SqlRuntimeAdapterDescriptor, k as SqlMiddleware, l as ParamsFromDeclaration, m as PreparedStatement, n as ConnectionProvider, o as GeneratorStability, p as PreparedFor, r as Declaration, s as MarkerReader, t as BindSiteParams, u as PrepareCallback, w as RuntimeQueryable, x as RuntimeFamilyAdapter, y as Runtime, z as TelemetryOutcome } from "./prepared-statement-9QpkE6JG-B9xqBu5T.mjs";
4
+ import { a as LintsOptions, c as budgets, d as lints, f as lowerSqlPlan, i as ExecuteInterceptResult, l as createAstCodecRegistry, m as validateContractCodecMappings, n as AfterQueryResult, o as Log, p as validateCodecRegistryCompleteness, r as BudgetsOptions, s as QueryInterceptResult, t as AfterExecuteResult, u as extractCodecIds } from "./index-DzBzeTAy.mjs";
5
5
  export { type AfterExecuteResult, type AfterQueryResult, type BindSiteParams, type BudgetsOptions, type ConnectionProvider, type Declaration, type DeclaredCodecId, type DeclaredNullable, type ExecuteInterceptResult, type ExecutionContext, type GeneratorStability, type LintsOptions, type Log, type MarkerReadResult, type MarkerReader, type ParamSpec, type ParamsFromDeclaration, type PrepareCallback, type PreparedExecution, PreparedExecutionImpl, type PreparedFor, type PreparedStatement, PreparedStatementImpl, type PreparedStatementInternals, type QueryInterceptResult, type Runtime, type RuntimeConnection, type RuntimeFamilyAdapter, type RuntimeMutationDefaultGenerator, type RuntimeParameterizedCodecDescriptor, type RuntimeQueryable, type RuntimeTelemetryEvent, type RuntimeTransaction, type SqlExecutionStack, type SqlExecutionStackWithDriver, type SqlMiddleware, type SqlMiddlewareContext, type SqlRuntimeAdapterDescriptor, type SqlRuntimeAdapterInstance, SqlRuntimeBase, type SqlRuntimeDriverInstance, type SqlRuntimeExtensionDescriptor, type SqlRuntimeExtensionInstance, type SqlRuntimeTargetDescriptor, type SqlStaticContributions, type TelemetryOutcome, type TransactionContext, type TypeHelperRegistry, type VerifyMarkerOption, budgets, createAstCodecRegistry, createExecutionContext, createSqlExecutionStack, deriveParamMetadata, encodeParamsWithMetadata, extractCodecIds, lints, lowerSqlPlan, validateCodecRegistryCompleteness, validateContractCodecMappings, withTransaction };
package/dist/runtime.mjs CHANGED
@@ -3,17 +3,17 @@ import { A as PreparedParamRef, H as isQueryAst } from "./types-Dt4e_jC--COeP8xz
3
3
  import { t as collectOrderedParamRefs } from "./util-DQQgv2j1-D6INZaRG.mjs";
4
4
  import { t as createSqlParamRefMutator } from "./middleware-CMr4CHNz-DHIUdxlm.mjs";
5
5
  import { t as buildSqlAggregateDescriptorRegistry } from "./aggregate-descriptor-registry-C7hel5O7.mjs";
6
- import { t as buildCodecDescriptorRegistry } from "./codec-descriptor-registry-N0dhtKaH.mjs";
6
+ import { t as buildCodecDescriptorRegistry } from "./codec-descriptor-registry-ECZ4ohtG.mjs";
7
7
  import { i as runPreparedQuery, n as preparedStatementQuery, r as runPreparedExecute, t as preparedStatementExecute } from "./prepared-query-BJr50wPm-ChoqfJbX.mjs";
8
8
  import { isStructuredError } from "@prisma/orm-framework/utils/structured-error";
9
9
  import { createHash } from "node:crypto";
10
10
  import { assertNever } from "@prisma/orm-framework/utils/internal-error";
11
11
  import { ifDefined } from "@prisma/orm-framework/utils/defined";
12
+ import { AsyncIterableResult, RuntimeCore, checkAborted, checkMiddlewareCompatibility, raceAgainstAbort, runBeforeExecuteChain, runBeforeQueryChain, runExecuteWithMiddleware, runQueryWithMiddleware, runtimeError } from "@prisma/orm-framework/components/runtime";
12
13
  import { blindCast } from "@prisma/orm-framework/utils/casts";
13
14
  import { canonicalStringify } from "@prisma/orm-framework/utils/canonical-stringify";
14
15
  import { checkContractComponentRequirements, mergeCapabilityMatrices } from "@prisma/orm-framework/components/components";
15
16
  import { materializeCodec, resolveCodecDescriptorOrThrow } from "@prisma/orm-framework/components/codec";
16
- import { AsyncIterableResult, RuntimeCore, checkAborted, checkMiddlewareCompatibility, raceAgainstAbort, runBeforeExecuteChain, runBeforeQueryChain, runExecuteWithMiddleware, runQueryWithMiddleware, runtimeError } from "@prisma/orm-framework/components/runtime";
17
17
  import { canonicalizeJson } from "@prisma/orm-framework/components/utils";
18
18
  import { createExecutionStack } from "@prisma/orm-framework/components/execution";
19
19
  import { hashContent } from "@prisma/orm-framework/utils/hash-content";
@@ -1,2 +1,2 @@
1
- import { K as preparedStatementExecute, h as PreparedStatementExecuteTarget, q as preparedStatementQuery, v as PreparedStatementQueryTarget } from "./prepared-statement-9QpkE6JG-ti591XdQ.mjs";
1
+ import { K as preparedStatementExecute, h as PreparedStatementExecuteTarget, q as preparedStatementQuery, v as PreparedStatementQueryTarget } from "./prepared-statement-9QpkE6JG-B9xqBu5T.mjs";
2
2
  export { type PreparedStatementExecuteTarget, type PreparedStatementQueryTarget, preparedStatementExecute, preparedStatementQuery };
@@ -1,5 +1,5 @@
1
1
  import { c as SqlStorage } from "./sql-storage-8LqxeLAY-DH4DdUXx.mjs";
2
- import "./types-UcHa2cTe.mjs";
2
+ import "./types-C36_3E6_.mjs";
3
3
  import { v as SqlSchemaIRNode } from "./types-YStFFkKs-D9UAmnON.mjs";
4
4
  import "./types-Dwcw0F8X.mjs";
5
5
  import { Contract, ControlPolicy } from "@prisma/orm-framework/contract/types";
@@ -44,4 +44,4 @@ interface SqlSchemaDiffInput {
44
44
  type SqlSchemaDiffFn = (input: SqlSchemaDiffInput) => SqlSchemaDiffResult;
45
45
  //#endregion
46
46
  export { SqlSchemaDiffInput as n, SqlSchemaDiffResult as r, SqlSchemaDiffFn as t };
47
- //# sourceMappingURL=schema-differ-DpG_gnur-DFAtGezx.d.mts.map
47
+ //# sourceMappingURL=schema-differ-DpG_gnur-BICVtTHY.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"schema-differ-DpG_gnur-DFAtGezx.d.mts","names":[],"sources":["../../../../2-sql/9-family/dist/schema-differ-DpG_gnur.d.mts"],"mappings":";;;;;;;;;;;;;;;;;UAcU;;WAEC,iBAAiB;;;;;;;;;WASjB,uBAAuB,OAAO,oBAAoB;;;;;;WAMlD,gBAAgB;aACd,QAAQ;;;UAGX;WACC,UAAU,SAAS;WACnB,QAAQ;WACR,qBAAqB,cAAc;;KAEzC,mBAAmB,OAAO,uBAAuB"}
1
+ {"version":3,"file":"schema-differ-DpG_gnur-BICVtTHY.d.mts","names":[],"sources":["../../../../2-sql/9-family/dist/schema-differ-DpG_gnur.d.mts"],"mappings":";;;;;;;;;;;;;;;;;UAcU;;WAEC,iBAAiB;;;;;;;;;WASjB,uBAAuB,OAAO,oBAAoB;;;;;;WAMlD,gBAAgB;aACd,QAAQ;;;UAGX;WACC,UAAU,SAAS;WACnB,QAAQ;WACR,qBAAqB,cAAc;;KAEzC,mBAAmB,OAAO,uBAAuB"}
@@ -1,4 +1,4 @@
1
- import { l as isStorageTypeInstance } from "./types-CUsJrvEl.mjs";
1
+ import { u as isStorageTypeInstance } from "./types-D0B65hip.mjs";
2
2
  import { effectiveControlPolicy } from "@prisma/orm-framework/contract/types";
3
3
  import { ifDefined } from "@prisma/orm-framework/utils/defined";
4
4
  import { blindCast } from "@prisma/orm-framework/utils/casts";
@@ -217,4 +217,4 @@ function verifySqlSchemaByDiff(input) {
217
217
  //#endregion
218
218
  export { computeStorageTypeVerdict as a, computeSqlDiffVerdict as i, classifyDiffSubjectGranularity as n, extractCodecControlHooks as o, classifySqlDiffIssue as r, verifySqlSchemaByDiff as s, classifyDiffEntityKind as t };
219
219
 
220
- //# sourceMappingURL=schema-verify-C_PEdlAr-Dxxjm6EM.mjs.map
220
+ //# sourceMappingURL=schema-verify-C_PEdlAr-CmXrFuW1.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"schema-verify-C_PEdlAr-Dxxjm6EM.mjs","names":[],"sources":["../../../../2-sql/9-family/dist/schema-verify-C_PEdlAr.mjs"],"sourcesContent":["import { blindCast } from \"@internal/utils/casts\";\nimport { assertUniqueCodecOwner, dispositionForCategory, issueOutcome } from \"@internal/framework-components/control\";\nimport { ifDefined } from \"@internal/utils/defined\";\nimport { effectiveControlPolicy } from \"@internal/contract/types\";\nimport { isStorageTypeInstance } from \"@internal/sql-contract/types\";\n//#region src/core/assembly.ts\nfunction hasCodecControlHooks(descriptor) {\n\tif (typeof descriptor !== \"object\" || descriptor === null) return false;\n\tconst hooks = descriptor.types?.codecTypes?.controlPlaneHooks;\n\treturn hooks !== null && hooks !== void 0 && typeof hooks === \"object\";\n}\nfunction extractCodecControlHooks(descriptors) {\n\tconst hooks = /* @__PURE__ */ new Map();\n\tconst owners = /* @__PURE__ */ new Map();\n\tfor (const descriptor of descriptors) {\n\t\tif (typeof descriptor !== \"object\" || descriptor === null) continue;\n\t\tif (!hasCodecControlHooks(descriptor)) continue;\n\t\tconst controlPlaneHooks = descriptor.types.codecTypes.controlPlaneHooks;\n\t\tfor (const [codecId, hook] of Object.entries(controlPlaneHooks)) {\n\t\t\tassertUniqueCodecOwner({\n\t\t\t\tcodecId,\n\t\t\t\towners,\n\t\t\t\tdescriptorId: descriptor.id,\n\t\t\t\tentityLabel: \"control hooks\",\n\t\t\t\tentityOwnershipLabel: \"owner\"\n\t\t\t});\n\t\t\thooks.set(codecId, hook);\n\t\t\towners.set(codecId, descriptor.id);\n\t\t}\n\t}\n\treturn hooks;\n}\n//#endregion\n//#region src/core/diff/verifier-disposition.ts\n/**\n* Classifies a codec `verifyType` hook finding into the target-neutral\n* categories the framework grades. A storage type is a named type instance\n* (e.g. a native enum); the only shape divergence it can carry is a change\n* to its value set, so a paired mismatch always classifies as `valueDrift`.\n*/\nfunction classifyStorageTypeDiffIssue(issue) {\n\tif (issueOutcome(issue) === \"not-found\") return \"declaredMissing\";\n\tif (issueOutcome(issue) === \"not-expected\") return \"extraAuxiliary\";\n\treturn \"valueDrift\";\n}\nfunction verifierDisposition(controlPolicy, issue) {\n\treturn dispositionForCategory(controlPolicy, classifyStorageTypeDiffIssue(issue));\n}\n//#endregion\n//#region src/core/diff/schema-verify.ts\nfunction issueNode(issue) {\n\tconst node = issue.expected ?? issue.actual;\n\tif (node === void 0) return void 0;\n\treturn blindCast(node);\n}\n/**\n* Resolves an issue's framework-neutral {@link DiffSubjectGranularity} on\n* demand, from the issue's node's `nodeKind` via the target-provided\n* `granularityOf` map. The node carries only its `nodeKind` identity, never a\n* classification, and nothing is stamped onto the issue — every consumer\n* (the family verdict below, the framework aggregate's unclaimed-elements\n* sweep via {@link import('@internal/framework-components/control').SchemaSubjectClassifierCapable})\n* calls this the same way, resolved by the family/target that owns the node\n* vocabulary. `undefined` for an issue with no node.\n*/\nfunction classifyDiffSubjectGranularity(issue, granularityOf) {\n\tconst node = issueNode(issue);\n\treturn node === void 0 ? void 0 : granularityOf(node.nodeKind);\n}\n/**\n* Resolves an issue's storage `entityKind` on demand, from the issue's\n* node's `nodeKind` via the target-provided `entityKindOf` map — the sibling\n* of {@link classifyDiffSubjectGranularity}, called the same way by the same\n* consumers (via\n* {@link import('@internal/framework-components/control').SchemaSubjectClassifierCapable}).\n* `undefined` for an issue with no node, or for a node kind with no storage\n* entity of its own.\n*/\nfunction classifyDiffEntityKind(issue, entityKindOf) {\n\tconst node = issueNode(issue);\n\treturn node === void 0 ? void 0 : entityKindOf(node.nodeKind);\n}\n/**\n* Re-keys the legacy `classifySqlVerifierIssueKind` category mapping on the\n* issue's {@link DiffSubjectGranularity} (resolved via `granularityOf`) + the\n* issue reason. The vocabulary maps one-to-one: an undeclared live entity or\n* namespace is `extraTopLevelObject`, an undeclared live field\n* `extraNestedElement`, undeclared auxiliaries (constraints, indexes,\n* defaults) and structural leaves (policies) `extraAuxiliary`; every paired\n* divergence is `declaredIncompatible`; anything the database lacks is\n* `declaredMissing`.\n* `granularityOf` is the target's classifier, so target and extension node\n* kinds classify without the family importing them.\n*/\nfunction classifySqlDiffIssue(issue, granularityOf) {\n\tif (issueOutcome(issue) === \"not-found\") return \"declaredMissing\";\n\tif (issueOutcome(issue) === \"not-expected\") {\n\t\tconst granularity = classifyDiffSubjectGranularity(issue, granularityOf);\n\t\tif (granularity === \"entity\" || granularity === \"namespace\") return \"extraTopLevelObject\";\n\t\tif (granularity === \"field\") return \"extraNestedElement\";\n\t\treturn \"extraAuxiliary\";\n\t}\n\treturn \"declaredIncompatible\";\n}\n/**\n* Whether a `not-expected` issue is a strict-mode-only finding. The legacy\n* walk detected every relational extra (namespaces, entities, fields, and\n* their auxiliaries) only under `--strict`; the structural diff (roots, RLS\n* policies, roles) was never strict-gated — its extras fail in both modes.\n* Keyed on the issue's granularity, resolved via `granularityOf`.\n*/\nfunction isStrictOnlyExtra(issue, granularityOf) {\n\tconst granularity = classifyDiffSubjectGranularity(issue, granularityOf);\n\treturn granularity === \"namespace\" || granularity === \"entity\" || granularity === \"field\" || granularity === \"auxiliary\";\n}\n/**\n* Applies the two consumer filters to a diff issue list: strict gating\n* (relational `not-expected` findings drop in lenient mode) and\n* control-policy disposition (each surviving issue grades against its\n* subject table's effective policy; suppressed issues drop, `observed`\n* subjects warn). The verify verdict is `failures.length === 0`.\n*/\nfunction computeSqlDiffVerdict(input) {\n\tconst failures = [];\n\tconst warnings = [];\n\tfor (const issue of input.issues) {\n\t\tif (!input.strict && issueOutcome(issue) === \"not-expected\" && isStrictOnlyExtra(issue, input.granularityOf)) continue;\n\t\tconst disposition = dispositionForCategory(effectiveControlPolicy(input.resolveControlPolicy(issue), input.defaultControlPolicy), classifySqlDiffIssue(issue, input.granularityOf));\n\t\tif (disposition === \"suppress\") continue;\n\t\tif (disposition === \"warn\") {\n\t\t\twarnings.push(issue);\n\t\t\tcontinue;\n\t\t}\n\t\tfailures.push(issue);\n\t}\n\treturn {\n\t\tfailures,\n\t\twarnings\n\t};\n}\nfunction computeStorageTypeVerdict(input) {\n\tconst failures = [];\n\tconst warnings = [];\n\tconst policy = effectiveControlPolicy(void 0, input.contract.defaultControlPolicy);\n\tfor (const pair of input.namespacePairs) {\n\t\tif (pair.actual === void 0) continue;\n\t\tfor (const [typeName, typeInstance] of Object.entries(input.contract.storage.types ?? {})) {\n\t\t\tif (!isStorageTypeInstance(typeInstance)) continue;\n\t\t\tconst hook = input.codecHooks.get(typeInstance.codecId);\n\t\t\tif (!hook?.verifyType) continue;\n\t\t\tconst typeIssues = hook.verifyType({\n\t\t\t\ttypeName,\n\t\t\t\ttypeInstance,\n\t\t\t\tschema: pair.actual\n\t\t\t});\n\t\t\tfor (const issue of typeIssues) {\n\t\t\t\tconst disposition = verifierDisposition(policy, issue);\n\t\t\t\tif (disposition === \"suppress\") continue;\n\t\t\t\tif (disposition === \"warn\") {\n\t\t\t\t\twarnings.push(issue);\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tfailures.push(issue);\n\t\t\t}\n\t\t}\n\t}\n\treturn {\n\t\tfailures,\n\t\twarnings\n\t};\n}\n/**\n* THE SQL schema verify: runs the target's full-tree node diff, grades it\n* through the family's post-diff filters (strict gating + control-policy\n* disposition) plus the codec `verifyType` hook findings, and wraps the\n* verdict in the issue-based result envelope. `ok` holds exactly when both\n* issue lists are empty — the lists carry the verdict's failures.\n*/\nfunction verifySqlSchemaByDiff(input) {\n\tconst startTime = Date.now();\n\tconst verdictDiff = input.diffSchema({\n\t\tcontract: input.contract,\n\t\tschema: input.schema,\n\t\tframeworkComponents: input.frameworkComponents\n\t});\n\tconst diffVerdict = computeSqlDiffVerdict({\n\t\tissues: verdictDiff.issues,\n\t\tresolveControlPolicy: verdictDiff.resolveControlPolicy,\n\t\tstrict: input.strict,\n\t\tdefaultControlPolicy: input.contract.defaultControlPolicy,\n\t\tgranularityOf: input.granularityOf\n\t});\n\tconst storageTypeVerdict = computeStorageTypeVerdict({\n\t\tcontract: input.contract,\n\t\tnamespacePairs: verdictDiff.namespacePairs,\n\t\tcodecHooks: extractCodecControlHooks(input.frameworkComponents)\n\t});\n\tconst failCount = diffVerdict.failures.length + storageTypeVerdict.failures.length;\n\tconst ok = failCount === 0;\n\tconst profileHash = \"profileHash\" in input.contract && typeof input.contract.profileHash === \"string\" ? input.contract.profileHash : void 0;\n\treturn {\n\t\tok,\n\t\t...ok ? {} : { code: \"CONTRACT.SCHEMA_VERIFICATION_FAILED\" },\n\t\tsummary: ok ? \"Database schema satisfies contract\" : `Database schema does not satisfy contract (${failCount} failure${failCount === 1 ? \"\" : \"s\"})`,\n\t\tcontract: {\n\t\t\tstorageHash: input.contract.storage.storageHash,\n\t\t\t...ifDefined(\"profileHash\", profileHash)\n\t\t},\n\t\ttarget: {\n\t\t\texpected: input.contract.target,\n\t\t\tactual: input.contract.target\n\t\t},\n\t\tschema: {\n\t\t\tissues: [...diffVerdict.failures, ...storageTypeVerdict.failures],\n\t\t\twarnings: { issues: [...diffVerdict.warnings, ...storageTypeVerdict.warnings] }\n\t\t},\n\t\tmeta: { strict: input.strict },\n\t\ttimings: { total: Date.now() - startTime }\n\t};\n}\n//#endregion\nexport { computeStorageTypeVerdict as a, computeSqlDiffVerdict as i, classifyDiffSubjectGranularity as n, verifySqlSchemaByDiff as o, classifySqlDiffIssue as r, extractCodecControlHooks as s, classifyDiffEntityKind as t };\n\n//# sourceMappingURL=schema-verify-C_PEdlAr.mjs.map"],"mappings":";;;;;;AAMA,SAAS,qBAAqB,YAAY;CACzC,IAAI,OAAO,eAAe,YAAY,eAAe,MAAM,OAAO;CAClE,MAAM,QAAQ,WAAW,OAAO,YAAY;CAC5C,O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Q,CAAC,GAAG,YAAY,UAAU,GAAG,mBAAmB,QAAQ;GAChE,UAAU,EAAE,QAAQ,CAAC,GAAG,YAAY,UAAU,GAAG,mBAAmB,QAAQ,EAAE;EAC/E;EACA,MAAM,EAAE,QAAQ,MAAM,OAAO;EAC7B,SAAS,EAAE,OAAO,KAAK,IAAI,IAAI,UAAU;CAC1C;AACD"}
1
+ {"version":3,"file":"schema-verify-C_PEdlAr-CmXrFuW1.mjs","names":[],"sources":["../../../../2-sql/9-family/dist/schema-verify-C_PEdlAr.mjs"],"sourcesContent":["import { blindCast } from \"@internal/utils/casts\";\nimport { assertUniqueCodecOwner, dispositionForCategory, issueOutcome } from \"@internal/framework-components/control\";\nimport { ifDefined } from \"@internal/utils/defined\";\nimport { effectiveControlPolicy } from \"@internal/contract/types\";\nimport { isStorageTypeInstance } from \"@internal/sql-contract/types\";\n//#region src/core/assembly.ts\nfunction hasCodecControlHooks(descriptor) {\n\tif (typeof descriptor !== \"object\" || descriptor === null) return false;\n\tconst hooks = descriptor.types?.codecTypes?.controlPlaneHooks;\n\treturn hooks !== null && hooks !== void 0 && typeof hooks === \"object\";\n}\nfunction extractCodecControlHooks(descriptors) {\n\tconst hooks = /* @__PURE__ */ new Map();\n\tconst owners = /* @__PURE__ */ new Map();\n\tfor (const descriptor of descriptors) {\n\t\tif (typeof descriptor !== \"object\" || descriptor === null) continue;\n\t\tif (!hasCodecControlHooks(descriptor)) continue;\n\t\tconst controlPlaneHooks = descriptor.types.codecTypes.controlPlaneHooks;\n\t\tfor (const [codecId, hook] of Object.entries(controlPlaneHooks)) {\n\t\t\tassertUniqueCodecOwner({\n\t\t\t\tcodecId,\n\t\t\t\towners,\n\t\t\t\tdescriptorId: descriptor.id,\n\t\t\t\tentityLabel: \"control hooks\",\n\t\t\t\tentityOwnershipLabel: \"owner\"\n\t\t\t});\n\t\t\thooks.set(codecId, hook);\n\t\t\towners.set(codecId, descriptor.id);\n\t\t}\n\t}\n\treturn hooks;\n}\n//#endregion\n//#region src/core/diff/verifier-disposition.ts\n/**\n* Classifies a codec `verifyType` hook finding into the target-neutral\n* categories the framework grades. A storage type is a named type instance\n* (e.g. a native enum); the only shape divergence it can carry is a change\n* to its value set, so a paired mismatch always classifies as `valueDrift`.\n*/\nfunction classifyStorageTypeDiffIssue(issue) {\n\tif (issueOutcome(issue) === \"not-found\") return \"declaredMissing\";\n\tif (issueOutcome(issue) === \"not-expected\") return \"extraAuxiliary\";\n\treturn \"valueDrift\";\n}\nfunction verifierDisposition(controlPolicy, issue) {\n\treturn dispositionForCategory(controlPolicy, classifyStorageTypeDiffIssue(issue));\n}\n//#endregion\n//#region src/core/diff/schema-verify.ts\nfunction issueNode(issue) {\n\tconst node = issue.expected ?? issue.actual;\n\tif (node === void 0) return void 0;\n\treturn blindCast(node);\n}\n/**\n* Resolves an issue's framework-neutral {@link DiffSubjectGranularity} on\n* demand, from the issue's node's `nodeKind` via the target-provided\n* `granularityOf` map. The node carries only its `nodeKind` identity, never a\n* classification, and nothing is stamped onto the issue — every consumer\n* (the family verdict below, the framework aggregate's unclaimed-elements\n* sweep via {@link import('@internal/framework-components/control').SchemaSubjectClassifierCapable})\n* calls this the same way, resolved by the family/target that owns the node\n* vocabulary. `undefined` for an issue with no node.\n*/\nfunction classifyDiffSubjectGranularity(issue, granularityOf) {\n\tconst node = issueNode(issue);\n\treturn node === void 0 ? void 0 : granularityOf(node.nodeKind);\n}\n/**\n* Resolves an issue's storage `entityKind` on demand, from the issue's\n* node's `nodeKind` via the target-provided `entityKindOf` map — the sibling\n* of {@link classifyDiffSubjectGranularity}, called the same way by the same\n* consumers (via\n* {@link import('@internal/framework-components/control').SchemaSubjectClassifierCapable}).\n* `undefined` for an issue with no node, or for a node kind with no storage\n* entity of its own.\n*/\nfunction classifyDiffEntityKind(issue, entityKindOf) {\n\tconst node = issueNode(issue);\n\treturn node === void 0 ? void 0 : entityKindOf(node.nodeKind);\n}\n/**\n* Re-keys the legacy `classifySqlVerifierIssueKind` category mapping on the\n* issue's {@link DiffSubjectGranularity} (resolved via `granularityOf`) + the\n* issue reason. The vocabulary maps one-to-one: an undeclared live entity or\n* namespace is `extraTopLevelObject`, an undeclared live field\n* `extraNestedElement`, undeclared auxiliaries (constraints, indexes,\n* defaults) and structural leaves (policies) `extraAuxiliary`; every paired\n* divergence is `declaredIncompatible`; anything the database lacks is\n* `declaredMissing`.\n* `granularityOf` is the target's classifier, so target and extension node\n* kinds classify without the family importing them.\n*/\nfunction classifySqlDiffIssue(issue, granularityOf) {\n\tif (issueOutcome(issue) === \"not-found\") return \"declaredMissing\";\n\tif (issueOutcome(issue) === \"not-expected\") {\n\t\tconst granularity = classifyDiffSubjectGranularity(issue, granularityOf);\n\t\tif (granularity === \"entity\" || granularity === \"namespace\") return \"extraTopLevelObject\";\n\t\tif (granularity === \"field\") return \"extraNestedElement\";\n\t\treturn \"extraAuxiliary\";\n\t}\n\treturn \"declaredIncompatible\";\n}\n/**\n* Whether a `not-expected` issue is a strict-mode-only finding. The legacy\n* walk detected every relational extra (namespaces, entities, fields, and\n* their auxiliaries) only under `--strict`; the structural diff (roots, RLS\n* policies, roles) was never strict-gated — its extras fail in both modes.\n* Keyed on the issue's granularity, resolved via `granularityOf`.\n*/\nfunction isStrictOnlyExtra(issue, granularityOf) {\n\tconst granularity = classifyDiffSubjectGranularity(issue, granularityOf);\n\treturn granularity === \"namespace\" || granularity === \"entity\" || granularity === \"field\" || granularity === \"auxiliary\";\n}\n/**\n* Applies the two consumer filters to a diff issue list: strict gating\n* (relational `not-expected` findings drop in lenient mode) and\n* control-policy disposition (each surviving issue grades against its\n* subject table's effective policy; suppressed issues drop, `observed`\n* subjects warn). The verify verdict is `failures.length === 0`.\n*/\nfunction computeSqlDiffVerdict(input) {\n\tconst failures = [];\n\tconst warnings = [];\n\tfor (const issue of input.issues) {\n\t\tif (!input.strict && issueOutcome(issue) === \"not-expected\" && isStrictOnlyExtra(issue, input.granularityOf)) continue;\n\t\tconst disposition = dispositionForCategory(effectiveControlPolicy(input.resolveControlPolicy(issue), input.defaultControlPolicy), classifySqlDiffIssue(issue, input.granularityOf));\n\t\tif (disposition === \"suppress\") continue;\n\t\tif (disposition === \"warn\") {\n\t\t\twarnings.push(issue);\n\t\t\tcontinue;\n\t\t}\n\t\tfailures.push(issue);\n\t}\n\treturn {\n\t\tfailures,\n\t\twarnings\n\t};\n}\nfunction computeStorageTypeVerdict(input) {\n\tconst failures = [];\n\tconst warnings = [];\n\tconst policy = effectiveControlPolicy(void 0, input.contract.defaultControlPolicy);\n\tfor (const pair of input.namespacePairs) {\n\t\tif (pair.actual === void 0) continue;\n\t\tfor (const [typeName, typeInstance] of Object.entries(input.contract.storage.types ?? {})) {\n\t\t\tif (!isStorageTypeInstance(typeInstance)) continue;\n\t\t\tconst hook = input.codecHooks.get(typeInstance.codecId);\n\t\t\tif (!hook?.verifyType) continue;\n\t\t\tconst typeIssues = hook.verifyType({\n\t\t\t\ttypeName,\n\t\t\t\ttypeInstance,\n\t\t\t\tschema: pair.actual\n\t\t\t});\n\t\t\tfor (const issue of typeIssues) {\n\t\t\t\tconst disposition = verifierDisposition(policy, issue);\n\t\t\t\tif (disposition === \"suppress\") continue;\n\t\t\t\tif (disposition === \"warn\") {\n\t\t\t\t\twarnings.push(issue);\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tfailures.push(issue);\n\t\t\t}\n\t\t}\n\t}\n\treturn {\n\t\tfailures,\n\t\twarnings\n\t};\n}\n/**\n* THE SQL schema verify: runs the target's full-tree node diff, grades it\n* through the family's post-diff filters (strict gating + control-policy\n* disposition) plus the codec `verifyType` hook findings, and wraps the\n* verdict in the issue-based result envelope. `ok` holds exactly when both\n* issue lists are empty — the lists carry the verdict's failures.\n*/\nfunction verifySqlSchemaByDiff(input) {\n\tconst startTime = Date.now();\n\tconst verdictDiff = input.diffSchema({\n\t\tcontract: input.contract,\n\t\tschema: input.schema,\n\t\tframeworkComponents: input.frameworkComponents\n\t});\n\tconst diffVerdict = computeSqlDiffVerdict({\n\t\tissues: verdictDiff.issues,\n\t\tresolveControlPolicy: verdictDiff.resolveControlPolicy,\n\t\tstrict: input.strict,\n\t\tdefaultControlPolicy: input.contract.defaultControlPolicy,\n\t\tgranularityOf: input.granularityOf\n\t});\n\tconst storageTypeVerdict = computeStorageTypeVerdict({\n\t\tcontract: input.contract,\n\t\tnamespacePairs: verdictDiff.namespacePairs,\n\t\tcodecHooks: extractCodecControlHooks(input.frameworkComponents)\n\t});\n\tconst failCount = diffVerdict.failures.length + storageTypeVerdict.failures.length;\n\tconst ok = failCount === 0;\n\tconst profileHash = \"profileHash\" in input.contract && typeof input.contract.profileHash === \"string\" ? input.contract.profileHash : void 0;\n\treturn {\n\t\tok,\n\t\t...ok ? {} : { code: \"CONTRACT.SCHEMA_VERIFICATION_FAILED\" },\n\t\tsummary: ok ? \"Database schema satisfies contract\" : `Database schema does not satisfy contract (${failCount} failure${failCount === 1 ? \"\" : \"s\"})`,\n\t\tcontract: {\n\t\t\tstorageHash: input.contract.storage.storageHash,\n\t\t\t...ifDefined(\"profileHash\", profileHash)\n\t\t},\n\t\ttarget: {\n\t\t\texpected: input.contract.target,\n\t\t\tactual: input.contract.target\n\t\t},\n\t\tschema: {\n\t\t\tissues: [...diffVerdict.failures, ...storageTypeVerdict.failures],\n\t\t\twarnings: { issues: [...diffVerdict.warnings, ...storageTypeVerdict.warnings] }\n\t\t},\n\t\tmeta: { strict: input.strict },\n\t\ttimings: { total: Date.now() - startTime }\n\t};\n}\n//#endregion\nexport { computeStorageTypeVerdict as a, computeSqlDiffVerdict as i, classifyDiffSubjectGranularity as n, verifySqlSchemaByDiff as o, classifySqlDiffIssue as r, extractCodecControlHooks as s, classifyDiffEntityKind as t };\n\n//# sourceMappingURL=schema-verify-C_PEdlAr.mjs.map"],"mappings":";;;;;;AAMA,SAAS,qBAAqB,YAAY;CACzC,IAAI,OAAO,eAAe,YAAY,eAAe,MAAM,OAAO;CAClE,MAAM,QAAQ,WAAW,OAAO,YAAY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;GACP,QAAQ,CAAC,GAAG,YAAY,UAAU,GAAG,mBAAmB,QAAQ;GAChE,UAAU,EAAE,QAAQ,CAAC,GAAG,YAAY,UAAU,GAAG,mBAAmB,QAAQ,EAAE;EAC/E;EACA,MAAM,EAAE,QAAQ,MAAM,OAAO;EAC7B,SAAS,EAAE,OAAO,KAAK,IAAI,IAAI,UAAU;CAC1C;AACD"}
@@ -1,21 +1,40 @@
1
1
  import { t as sqlContractCanonicalizationHooks } from "./canonicalization-hooks-dmXkOR4a.mjs";
2
2
  import { f as composeSqlEntityKinds } from "./entity-kinds-D7vwoN_T-CCBwFJy0.mjs";
3
- import { a as SqlStorage, s as isMaterializedSqlNamespace } from "./types-CUsJrvEl.mjs";
4
- import { r as createSqlContractSchema, s as validateSqlContractFully } from "./validators-CrWD6bSP.mjs";
3
+ import { c as isMaterializedSqlNamespace, o as SqlStorage } from "./types-D0B65hip.mjs";
4
+ import { a as resolveSqlToOneRelationStorage, c as validateSqlContractFully, r as createSqlContractSchema } from "./validators-DD98VrpC.mjs";
5
5
  import { t as sqlFamilyError } from "./errors-B5g0xWro-mWH2C07F.mjs";
6
6
  import { ContractValidationError } from "@prisma/orm-framework/contract/contract-validation-error";
7
7
  import { hydrateNamespaceEntities } from "@prisma/orm-framework/components/ir";
8
8
  import { ifDefined } from "@prisma/orm-framework/utils/defined";
9
9
  import { type } from "arktype";
10
10
  import { blindCast } from "@prisma/orm-framework/utils/casts";
11
+ import { withDerivedToOneRelationNullability } from "@prisma/orm-framework/contract-authoring";
11
12
  import { isPlainRecord as isPlainRecord$1 } from "@prisma/orm-framework/contract/is-plain-record";
12
- //#region ../../../2-sql/9-family/dist/sql-contract-serializer-2oBWuxTe.mjs
13
+ //#region ../../../2-sql/9-family/dist/sql-contract-serializer-Bxu4a5oQ.mjs
13
14
  const NamespaceRawSchema = type({
14
15
  id: "string",
15
16
  "kind?": "string",
16
17
  entries: type({ "+": "ignore" })
17
18
  });
18
19
  /**
20
+ * A `contract.json` written before to-one relations recorded `nullable` (rc.9 and earlier)
21
+ * loads with the flag derived from storage: nullable when any local FK column is nullable or
22
+ * cannot be resolved.
23
+ */
24
+ function withSqlToOneRelationNullability(contract) {
25
+ const domain = withDerivedToOneRelationNullability(contract.domain, ({ model, relation }) => {
26
+ const { ownsForeignKey, columns } = resolveSqlToOneRelationStorage(contract, blindCast(model.storage), relation);
27
+ return {
28
+ ownsReference: ownsForeignKey,
29
+ localFieldNullability: columns.map((column) => column.nullable)
30
+ };
31
+ });
32
+ return {
33
+ ...contract,
34
+ domain
35
+ };
36
+ }
37
+ /**
19
38
  * SQL family `ContractSerializer` abstract base. Carries the SQL-shared
20
39
  * deserialization pipeline:
21
40
  *
@@ -49,7 +68,7 @@ var SqlContractSerializerBase = class {
49
68
  this.contractSchema = packEntityKinds.length > 0 ? createSqlContractSchema(this.entryKinds) : void 0;
50
69
  }
51
70
  deserializeContract(json) {
52
- const validated = this.parseSqlContractStructure(json);
71
+ const validated = withSqlToOneRelationNullability(this.parseSqlContractStructure(json));
53
72
  const hydrated = this.hydrateSqlStorage(validated);
54
73
  return this.constructTargetContract(hydrated);
55
74
  }
@@ -168,4 +187,4 @@ var SqlContractSerializer = class extends SqlContractSerializerBase {
168
187
  //#endregion
169
188
  export { SqlContractSerializerBase as n, SqlContractSerializer as t };
170
189
 
171
- //# sourceMappingURL=sql-contract-serializer-2oBWuxTe-DKZTf2n8.mjs.map
190
+ //# sourceMappingURL=sql-contract-serializer-Bxu4a5oQ-D0lKpb4a.mjs.map