@prisma/orm-family-sql 8.0.0-rc.18-dev.21 → 8.0.0-rc.18-dev.23

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 (173) hide show
  1. package/dist/{ast-Dzsat0Zb.d.mts → ast-Cq7uhA86.d.mts} +3 -3
  2. package/dist/{ast-Dzsat0Zb.d.mts.map → ast-Cq7uhA86.d.mts.map} +1 -1
  3. package/dist/{attribute-specs-2I2xuKEa.d.mts → attribute-specs-BaasqvID.d.mts} +4 -4
  4. package/dist/{attribute-specs-2I2xuKEa.d.mts.map → attribute-specs-BaasqvID.d.mts.map} +1 -1
  5. package/dist/{authoring-entity-types-CZ-vdwYS-BpyuSxbj.d.mts → authoring-entity-types-CZ-vdwYS-CLLXZPhj.d.mts} +2 -2
  6. package/dist/{authoring-entity-types-CZ-vdwYS-BpyuSxbj.d.mts.map → authoring-entity-types-CZ-vdwYS-CLLXZPhj.d.mts.map} +1 -1
  7. package/dist/{authoring-type-constructors-0Iv2zdwS-BJjO5EnA.mjs → authoring-type-constructors-0Iv2zdwS-CJbLWgCh.mjs} +2 -2
  8. package/dist/{authoring-type-constructors-0Iv2zdwS-BJjO5EnA.mjs.map → authoring-type-constructors-0Iv2zdwS-CJbLWgCh.mjs.map} +1 -1
  9. package/dist/builder.d.mts +3 -3
  10. package/dist/builder__runtime.d.mts +9 -9
  11. package/dist/builder__types.d.mts +5 -5
  12. package/dist/{collection-methods-B-tM7OPZ-v8HK9Txa.d.mts → collection-methods-B-tM7OPZ-DzXedZdV.d.mts} +3 -3
  13. package/dist/{collection-methods-B-tM7OPZ-v8HK9Txa.d.mts.map → collection-methods-B-tM7OPZ-DzXedZdV.d.mts.map} +1 -1
  14. package/dist/collection-methods-BNAu8vHk.d.mts +1 -0
  15. package/dist/{config-types-DopEiXtk.mjs → config-types-BFS-ivzi.mjs} +2 -2
  16. package/dist/{config-types-DopEiXtk.mjs.map → config-types-BFS-ivzi.mjs.map} +1 -1
  17. package/dist/{config-types-B47kpY4J.d.mts → config-types-DN0IueHY.d.mts} +3 -3
  18. package/dist/{config-types-B47kpY4J.d.mts.map → config-types-DN0IueHY.d.mts.map} +1 -1
  19. package/dist/{contract-builder-C1X8KoEM.mjs → contract-builder-CKO_xspE.mjs} +3 -3
  20. package/dist/{contract-builder-C1X8KoEM.mjs.map → contract-builder-CKO_xspE.mjs.map} +1 -1
  21. package/dist/{contract-builder-De_fyZGT.d.mts → contract-builder-DkaXfJoe.d.mts} +9 -10
  22. package/dist/{contract-builder-De_fyZGT.d.mts.map → contract-builder-DkaXfJoe.d.mts.map} +1 -1
  23. package/dist/contract-emitter.d.mts +1 -2
  24. package/dist/contract-emitter.d.mts.map +1 -1
  25. package/dist/contract-emitter.mjs +1 -1
  26. package/dist/contract-prisma7__provider.d.mts +1 -1
  27. package/dist/contract-prisma7__provider.mjs +5 -5
  28. package/dist/contract-psl.d.mts +2 -2
  29. package/dist/contract-psl.mjs +1 -1
  30. package/dist/contract-psl__attribute-specs.d.mts +1 -1
  31. package/dist/contract-psl__attribute-specs.mjs +1 -1
  32. package/dist/contract-psl__provider.d.mts +1 -1
  33. package/dist/contract-psl__provider.mjs +2 -2
  34. package/dist/contract-ts.d.mts +3 -3
  35. package/dist/contract-ts.mjs +3 -3
  36. package/dist/contract-ts__config-types.d.mts +1 -1
  37. package/dist/contract-ts__config-types.mjs +1 -1
  38. package/dist/contract-ts__contract-builder.d.mts +2 -2
  39. package/dist/contract-ts__contract-builder.mjs +2 -2
  40. package/dist/contract.d.mts +3 -3
  41. package/dist/contract.mjs +2 -2
  42. package/dist/contract__data-type.d.mts +1 -1
  43. package/dist/contract__data-type.mjs +1 -1
  44. package/dist/contract__types.d.mts +2 -2
  45. package/dist/contract__validators.mjs +1 -1
  46. package/dist/{control-BqS5MMDh.d.mts → control-BLC3fSF4.d.mts} +12 -12
  47. package/dist/{control-BqS5MMDh.d.mts.map → control-BLC3fSF4.d.mts.map} +1 -1
  48. package/dist/{control-C7MNvu5Q.mjs → control-BTNIQxYM.mjs} +8 -8
  49. package/dist/{control-C7MNvu5Q.mjs.map → control-BTNIQxYM.mjs.map} +1 -1
  50. package/dist/{control-adapter-BCopdpsT-Bou0wWLF.d.mts → control-adapter-BCopdpsT-BpC5YbAf.d.mts} +5 -5
  51. package/dist/{control-adapter-BCopdpsT-Bou0wWLF.d.mts.map → control-adapter-BCopdpsT-BpC5YbAf.d.mts.map} +1 -1
  52. package/dist/control-adapter-DVjkUph8.d.mts +1 -0
  53. package/dist/data-type-DKk8Unnz.mjs.map +1 -1
  54. package/dist/{data-type-DuzmTpzK.d.mts → data-type-pNwyyJpr.d.mts} +2 -2
  55. package/dist/{data-type-DuzmTpzK.d.mts.map → data-type-pNwyyJpr.d.mts.map} +1 -1
  56. package/dist/{db-BmrN9nRS-xynLbnAy.d.mts → db-BmrN9nRS-BzK96yVh.d.mts} +11 -11
  57. package/dist/{db-BmrN9nRS-xynLbnAy.d.mts.map → db-BmrN9nRS-BzK96yVh.d.mts.map} +1 -1
  58. package/dist/{ddl-types-CoP6yAw9-BDp3W_5g.d.mts → ddl-types-CoP6yAw9-Cxc2zvi3.d.mts} +3 -3
  59. package/dist/{ddl-types-CoP6yAw9-BDp3W_5g.d.mts.map → ddl-types-CoP6yAw9-Cxc2zvi3.d.mts.map} +1 -1
  60. package/dist/{derived-checks-DpPkO6Dt-BMXrIjZy.d.mts → derived-checks-DpPkO6Dt-D-vp9vY3.d.mts} +2 -2
  61. package/dist/{derived-checks-DpPkO6Dt-BMXrIjZy.d.mts.map → derived-checks-DpPkO6Dt-D-vp9vY3.d.mts.map} +1 -1
  62. package/dist/{derived-checks-sRZp_gTF-UGwFWkVX.mjs → derived-checks-sRZp_gTF-Dvk3wkm9.mjs} +3 -3
  63. package/dist/{derived-checks-sRZp_gTF-UGwFWkVX.mjs.map → derived-checks-sRZp_gTF-Dvk3wkm9.mjs.map} +1 -1
  64. package/dist/{diff-D6PbCUWL.d.mts → diff-Czog35Sk.d.mts} +4 -4
  65. package/dist/{diff-D6PbCUWL.d.mts.map → diff-Czog35Sk.d.mts.map} +1 -1
  66. package/dist/{dist-DAHIT4AS.mjs → dist-Bxu8hzMC.mjs} +5 -10
  67. package/dist/dist-Bxu8hzMC.mjs.map +1 -0
  68. package/dist/{expression-BzrfOiPC-3NqR8UzK.d.mts → expression-BzrfOiPC-CXjjRKqc.d.mts} +5 -5
  69. package/dist/{expression-BzrfOiPC-3NqR8UzK.d.mts.map → expression-BzrfOiPC-CXjjRKqc.d.mts.map} +1 -1
  70. package/dist/expression-CIBqCwC1.d.mts +2 -0
  71. package/dist/{expression-sOY1120I-DOykEQlw.d.mts → expression-sOY1120I-DMTeGMQP.d.mts} +3 -3
  72. package/dist/{expression-sOY1120I-DOykEQlw.d.mts.map → expression-sOY1120I-DMTeGMQP.d.mts.map} +1 -1
  73. package/dist/family.d.mts +10 -10
  74. package/dist/family.mjs +5 -5
  75. package/dist/family__control-adapter.d.mts +2 -2
  76. package/dist/family__control.d.mts +3 -3
  77. package/dist/family__control.mjs +3 -3
  78. package/dist/family__diff.d.mts +1 -1
  79. package/dist/family__diff.mjs +1 -1
  80. package/dist/family__ir.d.mts +1 -1
  81. package/dist/family__ir.mjs +1 -1
  82. package/dist/family__migration.d.mts +1 -1
  83. package/dist/family__pack.d.mts +1 -1
  84. package/dist/family__pack.mjs +2 -2
  85. package/dist/family__psl-build.d.mts +1 -1
  86. package/dist/family__psl-build.mjs +1 -1
  87. package/dist/{functions-Cp8soSAv.d.mts → functions-LyIMc_v9.d.mts} +5 -5
  88. package/dist/{functions-Cp8soSAv.d.mts.map → functions-LyIMc_v9.d.mts.map} +1 -1
  89. package/dist/{index-BxlXOVeT.d.mts → index-B0hZw3uT.d.mts} +19 -19
  90. package/dist/{index-BxlXOVeT.d.mts.map → index-B0hZw3uT.d.mts.map} +1 -1
  91. package/dist/{index-BXFiad5j.d.mts → index-BRFLss5v.d.mts} +2 -2
  92. package/dist/{index-BXFiad5j.d.mts.map → index-BRFLss5v.d.mts.map} +1 -1
  93. package/dist/index-reference-CsxaNof9.d.mts +1 -0
  94. package/dist/{index-reference-DJaQLZA3-DxmYkkX-.d.mts → index-reference-DJaQLZA3-DS-GPKXs.d.mts} +3 -3
  95. package/dist/{index-reference-DJaQLZA3-DxmYkkX-.d.mts.map → index-reference-DJaQLZA3-DS-GPKXs.d.mts.map} +1 -1
  96. package/dist/{interpreter-B9wNACvu-CjrIm-Jo.mjs → interpreter-B9wNACvu-Bk0vkYDs.mjs} +3 -3
  97. package/dist/{interpreter-B9wNACvu-CjrIm-Jo.mjs.map → interpreter-B9wNACvu-Bk0vkYDs.mjs.map} +1 -1
  98. package/dist/{ir-DgNo535E.d.mts → ir-qK4wX3D3.d.mts} +2 -2
  99. package/dist/{ir-DgNo535E.d.mts.map → ir-qK4wX3D3.d.mts.map} +1 -1
  100. package/dist/middleware-MgGkjEXt.d.mts +1 -0
  101. package/dist/{middleware-oCT0RWkt-AFlRNCOD.d.mts → middleware-oCT0RWkt-DGav7C8b.d.mts} +2 -2
  102. package/dist/{middleware-oCT0RWkt-AFlRNCOD.d.mts.map → middleware-oCT0RWkt-DGav7C8b.d.mts.map} +1 -1
  103. package/dist/{migration-CJ0xK_7n.d.mts → migration-CFMl5iKv.d.mts} +3 -3
  104. package/dist/{migration-CJ0xK_7n.d.mts.map → migration-CFMl5iKv.d.mts.map} +1 -1
  105. package/dist/operations.d.mts +1 -1
  106. package/dist/orm-client.d.mts +18 -18
  107. package/dist/{pack-CyjyMUN0.d.mts → pack-mrYskO6T.d.mts} +3 -3
  108. package/dist/{pack-CyjyMUN0.d.mts.map → pack-mrYskO6T.d.mts.map} +1 -1
  109. package/dist/plan-BOyVvttx.d.mts +2 -0
  110. package/dist/{plan-Cbed2eDu-BZM3geSm.d.mts → plan-Cbed2eDu-3c5s1Aq5.d.mts} +3 -3
  111. package/dist/{plan-Cbed2eDu-BZM3geSm.d.mts.map → plan-Cbed2eDu-3c5s1Aq5.d.mts.map} +1 -1
  112. package/dist/{psl-build-ClY62mZM.d.mts → psl-build-CTj6JAX3.d.mts} +2 -2
  113. package/dist/{psl-build-ClY62mZM.d.mts.map → psl-build-CTj6JAX3.d.mts.map} +1 -1
  114. package/dist/{psl-build-pU0gKdVI.mjs → psl-build-DB-x01oH.mjs} +2 -2
  115. package/dist/{psl-build-pU0gKdVI.mjs.map → psl-build-DB-x01oH.mjs.map} +1 -1
  116. package/dist/{psl-column-resolution-BCkhNzOK-mW_8C9vr.d.mts → psl-column-resolution-BCkhNzOK-DOvdhSCj.d.mts} +2 -2
  117. package/dist/{psl-column-resolution-BCkhNzOK-mW_8C9vr.d.mts.map → psl-column-resolution-BCkhNzOK-DOvdhSCj.d.mts.map} +1 -1
  118. package/dist/{psl-field-resolution-BOJPyV5I-0zJJ0fOo.mjs → psl-field-resolution-BOJPyV5I-CQ7I2lbC.mjs} +3 -3
  119. package/dist/{psl-field-resolution-BOJPyV5I-0zJJ0fOo.mjs.map → psl-field-resolution-BOJPyV5I-CQ7I2lbC.mjs.map} +1 -1
  120. package/dist/{query-lane-context-BLOPW1rQ-Bn3ugl9a.d.mts → query-lane-context-BLOPW1rQ-4vNq0fxJ.d.mts} +6 -6
  121. package/dist/{query-lane-context-BLOPW1rQ-Bn3ugl9a.d.mts.map → query-lane-context-BLOPW1rQ-4vNq0fxJ.d.mts.map} +1 -1
  122. package/dist/query-lane-context-BPJrXopg.d.mts +1 -0
  123. package/dist/relational-core.d.mts +12 -12
  124. package/dist/relational-core__aggregate-descriptor-registry.d.mts +1 -1
  125. package/dist/relational-core__ast.d.mts +3 -3
  126. package/dist/relational-core__codec-descriptor-registry.d.mts +3 -3
  127. package/dist/relational-core__collection-methods.d.mts +2 -2
  128. package/dist/relational-core__contract-free.d.mts +3 -3
  129. package/dist/relational-core__expression.d.mts +3 -3
  130. package/dist/relational-core__functions.d.mts +1 -1
  131. package/dist/relational-core__index-reference.d.mts +2 -2
  132. package/dist/relational-core__middleware.d.mts +2 -2
  133. package/dist/relational-core__plan.d.mts +3 -3
  134. package/dist/relational-core__query-lane-context.d.mts +2 -2
  135. package/dist/relational-core__types.d.mts +2 -2
  136. package/dist/runtime.d.mts +4 -4
  137. package/dist/runtime__internal__prepared-query.d.mts +1 -1
  138. package/dist/{schema-differ-DmP74bB8-GfOUaGGy.d.mts → schema-differ-DmP74bB8-Dn53wZD1.d.mts} +2 -2
  139. package/dist/{schema-differ-DmP74bB8-GfOUaGGy.d.mts.map → schema-differ-DmP74bB8-Dn53wZD1.d.mts.map} +1 -1
  140. package/dist/{schema-verify-BwRdzbHb-B9vFrm3T.mjs → schema-verify-BwRdzbHb-CxnJN-Lm.mjs} +2 -2
  141. package/dist/{schema-verify-BwRdzbHb-B9vFrm3T.mjs.map → schema-verify-BwRdzbHb-CxnJN-Lm.mjs.map} +1 -1
  142. package/dist/{sql-contract-serializer-sMY3prTx-BKQ4Yh-n.mjs → sql-contract-serializer-sMY3prTx-BDTNHOOy.mjs} +2 -2
  143. package/dist/{sql-contract-serializer-sMY3prTx-BKQ4Yh-n.mjs.map → sql-contract-serializer-sMY3prTx-BDTNHOOy.mjs.map} +1 -1
  144. package/dist/{sql-data-type-Dabuwxet-BljsNjBu.mjs → sql-data-type-DwLa_dK9-2eTvrYhA.mjs} +10 -15
  145. package/dist/sql-data-type-DwLa_dK9-2eTvrYhA.mjs.map +1 -0
  146. package/dist/{sql-execution-plan-Dam5yMZg-Bc_eneSz.d.mts → sql-execution-plan-Dam5yMZg-bDl_0qHQ.d.mts} +2 -2
  147. package/dist/{sql-execution-plan-Dam5yMZg-Bc_eneSz.d.mts.map → sql-execution-plan-Dam5yMZg-bDl_0qHQ.d.mts.map} +1 -1
  148. package/dist/{transaction-state-DR3nKTmH-n_12DsnU.d.mts → transaction-state-DR3nKTmH-DbyhuL-z.d.mts} +9 -9
  149. package/dist/{transaction-state-DR3nKTmH-n_12DsnU.d.mts.map → transaction-state-DR3nKTmH-DbyhuL-z.d.mts.map} +1 -1
  150. package/dist/types-B2Dee96w.d.mts +35 -0
  151. package/dist/types-B2Dee96w.d.mts.map +1 -0
  152. package/dist/{types-Cv5t6_Ly-CcBWTpfM.d.mts → types-Cv5t6_Ly-BaGc023t.d.mts} +7 -7
  153. package/dist/{types-Cv5t6_Ly-CcBWTpfM.d.mts.map → types-Cv5t6_Ly-BaGc023t.d.mts.map} +1 -1
  154. package/dist/{types-DVaVM20q-B-QcMIOa.d.mts → types-DVaVM20q-DrinF7w_.d.mts} +2 -2
  155. package/dist/{types-DVaVM20q-B-QcMIOa.d.mts.map → types-DVaVM20q-DrinF7w_.d.mts.map} +1 -1
  156. package/dist/{types-DaYtBAYT-DbsbDMTk.d.mts → types-DaYtBAYT-DFhWS-6u.d.mts} +4 -4
  157. package/dist/{types-DaYtBAYT-DbsbDMTk.d.mts.map → types-DaYtBAYT-DFhWS-6u.d.mts.map} +1 -1
  158. package/dist/types-VUCzaDbp.d.mts +1 -0
  159. package/dist/{validators-V8vN9R85.mjs → validators-Uim8vh59.mjs} +2 -2
  160. package/dist/{validators-V8vN9R85.mjs.map → validators-Uim8vh59.mjs.map} +1 -1
  161. package/package.json +18 -18
  162. package/dist/collection-methods-DQAFcGEB.d.mts +0 -1
  163. package/dist/control-adapter-CUwBiImd.d.mts +0 -1
  164. package/dist/dist-DAHIT4AS.mjs.map +0 -1
  165. package/dist/expression-CeerCjQG.d.mts +0 -2
  166. package/dist/index-reference-CWppFpUV.d.mts +0 -1
  167. package/dist/middleware-IqWk9Eff.d.mts +0 -1
  168. package/dist/plan-BZpZafiQ.d.mts +0 -2
  169. package/dist/query-lane-context-Dpep1Fzy.d.mts +0 -1
  170. package/dist/sql-data-type-Dabuwxet-BljsNjBu.mjs.map +0 -1
  171. package/dist/types-DMfBh16_.d.mts +0 -67
  172. package/dist/types-DMfBh16_.d.mts.map +0 -1
  173. package/dist/types-_7TbRpPw.d.mts +0 -1
@@ -1,9 +1,9 @@
1
1
  import { l as SqlStorage } from "./sql-storage-tZhB8nS5-8NSWT0TW.mjs";
2
- import "./types-DMfBh16_.mjs";
3
- import { a as SqlOperationRegistry } from "./index-BXFiad5j.mjs";
4
- import { c as AnyExpression, k as ContractCodecRegistry } from "./types-DVaVM20q-B-QcMIOa.mjs";
5
- import { l as RawCodecInferer } from "./expression-BzrfOiPC-3NqR8UzK.mjs";
6
- import { n as CollectionMethodContribution } from "./collection-methods-B-tM7OPZ-v8HK9Txa.mjs";
2
+ import "./types-B2Dee96w.mjs";
3
+ import { a as SqlOperationRegistry } from "./index-BRFLss5v.mjs";
4
+ import { c as AnyExpression, k as ContractCodecRegistry } from "./types-DVaVM20q-DrinF7w_.mjs";
5
+ import { l as RawCodecInferer } from "./expression-BzrfOiPC-CXjjRKqc.mjs";
6
+ import { n as CollectionMethodContribution } from "./collection-methods-B-tM7OPZ-DzXedZdV.mjs";
7
7
  import { CodecDescriptor, CodecRef } from "@prisma/orm-framework/components/codec";
8
8
  import { Contract } from "@prisma/orm-framework/contract/types";
9
9
  import { AggregateDescriptor, AggregateResultNullability } from "@prisma/orm-framework/components/components";
@@ -128,4 +128,4 @@ interface ExecutionContext<TContract extends Contract<SqlStorage> = Contract<Sql
128
128
  }
129
129
  //#endregion
130
130
  export { SqlAggregateDescriptorRegistry as a, TypeHelperRegistry as c, SqlAggregateDescriptor as i, isSqlAggregateDescriptor as l, ExecutionContext as n, SqlAggregateLowering as o, ResolvedSqlAggregate as r, SqlAggregateLoweringContext as s, CodecDescriptorRegistry as t };
131
- //# sourceMappingURL=query-lane-context-BLOPW1rQ-Bn3ugl9a.d.mts.map
131
+ //# sourceMappingURL=query-lane-context-BLOPW1rQ-4vNq0fxJ.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"query-lane-context-BLOPW1rQ-Bn3ugl9a.d.mts","names":[],"sources":["../../../../2-sql/4-lanes/relational-core/dist/query-lane-context-BLOPW1rQ.d.mts"],"mappings":";;;;;;;;;;;;;;;UAaU;WACC,MAAM;WACN,YAAY;;;;;;;KAOlB,wBAAwB,SAAS,g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WAIjB,OAAO;;;;WAIP,kBAAkB;;;;WAIlB,oBAAoB,cAAc"}
@@ -0,0 +1 @@
1
+ import "./query-lane-context-BLOPW1rQ-4vNq0fxJ.mjs";
@@ -1,14 +1,14 @@
1
- import { $ as InsertValue, $t as queryAstKinds, A as DefaultValueExpr, At as RawQueryResult, B as EqColJoinOn, Bt as ToWhereExpr, C as CodecCallContext$1, Ct as ParamRef, D as CodecTrait$1, Dt as RawExpr, E as CodecRef$1, Et as ProjectionItem, F as DescriptorCodecJson, Ft as SqlCodecInstanceContext, G as ExpressionSource, Gt as aggregateFnNames, H as ExprVisitor, Ht as WhereArg, I as DescriptorCodecTraits, It as SqlColumnRef, J as FunctionSource, Jt as isAggregateFn, K as ExtractCodecTypes, Kt as checkLimitOffset, L as Direction, Lt as SubqueryExpr, M as DerivedTableSource, Mt as SelectAst, N as DescriptorCodecId, Nt as SelectAstOptions, O as ColumnRef, Ot as RawQueryAst, P as DescriptorCodecInput, Pt as SqlCodecCallContext, Q as InsertOnConflict, Qt as isWhereExpr, R as DoNothingConflictAction, Rt as TableRef, S as Codec$1, St as OrderByNulls, T as CodecJsonValueProjection, Tt as ProjectionExpr, U as ExpressionFolder, Ut as WindowFn, V as ExistsExpr, Vt as UpdateAst, W as ExpressionRewriter, Wt as WindowFuncExpr, X as IdentifierRef, Xt as isOrderByNulls, Y as FunctionSourceAlias, Yt as isOrderByDirection, Z as InsertAst, Zt as isQueryAst, _ as BinaryExpr, _t as NotExpr, a as AndExpr, at as JsonObjectExpr, b as CaseExpr, bt as OrExpr, c as AnyExpression, ct as ListExpression, d as AnyInsertValue, dt as LockWaitPolicy, en as whereExprKinds, et as JoinAst, f as AnyJsonValueProjection, ft as LockingClause, g as AstRewriter, gt as NativeJsonValueProjection, h as AnyQueryAst, ht as LoweredStatement, i as AggregateOpFn, it as JsonObjectEntry, j as DeleteAst, jt as RawSqlLiteral, k as ContractCodecRegistry, kt as RawQueryColumn, l as AnyFromSource, lt as LiteralExpr, m as AnyParamRef, mt as LoweredParam, n as AggregateExpr, nt as JsonArrayAggExpr, o as AnyCodecDescriptor, ot as JsonValueProjectionVisitor, p as AnyOperationArg, pt as LockingClauseOptions, q as FunctionCallExpr, qt as frozenCodecRef, r as AggregateFn, rt as JsonDocumentProjection, s as AnyCodecDescriptorTemplate, st as LimitOffsetValue, t as AggregateCountFn, tt as JoinOnExpr, u as AnyInsertOnConflictAction, ut as LockStrength, v as BinaryOp, vt as NullCheckExpr, w as CodecDescriptor$1, wt as PreparedParamRef, x as CastExpr, xt as OrderByItem, y as CaseBranch, yt as OperationExpr, z as DoUpdateSetConflictAction, zt as TableSource } from "./types-DVaVM20q-B-QcMIOa.mjs";
1
+ import { $ as InsertValue, $t as queryAstKinds, A as DefaultValueExpr, At as RawQueryResult, B as EqColJoinOn, Bt as ToWhereExpr, C as CodecCallContext$1, Ct as ParamRef, D as CodecTrait$1, Dt as RawExpr, E as CodecRef$1, Et as ProjectionItem, F as DescriptorCodecJson, Ft as SqlCodecInstanceContext, G as ExpressionSource, Gt as aggregateFnNames, H as ExprVisitor, Ht as WhereArg, I as DescriptorCodecTraits, It as SqlColumnRef, J as FunctionSource, Jt as isAggregateFn, K as ExtractCodecTypes, Kt as checkLimitOffset, L as Direction, Lt as SubqueryExpr, M as DerivedTableSource, Mt as SelectAst, N as DescriptorCodecId, Nt as SelectAstOptions, O as ColumnRef, Ot as RawQueryAst, P as DescriptorCodecInput, Pt as SqlCodecCallContext, Q as InsertOnConflict, Qt as isWhereExpr, R as DoNothingConflictAction, Rt as TableRef, S as Codec$1, St as OrderByNulls, T as CodecJsonValueProjection, Tt as ProjectionExpr, U as ExpressionFolder, Ut as WindowFn, V as ExistsExpr, Vt as UpdateAst, W as ExpressionRewriter, Wt as WindowFuncExpr, X as IdentifierRef, Xt as isOrderByNulls, Y as FunctionSourceAlias, Yt as isOrderByDirection, Z as InsertAst, Zt as isQueryAst, _ as BinaryExpr, _t as NotExpr, a as AndExpr, at as JsonObjectExpr, b as CaseExpr, bt as OrExpr, c as AnyExpression, ct as ListExpression, d as AnyInsertValue, dt as LockWaitPolicy, en as whereExprKinds, et as JoinAst, f as AnyJsonValueProjection, ft as LockingClause, g as AstRewriter, gt as NativeJsonValueProjection, h as AnyQueryAst, ht as LoweredStatement, i as AggregateOpFn, it as JsonObjectEntry, j as DeleteAst, jt as RawSqlLiteral, k as ContractCodecRegistry, kt as RawQueryColumn, l as AnyFromSource, lt as LiteralExpr, m as AnyParamRef, mt as LoweredParam, n as AggregateExpr, nt as JsonArrayAggExpr, o as AnyCodecDescriptor, ot as JsonValueProjectionVisitor, p as AnyOperationArg, pt as LockingClauseOptions, q as FunctionCallExpr, qt as frozenCodecRef, r as AggregateFn, rt as JsonDocumentProjection, s as AnyCodecDescriptorTemplate, st as LimitOffsetValue, t as AggregateCountFn, tt as JoinOnExpr, u as AnyInsertOnConflictAction, ut as LockStrength, v as BinaryOp, vt as NullCheckExpr, w as CodecDescriptor$1, wt as PreparedParamRef, x as CastExpr, xt as OrderByItem, y as CaseBranch, yt as OperationExpr, z as DoUpdateSetConflictAction, zt as TableSource } from "./types-DVaVM20q-DrinF7w_.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-DRsYeq3j-X_D6hNMZ.mjs";
3
- import { n as SqlQueryPlan, r as planFromAst, t as Preparable } from "./plan-Cbed2eDu-BZM3geSm.mjs";
4
- import { C as TraitExpression, D as isExpression, E as createRawSql, O as param, S as StorageColumnScopeField, T as codecOf, _ 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, k as toExpr, 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 buildOperation, x as ScopeField, y as RawSqlTag } from "./expression-BzrfOiPC-3NqR8UzK.mjs";
5
- import { t as ExpressionImpl } from "./expression-sOY1120I-DOykEQlw.mjs";
6
- import { a as DdlNode, c as FunctionColumnDefault, d as PrimaryKeyConstraint, f as UniqueConstraint, h as renderOpaqueSql, i as DdlColumnDefault, l as LiteralColumnDefault, m as opaqueSql, n as CheckExpressionConstraint, o as DdlTableConstraint, p as isDdlNode, r as DdlColumn, s as ForeignKeyConstraint, t as AnyDdlColumnDefault, u as OpaqueSql } from "./ddl-types-CoP6yAw9-BDp3W_5g.mjs";
7
- import { $ as sqlTextDecode, A as collectOrderedParamRefs, B as sqlCharColumn, C as SqlFloatDescriptor, D as SqlTextDescriptor, E as SqlTextCodec, F as lockIncompatible, G as sqlFloatDecode, H as sqlCharDescriptor, I as lockOptionCapabilities, J as sqlIntColumn, K as sqlFloatDescriptor, L as lockStrengthCapabilities, M as encodeListLiteralDefault, N as encodeLiteralDefault, O as SqlVarcharCodec, P as isAggregateProjection, Q as sqlTextColumn, R as lockWaitPolicyOf, S as SqlFloatCodec, T as SqlIntDescriptor, U as sqlCharEncode, V as sqlCharDecode, W as sqlFloatColumn, X as sqlIntDescriptor, Y as sqlIntDecode, Z as sqlIntEncode, _ as SQL_INT_CODEC_ID, a as EncodedLiteralDefault, at as sqlVarcharEncode, b as SqlCharCodec, c as LockOptionCapabilities, d as LockWaitRequest, et as sqlTextDescriptor, f as Lowerer, g as SQL_FLOAT_CODEC_ID, h as SQL_CHAR_CODEC_ID, i as CapabilityRequirement, it as sqlVarcharDescriptor, j as compact, k as SqlVarcharDescriptor, l as LockStrengthCapabilities, m as MarkerReadResult, n as AdapterProfile, nt as sqlVarcharColumn, o as LiteralDefaultColumn, p as LowererContext, q as sqlFloatEncode, r as AdapterTarget, rt as sqlVarcharDecode, s as LockConflict, t as Adapter, tt as sqlTextEncode, u as LockWaitOptions, v as SQL_TEXT_CODEC_ID, w as SqlIntCodec, x as SqlCharDescriptor, y as SQL_VARCHAR_CODEC_ID, z as missingCapability } from "./ast-Dzsat0Zb.mjs";
8
- import { t as SqlExecutionPlan } from "./sql-execution-plan-Dam5yMZg-Bc_eneSz.mjs";
9
- import "./plan-BZpZafiQ.mjs";
10
- import { a as SqlAggregateDescriptorRegistry, c as TypeHelperRegistry, n as ExecutionContext, r as ResolvedSqlAggregate, t as CodecDescriptorRegistry } from "./query-lane-context-BLOPW1rQ-Bn3ugl9a.mjs";
11
- import "./query-lane-context-Dpep1Fzy.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-Cv5t6_Ly-CcBWTpfM.mjs";
13
- import { a as SqlParamRefMutatorInternal, i as SqlParamRefMutator, n as ParamRefEntryUnion, o as createSqlParamRefMutator, r as ParamRefHandle, t as ParamRefEntry } from "./middleware-oCT0RWkt-AFlRNCOD.mjs";
3
+ import { n as SqlQueryPlan, r as planFromAst, t as Preparable } from "./plan-Cbed2eDu-3c5s1Aq5.mjs";
4
+ import { C as TraitExpression, D as isExpression, E as createRawSql, O as param, S as StorageColumnScopeField, T as codecOf, _ 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, k as toExpr, 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 buildOperation, x as ScopeField, y as RawSqlTag } from "./expression-BzrfOiPC-CXjjRKqc.mjs";
5
+ import { t as ExpressionImpl } from "./expression-sOY1120I-DMTeGMQP.mjs";
6
+ import { a as DdlNode, c as FunctionColumnDefault, d as PrimaryKeyConstraint, f as UniqueConstraint, h as renderOpaqueSql, i as DdlColumnDefault, l as LiteralColumnDefault, m as opaqueSql, n as CheckExpressionConstraint, o as DdlTableConstraint, p as isDdlNode, r as DdlColumn, s as ForeignKeyConstraint, t as AnyDdlColumnDefault, u as OpaqueSql } from "./ddl-types-CoP6yAw9-Cxc2zvi3.mjs";
7
+ import { $ as sqlTextDecode, A as collectOrderedParamRefs, B as sqlCharColumn, C as SqlFloatDescriptor, D as SqlTextDescriptor, E as SqlTextCodec, F as lockIncompatible, G as sqlFloatDecode, H as sqlCharDescriptor, I as lockOptionCapabilities, J as sqlIntColumn, K as sqlFloatDescriptor, L as lockStrengthCapabilities, M as encodeListLiteralDefault, N as encodeLiteralDefault, O as SqlVarcharCodec, P as isAggregateProjection, Q as sqlTextColumn, R as lockWaitPolicyOf, S as SqlFloatCodec, T as SqlIntDescriptor, U as sqlCharEncode, V as sqlCharDecode, W as sqlFloatColumn, X as sqlIntDescriptor, Y as sqlIntDecode, Z as sqlIntEncode, _ as SQL_INT_CODEC_ID, a as EncodedLiteralDefault, at as sqlVarcharEncode, b as SqlCharCodec, c as LockOptionCapabilities, d as LockWaitRequest, et as sqlTextDescriptor, f as Lowerer, g as SQL_FLOAT_CODEC_ID, h as SQL_CHAR_CODEC_ID, i as CapabilityRequirement, it as sqlVarcharDescriptor, j as compact, k as SqlVarcharDescriptor, l as LockStrengthCapabilities, m as MarkerReadResult, n as AdapterProfile, nt as sqlVarcharColumn, o as LiteralDefaultColumn, p as LowererContext, q as sqlFloatEncode, r as AdapterTarget, rt as sqlVarcharDecode, s as LockConflict, t as Adapter, tt as sqlTextEncode, u as LockWaitOptions, v as SQL_TEXT_CODEC_ID, w as SqlIntCodec, x as SqlCharDescriptor, y as SQL_VARCHAR_CODEC_ID, z as missingCapability } from "./ast-Cq7uhA86.mjs";
8
+ import { t as SqlExecutionPlan } from "./sql-execution-plan-Dam5yMZg-bDl_0qHQ.mjs";
9
+ import "./plan-BOyVvttx.mjs";
10
+ import { a as SqlAggregateDescriptorRegistry, c as TypeHelperRegistry, n as ExecutionContext, r as ResolvedSqlAggregate, t as CodecDescriptorRegistry } from "./query-lane-context-BLOPW1rQ-4vNq0fxJ.mjs";
11
+ import "./query-lane-context-BPJrXopg.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-Cv5t6_Ly-BaGc023t.mjs";
13
+ import { a as SqlParamRefMutatorInternal, i as SqlParamRefMutator, n as ParamRefEntryUnion, o as createSqlParamRefMutator, r as ParamRefHandle, t as ParamRefEntry } from "./middleware-oCT0RWkt-DGav7C8b.mjs";
14
14
  export { Adapter, AdapterProfile, AdapterTarget, AffectedCount, AggregateCountFn, AggregateExpr, AggregateFn, AggregateOpFn, AndExpr, AnyCodecDescriptor, AnyCodecDescriptorTemplate, AnyDdlColumnDefault, AnyExpression, AnyFromSource, AnyInsertOnConflictAction, AnyInsertValue, AnyJsonValueProjection, AnyOperationArg, AnyParamRef, AnyQueryAst, AstRewriter, BinaryExpr, BinaryOp, BuildOperationSpec, BuildOptions, BuildParamsMap, CapabilityRequirement, 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, DdlNode, DdlTableConstraint, DefaultValueExpr, DeleteAst, DerivedTableSource, DescriptorCodecId, DescriptorCodecInput, DescriptorCodecJson, DescriptorCodecTraits, Direction, DoNothingConflictAction, DoUpdateSetConflictAction, EncodedLiteralDefault, EqColJoinOn, ExecutionContext, ExistsExpr, Expr, ExprVisitor, Expression, ExpressionFolder, ExpressionImpl, ExpressionRewriter, ExpressionSource, ExtractCodecTypes, ForeignKeyConstraint, FunctionCallExpr, FunctionColumnDefault, FunctionSource, FunctionSourceAlias, IdentifierRef, InsertAst, InsertOnConflict, InsertValue, JoinAst, JoinOnExpr, JsonArrayAggExpr, JsonDocumentProjection, JsonObjectEntry, JsonObjectExpr, JsonValueProjectionVisitor, LimitOffsetValue, ListExpression, LiteralColumnDefault, LiteralDefaultColumn, LiteralExpr, LockConflict, LockOptionCapabilities, LockStrength, LockStrengthCapabilities, LockWaitOptions, LockWaitPolicy, LockWaitRequest, LockingClause, LockingClauseOptions, LoweredParam, LoweredStatement, Lowerer, LowererContext, META, MarkerReadResult, Meta, ModelDef, ModelMetadata, NativeJsonValueProjection, NoReservedRowColumn, NotExpr, NullCheckExpr, OpaqueSql, OperationExpr, OperationTypeSignature, OperationTypes, OperationsForTypeId, OrExpr, OrderByItem, OrderByNulls, ParamRef, type ParamRefEntry, type ParamRefEntryUnion, type ParamRefHandle, Preparable, 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, StorageColumnScopeField, SubqueryExpr, TableDef, TableKey, TableMetadata, TableRef, TableSource, TablesOf, ToWhereExpr, TraitExpression, TypeHelperRegistry, UniqueConstraint, UpdateAst, WhereArg, WindowFn, WindowFuncExpr, aggregateFnNames, buildOperation, checkLimitOffset, codecOf, collectOrderedParamRefs, compact, createRawSql, createSqlParamRefMutator, encodeListLiteralDefault, encodeLiteralDefault, frozenCodecRef, isAggregateFn, isAggregateProjection, isDdlNode, isExpression, isOrderByDirection, isOrderByNulls, isQueryAst, isWhereExpr, lockIncompatible, lockOptionCapabilities, lockStrengthCapabilities, lockWaitPolicyOf, missingCapability, opaqueSql, param, planFromAst, queryAstKinds, renderOpaqueSql, sqlCharColumn, sqlCharDecode, sqlCharDescriptor, sqlCharEncode, sqlFloatColumn, sqlFloatDecode, sqlFloatDescriptor, sqlFloatEncode, sqlIntColumn, sqlIntDecode, sqlIntDescriptor, sqlIntEncode, sqlTextColumn, sqlTextDecode, sqlTextDescriptor, sqlTextEncode, sqlVarcharColumn, sqlVarcharDecode, sqlVarcharDescriptor, sqlVarcharEncode, toExpr, whereExprKinds };
@@ -1,4 +1,4 @@
1
- import { a as SqlAggregateDescriptorRegistry, i as SqlAggregateDescriptor, l as isSqlAggregateDescriptor, o as SqlAggregateLowering, s as SqlAggregateLoweringContext, t as CodecDescriptorRegistry } from "./query-lane-context-BLOPW1rQ-Bn3ugl9a.mjs";
1
+ import { a as SqlAggregateDescriptorRegistry, i as SqlAggregateDescriptor, l as isSqlAggregateDescriptor, o as SqlAggregateLowering, s as SqlAggregateLoweringContext, t as CodecDescriptorRegistry } from "./query-lane-context-BLOPW1rQ-4vNq0fxJ.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 InsertValue, $t as queryAstKinds, A as DefaultValueExpr, At as RawQueryResult, B as EqColJoinOn, Bt as ToWhereExpr, C as CodecCallContext$1, Ct as ParamRef, D as CodecTrait$1, Dt as RawExpr, E as CodecRef$1, Et as ProjectionItem, F as DescriptorCodecJson, Ft as SqlCodecInstanceContext, G as ExpressionSource, Gt as aggregateFnNames, H as ExprVisitor, Ht as WhereArg, I as DescriptorCodecTraits, It as SqlColumnRef, J as FunctionSource, Jt as isAggregateFn, K as ExtractCodecTypes, Kt as checkLimitOffset, L as Direction, Lt as SubqueryExpr, M as DerivedTableSource, Mt as SelectAst, N as DescriptorCodecId, Nt as SelectAstOptions, O as ColumnRef, Ot as RawQueryAst, P as DescriptorCodecInput, Pt as SqlCodecCallContext, Q as InsertOnConflict, Qt as isWhereExpr, R as DoNothingConflictAction, Rt as TableRef, S as Codec$1, St as OrderByNulls, T as CodecJsonValueProjection, Tt as ProjectionExpr, U as ExpressionFolder, Ut as WindowFn, V as ExistsExpr, Vt as UpdateAst, W as ExpressionRewriter, Wt as WindowFuncExpr, X as IdentifierRef, Xt as isOrderByNulls, Y as FunctionSourceAlias, Yt as isOrderByDirection, Z as InsertAst, Zt as isQueryAst, _ as BinaryExpr, _t as NotExpr, a as AndExpr, at as JsonObjectExpr, b as CaseExpr, bt as OrExpr, c as AnyExpression, ct as ListExpression, d as AnyInsertValue, dt as LockWaitPolicy, en as whereExprKinds, et as JoinAst, f as AnyJsonValueProjection, ft as LockingClause, g as AstRewriter, gt as NativeJsonValueProjection, h as AnyQueryAst, ht as LoweredStatement, i as AggregateOpFn, it as JsonObjectEntry, j as DeleteAst, jt as RawSqlLiteral, k as ContractCodecRegistry, kt as RawQueryColumn, l as AnyFromSource, lt as LiteralExpr, m as AnyParamRef, mt as LoweredParam, n as AggregateExpr, nt as JsonArrayAggExpr, o as AnyCodecDescriptor, ot as JsonValueProjectionVisitor, p as AnyOperationArg, pt as LockingClauseOptions, q as FunctionCallExpr, qt as frozenCodecRef, r as AggregateFn, rt as JsonDocumentProjection, s as AnyCodecDescriptorTemplate, st as LimitOffsetValue, t as AggregateCountFn, tt as JoinOnExpr, u as AnyInsertOnConflictAction, ut as LockStrength, v as BinaryOp, vt as NullCheckExpr, w as CodecDescriptor$1, wt as PreparedParamRef, x as CastExpr, xt as OrderByItem, y as CaseBranch, yt as OperationExpr, z as DoUpdateSetConflictAction, zt as TableSource } from "./types-DVaVM20q-B-QcMIOa.mjs";
1
+ import { $ as InsertValue, $t as queryAstKinds, A as DefaultValueExpr, At as RawQueryResult, B as EqColJoinOn, Bt as ToWhereExpr, C as CodecCallContext$1, Ct as ParamRef, D as CodecTrait$1, Dt as RawExpr, E as CodecRef$1, Et as ProjectionItem, F as DescriptorCodecJson, Ft as SqlCodecInstanceContext, G as ExpressionSource, Gt as aggregateFnNames, H as ExprVisitor, Ht as WhereArg, I as DescriptorCodecTraits, It as SqlColumnRef, J as FunctionSource, Jt as isAggregateFn, K as ExtractCodecTypes, Kt as checkLimitOffset, L as Direction, Lt as SubqueryExpr, M as DerivedTableSource, Mt as SelectAst, N as DescriptorCodecId, Nt as SelectAstOptions, O as ColumnRef, Ot as RawQueryAst, P as DescriptorCodecInput, Pt as SqlCodecCallContext, Q as InsertOnConflict, Qt as isWhereExpr, R as DoNothingConflictAction, Rt as TableRef, S as Codec$1, St as OrderByNulls, T as CodecJsonValueProjection, Tt as ProjectionExpr, U as ExpressionFolder, Ut as WindowFn, V as ExistsExpr, Vt as UpdateAst, W as ExpressionRewriter, Wt as WindowFuncExpr, X as IdentifierRef, Xt as isOrderByNulls, Y as FunctionSourceAlias, Yt as isOrderByDirection, Z as InsertAst, Zt as isQueryAst, _ as BinaryExpr, _t as NotExpr, a as AndExpr, at as JsonObjectExpr, b as CaseExpr, bt as OrExpr, c as AnyExpression, ct as ListExpression, d as AnyInsertValue, dt as LockWaitPolicy, en as whereExprKinds, et as JoinAst, f as AnyJsonValueProjection, ft as LockingClause, g as AstRewriter, gt as NativeJsonValueProjection, h as AnyQueryAst, ht as LoweredStatement, i as AggregateOpFn, it as JsonObjectEntry, j as DeleteAst, jt as RawSqlLiteral, k as ContractCodecRegistry, kt as RawQueryColumn, l as AnyFromSource, lt as LiteralExpr, m as AnyParamRef, mt as LoweredParam, n as AggregateExpr, nt as JsonArrayAggExpr, o as AnyCodecDescriptor, ot as JsonValueProjectionVisitor, p as AnyOperationArg, pt as LockingClauseOptions, q as FunctionCallExpr, qt as frozenCodecRef, r as AggregateFn, rt as JsonDocumentProjection, s as AnyCodecDescriptorTemplate, st as LimitOffsetValue, t as AggregateCountFn, tt as JoinOnExpr, u as AnyInsertOnConflictAction, ut as LockStrength, v as BinaryOp, vt as NullCheckExpr, w as CodecDescriptor$1, wt as PreparedParamRef, x as CastExpr, xt as OrderByItem, y as CaseBranch, yt as OperationExpr, z as DoUpdateSetConflictAction, zt as TableSource } from "./types-DVaVM20q-DrinF7w_.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-DRsYeq3j-X_D6hNMZ.mjs";
3
- import { a as DdlNode, c as FunctionColumnDefault, d as PrimaryKeyConstraint, f as UniqueConstraint, h as renderOpaqueSql, i as DdlColumnDefault, l as LiteralColumnDefault, m as opaqueSql, n as CheckExpressionConstraint, o as DdlTableConstraint, p as isDdlNode, r as DdlColumn, s as ForeignKeyConstraint, t as AnyDdlColumnDefault, u as OpaqueSql } from "./ddl-types-CoP6yAw9-BDp3W_5g.mjs";
4
- import { $ as sqlTextDecode, A as collectOrderedParamRefs, B as sqlCharColumn, C as SqlFloatDescriptor, D as SqlTextDescriptor, E as SqlTextCodec, F as lockIncompatible, G as sqlFloatDecode, H as sqlCharDescriptor, I as lockOptionCapabilities, J as sqlIntColumn, K as sqlFloatDescriptor, L as lockStrengthCapabilities, M as encodeListLiteralDefault, N as encodeLiteralDefault, O as SqlVarcharCodec, P as isAggregateProjection, Q as sqlTextColumn, R as lockWaitPolicyOf, S as SqlFloatCodec, T as SqlIntDescriptor, U as sqlCharEncode, V as sqlCharDecode, W as sqlFloatColumn, X as sqlIntDescriptor, Y as sqlIntDecode, Z as sqlIntEncode, _ as SQL_INT_CODEC_ID, a as EncodedLiteralDefault, at as sqlVarcharEncode, b as SqlCharCodec, c as LockOptionCapabilities, d as LockWaitRequest, et as sqlTextDescriptor, f as Lowerer, g as SQL_FLOAT_CODEC_ID, h as SQL_CHAR_CODEC_ID, i as CapabilityRequirement, it as sqlVarcharDescriptor, j as compact, k as SqlVarcharDescriptor, l as LockStrengthCapabilities, m as MarkerReadResult, n as AdapterProfile, nt as sqlVarcharColumn, o as LiteralDefaultColumn, p as LowererContext, q as sqlFloatEncode, r as AdapterTarget, rt as sqlVarcharDecode, s as LockConflict, t as Adapter, tt as sqlTextEncode, u as LockWaitOptions, v as SQL_TEXT_CODEC_ID, w as SqlIntCodec, x as SqlCharDescriptor, y as SQL_VARCHAR_CODEC_ID, z as missingCapability } from "./ast-Dzsat0Zb.mjs";
3
+ import { a as DdlNode, c as FunctionColumnDefault, d as PrimaryKeyConstraint, f as UniqueConstraint, h as renderOpaqueSql, i as DdlColumnDefault, l as LiteralColumnDefault, m as opaqueSql, n as CheckExpressionConstraint, o as DdlTableConstraint, p as isDdlNode, r as DdlColumn, s as ForeignKeyConstraint, t as AnyDdlColumnDefault, u as OpaqueSql } from "./ddl-types-CoP6yAw9-Cxc2zvi3.mjs";
4
+ import { $ as sqlTextDecode, A as collectOrderedParamRefs, B as sqlCharColumn, C as SqlFloatDescriptor, D as SqlTextDescriptor, E as SqlTextCodec, F as lockIncompatible, G as sqlFloatDecode, H as sqlCharDescriptor, I as lockOptionCapabilities, J as sqlIntColumn, K as sqlFloatDescriptor, L as lockStrengthCapabilities, M as encodeListLiteralDefault, N as encodeLiteralDefault, O as SqlVarcharCodec, P as isAggregateProjection, Q as sqlTextColumn, R as lockWaitPolicyOf, S as SqlFloatCodec, T as SqlIntDescriptor, U as sqlCharEncode, V as sqlCharDecode, W as sqlFloatColumn, X as sqlIntDescriptor, Y as sqlIntDecode, Z as sqlIntEncode, _ as SQL_INT_CODEC_ID, a as EncodedLiteralDefault, at as sqlVarcharEncode, b as SqlCharCodec, c as LockOptionCapabilities, d as LockWaitRequest, et as sqlTextDescriptor, f as Lowerer, g as SQL_FLOAT_CODEC_ID, h as SQL_CHAR_CODEC_ID, i as CapabilityRequirement, it as sqlVarcharDescriptor, j as compact, k as SqlVarcharDescriptor, l as LockStrengthCapabilities, m as MarkerReadResult, n as AdapterProfile, nt as sqlVarcharColumn, o as LiteralDefaultColumn, p as LowererContext, q as sqlFloatEncode, r as AdapterTarget, rt as sqlVarcharDecode, s as LockConflict, t as Adapter, tt as sqlTextEncode, u as LockWaitOptions, v as SQL_TEXT_CODEC_ID, w as SqlIntCodec, x as SqlCharDescriptor, y as SQL_VARCHAR_CODEC_ID, z as missingCapability } from "./ast-Cq7uhA86.mjs";
5
5
  export { Adapter, AdapterProfile, AdapterTarget, AggregateCountFn, AggregateExpr, AggregateFn, AggregateOpFn, AndExpr, AnyCodecDescriptor, AnyCodecDescriptorTemplate, AnyDdlColumnDefault, AnyExpression, AnyFromSource, AnyInsertOnConflictAction, AnyInsertValue, AnyJsonValueProjection, AnyOperationArg, AnyParamRef, AnyQueryAst, AstRewriter, BinaryExpr, BinaryOp, CapabilityRequirement, 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, DdlNode, DdlTableConstraint, DefaultValueExpr, DeleteAst, DerivedTableSource, DescriptorCodecId, DescriptorCodecInput, DescriptorCodecJson, DescriptorCodecTraits, Direction, DoNothingConflictAction, DoUpdateSetConflictAction, EncodedLiteralDefault, 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, LiteralDefaultColumn, LiteralExpr, LockConflict, LockOptionCapabilities, LockStrength, LockStrengthCapabilities, LockWaitOptions, LockWaitPolicy, LockWaitRequest, LockingClause, LockingClauseOptions, LoweredParam, LoweredStatement, Lowerer, LowererContext, MarkerReadResult, NativeJsonValueProjection, NotExpr, NullCheckExpr, OpaqueSql, OperationExpr, OrExpr, OrderByItem, OrderByNulls, 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, checkLimitOffset, collectOrderedParamRefs, compact, encodeListLiteralDefault, encodeLiteralDefault, frozenCodecRef, isAggregateFn, isAggregateProjection, isDdlNode, isOrderByDirection, isOrderByNulls, isQueryAst, isWhereExpr, lockIncompatible, lockOptionCapabilities, lockStrengthCapabilities, lockWaitPolicyOf, missingCapability, opaqueSql, queryAstKinds, renderOpaqueSql, sqlCharColumn, sqlCharDecode, sqlCharDescriptor, sqlCharEncode, sqlFloatColumn, sqlFloatDecode, sqlFloatDescriptor, sqlFloatEncode, sqlIntColumn, sqlIntDecode, sqlIntDescriptor, sqlIntEncode, sqlTextColumn, sqlTextDecode, sqlTextDescriptor, sqlTextEncode, sqlVarcharColumn, sqlVarcharDecode, sqlVarcharDescriptor, sqlVarcharEncode, whereExprKinds };
@@ -1,7 +1,7 @@
1
1
  import { l as SqlStorage } from "./sql-storage-tZhB8nS5-8NSWT0TW.mjs";
2
- import "./types-DMfBh16_.mjs";
3
- import { o as AnyCodecDescriptor$1 } from "./types-DVaVM20q-B-QcMIOa.mjs";
4
- import { t as CodecDescriptorRegistry } from "./query-lane-context-BLOPW1rQ-Bn3ugl9a.mjs";
2
+ import "./types-B2Dee96w.mjs";
3
+ import { o as AnyCodecDescriptor$1 } from "./types-DVaVM20q-DrinF7w_.mjs";
4
+ import { t as CodecDescriptorRegistry } from "./query-lane-context-BLOPW1rQ-4vNq0fxJ.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,3 +1,3 @@
1
- import { a as CollectionMethodModel, c as CollectionMethodRegistry, i as CollectionMethodContributionType, l as CollectionMethodTools, n as CollectionMethodContribution, o as CollectionMethodModelType, r as CollectionMethodContributionId, s as CollectionMethodReceiver, t as CollectionMethodBody, u as ContributedMethodSignature } from "./collection-methods-B-tM7OPZ-v8HK9Txa.mjs";
2
- import "./collection-methods-DQAFcGEB.mjs";
1
+ import { a as CollectionMethodModel, c as CollectionMethodRegistry, i as CollectionMethodContributionType, l as CollectionMethodTools, n as CollectionMethodContribution, o as CollectionMethodModelType, r as CollectionMethodContributionId, s as CollectionMethodReceiver, t as CollectionMethodBody, u as ContributedMethodSignature } from "./collection-methods-B-tM7OPZ-DzXedZdV.mjs";
2
+ import "./collection-methods-BNAu8vHk.mjs";
3
3
  export { CollectionMethodBody, CollectionMethodContribution, CollectionMethodContributionId, CollectionMethodContributionType, CollectionMethodModel, CollectionMethodModelType, CollectionMethodReceiver, CollectionMethodRegistry, CollectionMethodTools, ContributedMethodSignature };
@@ -1,7 +1,7 @@
1
1
  import { o as ReferentialAction } from "./foreign-key-qkDFfG8t-Fyrzd0VI.mjs";
2
- import "./types-DMfBh16_.mjs";
3
- import { E as CodecRef$1, Et as ProjectionItem, Mt as SelectAst, O as ColumnRef, Vt as UpdateAst, Z as InsertAst, c as AnyExpression, et as JoinAst, l as AnyFromSource, xt as OrderByItem, zt as TableSource } from "./types-DVaVM20q-B-QcMIOa.mjs";
4
- import { c as FunctionColumnDefault, d as PrimaryKeyConstraint, f as UniqueConstraint, l as LiteralColumnDefault, n as CheckExpressionConstraint, r as DdlColumn, s as ForeignKeyConstraint, t as AnyDdlColumnDefault } from "./ddl-types-CoP6yAw9-BDp3W_5g.mjs";
2
+ import "./types-B2Dee96w.mjs";
3
+ import { E as CodecRef$1, Et as ProjectionItem, Mt as SelectAst, O as ColumnRef, Vt as UpdateAst, Z as InsertAst, c as AnyExpression, et as JoinAst, l as AnyFromSource, xt as OrderByItem, zt as TableSource } from "./types-DVaVM20q-DrinF7w_.mjs";
4
+ import { c as FunctionColumnDefault, d as PrimaryKeyConstraint, f as UniqueConstraint, l as LiteralColumnDefault, n as CheckExpressionConstraint, r as DdlColumn, s as ForeignKeyConstraint, t as AnyDdlColumnDefault } from "./ddl-types-CoP6yAw9-Cxc2zvi3.mjs";
5
5
  import { r as SqlExpression } from "./sql-expression-BAtH-2UU.mjs";
6
6
  import { ColumnDefaultLiteralInputValue } from "@prisma/orm-framework/contract/types";
7
7
  import { ParamSpec } from "@prisma/orm-framework/operations";
@@ -1,4 +1,4 @@
1
- import { C as TraitExpression, D as isExpression, E as createRawSql, O as param, S as StorageColumnScopeField, T as codecOf, _ 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, k as toExpr, 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 buildOperation, x as ScopeField, y as RawSqlTag } from "./expression-BzrfOiPC-3NqR8UzK.mjs";
2
- import { t as ExpressionImpl } from "./expression-sOY1120I-DOykEQlw.mjs";
3
- import "./expression-CeerCjQG.mjs";
1
+ import { C as TraitExpression, D as isExpression, E as createRawSql, O as param, S as StorageColumnScopeField, T as codecOf, _ 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, k as toExpr, 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 buildOperation, x as ScopeField, y as RawSqlTag } from "./expression-BzrfOiPC-CXjjRKqc.mjs";
2
+ import { t as ExpressionImpl } from "./expression-sOY1120I-DMTeGMQP.mjs";
3
+ import "./expression-CIBqCwC1.mjs";
4
4
  export { AffectedCount, BuildOperationSpec, CodecExpression, CodecTypesBase, CodecValue, Expression, ExpressionImpl, NoReservedRowColumn, RawAffectedCountQuery, RawCodecInferer, RawPlanContext, RawRow, RawRowQuery, RawRowSpec, RawRowSpecEntry, RawSqlBuilder, RawSqlInterpolation, RawSqlStatementBuilder, RawSqlStatementTag, RawSqlTag, ScalarListExpression, ScopeField, StorageColumnScopeField, TraitExpression, buildOperation, codecOf, createRawSql, isExpression, param, toExpr };
@@ -1,2 +1,2 @@
1
- import { a as Subquery, i as FunctionsContext, n as BuiltinFunctions, o as SubqueryMarker, r as Functions, s as createFunctions, t as BooleanCodecType } from "./functions-Cp8soSAv.mjs";
1
+ import { a as Subquery, i as FunctionsContext, n as BuiltinFunctions, o as SubqueryMarker, r as Functions, s as createFunctions, t as BooleanCodecType } from "./functions-LyIMc_v9.mjs";
2
2
  export { type BooleanCodecType, type BuiltinFunctions, type Functions, type FunctionsContext, type Subquery, type SubqueryMarker, createFunctions };
@@ -1,3 +1,3 @@
1
- import { a as createIndexReferences, i as UniqueIndexNamesOfType, n as IndexReferencesInput, o as uniqueIndexNamesOfType, r as TableIndexReferences, t as IndexReference } from "./index-reference-DJaQLZA3-DxmYkkX-.mjs";
2
- import "./index-reference-CWppFpUV.mjs";
1
+ import { a as createIndexReferences, i as UniqueIndexNamesOfType, n as IndexReferencesInput, o as uniqueIndexNamesOfType, r as TableIndexReferences, t as IndexReference } from "./index-reference-DJaQLZA3-DS-GPKXs.mjs";
2
+ import "./index-reference-CsxaNof9.mjs";
3
3
  export { type IndexReference, type IndexReferencesInput, type TableIndexReferences, type UniqueIndexNamesOfType, createIndexReferences, uniqueIndexNamesOfType };
@@ -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-oCT0RWkt-AFlRNCOD.mjs";
2
- import "./middleware-IqWk9Eff.mjs";
1
+ import { a as SqlParamRefMutatorInternal, i as SqlParamRefMutator, n as ParamRefEntryUnion, o as createSqlParamRefMutator, r as ParamRefHandle, t as ParamRefEntry } from "./middleware-oCT0RWkt-DGav7C8b.mjs";
2
+ import "./middleware-MgGkjEXt.mjs";
3
3
  export { type ParamRefEntry, type ParamRefEntryUnion, type ParamRefHandle, type SqlParamRefMutator, type SqlParamRefMutatorInternal, createSqlParamRefMutator };
@@ -1,4 +1,4 @@
1
- import { n as SqlQueryPlan, r as planFromAst, t as Preparable } from "./plan-Cbed2eDu-BZM3geSm.mjs";
2
- import { t as SqlExecutionPlan } from "./sql-execution-plan-Dam5yMZg-Bc_eneSz.mjs";
3
- import "./plan-BZpZafiQ.mjs";
1
+ import { n as SqlQueryPlan, r as planFromAst, t as Preparable } from "./plan-Cbed2eDu-3c5s1Aq5.mjs";
2
+ import { t as SqlExecutionPlan } from "./sql-execution-plan-Dam5yMZg-bDl_0qHQ.mjs";
3
+ import "./plan-BOyVvttx.mjs";
4
4
  export { Preparable, type SqlExecutionPlan, SqlQueryPlan, planFromAst };
@@ -1,3 +1,3 @@
1
- import { a as SqlAggregateDescriptorRegistry, c as TypeHelperRegistry, n as ExecutionContext, r as ResolvedSqlAggregate, t as CodecDescriptorRegistry } from "./query-lane-context-BLOPW1rQ-Bn3ugl9a.mjs";
2
- import "./query-lane-context-Dpep1Fzy.mjs";
1
+ import { a as SqlAggregateDescriptorRegistry, c as TypeHelperRegistry, n as ExecutionContext, r as ResolvedSqlAggregate, t as CodecDescriptorRegistry } from "./query-lane-context-BLOPW1rQ-4vNq0fxJ.mjs";
2
+ import "./query-lane-context-BPJrXopg.mjs";
3
3
  export { CodecDescriptorRegistry, ExecutionContext, 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-Cv5t6_Ly-CcBWTpfM.mjs";
2
- import "./types-_7TbRpPw.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-Cv5t6_Ly-BaGc023t.mjs";
2
+ import "./types-VUCzaDbp.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,5 +1,5 @@
1
- import { m as MarkerReadResult } from "./ast-Dzsat0Zb.mjs";
2
- import { c as TypeHelperRegistry, n as ExecutionContext } from "./query-lane-context-BLOPW1rQ-Bn3ugl9a.mjs";
3
- import { a as ParamSpec, c as PreparedExecution, i as DeclaredNullable, l as PreparedFor, n as Declaration, o as ParamsFromDeclaration, r as DeclaredCodecId, s as PrepareCallback, t as BindSiteParams, u as PreparedStatement } from "./transaction-state-DR3nKTmH-n_12DsnU.mjs";
4
- import { $ as SqlRuntimeAdapterDescriptor, A as ActivityRoute, B as PreparedStatementInternals, C as extractCodecIds, D as validateContractCodecMappings, E as validateCodecRegistryCompleteness, F as ConnectionProvider, G as RuntimeParameterizedCodecDescriptor, H as RuntimeConnection, I as HashablePlan, J as RuntimeTransaction, K as RuntimeQueryable, L as MarkerReader, M as ActivitySourceTarget, N as BoundPreparedStatement, O as ActivityExecuteOptions, P as CloseRefusal, Q as SqlMiddlewareContext, R as PreparedExecutionImpl, S as createAstCodecRegistry, T as lowerSqlPlan, U as RuntimeFamilyAdapter, V as Runtime, W as RuntimeOptions, X as SqlExecutionStackWithDriver, Y as SqlExecutionStack, Z as SqlMiddleware, _ as StatementActivity, _t as planContentHashOn, a as ActivityParent, at as SqlRuntimeTargetDescriptor, b as TransactionEnded, c as ClientActivityEnd, ct as TransactionContext, d as ClientActivityResult, dt as createExecutionContext, et as SqlRuntimeAdapterInstance, f as ExecuteInterceptResult, ft as createSqlExecutionStack, g as StartActivity, gt as findActivitySource, h as QueryInterceptResult, ht as encodeParamsWithMetadata, i as ActivityInterceptResult, it as SqlRuntimeExtensionInstance, j as ActivitySource, k as ActivityHandle, l as ClientActivityEnded, lt as VerifyMarkerOption, m as Log, mt as deriveParamMetadata, n as ActivityEndedResult, nt as SqlRuntimeDriverInstance, o as BudgetsOptions, ot as SqlStaticContributions, p as LintsOptions, pt as delegatingActivitySource, q as RuntimeTelemetryEvent, r as ActivityFinalizedResult, rt as SqlRuntimeExtensionDescriptor, s as ClientActivity, st as TelemetryOutcome, t as Activity, tt as SqlRuntimeBase, u as ClientActivityKind, ut as activitySource, v as StatementEnded, vt as startActivityOn, w as lints, x as budgets, y as TransactionActivity, yt as withTransaction, z as PreparedStatementImpl } from "./index-BxlXOVeT.mjs";
1
+ import { m as MarkerReadResult } from "./ast-Cq7uhA86.mjs";
2
+ import { c as TypeHelperRegistry, n as ExecutionContext } from "./query-lane-context-BLOPW1rQ-4vNq0fxJ.mjs";
3
+ import { a as ParamSpec, c as PreparedExecution, i as DeclaredNullable, l as PreparedFor, n as Declaration, o as ParamsFromDeclaration, r as DeclaredCodecId, s as PrepareCallback, t as BindSiteParams, u as PreparedStatement } from "./transaction-state-DR3nKTmH-DbyhuL-z.mjs";
4
+ import { $ as SqlRuntimeAdapterDescriptor, A as ActivityRoute, B as PreparedStatementInternals, C as extractCodecIds, D as validateContractCodecMappings, E as validateCodecRegistryCompleteness, F as ConnectionProvider, G as RuntimeParameterizedCodecDescriptor, H as RuntimeConnection, I as HashablePlan, J as RuntimeTransaction, K as RuntimeQueryable, L as MarkerReader, M as ActivitySourceTarget, N as BoundPreparedStatement, O as ActivityExecuteOptions, P as CloseRefusal, Q as SqlMiddlewareContext, R as PreparedExecutionImpl, S as createAstCodecRegistry, T as lowerSqlPlan, U as RuntimeFamilyAdapter, V as Runtime, W as RuntimeOptions, X as SqlExecutionStackWithDriver, Y as SqlExecutionStack, Z as SqlMiddleware, _ as StatementActivity, _t as planContentHashOn, a as ActivityParent, at as SqlRuntimeTargetDescriptor, b as TransactionEnded, c as ClientActivityEnd, ct as TransactionContext, d as ClientActivityResult, dt as createExecutionContext, et as SqlRuntimeAdapterInstance, f as ExecuteInterceptResult, ft as createSqlExecutionStack, g as StartActivity, gt as findActivitySource, h as QueryInterceptResult, ht as encodeParamsWithMetadata, i as ActivityInterceptResult, it as SqlRuntimeExtensionInstance, j as ActivitySource, k as ActivityHandle, l as ClientActivityEnded, lt as VerifyMarkerOption, m as Log, mt as deriveParamMetadata, n as ActivityEndedResult, nt as SqlRuntimeDriverInstance, o as BudgetsOptions, ot as SqlStaticContributions, p as LintsOptions, pt as delegatingActivitySource, q as RuntimeTelemetryEvent, r as ActivityFinalizedResult, rt as SqlRuntimeExtensionDescriptor, s as ClientActivity, st as TelemetryOutcome, t as Activity, tt as SqlRuntimeBase, u as ClientActivityKind, ut as activitySource, v as StatementEnded, vt as startActivityOn, w as lints, x as budgets, y as TransactionActivity, yt as withTransaction, z as PreparedStatementImpl } from "./index-B0hZw3uT.mjs";
5
5
  export { type Activity, type ActivityEndedResult, type ActivityExecuteOptions, type ActivityFinalizedResult, type ActivityHandle, type ActivityInterceptResult, type ActivityParent, type ActivityRoute, type ActivitySource, type ActivitySourceTarget, type BindSiteParams, type BoundPreparedStatement, type BudgetsOptions, type ClientActivity, type ClientActivityEnd, type ClientActivityEnded, type ClientActivityKind, type ClientActivityResult, type CloseRefusal, type ConnectionProvider, type Declaration, type DeclaredCodecId, type DeclaredNullable, type ExecuteInterceptResult, type ExecutionContext, type HashablePlan, 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 RuntimeOptions, 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 StartActivity, type StatementActivity, type StatementEnded, type TelemetryOutcome, type TransactionActivity, type TransactionContext, type TransactionEnded, type TypeHelperRegistry, type VerifyMarkerOption, activitySource, budgets, createAstCodecRegistry, createExecutionContext, createSqlExecutionStack, delegatingActivitySource, deriveParamMetadata, encodeParamsWithMetadata, extractCodecIds, findActivitySource, lints, lowerSqlPlan, planContentHashOn, startActivityOn, validateCodecRegistryCompleteness, validateContractCodecMappings, withTransaction };
@@ -1,2 +1,2 @@
1
- import { S as transactionStart, _ as createTransactionStart, b as settlementOf, d as PreparedStatementExecuteTarget, f as PreparedStatementQueryTarget, g as TransactionStartTarget, h as TransactionStart, m as TransactionSettlementState, p as SettledTransactionTarget, v as preparedStatementExecute, x as transactionSettlement, y as preparedStatementQuery } from "./transaction-state-DR3nKTmH-n_12DsnU.mjs";
1
+ import { S as transactionStart, _ as createTransactionStart, b as settlementOf, d as PreparedStatementExecuteTarget, f as PreparedStatementQueryTarget, g as TransactionStartTarget, h as TransactionStart, m as TransactionSettlementState, p as SettledTransactionTarget, v as preparedStatementExecute, x as transactionSettlement, y as preparedStatementQuery } from "./transaction-state-DR3nKTmH-DbyhuL-z.mjs";
2
2
  export { type PreparedStatementExecuteTarget, type PreparedStatementQueryTarget, type SettledTransactionTarget, type TransactionSettlementState, type TransactionStart, type TransactionStartTarget, createTransactionStart, preparedStatementExecute, preparedStatementQuery, settlementOf, transactionSettlement, transactionStart };
@@ -1,5 +1,5 @@
1
1
  import { l as SqlStorage } from "./sql-storage-tZhB8nS5-8NSWT0TW.mjs";
2
- import "./types-DMfBh16_.mjs";
2
+ import "./types-B2Dee96w.mjs";
3
3
  import { x as SqlSchemaIRNode } from "./types-Bqe0AXuw-xqQnkIj4.mjs";
4
4
  import "./types-CTdsm45r.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-DmP74bB8-GfOUaGGy.d.mts.map
47
+ //# sourceMappingURL=schema-differ-DmP74bB8-Dn53wZD1.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"schema-differ-DmP74bB8-GfOUaGGy.d.mts","names":[],"sources":["../../../../2-sql/9-family/dist/schema-differ-DmP74bB8.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-DmP74bB8-Dn53wZD1.d.mts","names":[],"sources":["../../../../2-sql/9-family/dist/schema-differ-DmP74bB8.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 { n as isSqlDataType, t as findSqlDataTypeCollision } from "./sql-data-type-Dabuwxet-BljsNjBu.mjs";
1
+ import { n as isSqlDataType, t as findSqlDataTypeCollision } from "./sql-data-type-DwLa_dK9-2eTvrYhA.mjs";
2
2
  import { i as assertNothingCastsFromSqlExpression } from "./sql-expression-BJCuy-WI.mjs";
3
3
  import { u as isStorageTypeInstance } from "./types-M_FeBD9w.mjs";
4
4
  import { ifDefined } from "@prisma/orm-framework/utils/defined";
@@ -259,4 +259,4 @@ function verifySqlSchemaByDiff(input) {
259
259
  //#endregion
260
260
  export { computeStorageTypeVerdict as a, verifySqlSchemaByDiff as c, computeSqlDiffVerdict as i, classifyDiffSubjectGranularity as n, enforceSqlDataTypeInvariants as o, classifySqlDiffIssue as r, extractCodecControlHooks as s, classifyDiffEntityKind as t };
261
261
 
262
- //# sourceMappingURL=schema-verify-BwRdzbHb-B9vFrm3T.mjs.map
262
+ //# sourceMappingURL=schema-verify-BwRdzbHb-CxnJN-Lm.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"schema-verify-BwRdzbHb-B9vFrm3T.mjs","names":[],"sources":["../../../../2-sql/9-family/dist/schema-verify-BwRdzbHb.mjs"],"sourcesContent":["import { assertNothingCastsFromSqlExpression } from \"@internal/sql-contract/sql-expression\";\nimport { VERIFY_CODE_SCHEMA_FAILURE, assertUniqueCodecOwner, dispositionForCategory, issueOutcome } from \"@internal/framework-components/control\";\nimport { blindCast } from \"@internal/utils/casts\";\nimport { ifDefined } from \"@internal/utils/defined\";\nimport { InternalError } from \"@internal/utils/internal-error\";\nimport { runtimeError } from \"@internal/framework-components/components\";\nimport { findSqlDataTypeCollision, isSqlDataType } from \"@internal/sql-contract/data-type\";\nimport { isStorageTypeInstance } from \"@internal/sql-contract/types\";\nimport { effectiveControlPolicy } from \"@internal/contract/types\";\n//#region src/core/assembly.ts\nfunction hasCodecControlHooks(descriptor) {\n\tif (typeof descriptor !== \"object\" || descriptor === null) return false;\n\tconst hooks = blindCast(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/**\n* The SQL family's checks of the stack's data types and codecs, each naming the contributor:\n* no two SQL data types would both recognise one reported type, by colliding claiming texts or by\n* claiming the same kind; no data type casts from `sql/expression`; every type stored as another\n* names a registered SQL data type; and every codec represents a\n* SQL data type, because a codec represents a column's type and `sql/expression` is the one data\n* type no column has.\n*/\nfunction enforceSqlDataTypeInvariants(declaredDataTypes, codecDescriptors) {\n\tconst declaredById = new Map(declaredDataTypes.map((declared) => [declared.type.id, declared]));\n\tconst capitalized = (text) => `${text.charAt(0).toUpperCase()}${text.slice(1)}`;\n\tconst describe = (type) => `data type \"${type.id}\" contributed by \"${declaredById.get(type.id)?.contributedBy ?? \"<unknown>\"}\"`;\n\tconst collision = findSqlDataTypeCollision(declaredDataTypes.map(({ type }) => type));\n\tif (collision !== void 0) {\n\t\tconst { first, second, claims } = collision;\n\t\tif (claims.by === \"kind\") throw new InternalError(`The ${describe(first)} and the ${describe(second)} both claim the kind \"${claims.kind}\".`);\n\t\tthrow new InternalError(`The ${describe(first)} claims the text \"${claims.first}\", which collides with the text \"${claims.second}\" claimed by the ${describe(second)}.`);\n\t}\n\tassertNothingCastsFromSqlExpression(declaredDataTypes);\n\tfor (const { type, contributedBy } of declaredDataTypes) {\n\t\tif (!isSqlDataType(type) || type.sql.storedAs === void 0) continue;\n\t\tconst storage = declaredById.get(type.sql.storedAs)?.type;\n\t\tif (storage !== void 0 && isSqlDataType(storage)) {\n\t\t\tconst further = storage.sql.storedAs;\n\t\t\tif (further === void 0) continue;\n\t\t\tthrow new InternalError(`${capitalized(describe(type))} is stored as \"${storage.id}\", which is itself stored as \"${further}\". Name \"${further}\" as the type it is stored as.`);\n\t\t}\n\t\tthrow runtimeError(\"CONTRACT.DATA_TYPE_UNREGISTERED\", `Data type \"${type.id}\" is stored as data type \"${type.sql.storedAs}\", which no component registers. Contributed by \"${contributedBy}\".`, {\n\t\t\tdataType: type.sql.storedAs,\n\t\t\tcontributedBy\n\t\t});\n\t}\n\tfor (const codec of codecDescriptors) {\n\t\tconst represented = declaredById.get(codec.dataType)?.type;\n\t\tif (represented === void 0 || isSqlDataType(represented)) continue;\n\t\tthrow new InternalError(`Codec \"${codec.codecId}\" represents ${describe(represented)}, which is not a SQL data type. In a SQL stack a codec represents a column's type, so its data type is declared with sqlDataType.`);\n\t}\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: VERIFY_CODE_SCHEMA_FAILURE },\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, extractCodecControlHooks as c, computeSqlDiffVerdict as i, classifyDiffSubjectGranularity as n, verifySqlSchemaByDiff as o, classifySqlDiffIssue as r, enforceSqlDataTypeInvariants as s, classifyDiffEntityKind as t };\n\n//# sourceMappingURL=schema-verify-BwRdzbHb.mjs.map"],"mappings":";;;;;;;;;;AAUA,SAAS,qBAAqB,YAAY;CACzC,IAAI,OAAO,eAAe,YAAY,eAAe,MAAM,OAAO;CAClE,MAAM,QAAQ,UAAU,UAAU,CAAC,CAAC,OAAO,YAAY;CACvD,OAAO,U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G,KAAK,CAAC,IAAI,EAAE,MAAM,2BAA2B;EAChD,SAAS,KAAK,uCAAuC,8CAA8C,UAAU,UAAU,cAAc,IAAI,KAAK,IAAI;EAClJ,UAAU;GACT,aAAa,MAAM,SAAS,QAAQ;GACpC,GAAG,UAAU,eAAe,WAAW;EACxC;EACA,QAAQ;GACP,UAAU,MAAM,SAAS;GACzB,QAAQ,MAAM,SAAS;EACxB;EACA,QAAQ;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
+ {"version":3,"file":"schema-verify-BwRdzbHb-CxnJN-Lm.mjs","names":[],"sources":["../../../../2-sql/9-family/dist/schema-verify-BwRdzbHb.mjs"],"sourcesContent":["import { assertNothingCastsFromSqlExpression } from \"@internal/sql-contract/sql-expression\";\nimport { VERIFY_CODE_SCHEMA_FAILURE, assertUniqueCodecOwner, dispositionForCategory, issueOutcome } from \"@internal/framework-components/control\";\nimport { blindCast } from \"@internal/utils/casts\";\nimport { ifDefined } from \"@internal/utils/defined\";\nimport { InternalError } from \"@internal/utils/internal-error\";\nimport { runtimeError } from \"@internal/framework-components/components\";\nimport { findSqlDataTypeCollision, isSqlDataType } from \"@internal/sql-contract/data-type\";\nimport { isStorageTypeInstance } from \"@internal/sql-contract/types\";\nimport { effectiveControlPolicy } from \"@internal/contract/types\";\n//#region src/core/assembly.ts\nfunction hasCodecControlHooks(descriptor) {\n\tif (typeof descriptor !== \"object\" || descriptor === null) return false;\n\tconst hooks = blindCast(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/**\n* The SQL family's checks of the stack's data types and codecs, each naming the contributor:\n* no two SQL data types would both recognise one reported type, by colliding claiming texts or by\n* claiming the same kind; no data type casts from `sql/expression`; every type stored as another\n* names a registered SQL data type; and every codec represents a\n* SQL data type, because a codec represents a column's type and `sql/expression` is the one data\n* type no column has.\n*/\nfunction enforceSqlDataTypeInvariants(declaredDataTypes, codecDescriptors) {\n\tconst declaredById = new Map(declaredDataTypes.map((declared) => [declared.type.id, declared]));\n\tconst capitalized = (text) => `${text.charAt(0).toUpperCase()}${text.slice(1)}`;\n\tconst describe = (type) => `data type \"${type.id}\" contributed by \"${declaredById.get(type.id)?.contributedBy ?? \"<unknown>\"}\"`;\n\tconst collision = findSqlDataTypeCollision(declaredDataTypes.map(({ type }) => type));\n\tif (collision !== void 0) {\n\t\tconst { first, second, claims } = collision;\n\t\tif (claims.by === \"kind\") throw new InternalError(`The ${describe(first)} and the ${describe(second)} both claim the kind \"${claims.kind}\".`);\n\t\tthrow new InternalError(`The ${describe(first)} claims the text \"${claims.first}\", which collides with the text \"${claims.second}\" claimed by the ${describe(second)}.`);\n\t}\n\tassertNothingCastsFromSqlExpression(declaredDataTypes);\n\tfor (const { type, contributedBy } of declaredDataTypes) {\n\t\tif (!isSqlDataType(type) || type.sql.storedAs === void 0) continue;\n\t\tconst storage = declaredById.get(type.sql.storedAs)?.type;\n\t\tif (storage !== void 0 && isSqlDataType(storage)) {\n\t\t\tconst further = storage.sql.storedAs;\n\t\t\tif (further === void 0) continue;\n\t\t\tthrow new InternalError(`${capitalized(describe(type))} is stored as \"${storage.id}\", which is itself stored as \"${further}\". Name \"${further}\" as the type it is stored as.`);\n\t\t}\n\t\tthrow runtimeError(\"CONTRACT.DATA_TYPE_UNREGISTERED\", `Data type \"${type.id}\" is stored as data type \"${type.sql.storedAs}\", which no component registers. Contributed by \"${contributedBy}\".`, {\n\t\t\tdataType: type.sql.storedAs,\n\t\t\tcontributedBy\n\t\t});\n\t}\n\tfor (const codec of codecDescriptors) {\n\t\tconst represented = declaredById.get(codec.dataType)?.type;\n\t\tif (represented === void 0 || isSqlDataType(represented)) continue;\n\t\tthrow new InternalError(`Codec \"${codec.codecId}\" represents ${describe(represented)}, which is not a SQL data type. In a SQL stack a codec represents a column's type, so its data type is declared with sqlDataType.`);\n\t}\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: VERIFY_CODE_SCHEMA_FAILURE },\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, extractCodecControlHooks as c, computeSqlDiffVerdict as i, classifyDiffSubjectGranularity as n, verifySqlSchemaByDiff as o, classifySqlDiffIssue as r, enforceSqlDataTypeInvariants as s, classifyDiffEntityKind as t };\n\n//# sourceMappingURL=schema-verify-BwRdzbHb.mjs.map"],"mappings":";;;;;;;;;;AAUA,SAAS,qBAAqB,YAAY;CACzC,IAAI,OAAO,eAAe,YAAY,eAAe,MAAM,OAAO;CAClE,MAAM,QAAQ,UAAU,UAAU,CAAC,CAAC,OAAO,YAAY;CACvD,OAAO,UAAU,QAAQ,UAAU,KAAK,KAAK,OAAO,UAAU;AAC/D;AACA,SAAS,yBAAyB,aAAa;CAC9C,MAAM,wBAAwB,IAAI,IAAI;CACtC,MAAM,yBAAyB,IAAI,IAAI;CACvC,KAAK,MAAM,cAAc,aAAa;EACrC,IAAI,OAAO,eAAe,YAAY,eAAe,MAAM;EAC3D,IAAI,CAAC,qBAAqB,UAAU,GAAG;EACvC,MAAM,oBAAoB,WAAW,MAAM,WAAW;EACtD,KAAK,MAAM,CAAC,SAAS,SAAS,OAAO,QAAQ,iBAAiB,GAAG;GAChE,uBAAuB;IACtB;IACA;IACA,cAAc,WAAW;IACzB,aAAa;IACb,sBAAsB;GACvB,CAAC;GACD,MAAM,IAAI,SAAS,IAAI;GACvB,OAAO,IAAI,SAAS,WAAW,EAAE;EAClC;CACD;CACA,OA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,7 +1,7 @@
1
1
  import { t as sqlContractCanonicalizationHooks } from "./canonicalization-hooks-dmXkOR4a.mjs";
2
2
  import { f as composeSqlEntityKinds } from "./entity-kinds-CQ_jwgYv-DoOBWwvX.mjs";
3
3
  import { c as isMaterializedSqlNamespace, o as SqlStorage } from "./types-M_FeBD9w.mjs";
4
- import { f as validateSqlContractFully, i as createSqlContractSchema, s as resolveSqlToOneRelationStorage } from "./validators-V8vN9R85.mjs";
4
+ import { f as validateSqlContractFully, i as createSqlContractSchema, s as resolveSqlToOneRelationStorage } from "./validators-Uim8vh59.mjs";
5
5
  import { t as sqlFamilyError } from "./errors-B5g0xWro-mWH2C07F.mjs";
6
6
  import { ifDefined } from "@prisma/orm-framework/utils/defined";
7
7
  import { ContractValidationError } from "@prisma/orm-framework/contract/contract-validation-error";
@@ -193,4 +193,4 @@ var SqlContractSerializer = class extends SqlContractSerializerBase {
193
193
  //#endregion
194
194
  export { SqlContractSerializerBase as n, SqlContractSerializer as t };
195
195
 
196
- //# sourceMappingURL=sql-contract-serializer-sMY3prTx-BKQ4Yh-n.mjs.map
196
+ //# sourceMappingURL=sql-contract-serializer-sMY3prTx-BDTNHOOy.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"sql-contract-serializer-sMY3prTx-BKQ4Yh-n.mjs","names":[],"sources":["../../../../2-sql/9-family/dist/sql-contract-serializer-sMY3prTx.mjs"],"sourcesContent":["import { t as sqlFamilyError } from \"./errors-B5g0xWro.mjs\";\nimport { hydrateNamespaceEntities } from \"@internal/framework-components/ir\";\nimport { sqlContractCanonicalizationHooks } from \"@internal/sql-contract/canonicalization-hooks\";\nimport { blindCast } from \"@internal/utils/casts\";\nimport { ifDefined } from \"@internal/utils/defined\";\nimport { ContractValidationError } from \"@internal/contract/contract-validation-error\";\nimport { SqlStorage, isMaterializedSqlNamespace } from \"@internal/sql-contract/types\";\nimport { createSqlContractSchema, resolveSqlToOneRelationStorage, validateSqlContractFully } from \"@internal/sql-contract/validators\";\nimport { isPlainRecord as isPlainRecord$1 } from \"@internal/contract/is-plain-record\";\nimport { withDerivedToOneRelationNullability } from \"@internal/contract-authoring\";\nimport { composeSqlEntityKinds } from \"@internal/sql-contract/entity-kinds\";\nimport { type } from \"arktype\";\n//#region src/core/ir/sql-contract-serializer-base.ts\nconst NamespaceRawSchema = type({\n\tid: \"string\",\n\t\"kind?\": \"string\",\n\tentries: type({ \"+\": \"ignore\" })\n});\n/**\n* A `contract.json` written before to-one relations recorded `nullable` (rc.9 and earlier)\n* loads with the flag derived from storage: nullable when any local FK column is nullable or\n* cannot be resolved.\n*/\nfunction withSqlToOneRelationNullability(contract) {\n\tconst domain = withDerivedToOneRelationNullability(contract.domain, ({ model, relation }) => {\n\t\tconst { ownsForeignKey, columns } = resolveSqlToOneRelationStorage(contract, blindCast(model.storage), relation);\n\t\treturn {\n\t\t\townsReference: ownsForeignKey,\n\t\t\tlocalFieldNullability: columns.map((column) => column.nullable)\n\t\t};\n\t});\n\treturn {\n\t\t...contract,\n\t\tdomain\n\t};\n}\n/**\n* SQL family `ContractSerializer` abstract base. Carries the SQL-shared\n* deserialization pipeline:\n*\n* 1. `parseSqlContractStructure` validates the on-disk JSON envelope\n* against the SQL contract arktype schema (`validateSqlContractFully`)\n* and returns the validated flat-data shape.\n* 2. `hydrateSqlStorage` walks the validated `storage` subtree and\n* constructs the family-shared SQL Contract IR class hierarchy\n* (`SqlStorage` -> `StorageTable` -> `StorageColumn` / `PrimaryKey`\n* / …). The rest of the contract envelope is JSON-clean primitive\n* data and passes through unchanged.\n* 3. `constructTargetContract` is the target-specific extension hook;\n* defaults to identity. Targets that need to attach target-only\n* fields (e.g. target-specific derived storage fields) override it.\n*\n* Default `serializeContract` is identity over the contract — concrete\n* SQL targets ship JSON-clean class instances, so the contract value\n* can be stringified directly. The non-enumerable family-level `kind`\n* discriminator on `SqlNode` instances stays out of the persisted\n* envelope automatically. Targets that need to canonicalize on the way\n* out (key ordering, dropping computed-only fields) override\n* `serializeContract` directly.\n*/\nvar SqlContractSerializerBase = class {\n\tentityHydrationRegistry;\n\tdataTypes;\n\tcontractSchema;\n\tentryKinds;\n\tconstructor(entityHydrationRegistry = /* @__PURE__ */ new Map(), packEntityKinds = [], dataTypes = void 0) {\n\t\tthis.entityHydrationRegistry = entityHydrationRegistry;\n\t\tthis.dataTypes = dataTypes;\n\t\tthis.entryKinds = composeSqlEntityKinds(packEntityKinds);\n\t\tthis.contractSchema = packEntityKinds.length > 0 ? createSqlContractSchema(this.entryKinds) : void 0;\n\t}\n\tdeserializeContract(json) {\n\t\tconst validated = withSqlToOneRelationNullability(this.parseSqlContractStructure(json));\n\t\tconst hydrated = this.hydrateSqlStorage(validated);\n\t\treturn blindCast(this.constructTargetContract(hydrated));\n\t}\n\tserializeContract(contract) {\n\t\treturn blindCast(contract);\n\t}\n\tshouldPreserveEmpty = sqlContractCanonicalizationHooks.shouldPreserveEmpty;\n\tsortStorage = sqlContractCanonicalizationHooks.sortStorage;\n\thashCanonicalizationHooks = sqlContractCanonicalizationHooks;\n\tparseSqlContractStructure(json) {\n\t\treturn validateSqlContractFully(json, {\n\t\t\t...ifDefined(\"contractSchema\", this.contractSchema),\n\t\t\t...ifDefined(\"dataTypes\", this.dataTypes)\n\t\t});\n\t}\n\thydrateSqlStorage(validated) {\n\t\tconst types = validated.storage.types;\n\t\tconst hydratedTypes = types !== void 0 ? Object.fromEntries(Object.entries(types).map(([name, entry]) => [name, this.hydrateStorageTypeEntry(entry)])) : void 0;\n\t\tconst rawNamespaces = validated.storage.namespaces;\n\t\tif (rawNamespaces === void 0) throw new ContractValidationError(\"Contract storage.namespaces is required after structural validation\", \"structural\");\n\t\tconst hydratedNamespaces = this.hydrateSqlNamespaceMap(blindCast(rawNamespaces));\n\t\treturn {\n\t\t\t...validated,\n\t\t\tstorage: new SqlStorage({\n\t\t\t\tstorageHash: validated.storage.storageHash,\n\t\t\t\t...ifDefined(\"types\", hydratedTypes),\n\t\t\t\tnamespaces: blindCast(hydratedNamespaces)\n\t\t\t})\n\t\t};\n\t}\n\thydrateSqlNamespaceMap(namespaces) {\n\t\treturn Object.fromEntries(Object.entries(namespaces).map(([nsId, namespaceEntryRaw]) => {\n\t\t\tconst namespaceHydrated = this.hydrateSqlNamespaceEntry(nsId, namespaceEntryRaw);\n\t\t\tif (!isMaterializedSqlNamespace(namespaceHydrated)) throw sqlFamilyError(\"CONTRACT.PACK_CONTRIBUTION_INVALID\", `Target serializer bug: hydrateSqlNamespaceEntry for namespace \"${nsId}\" returned a non-NamespaceBase value. Override hydrateSqlNamespaceEntry to produce a target namespace concretion.`, {\n\t\t\t\twhy: \"The target contract serializer hydrated a namespace into a value that is not a materialized namespace concretion.\",\n\t\t\t\tfix: \"Fix the target package: its hydrateSqlNamespaceEntry override must return a target namespace concretion.\",\n\t\t\t\tmeta: { namespaceId: nsId }\n\t\t\t});\n\t\t\treturn [nsId, namespaceHydrated];\n\t\t}));\n\t}\n\thydrateSqlNamespaceEntry(nsId, raw) {\n\t\tconst id = typeof raw[\"id\"] === \"string\" ? raw[\"id\"] : nsId;\n\t\tconst parsed = NamespaceRawSchema({\n\t\t\t...raw,\n\t\t\tid\n\t\t});\n\t\tif (parsed instanceof type.errors) throw new ContractValidationError(`Namespace hydration failed: ${parsed.map((p) => p.message).join(\"; \")}`, \"structural\");\n\t\tconst entriesRaw = parsed.entries;\n\t\tconst rawEntriesMap = isPlainRecord$1(entriesRaw) ? entriesRaw : {};\n\t\tconst entriesInput = {};\n\t\tfor (const [key, innerMap] of Object.entries(rawEntriesMap)) entriesInput[key] = isPlainRecord$1(innerMap) ? innerMap : Object.freeze({});\n\t\tconst entriesOutput = hydrateNamespaceEntities(entriesInput, this.entryKinds, \"fail\", id);\n\t\tif (!Object.hasOwn(entriesOutput, \"table\")) entriesOutput[\"table\"] = {};\n\t\treturn blindCast({\n\t\t\tid,\n\t\t\tentries: entriesOutput\n\t\t});\n\t}\n\thydrateStorageTypeEntry(entry) {\n\t\tif (typeof entry !== \"object\" || entry === null) return entry;\n\t\tconst kind = isPlainRecord$1(entry) && \"kind\" in entry ? entry.kind : void 0;\n\t\tif (typeof kind !== \"string\") return entry;\n\t\tconst factory = this.entityHydrationRegistry.get(kind);\n\t\tif (factory === void 0) return entry;\n\t\treturn blindCast(factory(entry));\n\t}\n\tconstructTargetContract(hydrated) {\n\t\treturn blindCast(hydrated);\n\t}\n\t/**\n\t* Serializes a namespace's `entries` dict by walking every enumerable\n\t* kind — no kind is named here, mirroring the generic hydrate walk in\n\t* `hydrateSqlNamespaceEntry` above. `table` is the SQL family's one\n\t* universal base kind (every namespace carries it), so it is always\n\t* emitted, even when empty; every other kind — target- or\n\t* pack-contributed — is emitted only when it holds at least one entry.\n\t* A kind carried non-enumerable on `entries` is excluded here for free,\n\t* since `Object.entries` honors enumerability.\n\t*/\n\tserializeNamespaceEntries(entries) {\n\t\tconst out = { table: this.serializeEntries(entries[\"table\"] ?? {}) };\n\t\tfor (const [kind, record] of Object.entries(entries)) {\n\t\t\tif (kind === \"table\" || record == null || Object.keys(record).length === 0) continue;\n\t\t\tout[kind] = this.serializeEntries(record);\n\t\t}\n\t\treturn out;\n\t}\n\tserializeEntries(entries) {\n\t\tconst out = {};\n\t\tfor (const [name, entry] of Object.entries(entries)) out[name] = this.serializeJsonObject(entry);\n\t\treturn out;\n\t}\n\tserializeJsonObject(value) {\n\t\treturn blindCast(this.serializeJsonValue(value));\n\t}\n\tserializeJsonValue(value) {\n\t\treturn blindCast(JSON.parse(JSON.stringify(value)));\n\t}\n};\n//#endregion\n//#region src/core/ir/sql-contract-serializer.ts\n/**\n* Default SQL family `ContractSerializer` concretion. Inherits the\n* full SQL-shared deserialization pipeline (structural validation +\n* IR-class hydration) without pack-registered `storage.types`\n* hydration factories — targets that emit polymorphic JSON outside the\n* codec-typed envelope wire a target-specific subclass with a populated\n* registry (see Postgres). Family-level call sites instantiate this\n* default directly when no target serializer is supplied.\n*\n* Because this serializer has no target concretion, deserialization of\n* contracts that include namespace entries from JSON will throw unless\n* the caller provides pre-hydrated `NamespaceBase` instances. Production\n* paths always supply a target-specific serializer.\n*/\nvar SqlContractSerializer = class extends SqlContractSerializerBase {\n\tconstructor() {\n\t\tsuper(/* @__PURE__ */ new Map());\n\t}\n};\n//#endregion\nexport { SqlContractSerializerBase as n, SqlContractSerializer as t };\n\n//# sourceMappingURL=sql-contract-serializer-sMY3prTx.mjs.map"],"mappings":";;;;;;;;;;;;;AAaA,MAAM,qBAAqB,KAAK;CAC/B,IAAI;CACJ,SAAS;CACT,SAAS,KAAK,EAAE,KAAK,SAAS,CAAC;AAChC,CAAC;;;;;;AAMD,SAAS,gCAAgC,UAAU;CAClD,MAAM,SAAS,oCAAoC,SAAS,SAAS,EAAE,OAAO,eAAe;EAC5F,MAAM,EAAE,gBAAgB,YAAY,+BAA+B,UAAU,UAAU,MAAM,OAAO,GAAG,QAAQ;EAC/G,OAAO;GACN,eAAe;GACf,uBAAuB,QAAQ,KAAK,WAAW,OAAO,QAAQ;EAC/D;CACD,CAAC;CACD,OAAO;EACN,GAAG;EACH;CACD;AACD;;;;;;;;;;;;;;;;;;;;;;;;;AAyBA,IAAI,4BAA4B,MAAM;CACrC;CACA;CACA;CACA;CACA,YAAY,0CAA0C,IAAI,IAAI,GAAG,kBAAkB,CAAC,GAAG,YAAY,KAAK,GAAG;EAC1G,KAAK,0BAA0B;EAC/B,KAAK,YAAY;EACjB,KAAK,aAAa,sBAAsB,eAAe;EACvD,KAAK,iBAAiB,gBAAgB,SAAS,IAAI,wBAAwB,KAAK,UAAU,IAAI,KAAK;CACpG;CACA,oBAAoB,MAAM;EACzB,MAAM,YAAY,gCAAgC,KAAK,0BAA0B,IAAI,CAAC;EACtF,MAAM,WAAW,KAAK,kBAAkB,SAAS;EACjD,OAAO,UAAU,KAAK,wBAAwB,QAAQ,CAAC;CACxD;CACA,kBAAkB,UAAU;EAC3B,OAAO,UAAU,QAAQ;CAC1B;CACA,sBAAsB,iCAAiC;CACvD,cAAc,iCAAiC;CAC/C,4BAA4B;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I,QAAQ,KAAK,oBAAoB,KAAK;EAC/F,OAAO;CACR;CACA,oBAAoB,OAAO;EAC1B,OAAO,UAAU,KAAK,mBAAmB,KAAK,CAAC;CAChD;CACA,mBAAmB,OAAO;EACzB,OAAO,UAAU,KAAK,MAAM,KAAK,UAAU,KAAK,CAAC,CAAC;CACnD;AACD;;;;;;;;;;;;;;;AAiBA,IAAI,wBAAwB,cAAc,0BAA0B;CACnE,cAAc;EACb,sBAAsB,IAAI,IAAI,CAAC;CAChC;AACD"}
1
+ {"version":3,"file":"sql-contract-serializer-sMY3prTx-BDTNHOOy.mjs","names":[],"sources":["../../../../2-sql/9-family/dist/sql-contract-serializer-sMY3prTx.mjs"],"sourcesContent":["import { t as sqlFamilyError } from \"./errors-B5g0xWro.mjs\";\nimport { hydrateNamespaceEntities } from \"@internal/framework-components/ir\";\nimport { sqlContractCanonicalizationHooks } from \"@internal/sql-contract/canonicalization-hooks\";\nimport { blindCast } from \"@internal/utils/casts\";\nimport { ifDefined } from \"@internal/utils/defined\";\nimport { ContractValidationError } from \"@internal/contract/contract-validation-error\";\nimport { SqlStorage, isMaterializedSqlNamespace } from \"@internal/sql-contract/types\";\nimport { createSqlContractSchema, resolveSqlToOneRelationStorage, validateSqlContractFully } from \"@internal/sql-contract/validators\";\nimport { isPlainRecord as isPlainRecord$1 } from \"@internal/contract/is-plain-record\";\nimport { withDerivedToOneRelationNullability } from \"@internal/contract-authoring\";\nimport { composeSqlEntityKinds } from \"@internal/sql-contract/entity-kinds\";\nimport { type } from \"arktype\";\n//#region src/core/ir/sql-contract-serializer-base.ts\nconst NamespaceRawSchema = type({\n\tid: \"string\",\n\t\"kind?\": \"string\",\n\tentries: type({ \"+\": \"ignore\" })\n});\n/**\n* A `contract.json` written before to-one relations recorded `nullable` (rc.9 and earlier)\n* loads with the flag derived from storage: nullable when any local FK column is nullable or\n* cannot be resolved.\n*/\nfunction withSqlToOneRelationNullability(contract) {\n\tconst domain = withDerivedToOneRelationNullability(contract.domain, ({ model, relation }) => {\n\t\tconst { ownsForeignKey, columns } = resolveSqlToOneRelationStorage(contract, blindCast(model.storage), relation);\n\t\treturn {\n\t\t\townsReference: ownsForeignKey,\n\t\t\tlocalFieldNullability: columns.map((column) => column.nullable)\n\t\t};\n\t});\n\treturn {\n\t\t...contract,\n\t\tdomain\n\t};\n}\n/**\n* SQL family `ContractSerializer` abstract base. Carries the SQL-shared\n* deserialization pipeline:\n*\n* 1. `parseSqlContractStructure` validates the on-disk JSON envelope\n* against the SQL contract arktype schema (`validateSqlContractFully`)\n* and returns the validated flat-data shape.\n* 2. `hydrateSqlStorage` walks the validated `storage` subtree and\n* constructs the family-shared SQL Contract IR class hierarchy\n* (`SqlStorage` -> `StorageTable` -> `StorageColumn` / `PrimaryKey`\n* / …). The rest of the contract envelope is JSON-clean primitive\n* data and passes through unchanged.\n* 3. `constructTargetContract` is the target-specific extension hook;\n* defaults to identity. Targets that need to attach target-only\n* fields (e.g. target-specific derived storage fields) override it.\n*\n* Default `serializeContract` is identity over the contract — concrete\n* SQL targets ship JSON-clean class instances, so the contract value\n* can be stringified directly. The non-enumerable family-level `kind`\n* discriminator on `SqlNode` instances stays out of the persisted\n* envelope automatically. Targets that need to canonicalize on the way\n* out (key ordering, dropping computed-only fields) override\n* `serializeContract` directly.\n*/\nvar SqlContractSerializerBase = class {\n\tentityHydrationRegistry;\n\tdataTypes;\n\tcontractSchema;\n\tentryKinds;\n\tconstructor(entityHydrationRegistry = /* @__PURE__ */ new Map(), packEntityKinds = [], dataTypes = void 0) {\n\t\tthis.entityHydrationRegistry = entityHydrationRegistry;\n\t\tthis.dataTypes = dataTypes;\n\t\tthis.entryKinds = composeSqlEntityKinds(packEntityKinds);\n\t\tthis.contractSchema = packEntityKinds.length > 0 ? createSqlContractSchema(this.entryKinds) : void 0;\n\t}\n\tdeserializeContract(json) {\n\t\tconst validated = withSqlToOneRelationNullability(this.parseSqlContractStructure(json));\n\t\tconst hydrated = this.hydrateSqlStorage(validated);\n\t\treturn blindCast(this.constructTargetContract(hydrated));\n\t}\n\tserializeContract(contract) {\n\t\treturn blindCast(contract);\n\t}\n\tshouldPreserveEmpty = sqlContractCanonicalizationHooks.shouldPreserveEmpty;\n\tsortStorage = sqlContractCanonicalizationHooks.sortStorage;\n\thashCanonicalizationHooks = sqlContractCanonicalizationHooks;\n\tparseSqlContractStructure(json) {\n\t\treturn validateSqlContractFully(json, {\n\t\t\t...ifDefined(\"contractSchema\", this.contractSchema),\n\t\t\t...ifDefined(\"dataTypes\", this.dataTypes)\n\t\t});\n\t}\n\thydrateSqlStorage(validated) {\n\t\tconst types = validated.storage.types;\n\t\tconst hydratedTypes = types !== void 0 ? Object.fromEntries(Object.entries(types).map(([name, entry]) => [name, this.hydrateStorageTypeEntry(entry)])) : void 0;\n\t\tconst rawNamespaces = validated.storage.namespaces;\n\t\tif (rawNamespaces === void 0) throw new ContractValidationError(\"Contract storage.namespaces is required after structural validation\", \"structural\");\n\t\tconst hydratedNamespaces = this.hydrateSqlNamespaceMap(blindCast(rawNamespaces));\n\t\treturn {\n\t\t\t...validated,\n\t\t\tstorage: new SqlStorage({\n\t\t\t\tstorageHash: validated.storage.storageHash,\n\t\t\t\t...ifDefined(\"types\", hydratedTypes),\n\t\t\t\tnamespaces: blindCast(hydratedNamespaces)\n\t\t\t})\n\t\t};\n\t}\n\thydrateSqlNamespaceMap(namespaces) {\n\t\treturn Object.fromEntries(Object.entries(namespaces).map(([nsId, namespaceEntryRaw]) => {\n\t\t\tconst namespaceHydrated = this.hydrateSqlNamespaceEntry(nsId, namespaceEntryRaw);\n\t\t\tif (!isMaterializedSqlNamespace(namespaceHydrated)) throw sqlFamilyError(\"CONTRACT.PACK_CONTRIBUTION_INVALID\", `Target serializer bug: hydrateSqlNamespaceEntry for namespace \"${nsId}\" returned a non-NamespaceBase value. Override hydrateSqlNamespaceEntry to produce a target namespace concretion.`, {\n\t\t\t\twhy: \"The target contract serializer hydrated a namespace into a value that is not a materialized namespace concretion.\",\n\t\t\t\tfix: \"Fix the target package: its hydrateSqlNamespaceEntry override must return a target namespace concretion.\",\n\t\t\t\tmeta: { namespaceId: nsId }\n\t\t\t});\n\t\t\treturn [nsId, namespaceHydrated];\n\t\t}));\n\t}\n\thydrateSqlNamespaceEntry(nsId, raw) {\n\t\tconst id = typeof raw[\"id\"] === \"string\" ? raw[\"id\"] : nsId;\n\t\tconst parsed = NamespaceRawSchema({\n\t\t\t...raw,\n\t\t\tid\n\t\t});\n\t\tif (parsed instanceof type.errors) throw new ContractValidationError(`Namespace hydration failed: ${parsed.map((p) => p.message).join(\"; \")}`, \"structural\");\n\t\tconst entriesRaw = parsed.entries;\n\t\tconst rawEntriesMap = isPlainRecord$1(entriesRaw) ? entriesRaw : {};\n\t\tconst entriesInput = {};\n\t\tfor (const [key, innerMap] of Object.entries(rawEntriesMap)) entriesInput[key] = isPlainRecord$1(innerMap) ? innerMap : Object.freeze({});\n\t\tconst entriesOutput = hydrateNamespaceEntities(entriesInput, this.entryKinds, \"fail\", id);\n\t\tif (!Object.hasOwn(entriesOutput, \"table\")) entriesOutput[\"table\"] = {};\n\t\treturn blindCast({\n\t\t\tid,\n\t\t\tentries: entriesOutput\n\t\t});\n\t}\n\thydrateStorageTypeEntry(entry) {\n\t\tif (typeof entry !== \"object\" || entry === null) return entry;\n\t\tconst kind = isPlainRecord$1(entry) && \"kind\" in entry ? entry.kind : void 0;\n\t\tif (typeof kind !== \"string\") return entry;\n\t\tconst factory = this.entityHydrationRegistry.get(kind);\n\t\tif (factory === void 0) return entry;\n\t\treturn blindCast(factory(entry));\n\t}\n\tconstructTargetContract(hydrated) {\n\t\treturn blindCast(hydrated);\n\t}\n\t/**\n\t* Serializes a namespace's `entries` dict by walking every enumerable\n\t* kind — no kind is named here, mirroring the generic hydrate walk in\n\t* `hydrateSqlNamespaceEntry` above. `table` is the SQL family's one\n\t* universal base kind (every namespace carries it), so it is always\n\t* emitted, even when empty; every other kind — target- or\n\t* pack-contributed — is emitted only when it holds at least one entry.\n\t* A kind carried non-enumerable on `entries` is excluded here for free,\n\t* since `Object.entries` honors enumerability.\n\t*/\n\tserializeNamespaceEntries(entries) {\n\t\tconst out = { table: this.serializeEntries(entries[\"table\"] ?? {}) };\n\t\tfor (const [kind, record] of Object.entries(entries)) {\n\t\t\tif (kind === \"table\" || record == null || Object.keys(record).length === 0) continue;\n\t\t\tout[kind] = this.serializeEntries(record);\n\t\t}\n\t\treturn out;\n\t}\n\tserializeEntries(entries) {\n\t\tconst out = {};\n\t\tfor (const [name, entry] of Object.entries(entries)) out[name] = this.serializeJsonObject(entry);\n\t\treturn out;\n\t}\n\tserializeJsonObject(value) {\n\t\treturn blindCast(this.serializeJsonValue(value));\n\t}\n\tserializeJsonValue(value) {\n\t\treturn blindCast(JSON.parse(JSON.stringify(value)));\n\t}\n};\n//#endregion\n//#region src/core/ir/sql-contract-serializer.ts\n/**\n* Default SQL family `ContractSerializer` concretion. Inherits the\n* full SQL-shared deserialization pipeline (structural validation +\n* IR-class hydration) without pack-registered `storage.types`\n* hydration factories — targets that emit polymorphic JSON outside the\n* codec-typed envelope wire a target-specific subclass with a populated\n* registry (see Postgres). Family-level call sites instantiate this\n* default directly when no target serializer is supplied.\n*\n* Because this serializer has no target concretion, deserialization of\n* contracts that include namespace entries from JSON will throw unless\n* the caller provides pre-hydrated `NamespaceBase` instances. Production\n* paths always supply a target-specific serializer.\n*/\nvar SqlContractSerializer = class extends SqlContractSerializerBase {\n\tconstructor() {\n\t\tsuper(/* @__PURE__ */ new Map());\n\t}\n};\n//#endregion\nexport { SqlContractSerializerBase as n, SqlContractSerializer as t };\n\n//# sourceMappingURL=sql-contract-serializer-sMY3prTx.mjs.map"],"mappings":";;;;;;;;;;;;;AAaA,MAAM,qBAAqB,KAAK;CAC/B,IAAI;CACJ,SAAS;CACT,SAAS,KAAK,EAAE,KAAK,SAAS,CAAC;AAChC,CAAC;;;;;;AAMD,SAAS,gCAAgC,UAAU;CAClD,MAAM,SAAS,oCAAoC,SAAS,SAAS,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3
- import { dataType, dataTypeParams, objectSchemaKeys, schemaKeysAllowing } from "@prisma/orm-framework/components/codec";
3
+ import { assertDataTypeParams, dataType, dataTypeParams, objectSchemaKeys, schemaKeysAllowing } from "@prisma/orm-framework/components/codec";
4
4
  import { blindCast } from "@prisma/orm-framework/utils/casts";
5
5
  import { InternalError } from "@prisma/orm-framework/utils/internal-error";
6
6
  import { type } from "arktype";
7
- //#region ../../../2-sql/1-core/contract/dist/sql-data-type-Dabuwxet.mjs
7
+ //#region ../../../2-sql/1-core/contract/dist/sql-data-type-DwLa_dK9.mjs
8
8
  const PLACEHOLDER = /\{([A-Za-z][A-Za-z0-9]*)\}/g;
9
9
  const LITERAL_CHARACTERS = /^[a-z0-9_ (),.]*$/;
10
10
  const REGEXP_SPECIAL = /[.*+?^${}()|[\]\\]/g;
@@ -117,14 +117,9 @@ function presentKeys(params) {
117
117
  function formatKeys(keys) {
118
118
  return `[${[...keys].sort().join(", ")}]`;
119
119
  }
120
- /** The parameters, when `type` accepts them; otherwise `CONTRACT.TYPE_PARAMS_INVALID` naming each parameter at fault. */
121
- function validateSqlTypeParams(type$2, params) {
122
- if (type$2.params === void 0) return blindCast(params);
123
- const result = type$2.params(params);
124
- if (result instanceof type.errors) throw contractError("CONTRACT.TYPE_PARAMS_INVALID", `${type$2.id}: ${result.summary}`, { meta: {
125
- dataType: type$2.id,
126
- parameters: [...new Set(result.map((error) => error.path.map(String).join(".")))]
127
- } });
120
+ /** The parameters, when `type` accepts them; otherwise `CONTRACT.TYPE_PARAMS_INVALID` naming each parameter it refuses. */
121
+ function validateSqlTypeParams(type, params) {
122
+ assertDataTypeParams(type, params);
128
123
  return blindCast(params);
129
124
  }
130
125
  function pickText(type, mark, keys) {
@@ -334,14 +329,14 @@ function resolveWrittenSqlTypes(text, dataTypes) {
334
329
  return [];
335
330
  });
336
331
  }
337
- function resolvedWith(type$3, params) {
338
- if (type$3.params !== void 0 && type$3.params(params) instanceof type.errors) return void 0;
332
+ function resolvedWith(type$2, params) {
333
+ if (type$2.params !== void 0 && type$2.params(params) instanceof type.errors) return void 0;
339
334
  return {
340
- dataType: type$3.id,
341
- typeParams: type$3.sql.normalize(params)
335
+ dataType: type$2.id,
336
+ typeParams: type$2.sql.normalize(params)
342
337
  };
343
338
  }
344
339
  //#endregion
345
340
  export { resolveReportedSqlType as a, sqlDataType as c, sqlStorageTypeId as d, sqlStorageTypeOfCodec as f, validateSqlTypeParams as h, renderSqlTypeName as i, sqlDataTypeOfCodec as l, unquotedSqlBaseNameOfCodec as m, isSqlDataType as n, resolveWrittenSqlTypes as o, unquotedSqlBaseName as p, renderSqlCatalogText as r, sqlBaseName as s, findSqlDataTypeCollision as t, sqlStorageType as u };
346
341
 
347
- //# sourceMappingURL=sql-data-type-Dabuwxet-BljsNjBu.mjs.map
342
+ //# sourceMappingURL=sql-data-type-DwLa_dK9-2eTvrYhA.mjs.map