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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (227) hide show
  1. package/dist/{ast-Bb6loOw9.d.mts → ast-UfF480P2.d.mts} +3 -3
  2. package/dist/{ast-Bb6loOw9.d.mts.map → ast-UfF480P2.d.mts.map} +1 -1
  3. package/dist/{authoring-type-constructors-Blqoa2Ua-DyCmD6mp.mjs → authoring-type-constructors-Blqoa2Ua-DymjrX_a.mjs} +2 -2
  4. package/dist/{authoring-type-constructors-Blqoa2Ua-DyCmD6mp.mjs.map → authoring-type-constructors-Blqoa2Ua-DymjrX_a.mjs.map} +1 -1
  5. package/dist/builder.d.mts +2 -2
  6. package/dist/builder__runtime.d.mts +9 -9
  7. package/dist/builder__runtime.mjs +1 -1
  8. package/dist/builder__types.d.mts +2 -2
  9. package/dist/{canonicalization-hooks-DfIc_lOO.mjs → canonicalization-hooks-dmXkOR4a.mjs} +6 -2
  10. package/dist/{canonicalization-hooks-DfIc_lOO.mjs.map → canonicalization-hooks-dmXkOR4a.mjs.map} +1 -1
  11. package/dist/{codec-descriptor-registry-BJVJRftS.mjs → codec-descriptor-registry-BK_ZTP-3.mjs} +2 -2
  12. package/dist/{codec-descriptor-registry-BJVJRftS.mjs.map → codec-descriptor-registry-BK_ZTP-3.mjs.map} +1 -1
  13. package/dist/{config-types-N7PJc6VN.mjs → config-types-1lEI_abO.mjs} +6 -7
  14. package/dist/config-types-1lEI_abO.mjs.map +1 -0
  15. package/dist/{config-types-DKKhWdzf.d.mts → config-types-DuhCZxnc.d.mts} +11 -4
  16. package/dist/config-types-DuhCZxnc.d.mts.map +1 -0
  17. package/dist/{contract-builder-Cj-lKWgM.d.mts → contract-builder-B5ztYYVI.d.mts} +7 -6
  18. package/dist/contract-builder-B5ztYYVI.d.mts.map +1 -0
  19. package/dist/{contract-builder-YjMQcvZ1.mjs → contract-builder-DQ02XiKy.mjs} +4 -4
  20. package/dist/contract-builder-DQ02XiKy.mjs.map +1 -0
  21. package/dist/contract-psl.d.mts +2 -2
  22. package/dist/contract-psl.mjs +1 -1
  23. package/dist/contract-psl__provider.d.mts +2 -2
  24. package/dist/contract-psl__provider.mjs +4 -4
  25. package/dist/contract-psl__provider.mjs.map +1 -1
  26. package/dist/contract-ts.d.mts +4 -3
  27. package/dist/contract-ts.mjs +4 -4
  28. package/dist/contract-ts__config-types.d.mts +1 -1
  29. package/dist/contract-ts__config-types.mjs +1 -1
  30. package/dist/contract-ts__contract-builder.d.mts +3 -2
  31. package/dist/contract-ts__contract-builder.mjs +3 -3
  32. package/dist/{contract-view-BbWQp6r4.d.mts → contract-view-DB7yHLAp.d.mts} +2 -2
  33. package/dist/{contract-view-BbWQp6r4.d.mts.map → contract-view-DB7yHLAp.d.mts.map} +1 -1
  34. package/dist/contract.d.mts +15 -15
  35. package/dist/contract.mjs +10 -10
  36. package/dist/contract__canonicalization-hooks.mjs +1 -1
  37. package/dist/contract__contract-view.d.mts +1 -1
  38. package/dist/contract__entity-kinds.d.mts +1 -1
  39. package/dist/contract__entity-kinds.mjs +1 -1
  40. package/dist/contract__factories.d.mts +1 -1
  41. package/dist/contract__factories.mjs +1 -1
  42. package/dist/contract__foreign-key-materialization.d.mts +1 -1
  43. package/dist/contract__foreign-key-materialization.mjs +1 -1
  44. package/dist/contract__index-naming.d.mts +1 -1
  45. package/dist/contract__index-naming.mjs +1 -1
  46. package/dist/contract__index-type-validation.d.mts +1 -1
  47. package/dist/contract__resolve-storage-table.d.mts +1 -1
  48. package/dist/contract__types.d.mts +7 -7
  49. package/dist/contract__types.mjs +4 -4
  50. package/dist/contract__validators.d.mts +1 -1
  51. package/dist/contract__validators.mjs +2 -2
  52. package/dist/{control-C1EmRznB.mjs → control-Bj2zT_YF.mjs} +16 -75
  53. package/dist/control-Bj2zT_YF.mjs.map +1 -0
  54. package/dist/{control-BWngBFMj.d.mts → control-JKCfuZLF.d.mts} +15 -19
  55. package/dist/{control-BWngBFMj.d.mts.map → control-JKCfuZLF.d.mts.map} +1 -1
  56. package/dist/control-adapter-BjSrEp2V.d.mts +1 -0
  57. package/dist/{control-adapter-C99J7aEF-Cmay9zFj.d.mts → control-adapter-C99J7aEF-BvoknoRl.d.mts} +8 -8
  58. package/dist/{control-adapter-C99J7aEF-Cmay9zFj.d.mts.map → control-adapter-C99J7aEF-BvoknoRl.d.mts.map} +1 -1
  59. package/dist/{db-B5PMfDDd-BsvBY8Wh.d.mts → db-B5PMfDDd-ZnA9Kuky.d.mts} +9 -9
  60. package/dist/{db-B5PMfDDd-BsvBY8Wh.d.mts.map → db-B5PMfDDd-ZnA9Kuky.d.mts.map} +1 -1
  61. package/dist/{ddl-types-h_3_pXmq-QBLq6WbP.d.mts → ddl-types-h_3_pXmq-DzkUGplM.d.mts} +3 -3
  62. package/dist/{ddl-types-h_3_pXmq-QBLq6WbP.d.mts.map → ddl-types-h_3_pXmq-DzkUGplM.d.mts.map} +1 -1
  63. package/dist/{build-contract-DBCz_YSs-DO0wMHai.mjs → derived-checks-BDG-r9XD-CrpFUaO7.mjs} +199 -17
  64. package/dist/derived-checks-BDG-r9XD-CrpFUaO7.mjs.map +1 -0
  65. package/dist/derived-checks-DPdD01O0-CXFJD5al.d.mts +21 -0
  66. package/dist/derived-checks-DPdD01O0-CXFJD5al.d.mts.map +1 -0
  67. package/dist/diff-B16bL_IR.mjs.map +1 -1
  68. package/dist/{diff-DnLtQXpg.d.mts → diff-DDfez6HZ.d.mts} +11 -11
  69. package/dist/{diff-DnLtQXpg.d.mts.map → diff-DDfez6HZ.d.mts.map} +1 -1
  70. package/dist/{entity-kinds-DKxwKolf-CcsY-iYV.mjs → entity-kinds-3IFQq7Ho-DB6IN-V6.mjs} +16 -15
  71. package/dist/entity-kinds-3IFQq7Ho-DB6IN-V6.mjs.map +1 -0
  72. package/dist/{entity-kinds-Dh6VH4uK.d.mts → entity-kinds-FB5fUkUH.d.mts} +9 -8
  73. package/dist/entity-kinds-FB5fUkUH.d.mts.map +1 -0
  74. package/dist/{expression-KPBpeH4T.d.mts → expression-CBHseNtv.d.mts} +5 -5
  75. package/dist/{expression-KPBpeH4T.d.mts.map → expression-CBHseNtv.d.mts.map} +1 -1
  76. package/dist/{factories-MfcqTt5R.d.mts → factories-BPmhxoFd.d.mts} +4 -4
  77. package/dist/{factories-MfcqTt5R.d.mts.map → factories-BPmhxoFd.d.mts.map} +1 -1
  78. package/dist/{factories-CDG9zBxC.mjs → factories-BtnISekg.mjs} +3 -3
  79. package/dist/{factories-CDG9zBxC.mjs.map → factories-BtnISekg.mjs.map} +1 -1
  80. package/dist/family.d.mts +12 -12
  81. package/dist/family.mjs +5 -5
  82. package/dist/family__control-adapter.d.mts +2 -2
  83. package/dist/family__control.d.mts +4 -4
  84. package/dist/family__control.mjs +3 -3
  85. package/dist/family__diff.d.mts +2 -2
  86. package/dist/family__diff.mjs +1 -1
  87. package/dist/family__ir.d.mts +1 -1
  88. package/dist/family__ir.mjs +1 -1
  89. package/dist/family__migration.d.mts +1 -1
  90. package/dist/family__pack.mjs +1 -1
  91. package/dist/family__psl-infer.d.mts +1 -1
  92. package/dist/family__psl-infer.mjs +1 -1
  93. package/dist/family__runtime.d.mts +2 -2
  94. package/dist/{foreign-key-materialization-Ca-wRbmj.d.mts → foreign-key-materialization-CetaZvuu.d.mts} +2 -2
  95. package/dist/{foreign-key-materialization-Ca-wRbmj.d.mts.map → foreign-key-materialization-CetaZvuu.d.mts.map} +1 -1
  96. package/dist/{foreign-key-materialization-HI7BIQrG.mjs → foreign-key-materialization-fH6cObko.mjs} +2 -2
  97. package/dist/{foreign-key-materialization-HI7BIQrG.mjs.map → foreign-key-materialization-fH6cObko.mjs.map} +1 -1
  98. package/dist/{index-BOhWLVvH.d.mts → index-COS9qF9d.d.mts} +16 -16
  99. package/dist/{index-BOhWLVvH.d.mts.map → index-COS9qF9d.d.mts.map} +1 -1
  100. package/dist/{index-BZF7Wehu.d.mts → index-avHHFCFT.d.mts} +3 -3
  101. package/dist/{index-BZF7Wehu.d.mts.map → index-avHHFCFT.d.mts.map} +1 -1
  102. package/dist/{index-naming-BZWoh45T.d.mts → index-naming-BfRyBZR4.d.mts} +2 -2
  103. package/dist/{index-naming-BZWoh45T.d.mts.map → index-naming-BfRyBZR4.d.mts.map} +1 -1
  104. package/dist/{index-naming-BoGBcMmI-DiJAr66H.mjs → index-naming-BoGBcMmI-DE0Eu71F.mjs} +2 -2
  105. package/dist/{index-naming-BoGBcMmI-DiJAr66H.mjs.map → index-naming-BoGBcMmI-DE0Eu71F.mjs.map} +1 -1
  106. package/dist/{index-type-validation-D_vuj-76.d.mts → index-type-validation-0NdkDB_n.d.mts} +3 -3
  107. package/dist/{index-type-validation-D_vuj-76.d.mts.map → index-type-validation-0NdkDB_n.d.mts.map} +1 -1
  108. package/dist/{interpreter-5WgpL-ax-_nqHLUTr.mjs → interpreter-5WgpL-ax-BIbrd_Xv.mjs} +3 -3
  109. package/dist/{interpreter-5WgpL-ax-_nqHLUTr.mjs.map → interpreter-5WgpL-ax-BIbrd_Xv.mjs.map} +1 -1
  110. package/dist/{ir-Cvj3eU-K.d.mts → ir-VWQX6aGP.d.mts} +3 -3
  111. package/dist/{ir-Cvj3eU-K.d.mts.map → ir-VWQX6aGP.d.mts.map} +1 -1
  112. package/dist/lane-query-builder.d.mts +4 -4
  113. package/dist/middleware-B8QoWWIx.d.mts +1 -0
  114. package/dist/{middleware-eb7YwdD4-D0M6ACQ-.d.mts → middleware-eb7YwdD4-CiyaANOv.d.mts} +2 -2
  115. package/dist/{middleware-eb7YwdD4-D0M6ACQ-.d.mts.map → middleware-eb7YwdD4-CiyaANOv.d.mts.map} +1 -1
  116. package/dist/{migration-BvCT6g2N.d.mts → migration-DvCs5-4I.d.mts} +4 -4
  117. package/dist/{migration-BvCT6g2N.d.mts.map → migration-DvCs5-4I.d.mts.map} +1 -1
  118. package/dist/{naming-BwqqVcZy-BgTObIQw.mjs → naming-CEGRBbyW-BOa9Eun0.mjs} +54 -9
  119. package/dist/naming-CEGRBbyW-BOa9Eun0.mjs.map +1 -0
  120. package/dist/{naming-jLgdauLi-C84G_UHi.d.mts → naming-DvlNocom-ClcApdiR.d.mts} +33 -7
  121. package/dist/naming-DvlNocom-ClcApdiR.d.mts.map +1 -0
  122. package/dist/operations.d.mts +1 -1
  123. package/dist/orm-client.d.mts +11 -11
  124. package/dist/orm-client.mjs +2 -2
  125. package/dist/{plan-Bmp5R9sq-DKMRkx6Z.d.mts → plan-Bmp5R9sq-mVFXvLM7.d.mts} +4 -4
  126. package/dist/{plan-Bmp5R9sq-DKMRkx6Z.d.mts.map → plan-Bmp5R9sq-mVFXvLM7.d.mts.map} +1 -1
  127. package/dist/plan-Cl6aCuij.d.mts +2 -0
  128. package/dist/{psl-infer-6je61Z6J.d.mts → psl-infer-Dp_hwubv.d.mts} +3 -3
  129. package/dist/{psl-infer-6je61Z6J.d.mts.map → psl-infer-Dp_hwubv.d.mts.map} +1 -1
  130. package/dist/{psl-infer-DGftl-HW.mjs → psl-infer-f5BgyRKm.mjs} +2 -2
  131. package/dist/{psl-infer-DGftl-HW.mjs.map → psl-infer-f5BgyRKm.mjs.map} +1 -1
  132. package/dist/query-lane-context-BhDJZFMh.d.mts +1 -0
  133. package/dist/{query-lane-context-DjyAyYht-HDNYE_oF.d.mts → query-lane-context-DjyAyYht-DdovdGjc.d.mts} +5 -5
  134. package/dist/{query-lane-context-DjyAyYht-HDNYE_oF.d.mts.map → query-lane-context-DjyAyYht-DdovdGjc.d.mts.map} +1 -1
  135. package/dist/relational-core.d.mts +11 -11
  136. package/dist/relational-core__aggregate-descriptor-registry.d.mts +1 -1
  137. package/dist/relational-core__ast.d.mts +3 -3
  138. package/dist/relational-core__codec-descriptor-registry.d.mts +4 -4
  139. package/dist/relational-core__codec-descriptor-registry.mjs +1 -1
  140. package/dist/relational-core__contract-free.d.mts +3 -3
  141. package/dist/relational-core__expression.d.mts +1 -1
  142. package/dist/relational-core__middleware.d.mts +2 -2
  143. package/dist/relational-core__plan.d.mts +3 -3
  144. package/dist/relational-core__query-lane-context.d.mts +2 -2
  145. package/dist/relational-core__types.d.mts +2 -2
  146. package/dist/{resolve-storage-table-DUwyRJmP.d.mts → resolve-storage-table-BJYVl94P.d.mts} +3 -3
  147. package/dist/{resolve-storage-table-DUwyRJmP.d.mts.map → resolve-storage-table-BJYVl94P.d.mts.map} +1 -1
  148. package/dist/{runtime-AvfMMERk.d.mts → runtime-CiGC1spO.d.mts} +3 -3
  149. package/dist/{runtime-AvfMMERk.d.mts.map → runtime-CiGC1spO.d.mts.map} +1 -1
  150. package/dist/runtime.d.mts +3 -3
  151. package/dist/runtime.mjs +2 -2
  152. package/dist/{schema-differ-DpG_gnur-zSwkxqxK.d.mts → schema-differ-DpG_gnur-BgbN2De2.d.mts} +5 -5
  153. package/dist/{schema-differ-DpG_gnur-zSwkxqxK.d.mts.map → schema-differ-DpG_gnur-BgbN2De2.d.mts.map} +1 -1
  154. package/dist/schema-ir.d.mts +1 -1
  155. package/dist/schema-ir.mjs +1 -1
  156. package/dist/schema-ir__naming.d.mts +2 -2
  157. package/dist/schema-ir__naming.mjs +2 -2
  158. package/dist/schema-ir__types.d.mts +2 -2
  159. package/dist/schema-ir__types.mjs +1 -1
  160. package/dist/{schema-verify-vtFZbmGq-BNfTr6fU.mjs → schema-verify-C_PEdlAr-JK3UgFWU.mjs} +7 -9
  161. package/dist/schema-verify-C_PEdlAr-JK3UgFWU.mjs.map +1 -0
  162. package/dist/{serialized-index-Dp5_EjXD-DMsw8jf3.mjs → serialized-index-B6udRZV1-Ciet0tVA.mjs} +15 -5
  163. package/dist/serialized-index-B6udRZV1-Ciet0tVA.mjs.map +1 -0
  164. package/dist/serialized-index-CvprUx-6-CX0DYGLe.d.mts +44 -0
  165. package/dist/serialized-index-CvprUx-6-CX0DYGLe.d.mts.map +1 -0
  166. package/dist/{sql-contract-serializer-2oBWuxTe-B9hzBBv1.mjs → sql-contract-serializer-2oBWuxTe-Bp9QfUjI.mjs} +6 -6
  167. package/dist/{sql-contract-serializer-2oBWuxTe-B9hzBBv1.mjs.map → sql-contract-serializer-2oBWuxTe-Bp9QfUjI.mjs.map} +1 -1
  168. package/dist/{sql-execution-plan-Da_d82pz-IHBEmGSa.d.mts → sql-execution-plan-Da_d82pz-g3khvnbo.d.mts} +2 -2
  169. package/dist/{sql-execution-plan-Da_d82pz-IHBEmGSa.d.mts.map → sql-execution-plan-Da_d82pz-g3khvnbo.d.mts.map} +1 -1
  170. package/dist/{sql-index-DsI8HAeK-BJsn-jvD.d.mts → sql-index-DsI8HAeK-SazZYeA2.d.mts} +2 -2
  171. package/dist/{sql-index-DsI8HAeK-BJsn-jvD.d.mts.map → sql-index-DsI8HAeK-SazZYeA2.d.mts.map} +1 -1
  172. package/dist/{sql-storage-B0QwiTg6-B8DVctJm.d.mts → sql-storage-aEsH6Fnv-_bWH3uY3.d.mts} +3 -3
  173. package/dist/{sql-storage-B0QwiTg6-B8DVctJm.d.mts.map → sql-storage-aEsH6Fnv-_bWH3uY3.d.mts.map} +1 -1
  174. package/dist/{storage-table-BBaAmanc-BwR37LMA.d.mts → storage-table-BTVeIKBx-Ba6wCjG5.d.mts} +30 -22
  175. package/dist/storage-table-BTVeIKBx-Ba6wCjG5.d.mts.map +1 -0
  176. package/dist/{storage-table-_LWDmPfv-DFhU2dML.mjs → storage-table-BcDudZC5-DZNZhjf2.mjs} +39 -30
  177. package/dist/storage-table-BcDudZC5-DZNZhjf2.mjs.map +1 -0
  178. package/dist/types--gTlnnvl.d.mts +1 -0
  179. package/dist/{types-wy2-Y8wQ.d.mts → types-BL_h3id0.d.mts} +6 -6
  180. package/dist/{types-wy2-Y8wQ.d.mts.map → types-BL_h3id0.d.mts.map} +1 -1
  181. package/dist/{types-D_plAPEe-DqK5It_K.d.mts → types-BpPwiK2b-DCMVWQ_F.d.mts} +6 -6
  182. package/dist/{types-D_plAPEe-DqK5It_K.d.mts.map → types-BpPwiK2b-DCMVWQ_F.d.mts.map} +1 -1
  183. package/dist/{types-BwePDa3m-BVrPIi8V.d.mts → types-BwePDa3m-CrVQ_8YI.d.mts} +2 -2
  184. package/dist/{types-BwePDa3m-BVrPIi8V.d.mts.map → types-BwePDa3m-CrVQ_8YI.d.mts.map} +1 -1
  185. package/dist/types-C-KBovJY.d.mts +1 -0
  186. package/dist/{types-CvbBw1Jo-3KQdErJY.d.mts → types-C1F8xk0m-7rMwgIR6.d.mts} +30 -27
  187. package/dist/types-C1F8xk0m-7rMwgIR6.d.mts.map +1 -0
  188. package/dist/{types-CMMQS6aG.mjs → types-CuvwcWTE.mjs} +2 -2
  189. package/dist/types-CuvwcWTE.mjs.map +1 -0
  190. package/dist/{types-IqZMLrFC-D8PN7ygS.d.mts → types-IqZMLrFC-CcORLTOK.d.mts} +9 -9
  191. package/dist/{types-IqZMLrFC-D8PN7ygS.d.mts.map → types-IqZMLrFC-CcORLTOK.d.mts.map} +1 -1
  192. package/dist/{types-DmhUVq4u-BpqqjPJx.mjs → types-UhDfY1iX-C5wOQ0D5.mjs} +21 -29
  193. package/dist/types-UhDfY1iX-C5wOQ0D5.mjs.map +1 -0
  194. package/dist/{types-dD8JJfeD-BOvMw2Iu.d.mts → types-dD8JJfeD-CS9uMlzW.d.mts} +10 -10
  195. package/dist/{types-dD8JJfeD-BOvMw2Iu.d.mts.map → types-dD8JJfeD-CS9uMlzW.d.mts.map} +1 -1
  196. package/dist/{validators-Ds_fvIs_.d.mts → validators-Bl1TVj5n.d.mts} +7 -19
  197. package/dist/validators-Bl1TVj5n.d.mts.map +1 -0
  198. package/dist/{validators-C4PItWnf.mjs → validators-w7IJlTcR.mjs} +0 -0
  199. package/dist/validators-w7IJlTcR.mjs.map +1 -0
  200. package/package.json +18 -18
  201. package/dist/build-contract-DBCz_YSs-DO0wMHai.mjs.map +0 -1
  202. package/dist/config-types-DKKhWdzf.d.mts.map +0 -1
  203. package/dist/config-types-N7PJc6VN.mjs.map +0 -1
  204. package/dist/contract-builder-Cj-lKWgM.d.mts.map +0 -1
  205. package/dist/contract-builder-YjMQcvZ1.mjs.map +0 -1
  206. package/dist/control-C1EmRznB.mjs.map +0 -1
  207. package/dist/control-adapter-DrCAQQpa.d.mts +0 -1
  208. package/dist/entity-kinds-DKxwKolf-CcsY-iYV.mjs.map +0 -1
  209. package/dist/entity-kinds-Dh6VH4uK.d.mts.map +0 -1
  210. package/dist/middleware-ChwIEKBC.d.mts +0 -1
  211. package/dist/naming-BwqqVcZy-BgTObIQw.mjs.map +0 -1
  212. package/dist/naming-jLgdauLi-C84G_UHi.d.mts.map +0 -1
  213. package/dist/plan-mKgmSe0R.d.mts +0 -2
  214. package/dist/query-lane-context-Dcj4eXUl.d.mts +0 -1
  215. package/dist/schema-verify-vtFZbmGq-BNfTr6fU.mjs.map +0 -1
  216. package/dist/serialized-index-B96AwqtU-DcqcB4q_.d.mts +0 -26
  217. package/dist/serialized-index-B96AwqtU-DcqcB4q_.d.mts.map +0 -1
  218. package/dist/serialized-index-Dp5_EjXD-DMsw8jf3.mjs.map +0 -1
  219. package/dist/storage-table-BBaAmanc-BwR37LMA.d.mts.map +0 -1
  220. package/dist/storage-table-_LWDmPfv-DFhU2dML.mjs.map +0 -1
  221. package/dist/types-CMMQS6aG.mjs.map +0 -1
  222. package/dist/types-Cty2fvYD.d.mts +0 -1
  223. package/dist/types-CvbBw1Jo-3KQdErJY.d.mts.map +0 -1
  224. package/dist/types-DmhUVq4u-BpqqjPJx.mjs.map +0 -1
  225. package/dist/types-TvBZ2Ne9.d.mts +0 -1
  226. package/dist/validators-C4PItWnf.mjs.map +0 -1
  227. package/dist/validators-Ds_fvIs_.d.mts.map +0 -1
@@ -1,8 +1,9 @@
1
1
  import { t as contractError } from "./contract-errors-BCN6RVI5-5IHBF_lg.mjs";
2
- import { c as StorageTable, i as Index } from "./storage-table-_LWDmPfv-DFhU2dML.mjs";
3
- import { n as indexInputFromSerialized, t as StorageValueSet } from "./serialized-index-Dp5_EjXD-DMsw8jf3.mjs";
2
+ import { c as StorageTable, i as Index, t as CheckConstraint } from "./storage-table-BcDudZC5-DZNZhjf2.mjs";
3
+ import { n as checkConstraintInputFromSerialized, r as indexInputFromSerialized, t as StorageValueSet } from "./serialized-index-B6udRZV1-Ciet0tVA.mjs";
4
+ import { ifDefined } from "@prisma/orm-framework/utils/defined";
4
5
  import { type } from "arktype";
5
- //#region ../../../2-sql/1-core/contract/dist/entity-kinds-DKxwKolf.mjs
6
+ //#region ../../../2-sql/1-core/contract/dist/entity-kinds-3IFQq7Ho.mjs
6
7
  const literalKindSchema = type("'literal'");
7
8
  const functionKindSchema = type("'function'");
8
9
  const ControlPolicySchema = type("'managed' | 'tolerated' | 'external' | 'observed'");
@@ -15,13 +16,6 @@ const ColumnDefaultFunctionSchema = type.declare().type({
15
16
  expression: "string"
16
17
  });
17
18
  const ColumnDefaultSchema = ColumnDefaultLiteralSchema.or(ColumnDefaultFunctionSchema);
18
- const StorageValueSetRefSchema = type({
19
- plane: "'storage'",
20
- namespaceId: "string",
21
- entityKind: "'valueSet'",
22
- entityName: "string",
23
- "spaceId?": "string"
24
- });
25
19
  const StorageColumnSchema = type({
26
20
  "+": "reject",
27
21
  nativeType: "string",
@@ -32,7 +26,13 @@ const StorageColumnSchema = type({
32
26
  "typeRef?": "string",
33
27
  "default?": ColumnDefaultSchema,
34
28
  "control?": ControlPolicySchema,
35
- "valueSet?": StorageValueSetRefSchema
29
+ "valueSet?": type({
30
+ plane: "'storage'",
31
+ namespaceId: "string",
32
+ entityKind: "'valueSet'",
33
+ entityName: "string",
34
+ "spaceId?": "string"
35
+ })
36
36
  }).narrow((col, ctx) => {
37
37
  if (col.typeParams !== void 0 && col.typeRef !== void 0) return ctx.mustBe("a column with either typeParams or typeRef, not both");
38
38
  return true;
@@ -88,8 +88,8 @@ const ForeignKeySchema = type.declare().type({
88
88
  const CheckConstraintSchema = type({
89
89
  "+": "reject",
90
90
  name: "string",
91
- column: "string",
92
- valueSet: StorageValueSetRefSchema
91
+ "prefix?": "string",
92
+ expression: "string"
93
93
  });
94
94
  const StorageTableSchema = type({
95
95
  "+": "reject",
@@ -106,7 +106,8 @@ const tableEntityKind = {
106
106
  schema: StorageTableSchema,
107
107
  construct: (input) => new StorageTable({
108
108
  ...input,
109
- indexes: input.indexes.map((i) => i instanceof Index ? i : indexInputFromSerialized(i))
109
+ indexes: input.indexes.map((i) => i instanceof Index ? i : indexInputFromSerialized(i)),
110
+ ...ifDefined("checks", input.checks?.map((c) => c instanceof CheckConstraint ? c : checkConstraintInputFromSerialized(c)))
110
111
  })
111
112
  };
112
113
  const valueSetEntityKind = {
@@ -133,4 +134,4 @@ function composeSqlEntityKinds(packKinds = []) {
133
134
  //#endregion
134
135
  export { ForeignKeyReferenceSchema as a, IndexSchema as c, StorageValueSetSchema as d, composeSqlEntityKinds as f, ColumnDefaultSchema as i, ReferentialActionSchema as l, valueSetEntityKind as m, ColumnDefaultFunctionSchema as n, ForeignKeySchema as o, tableEntityKind as p, ColumnDefaultLiteralSchema as r, ForeignKeySourceSchema as s, CheckConstraintSchema as t, StorageTableSchema as u };
135
136
 
136
- //# sourceMappingURL=entity-kinds-DKxwKolf-CcsY-iYV.mjs.map
137
+ //# sourceMappingURL=entity-kinds-3IFQq7Ho-DB6IN-V6.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"entity-kinds-3IFQq7Ho-DB6IN-V6.mjs","names":[],"sources":["../../../../2-sql/1-core/contract/dist/entity-kinds-3IFQq7Ho.mjs"],"sourcesContent":["import { t as contractError } from \"./contract-errors-BCN6RVI5.mjs\";\nimport { c as CheckConstraint, s as Index, t as StorageTable } from \"./storage-table-BcDudZC5.mjs\";\nimport { n as checkConstraintInputFromSerialized, r as StorageValueSet, t as indexInputFromSerialized } from \"./serialized-index-B6udRZV1.mjs\";\nimport { ifDefined } from \"@internal/utils/defined\";\nimport { type } from \"arktype\";\n//#region src/ir/storage-entry-schemas.ts\nconst literalKindSchema = type(\"'literal'\");\nconst functionKindSchema = type(\"'function'\");\nconst ControlPolicySchema = type(\"'managed' | 'tolerated' | 'external' | 'observed'\");\nconst ColumnDefaultLiteralSchema = type.declare().type({\n\tkind: literalKindSchema,\n\tvalue: \"string | number | boolean | null | unknown[] | Record<string, unknown>\"\n});\nconst ColumnDefaultFunctionSchema = type.declare().type({\n\tkind: functionKindSchema,\n\texpression: \"string\"\n});\nconst ColumnDefaultSchema = ColumnDefaultLiteralSchema.or(ColumnDefaultFunctionSchema);\nconst StorageColumnSchema = type({\n\t\"+\": \"reject\",\n\tnativeType: \"string\",\n\tcodecId: \"string\",\n\tnullable: \"boolean\",\n\t\"many?\": \"boolean\",\n\t\"typeParams?\": \"Record<string, unknown>\",\n\t\"typeRef?\": \"string\",\n\t\"default?\": ColumnDefaultSchema,\n\t\"control?\": ControlPolicySchema,\n\t\"valueSet?\": type({\n\t\tplane: \"'storage'\",\n\t\tnamespaceId: \"string\",\n\t\tentityKind: \"'valueSet'\",\n\t\tentityName: \"string\",\n\t\t\"spaceId?\": \"string\"\n\t})\n}).narrow((col, ctx) => {\n\tif (col.typeParams !== void 0 && col.typeRef !== void 0) return ctx.mustBe(\"a column with either typeParams or typeRef, not both\");\n\treturn true;\n});\n/**\n* Storage value-set entry under `storage.namespaces[id].entries.valueSet[name]`.\n* Carries a `kind: 'valueSet'` discriminator (enumerable, survives JSON) and an\n* ordered `values` array of codec-encoded permitted values.\n*/\nconst StorageValueSetSchema = type({\n\tkind: \"'valueSet'\",\n\tvalues: type(\"string | number | boolean | null | unknown[] | Record<string, unknown>\").array().readonly()\n});\nconst PrimaryKeySchema = type.declare().type({\n\tcolumns: type.string.array().readonly(),\n\t\"name?\": \"string\"\n});\nconst UniqueConstraintSchema = type.declare().type({\n\tcolumns: type.string.array().readonly(),\n\t\"name?\": \"string\"\n});\nconst IndexSchema = type({\n\tname: \"string\",\n\t\"prefix?\": \"string\",\n\t\"columns?\": type.string.array().readonly(),\n\t\"expression?\": \"string\",\n\t\"where?\": \"string\",\n\tunique: \"boolean\",\n\t\"type?\": \"string\",\n\t\"options?\": \"Record<string, unknown>\"\n});\nconst ForeignKeyReferenceSchema = type({\n\t\"+\": \"reject\",\n\tnamespaceId: \"string\",\n\ttableName: \"string\",\n\tcolumns: type.string.array().readonly(),\n\t\"spaceId?\": \"string\"\n});\nconst ForeignKeySourceSchema = type({\n\t\"+\": \"reject\",\n\tnamespaceId: \"string\",\n\ttableName: \"string\",\n\tcolumns: type.string.array().readonly()\n});\nconst ReferentialActionSchema = type.declare().type(\"'noAction' | 'restrict' | 'cascade' | 'setNull' | 'setDefault'\");\nconst ForeignKeySchema = type.declare().type({\n\tsource: ForeignKeySourceSchema,\n\ttarget: ForeignKeyReferenceSchema,\n\t\"name?\": \"string\",\n\t\"onDelete?\": ReferentialActionSchema,\n\t\"onUpdate?\": ReferentialActionSchema\n});\nconst CheckConstraintSchema = type({\n\t\"+\": \"reject\",\n\tname: \"string\",\n\t\"prefix?\": \"string\",\n\texpression: \"string\"\n});\nconst StorageTableSchema = type({\n\t\"+\": \"reject\",\n\tcolumns: type({ \"[string]\": StorageColumnSchema }),\n\t\"primaryKey?\": PrimaryKeySchema,\n\tuniques: UniqueConstraintSchema.array().readonly(),\n\tindexes: IndexSchema.array().readonly(),\n\tforeignKeys: ForeignKeySchema.array().readonly(),\n\t\"control?\": ControlPolicySchema,\n\t\"checks?\": CheckConstraintSchema.array().readonly()\n});\n//#endregion\n//#region src/entity-kinds.ts\nconst tableEntityKind = {\n\tkind: \"table\",\n\tschema: StorageTableSchema,\n\tconstruct: (input) => new StorageTable({\n\t\t...input,\n\t\tindexes: input.indexes.map((i) => i instanceof Index ? i : indexInputFromSerialized(i)),\n\t\t...ifDefined(\"checks\", input.checks?.map((c) => c instanceof CheckConstraint ? c : checkConstraintInputFromSerialized(c)))\n\t})\n};\nconst valueSetEntityKind = {\n\tkind: \"valueSet\",\n\tschema: StorageValueSetSchema,\n\tconstruct: (input) => new StorageValueSet(input)\n};\n/**\n* Assembles the `kind → descriptor` registry for SQL namespaces: the built-in\n* `table` and `valueSet` kinds plus any target `packKinds`. This builds the\n* lookup table — it does not touch contract data. `hydrateNamespaceEntities`\n* later consumes this registry to turn a namespace's raw entries into IR\n* instances, and `createSqlContractSchema` derives validation from the same\n* registry. Throws on a duplicate kind.\n*/\nfunction composeSqlEntityKinds(packKinds = []) {\n\tconst kinds = /* @__PURE__ */ new Map([[\"table\", tableEntityKind], [\"valueSet\", valueSetEntityKind]]);\n\tfor (const descriptor of packKinds) {\n\t\tif (kinds.has(descriptor.kind)) throw contractError(\"CONTRACT.PACK_CONTRIBUTION_INVALID\", `composeSqlEntityKinds: duplicate entity kind \"${descriptor.kind}\" — each kind may be registered only once`, { meta: { entityKind: descriptor.kind } });\n\t\tkinds.set(descriptor.kind, descriptor);\n\t}\n\treturn kinds;\n}\n//#endregion\nexport { ColumnDefaultFunctionSchema as a, ForeignKeyReferenceSchema as c, IndexSchema as d, ReferentialActionSchema as f, CheckConstraintSchema as i, ForeignKeySchema as l, StorageValueSetSchema as m, tableEntityKind as n, ColumnDefaultLiteralSchema as o, StorageTableSchema as p, valueSetEntityKind as r, ColumnDefaultSchema as s, composeSqlEntityKinds as t, ForeignKeySourceSchema as u };\n\n//# sourceMappingURL=entity-kinds-3IFQq7Ho.mjs.map"],"mappings":";;;;;;AAMA,MAAM,oBAAoB,KAAK,WAAW;AAC1C,MAAM,qBAAqB,KAAK,YAAY;AAC5C,MAAM,sBAAsB,KAAK,mDAAmD;AACpF,MAAM,6BAA6B,KAAK,QAAQ,CAAC,CAAC,KAAK;CACtD,MAAM;CACN,OAAO;AACR,CAAC;AACD,MAAM,8BAA8B,KAAK,QAAQ,CAAC,CAAC,KAAK;CACvD,MAAM;CACN,YAAY;AACb,CAAC;AACD,MAAM,sBAAsB,2BAA2B,GAAG,2BAA2B;AACrF,MAAM,sBAAsB,KAAK;CAChC,KAAK;CACL,YAAY;CACZ,SAAS;CACT,UAAU;CACV,SAAS;CACT,eAAe;CACf,YAAY;CACZ,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;CAClC,KAAK;CACL,MAAM;CACN,WAAW;CACX,YAAY;AACb,CAAC;AACD,MAAM,qBAAqB,KAAK;CAC/B,KAAK;CACL,SAAS,KAAK,EAAE,YAAY,oBAAoB,CAAC;CACjD,eAAe;CACf,SAAS,uBAAuB,MAAM,CAAC,CAAC,SAAS;CACjD,SAAS,YAAY,MAAM,CAAC,CAAC,SAAS;CACtC,aAAa,iBAAiB,MAAM,CAAC,CAAC,SAAS;CAC/C,YAAY;CACZ,WAAW,sBAAsB,MAAM,CAAC,CAAC,SAAS;AACnD,CAAC;AAGD,MAAM,kBAAkB;CACvB,MAAM;CACN,QAAQ;CACR,YAAY,UAAU,IAAI,aAAa;EACtC,GAAG;EACH,SAAS,MAAM,QAAQ,KAAK,MAAM,aAAa,QAAQ,IAAI,yBAAyB,CAAC,CAAC;EACtF,GAAG,UAAU,UAAU,MAAM,QAAQ,KAAK,MAAM,aAAa,kBAAkB,IAAI,mCAAmC,CAAC,CAAC,CAAC;CAC1H,CAAC;AACF;AACA,MAAM,qBAAqB;CAC1B,MAAM;CACN,QAAQ;CACR,YAAY,UAAU,IAAI,gBAAgB,KAAK;AAChD;;;;;;;;;AASA,SAAS,sBAAsB,YAAY,CAAC,GAAG;CAC9C,MAAM,wBAAwB,IAAI,IAAI,CAAC,CAAC,SAAS,eAAe,GAAG,CAAC,YAAY,kBAAkB,CAAC,CAAC;CACpG,KAAK,MAAM,cAAc,WAAW;EACnC,IAAI,MAAM,IAAI,WAAW,IAAI,GAAG,MAAM,cAAc,sCAAsC,iDAAiD,WAAW,KAAK,4CAA4C,EAAE,MAAM,EAAE,YAAY,WAAW,KAAK,EAAE,CAAC;EAChP,MAAM,IAAI,WAAW,MAAM,UAAU;CACtC;CACA,OAAO;AACR"}
@@ -1,17 +1,18 @@
1
- import { t as Index } from "./sql-index-DsI8HAeK-BJsn-jvD.mjs";
2
- import { a as StorageTable, o as StorageTableInput } from "./storage-table-BBaAmanc-BwR37LMA.mjs";
1
+ import { t as Index } from "./sql-index-DsI8HAeK-SazZYeA2.mjs";
2
+ import { a as StorageTable, o as StorageTableInput, t as CheckConstraint } from "./storage-table-BTVeIKBx-Ba6wCjG5.mjs";
3
3
  import { n as StorageValueSetInput, t as StorageValueSet } from "./storage-value-set-BGlj5Uus-CvZD--GG.mjs";
4
- import { t as SerializedIndex } from "./serialized-index-B96AwqtU-DcqcB4q_.mjs";
4
+ import { n as SerializedIndex, t as SerializedCheckConstraint } from "./serialized-index-CvprUx-6-CX0DYGLe.mjs";
5
5
  import { AnyEntityKindDescriptor, EntityKindDescriptor } from "@prisma/orm-framework/components/ir";
6
6
  //#region ../../../2-sql/1-core/contract/dist/entity-kinds.d.mts
7
7
  //#region src/entity-kinds.d.ts
8
8
  /**
9
- * A table entry as it reaches hydration: from `contract.json` its indexes are
10
- * still the stored flat records, from authoring they are already `Index`
11
- * nodes.
9
+ * A table entry as it reaches hydration: from `contract.json` its indexes and
10
+ * checks are still the stored flat records, from authoring they are already
11
+ * `Index` / `CheckConstraint` nodes.
12
12
  */
13
- type HydratableStorageTable = Omit<StorageTableInput, 'indexes'> & {
13
+ type HydratableStorageTable = Omit<StorageTableInput, 'indexes' | 'checks'> & {
14
14
  readonly indexes: ReadonlyArray<Index | SerializedIndex>;
15
+ readonly checks?: ReadonlyArray<CheckConstraint | SerializedCheckConstraint>;
15
16
  };
16
17
  declare const tableEntityKind: EntityKindDescriptor<HydratableStorageTable, StorageTable>;
17
18
  declare const valueSetEntityKind: EntityKindDescriptor<StorageValueSetInput, StorageValueSet>;
@@ -26,4 +27,4 @@ declare const valueSetEntityKind: EntityKindDescriptor<StorageValueSetInput, Sto
26
27
  declare function composeSqlEntityKinds(packKinds?: readonly AnyEntityKindDescriptor[]): ReadonlyMap<string, AnyEntityKindDescriptor>;
27
28
  //#endregion
28
29
  export { tableEntityKind as n, valueSetEntityKind as r, composeSqlEntityKinds as t };
29
- //# sourceMappingURL=entity-kinds-Dh6VH4uK.d.mts.map
30
+ //# sourceMappingURL=entity-kinds-FB5fUkUH.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"entity-kinds-FB5fUkUH.d.mts","names":[],"sources":["../../../../2-sql/1-core/contract/dist/entity-kinds.d.mts"],"mappings":";;;;;;;;;;;;KAWK,yBAAyB,KAAK;WACxB,SAAS,cAAc,QAAQ;WAC/B,SAAS,cAAc,kBAAkB;;cAEtC,iBAAiB,qBAAqB,wBAAwB;cAC9D,oBAAoB,qBAAqB,sBAAsB;;;;;;;;;iBAS5D,sBAAsB,qBAAqB,4BAA4B,oBAAoB"}
@@ -1,7 +1,7 @@
1
- import { S as QueryOperationReturn } from "./types-D_plAPEe-DqK5It_K.mjs";
2
- import "./types-wy2-Y8wQ.mjs";
3
- import { t as SqlLoweringSpec } from "./index-BZF7Wehu.mjs";
4
- import { Ct as RawSqlLiteral, T as CodecRef$1, _t as ParamRef, s as AnyExpression } from "./types-BwePDa3m-BVrPIi8V.mjs";
1
+ import { S as QueryOperationReturn } from "./types-BpPwiK2b-DCMVWQ_F.mjs";
2
+ import "./types-BL_h3id0.mjs";
3
+ import { t as SqlLoweringSpec } from "./index-avHHFCFT.mjs";
4
+ import { Ct as RawSqlLiteral, T as CodecRef$1, _t as ParamRef, s as AnyExpression } from "./types-BwePDa3m-CrVQ_8YI.mjs";
5
5
  import { ParamSpec } from "@prisma/orm-framework/operations";
6
6
  //#region ../../../2-sql/4-lanes/relational-core/dist/exports/expression.d.mts
7
7
  //#region src/expression.d.ts
@@ -163,4 +163,4 @@ type RawSqlInterpolation = Expression<ScopeField> | ParamRef | RawSqlLiteral;
163
163
  declare function createRawSql(adapter: RawCodecInferer): RawSqlTag;
164
164
  //#endregion
165
165
  export { Expression as a, RawSqlTag as c, TraitExpression as d, buildOperation as f, toExpr as g, param as h, CodecValue as i, ScalarListExpression as l, createRawSql as m, CodecExpression as n, RawCodecInferer as o, codecOf as p, CodecTypesBase as r, RawSqlBuilder as s, BuildOperationSpec as t, ScopeField as u };
166
- //# sourceMappingURL=expression-KPBpeH4T.d.mts.map
166
+ //# sourceMappingURL=expression-CBHseNtv.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"expression-KPBpeH4T.d.mts","names":[],"sources":["../../../../2-sql/4-lanes/relational-core/dist/exports/expression.d.mts"],"mappings":";;;;;;;KAKK;EACH;EACA;;;;;;;;EAQA;;;;EAIA,QAAQ;;KAEL,iBAAiB;WACX;WACA;;;;;KAKN,WAAW,UAAU,cAAc;WAC7B,YAAY;EACrB,YAAY;;KAET,kBAAkB,WAAW;WACvB;IACP,+CAA+C,WAAW,cAAc,GAAG;WACpE,cAAc;KACpB,iCAAiC,KAAK,2BAA2B;KACjE,WAAW,KAAK;;;;;KAKhB,WAAW,wBAAwB,0BAA0B,WAAW;WAClE;OACJ,sBAAsB,KAAK,GAAG,6BAA6B,WAAW;;;;;;;;;;;;;;;KAexE,gBAAgB,wBAAwB,0BAA0B,WAAW;WACvE;MACL;EACJ,SAAS;EACT,UAAU;EACV;KACG,WAAW,SAAS,UAAU;;;;;;;KAO9B,qBAAqB,wBAAwB,4BAA4B;EAC5E,SAAS;EACT,UAAU;EACV;;;;;;;KAOG,gBAAgB,kCAAkC,0BAA0B,WAAW;WACjF;MACL,gBAAgB,kBAAkB,IAAI,SAAS,UAAU;;;;;;;;iBAQ9C,OAAO,gBAAgB,QAAQ,aAAW;;;;iBAI1C,MAAM,GAAG,OAAO,GAAG;EAClC;IACE;;;;;;;;;;;iBAWa,QAAQ,iBAAiB;UAChC,mBAAmB,UAAU;WAC5B;;;;WAIA,gBAAgB,kBAAkB;WAClC,SAAS,IAAI;WACb,UAAU;;;;;iBAKJ,eAAe,UAAU,YAAY,MAAM,mBAAmB,KAAK,WAAW;;;;;;;;;;;;;UAarF;EACR,WAAW,OAAO;;;UAGV;EACR,QAAQ,kBAAkB,MAAM,IAAI;IAClC,SAAS;IACT;;EAEF,QAAQ,kBAAkB,2BAA2B;aAC1C,SAAS;aACT,WAAW;MAClB;IACF,SAAS;IACT,UAAU;;;;KAIT,aAAa,SAAS,yBAAyB,QAAQ,0BAA0B;KACjF,sBAAsB,WAAW,cAAc,WAAW;;;;;;iBAM9C,aAAa,SAAS,kBAAkB"}
1
+ {"version":3,"file":"expression-CBHseNtv.d.mts","names":[],"sources":["../../../../2-sql/4-lanes/relational-core/dist/exports/expression.d.mts"],"mappings":";;;;;;;KAKK;EACH;EACA;;;;;;;;EAQA;;;;EAIA,QAAQ;;KAEL,iBAAiB;WACX;WACA;;;;;KAKN,WAAW,UAAU,cAAc;WAC7B,YAAY;EACrB,YAAY;;KAET,kBAAkB,WAAW;WACvB;IACP,+CAA+C,WAAW,cAAc,GAAG;WACpE,cAAc;KACpB,iCAAiC,KAAK,2BAA2B;KACjE,WAAW,KAAK;;;;;KAKhB,WAAW,wBAAwB,0BAA0B,WAAW;WAClE;OACJ,sBAAsB,KAAK,GAAG,6BAA6B,WAAW;;;;;;;;;;;;;;;KAexE,gBAAgB,wBAAwB,0BAA0B,WAAW;WACvE;MACL;EACJ,SAAS;EACT,UAAU;EACV;KACG,WAAW,SAAS,UAAU;;;;;;;KAO9B,qBAAqB,wBAAwB,4BAA4B;EAC5E,SAAS;EACT,UAAU;EACV;;;;;;;KAOG,gBAAgB,kCAAkC,0BAA0B,WAAW;WACjF;MACL,gBAAgB,kBAAkB,IAAI,SAAS,UAAU;;;;;;;;iBAQ9C,OAAO,gBAAgB,QAAQ,aAAW;;;;iBAI1C,MAAM,GAAG,OAAO,GAAG;EAClC;IACE;;;;;;;;;;;iBAWa,QAAQ,iBAAiB;UAChC,mBAAmB,UAAU;WAC5B;;;;WAIA,gBAAgB,kBAAkB;WAClC,SAAS,IAAI;WACb,UAAU;;;;;iBAKJ,eAAe,UAAU,YAAY,MAAM,mBAAmB,KAAK,WAAW;;;;;;;;;;;;;UAarF;EACR,WAAW,OAAO;;;UAGV;EACR,QAAQ,kBAAkB,MAAM,IAAI;IAClC,SAAS;IACT;;EAEF,QAAQ,kBAAkB,2BAA2B;aAC1C,SAAS;aACT,WAAW;MAClB;IACF,SAAS;IACT,UAAU;;;;KAIT,aAAa,SAAS,yBAAyB,QAAQ,0BAA0B;KACjF,sBAAsB,WAAW,cAAc,WAAW;;;;;;iBAM9C,aAAa,SAAS,kBAAkB"}
@@ -1,8 +1,8 @@
1
1
  import { t as ForeignKey } from "./foreign-key-BSy9u4O4-BnsOe5Nf.mjs";
2
2
  import { r as UniqueConstraint, t as PrimaryKey } from "./unique-constraint-jQWfH7dg-zLWtFp99.mjs";
3
- import { t as Index } from "./sql-index-DsI8HAeK-BJsn-jvD.mjs";
4
- import { a as StorageTable, i as StorageColumnInput, r as StorageColumn } from "./storage-table-BBaAmanc-BwR37LMA.mjs";
5
- import { A as SqlModelStorage, k as SqlModelFieldStorage, y as ForeignKeyOptions } from "./types-D_plAPEe-DqK5It_K.mjs";
3
+ import { t as Index } from "./sql-index-DsI8HAeK-SazZYeA2.mjs";
4
+ import { a as StorageTable, i as StorageColumnInput, r as StorageColumn } from "./storage-table-BTVeIKBx-Ba6wCjG5.mjs";
5
+ import { A as SqlModelStorage, k as SqlModelFieldStorage, y as ForeignKeyOptions } from "./types-BpPwiK2b-DCMVWQ_F.mjs";
6
6
  import { ScalarFieldType } from "@prisma/orm-framework/contract/types";
7
7
  //#region ../../../2-sql/1-core/contract/dist/factories.d.mts
8
8
  //#region src/factories.d.ts
@@ -36,4 +36,4 @@ declare function model(tableName: string, fields: Record<string, SqlModelFieldSt
36
36
  };
37
37
  //#endregion
38
38
  export { pk as a, model as i, fk as n, table as o, index as r, unique as s, col as t };
39
- //# sourceMappingURL=factories-MfcqTt5R.d.mts.map
39
+ //# sourceMappingURL=factories-BPmhxoFd.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"factories-MfcqTt5R.d.mts","names":[],"sources":["../../../../2-sql/1-core/contract/dist/factories.d.mts"],"mappings":";;;;;;;;iBAOiB,IAAI,oBAAoB,iBAAiB,oBAAoB;WACnE;IACP;iBACa,MAAM,6BAA6B;iBACnC,UAAU,6BAA6B;iBACvC,MAAM,cAAc,4BAA4B;WACtD;WACA;WACA;WACA,UAAU;IACjB;iBACa,GAAG,sBAAsB,+BAA+B,yBAAyB,kCAAkC,OAAO;EACzI;IACE;iBACa,MAAM,SAAS,eAAe,gBAAgB,qBAAqB;EAClF,KAAK;EACL,mBAAmB;EACnB,mBAAmB;EACnB,eAAe;IACb;iBACa,MAAM,mBAAmB,QAAQ,eAAe,uBAAuB,YAAY,yBAAyB;EAC3H,SAAS;EACT,QAAQ;aACG;aACA,MAAM;;EAEjB,WAAW"}
1
+ {"version":3,"file":"factories-BPmhxoFd.d.mts","names":[],"sources":["../../../../2-sql/1-core/contract/dist/factories.d.mts"],"mappings":";;;;;;;;iBAOiB,IAAI,oBAAoB,iBAAiB,oBAAoB;WACnE;IACP;iBACa,MAAM,6BAA6B;iBACnC,UAAU,6BAA6B;iBACvC,MAAM,cAAc,4BAA4B;WACtD;WACA;WACA;WACA,UAAU;IACjB;iBACa,GAAG,sBAAsB,+BAA+B,yBAAyB,kCAAkC,OAAO;EACzI;IACE;iBACa,MAAM,SAAS,eAAe,gBAAgB,qBAAqB;EAClF,KAAK;EACL,mBAAmB;EACnB,mBAAmB;EACnB,eAAe;IACb;iBACa,MAAM,mBAAmB,QAAQ,eAAe,uBAAuB,YAAY,yBAAyB;EAC3H,SAAS;EACT,QAAQ;aACG;aACA,MAAM;;EAEjB,WAAW"}
@@ -1,5 +1,5 @@
1
- import { d as parseNaming } from "./naming-BwqqVcZy-BgTObIQw.mjs";
2
- import { a as PrimaryKey, c as StorageTable, i as Index, l as UniqueConstraint, n as ForeignKey, s as StorageColumn } from "./storage-table-_LWDmPfv-DFhU2dML.mjs";
1
+ import { f as parseNaming } from "./naming-CEGRBbyW-BOa9Eun0.mjs";
2
+ import { a as PrimaryKey, c as StorageTable, i as Index, l as UniqueConstraint, n as ForeignKey, s as StorageColumn } from "./storage-table-BcDudZC5-DZNZhjf2.mjs";
3
3
  import { UNBOUND_NAMESPACE_ID } from "@prisma/orm-framework/components/ir";
4
4
  import { asNamespaceId } from "@prisma/orm-framework/contract/types";
5
5
  //#region ../../../2-sql/1-core/contract/dist/factories.mjs
@@ -74,4 +74,4 @@ function model(tableName, fields, relations = {}, namespaceId = UNBOUND_NAMESPAC
74
74
  //#endregion
75
75
  export { pk as a, model as i, fk as n, table as o, index as r, unique as s, col as t };
76
76
 
77
- //# sourceMappingURL=factories-CDG9zBxC.mjs.map
77
+ //# sourceMappingURL=factories-BtnISekg.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"factories-CDG9zBxC.mjs","names":[],"sources":["../../../../2-sql/1-core/contract/dist/factories.mjs"],"sourcesContent":["import { a as ForeignKey, c as Index, i as PrimaryKey, n as UniqueConstraint, r as StorageColumn, t as StorageTable } from \"./storage-table-_LWDmPfv.mjs\";\nimport { UNBOUND_NAMESPACE_ID } from \"@internal/framework-components/ir\";\nimport { parseNaming } from \"@internal/sql-schema-ir/naming\";\nimport { asNamespaceId } from \"@internal/contract/types\";\n//#region src/factories.ts\nfunction col(nativeType, codecId, nullable = false, opts) {\n\treturn new StorageColumn({\n\t\tnativeType,\n\t\tcodecId,\n\t\tnullable,\n\t\t...opts?.many !== void 0 && { many: opts.many }\n\t});\n}\nfunction pk(...columns) {\n\treturn new PrimaryKey({ columns });\n}\nfunction unique(...columns) {\n\treturn new UniqueConstraint({ columns });\n}\nfunction index(name, columns, opts) {\n\treturn new Index({\n\t\tnaming: parseNaming(name, opts?.prefix),\n\t\tcolumns,\n\t\twhere: void 0,\n\t\tunique: opts?.unique ?? false,\n\t\ttype: opts?.type,\n\t\toptions: opts?.options\n\t});\n}\nfunction fk(srcTableName, srcColumns, targetTableName, targetColumns, opts) {\n\tconst namespaceId = asNamespaceId(opts?.namespaceId ?? UNBOUND_NAMESPACE_ID);\n\treturn new ForeignKey({\n\t\tsource: {\n\t\t\tnamespaceId,\n\t\t\ttableName: srcTableName,\n\t\t\tcolumns: srcColumns\n\t\t},\n\t\ttarget: {\n\t\t\tnamespaceId,\n\t\t\ttableName: targetTableName,\n\t\t\tcolumns: targetColumns\n\t\t},\n\t\t...opts?.name !== void 0 && { name: opts.name },\n\t\t...opts?.onDelete !== void 0 && { onDelete: opts.onDelete },\n\t\t...opts?.onUpdate !== void 0 && { onUpdate: opts.onUpdate }\n\t});\n}\nfunction table(columns, opts) {\n\treturn new StorageTable({\n\t\tcolumns,\n\t\t...opts?.pk !== void 0 && { primaryKey: opts.pk },\n\t\tuniques: opts?.uniques ?? [],\n\t\tindexes: opts?.indexes ?? [],\n\t\tforeignKeys: opts?.fks ?? []\n\t});\n}\nfunction model(tableName, fields, relations = {}, namespaceId = UNBOUND_NAMESPACE_ID) {\n\treturn {\n\t\tstorage: {\n\t\t\ttable: tableName,\n\t\t\tnamespaceId,\n\t\t\tfields\n\t\t},\n\t\tfields: Object.fromEntries(Object.entries(fields).map(([name, field]) => [name, {\n\t\t\tnullable: field.nullable ?? false,\n\t\t\ttype: {\n\t\t\t\tkind: \"scalar\",\n\t\t\t\tcodecId: field.codecId ?? \"core/unknown@1\"\n\t\t\t}\n\t\t}])),\n\t\trelations\n\t};\n}\n//#endregion\nexport { col, fk, index, model, pk, table, unique };\n\n//# sourceMappingURL=factories.mjs.map"],"mappings":";;;;;AAKA,SAAS,IAAI,YAAY,SAAS,WAAW,OAAO,MAAM;CACzD,OAAO,IAAI,cAAc;EACxB;EACA;EACA;EACA,GAAG,MAAM,SAAS,KAAK,KAAK,EAAE,MAAM,KAAK,KAAK;CAC/C,CAAC;AACF;AACA,SAAS,GAAG,GAAG,SAAS;CACvB,OAAO,IAAI,WAAW,EAAE,QAAQ,CAAC;AAClC;AACA,SAAS,OAAO,GAAG,SAAS;CAC3B,OAAO,IAAI,iBAAiB,EAAE,QAAQ,CAAC;AACxC;AACA,SAAS,MAAM,MAAM,SAAS,MAAM;CACnC,OAAO,IAAI,MAAM;EAChB,QAAQ,YAAY,MAAM,MAAM,MAAM;EACtC;EACA,OAAO,KAAK;EACZ,QAAQ,MAAM,UAAU;EACxB,MAAM,MAAM;EACZ,SAAS,MAAM;CAChB,CAAC;AACF;AACA,SAAS,GAAG,cAAc,YAAY,iBAAiB,eAAe,MAAM;CAC3E,MAAM,cAAc,cAAc,MAAM,eAAe,oBAAoB;CAC3E,OAAO,IAAI,WAAW;EACrB,QAAQ;GACP;GACA,WAAW;GACX,SAAS;EACV;EACA,QAAQ;GACP;GACA,WAAW;GACX,SAAS;EACV;EACA,GAAG,MAAM,SAAS,KAAK,KAAK,EAAE,MAAM,KAAK,KAAK;EAC9C,GAAG,MAAM,aAAa,KAAK,KAAK,EAAE,UAAU,KAAK,SAAS;EAC1D,GAAG,MAAM,aAAa,KAAK,KAAK,EAAE,UAAU,KAAK,SAAS;CAC3D,CAAC;AACF;AACA,SAAS,MAAM,SAAS,MAAM;CAC7B,OAAO,IAAI,aAAa;EACvB;EACA,GAAG,MAAM,OAAO,KAAK,KAAK,EAAE,YAAY,KAAK,GAAG;EAChD,SAAS,MAAM,WAAW,CAAC;EAC3B,SAAS,MAAM,WAAW,CAAC;EAC3B,aAAa,MAAM,OAAO,CAAC;CAC5B,CAAC;AACF;AACA,SAAS,MAAM,WAAW,QAAQ,YAAY,CAAC,GAAG,cAAc,sBAAsB;CACrF,OAAO;EACN,SAAS;GACR,OAAO;GACP;GACA;EACD;EACA,QAAQ,OAAO,YAAY,OAAO,QAAQ,MAAM,CAAC,CAAC,KAAK,CAAC,MAAM,WAAW,CAAC,MAAM;GAC/E,UAAU,MAAM,YAAY;GAC5B,MAAM;IACL,MAAM;IACN,SAAS,MAAM,WAAW;GAC3B;EACD,CAAC,CAAC,CAAC;EACH;CACD;AACD"}
1
+ {"version":3,"file":"factories-BtnISekg.mjs","names":[],"sources":["../../../../2-sql/1-core/contract/dist/factories.mjs"],"sourcesContent":["import { a as ForeignKey, i as PrimaryKey, n as UniqueConstraint, r as StorageColumn, s as Index, t as StorageTable } from \"./storage-table-BcDudZC5.mjs\";\nimport { UNBOUND_NAMESPACE_ID } from \"@internal/framework-components/ir\";\nimport { parseNaming } from \"@internal/sql-schema-ir/naming\";\nimport { asNamespaceId } from \"@internal/contract/types\";\n//#region src/factories.ts\nfunction col(nativeType, codecId, nullable = false, opts) {\n\treturn new StorageColumn({\n\t\tnativeType,\n\t\tcodecId,\n\t\tnullable,\n\t\t...opts?.many !== void 0 && { many: opts.many }\n\t});\n}\nfunction pk(...columns) {\n\treturn new PrimaryKey({ columns });\n}\nfunction unique(...columns) {\n\treturn new UniqueConstraint({ columns });\n}\nfunction index(name, columns, opts) {\n\treturn new Index({\n\t\tnaming: parseNaming(name, opts?.prefix),\n\t\tcolumns,\n\t\twhere: void 0,\n\t\tunique: opts?.unique ?? false,\n\t\ttype: opts?.type,\n\t\toptions: opts?.options\n\t});\n}\nfunction fk(srcTableName, srcColumns, targetTableName, targetColumns, opts) {\n\tconst namespaceId = asNamespaceId(opts?.namespaceId ?? UNBOUND_NAMESPACE_ID);\n\treturn new ForeignKey({\n\t\tsource: {\n\t\t\tnamespaceId,\n\t\t\ttableName: srcTableName,\n\t\t\tcolumns: srcColumns\n\t\t},\n\t\ttarget: {\n\t\t\tnamespaceId,\n\t\t\ttableName: targetTableName,\n\t\t\tcolumns: targetColumns\n\t\t},\n\t\t...opts?.name !== void 0 && { name: opts.name },\n\t\t...opts?.onDelete !== void 0 && { onDelete: opts.onDelete },\n\t\t...opts?.onUpdate !== void 0 && { onUpdate: opts.onUpdate }\n\t});\n}\nfunction table(columns, opts) {\n\treturn new StorageTable({\n\t\tcolumns,\n\t\t...opts?.pk !== void 0 && { primaryKey: opts.pk },\n\t\tuniques: opts?.uniques ?? [],\n\t\tindexes: opts?.indexes ?? [],\n\t\tforeignKeys: opts?.fks ?? []\n\t});\n}\nfunction model(tableName, fields, relations = {}, namespaceId = UNBOUND_NAMESPACE_ID) {\n\treturn {\n\t\tstorage: {\n\t\t\ttable: tableName,\n\t\t\tnamespaceId,\n\t\t\tfields\n\t\t},\n\t\tfields: Object.fromEntries(Object.entries(fields).map(([name, field]) => [name, {\n\t\t\tnullable: field.nullable ?? false,\n\t\t\ttype: {\n\t\t\t\tkind: \"scalar\",\n\t\t\t\tcodecId: field.codecId ?? \"core/unknown@1\"\n\t\t\t}\n\t\t}])),\n\t\trelations\n\t};\n}\n//#endregion\nexport { col, fk, index, model, pk, table, unique };\n\n//# sourceMappingURL=factories.mjs.map"],"mappings":";;;;;AAKA,SAAS,IAAI,YAAY,SAAS,WAAW,OAAO,MAAM;CACzD,OAAO,IAAI,cAAc;EACxB;EACA;EACA;EACA,GAAG,MAAM,SAAS,KAAK,KAAK,EAAE,MAAM,KAAK,KAAK;CAC/C,CAAC;AACF;AACA,SAAS,GAAG,GAAG,SAAS;CACvB,OAAO,IAAI,WAAW,EAAE,QAAQ,CAAC;AAClC;AACA,SAAS,OAAO,GAAG,SAAS;CAC3B,OAAO,IAAI,iBAAiB,EAAE,QAAQ,CAAC;AACxC;AACA,SAAS,MAAM,MAAM,SAAS,MAAM;CACnC,OAAO,IAAI,MAAM;EAChB,QAAQ,YAAY,MAAM,MAAM,MAAM;EACtC;EACA,OAAO,KAAK;EACZ,QAAQ,MAAM,UAAU;EACxB,MAAM,MAAM;EACZ,SAAS,MAAM;CAChB,CAAC;AACF;AACA,SAAS,GAAG,cAAc,YAAY,iBAAiB,eAAe,MAAM;CAC3E,MAAM,cAAc,cAAc,MAAM,eAAe,oBAAoB;CAC3E,OAAO,IAAI,WAAW;EACrB,QAAQ;GACP;GACA,WAAW;GACX,SAAS;EACV;EACA,QAAQ;GACP;GACA,WAAW;GACX,SAAS;EACV;EACA,GAAG,MAAM,SAAS,KAAK,KAAK,EAAE,MAAM,KAAK,KAAK;EAC9C,GAAG,MAAM,aAAa,KAAK,KAAK,EAAE,UAAU,KAAK,SAAS;EAC1D,GAAG,MAAM,aAAa,KAAK,KAAK,EAAE,UAAU,KAAK,SAAS;CAC3D,CAAC;AACF;AACA,SAAS,MAAM,SAAS,MAAM;CAC7B,OAAO,IAAI,aAAa;EACvB;EACA,GAAG,MAAM,OAAO,KAAK,KAAK,EAAE,YAAY,KAAK,GAAG;EAChD,SAAS,MAAM,WAAW,CAAC;EAC3B,SAAS,MAAM,WAAW,CAAC;EAC3B,aAAa,MAAM,OAAO,CAAC;CAC5B,CAAC;AACF;AACA,SAAS,MAAM,WAAW,QAAQ,YAAY,CAAC,GAAG,cAAc,sBAAsB;CACrF,OAAO;EACN,SAAS;GACR,OAAO;GACP;GACA;EACD;EACA,QAAQ,OAAO,YAAY,OAAO,QAAQ,MAAM,CAAC,CAAC,KAAK,CAAC,MAAM,WAAW,CAAC,MAAM;GAC/E,UAAU,MAAM,YAAY;GAC5B,MAAM;IACL,MAAM;IACN,SAAS,MAAM,WAAW;GAC3B;EACD,CAAC,CAAC,CAAC;EACH;CACD;AACD"}
package/dist/family.d.mts CHANGED
@@ -1,13 +1,13 @@
1
- import { n as resolveStorageTable, t as ResolvedStorageTable } from "./resolve-storage-table-DUwyRJmP.mjs";
2
- import { i as SqlControlAdapter, n as Lowerer, o as arraysEqual, r as NativeTypeNormalizer, t as ExecuteRequestLowerer } from "./control-adapter-C99J7aEF-Cmay9zFj.mjs";
3
- import { A as SqlPlannerSuccessResult, C as SqlMigrationRunnerSuccessValue, D as SqlPlannerConflictLocation, E as SqlPlannerConflictKind, O as SqlPlannerFailureResult, S as SqlMigrationRunnerResult, T as SqlPlannerConflict, _ as SqlMigrationRunner, a as FieldEvent, b as SqlMigrationRunnerExecuteOptions, c as SqlControlAdapterDescriptor, d as SqlMigrationPlanContractInfo, f as SqlMigrationPlanOperation, g as SqlMigrationPlannerPlanOptions, h as SqlMigrationPlanner, i as ExpandNativeTypeInput, j as StorageTypePlanResult, k as SqlPlannerResult, l as SqlControlExtensionDescriptor, m as SqlMigrationPlanOperationTarget, n as CodecControlHooks, o as FieldEventContext, p as SqlMigrationPlanOperationStep, r as CreateSqlMigrationPlanOptions, s as ResolveIdentityValueInput, u as SqlMigrationPlan, v as SqlMigrationRunnerErrorCode, w as SqlPlanTargetDetails, x as SqlMigrationRunnerFailure, y as SqlMigrationRunnerExecuteCallbacks } from "./types-IqZMLrFC-D8PN7ygS.mjs";
4
- import { n as SqlSchemaDiffInput, r as SqlSchemaDiffResult, t as SqlSchemaDiffFn } from "./schema-differ-DpG_gnur-zSwkxqxK.mjs";
5
- import { A as partitionCallsByControlPolicy, B as temporalCodecPresetWithPrecision, C as buildNativeTypeExpander, D as createMigrationPlan, E as controlPolicyForCall, F as resolveValueSetValues, I as runnerFailure, L as runnerSuccess, M as planFieldEventOperations, N as plannerFailure, O as detectDestructiveChanges, P as plannerSuccess, R as temporalAuthoringPresets, S as assembleAuthoringContributions, T as contractToSchemaIR, V as timestampNowControlDescriptor, _ as SqlControlTargetDescriptor, a as EnumNamespaceSchemaResolver, b as TargetMigrationsCapability, c as MigrationOperationPolicy, d as MigrationPlanner, f as MigrationPlannerConflict, g as SqlControlFamilyInstance, h as PlanFieldEventOperationsOptions, i as DefaultResolver, j as partitionIssuesByControlPolicy, k as extractCodecControlHooks, l as MigrationPlan, m as NativeTypeExpander, n as ControlPolicySubject, o as INIT_ADDITIVE_POLICY, p as MigrationPlannerResult, r as DefaultRenderer, s as MigrationOperationClass, t as ContractToSchemaIROptions, u as MigrationPlanOperation, v as SqlDescribedContractSpace, w as contractNamespaceToSchemaIR, y as SuppressionRecord, z as temporalCodecPreset } from "./control-BWngBFMj.mjs";
6
- import "./control-adapter-DrCAQQpa.mjs";
7
- import { a as VerifySqlSchemaByDiffInput, c as computeSqlDiffVerdict, i as StorageTypeVerdictInput, l as computeStorageTypeVerdict, n as SqlDiffVerdictInput, o as classifyDiffSubjectGranularity, r as StorageTypeVerdict, s as classifySqlDiffIssue, t as SqlDiffVerdict, u as verifySqlSchemaByDiff } from "./diff-DnLtQXpg.mjs";
8
- import { i as SqlSchemaVerifierBase, n as SqlContractSerializerBase, r as SqlEntityHydrationFactory, t as SqlContractSerializer } from "./ir-Cvj3eU-K.mjs";
9
- import { t as SqlMigration } from "./migration-BvCT6g2N.mjs";
10
- import { _ as toEnumMemberName, a as PslPrinterOptions, b as toModelName, c as PslTypeResolution, d as deriveBackRelationFieldName, f as deriveRelationFieldName, g as pluralize, h as parseRawDefault, i as InferredRelations, l as RelationField, m as mapDefault, n as DefaultMappingResult, o as PslTypeMap, p as inferRelations, r as EnumInfo, s as PslTypeReference, t as DefaultMappingOptions, u as buildChildRelationField, v as toEnumName, y as toFieldName } from "./psl-infer-6je61Z6J.mjs";
11
- import { a as timestampNowRuntimeGenerator, n as UNBOUND_DOMAIN_NAMESPACE_ID, r as resolveDomainModel, t as ResolvedDomainModel } from "./runtime-AvfMMERk.mjs";
1
+ import { n as resolveStorageTable, t as ResolvedStorageTable } from "./resolve-storage-table-BJYVl94P.mjs";
2
+ import { i as SqlControlAdapter, n as Lowerer, o as arraysEqual, r as NativeTypeNormalizer, t as ExecuteRequestLowerer } from "./control-adapter-C99J7aEF-BvoknoRl.mjs";
3
+ import { A as SqlPlannerSuccessResult, C as SqlMigrationRunnerSuccessValue, D as SqlPlannerConflictLocation, E as SqlPlannerConflictKind, O as SqlPlannerFailureResult, S as SqlMigrationRunnerResult, T as SqlPlannerConflict, _ as SqlMigrationRunner, a as FieldEvent, b as SqlMigrationRunnerExecuteOptions, c as SqlControlAdapterDescriptor, d as SqlMigrationPlanContractInfo, f as SqlMigrationPlanOperation, g as SqlMigrationPlannerPlanOptions, h as SqlMigrationPlanner, i as ExpandNativeTypeInput, j as StorageTypePlanResult, k as SqlPlannerResult, l as SqlControlExtensionDescriptor, m as SqlMigrationPlanOperationTarget, n as CodecControlHooks, o as FieldEventContext, p as SqlMigrationPlanOperationStep, r as CreateSqlMigrationPlanOptions, s as ResolveIdentityValueInput, u as SqlMigrationPlan, v as SqlMigrationRunnerErrorCode, w as SqlPlanTargetDetails, x as SqlMigrationRunnerFailure, y as SqlMigrationRunnerExecuteCallbacks } from "./types-IqZMLrFC-CcORLTOK.mjs";
4
+ import { n as SqlSchemaDiffInput, r as SqlSchemaDiffResult, t as SqlSchemaDiffFn } from "./schema-differ-DpG_gnur-BgbN2De2.mjs";
5
+ import { A as partitionCallsByControlPolicy, B as timestampNowControlDescriptor, C as buildNativeTypeExpander, D as createMigrationPlan, E as controlPolicyForCall, F as runnerFailure, I as runnerSuccess, L as temporalAuthoringPresets, M as planFieldEventOperations, N as plannerFailure, O as detectDestructiveChanges, P as plannerSuccess, R as temporalCodecPreset, S as assembleAuthoringContributions, T as contractToSchemaIR, _ as SqlControlTargetDescriptor, a as EnumNamespaceSchemaResolver, b as TargetMigrationsCapability, c as MigrationOperationPolicy, d as MigrationPlanner, f as MigrationPlannerConflict, g as SqlControlFamilyInstance, h as PlanFieldEventOperationsOptions, i as DefaultResolver, j as partitionIssuesByControlPolicy, k as extractCodecControlHooks, l as MigrationPlan, m as NativeTypeExpander, n as ControlPolicySubject, o as INIT_ADDITIVE_POLICY, p as MigrationPlannerResult, r as DefaultRenderer, s as MigrationOperationClass, t as ContractToSchemaIROptions, u as MigrationPlanOperation, v as SqlDescribedContractSpace, w as contractNamespaceToSchemaIR, y as SuppressionRecord, z as temporalCodecPresetWithPrecision } from "./control-JKCfuZLF.mjs";
6
+ import "./control-adapter-BjSrEp2V.mjs";
7
+ import { a as VerifySqlSchemaByDiffInput, c as computeSqlDiffVerdict, i as StorageTypeVerdictInput, l as computeStorageTypeVerdict, n as SqlDiffVerdictInput, o as classifyDiffSubjectGranularity, r as StorageTypeVerdict, s as classifySqlDiffIssue, t as SqlDiffVerdict, u as verifySqlSchemaByDiff } from "./diff-DDfez6HZ.mjs";
8
+ import { i as SqlSchemaVerifierBase, n as SqlContractSerializerBase, r as SqlEntityHydrationFactory, t as SqlContractSerializer } from "./ir-VWQX6aGP.mjs";
9
+ import { t as SqlMigration } from "./migration-DvCs5-4I.mjs";
10
+ import { _ as toEnumMemberName, a as PslPrinterOptions, b as toModelName, c as PslTypeResolution, d as deriveBackRelationFieldName, f as deriveRelationFieldName, g as pluralize, h as parseRawDefault, i as InferredRelations, l as RelationField, m as mapDefault, n as DefaultMappingResult, o as PslTypeMap, p as inferRelations, r as EnumInfo, s as PslTypeReference, t as DefaultMappingOptions, u as buildChildRelationField, v as toEnumName, y as toFieldName } from "./psl-infer-Dp_hwubv.mjs";
11
+ import { a as timestampNowRuntimeGenerator, n as UNBOUND_DOMAIN_NAMESPACE_ID, r as resolveDomainModel, t as ResolvedDomainModel } from "./runtime-CiGC1spO.mjs";
12
12
  import { n as parseContractMarkerRow, t as ContractMarkerRow } from "./verify-zDRnw0Rn.mjs";
13
- export { type CodecControlHooks, type ContractMarkerRow, type ContractToSchemaIROptions, type ControlPolicySubject, type CreateSqlMigrationPlanOptions, type DefaultMappingOptions, type DefaultMappingResult, type DefaultRenderer, type DefaultResolver, type EnumInfo, type EnumNamespaceSchemaResolver, type ExecuteRequestLowerer, type ExpandNativeTypeInput, type FieldEvent, type FieldEventContext, INIT_ADDITIVE_POLICY, type InferredRelations, type Lowerer, SqlMigration as Migration, type MigrationOperationClass, type MigrationOperationPolicy, type MigrationPlan, type MigrationPlanOperation, type MigrationPlanner, type MigrationPlannerConflict, type MigrationPlannerResult, type NativeTypeExpander, type NativeTypeNormalizer, type PlanFieldEventOperationsOptions, type PslPrinterOptions, type PslTypeMap, type PslTypeReference, type PslTypeResolution, type RelationField, type ResolveIdentityValueInput, type ResolvedDomainModel, type ResolvedStorageTable, SqlContractSerializer, SqlContractSerializerBase, type SqlControlAdapter, type SqlControlExtensionDescriptor, type SqlControlFamilyInstance, type SqlControlTargetDescriptor, type SqlDescribedContractSpace, type SqlDiffVerdict, type SqlDiffVerdictInput, type SqlEntityHydrationFactory, type SqlMigrationPlan, type SqlMigrationPlanContractInfo, type SqlMigrationPlanOperation, type SqlMigrationPlanOperationStep, type SqlMigrationPlanOperationTarget, type SqlMigrationPlanner, type SqlMigrationPlannerPlanOptions, type SqlMigrationRunner, type SqlMigrationRunnerErrorCode, type SqlMigrationRunnerExecuteCallbacks, type SqlMigrationRunnerExecuteOptions, type SqlMigrationRunnerFailure, type SqlMigrationRunnerResult, type SqlMigrationRunnerSuccessValue, type SqlPlanTargetDetails, type SqlPlannerConflict, type SqlPlannerConflictKind, type SqlPlannerConflictLocation, type SqlPlannerFailureResult, type SqlPlannerResult, type SqlPlannerSuccessResult, type SqlSchemaDiffFn, type SqlSchemaDiffInput, type SqlSchemaDiffResult, SqlSchemaVerifierBase, type StorageTypePlanResult, type StorageTypeVerdict, type StorageTypeVerdictInput, type SuppressionRecord, type TargetMigrationsCapability, UNBOUND_DOMAIN_NAMESPACE_ID, type VerifySqlSchemaByDiffInput, arraysEqual, assembleAuthoringContributions, buildChildRelationField, buildNativeTypeExpander, classifyDiffSubjectGranularity, classifySqlDiffIssue, computeSqlDiffVerdict, computeStorageTypeVerdict, contractNamespaceToSchemaIR, contractToSchemaIR, controlPolicyForCall, createMigrationPlan, deriveBackRelationFieldName, deriveRelationFieldName, detectDestructiveChanges, extractCodecControlHooks, inferRelations, mapDefault, parseContractMarkerRow, parseRawDefault, partitionCallsByControlPolicy, partitionIssuesByControlPolicy, planFieldEventOperations, plannerFailure, plannerSuccess, pluralize, resolveDomainModel, resolveStorageTable, resolveValueSetValues, runnerFailure, runnerSuccess, temporalAuthoringPresets, temporalCodecPreset, temporalCodecPresetWithPrecision, timestampNowControlDescriptor, timestampNowRuntimeGenerator, toEnumMemberName, toEnumName, toFieldName, toModelName, verifySqlSchemaByDiff };
13
+ export { type CodecControlHooks, type ContractMarkerRow, type ContractToSchemaIROptions, type ControlPolicySubject, type CreateSqlMigrationPlanOptions, type DefaultMappingOptions, type DefaultMappingResult, type DefaultRenderer, type DefaultResolver, type EnumInfo, type EnumNamespaceSchemaResolver, type ExecuteRequestLowerer, type ExpandNativeTypeInput, type FieldEvent, type FieldEventContext, INIT_ADDITIVE_POLICY, type InferredRelations, type Lowerer, SqlMigration as Migration, type MigrationOperationClass, type MigrationOperationPolicy, type MigrationPlan, type MigrationPlanOperation, type MigrationPlanner, type MigrationPlannerConflict, type MigrationPlannerResult, type NativeTypeExpander, type NativeTypeNormalizer, type PlanFieldEventOperationsOptions, type PslPrinterOptions, type PslTypeMap, type PslTypeReference, type PslTypeResolution, type RelationField, type ResolveIdentityValueInput, type ResolvedDomainModel, type ResolvedStorageTable, SqlContractSerializer, SqlContractSerializerBase, type SqlControlAdapter, type SqlControlExtensionDescriptor, type SqlControlFamilyInstance, type SqlControlTargetDescriptor, type SqlDescribedContractSpace, type SqlDiffVerdict, type SqlDiffVerdictInput, type SqlEntityHydrationFactory, type SqlMigrationPlan, type SqlMigrationPlanContractInfo, type SqlMigrationPlanOperation, type SqlMigrationPlanOperationStep, type SqlMigrationPlanOperationTarget, type SqlMigrationPlanner, type SqlMigrationPlannerPlanOptions, type SqlMigrationRunner, type SqlMigrationRunnerErrorCode, type SqlMigrationRunnerExecuteCallbacks, type SqlMigrationRunnerExecuteOptions, type SqlMigrationRunnerFailure, type SqlMigrationRunnerResult, type SqlMigrationRunnerSuccessValue, type SqlPlanTargetDetails, type SqlPlannerConflict, type SqlPlannerConflictKind, type SqlPlannerConflictLocation, type SqlPlannerFailureResult, type SqlPlannerResult, type SqlPlannerSuccessResult, type SqlSchemaDiffFn, type SqlSchemaDiffInput, type SqlSchemaDiffResult, SqlSchemaVerifierBase, type StorageTypePlanResult, type StorageTypeVerdict, type StorageTypeVerdictInput, type SuppressionRecord, type TargetMigrationsCapability, UNBOUND_DOMAIN_NAMESPACE_ID, type VerifySqlSchemaByDiffInput, arraysEqual, assembleAuthoringContributions, buildChildRelationField, buildNativeTypeExpander, classifyDiffSubjectGranularity, classifySqlDiffIssue, computeSqlDiffVerdict, computeStorageTypeVerdict, contractNamespaceToSchemaIR, contractToSchemaIR, controlPolicyForCall, createMigrationPlan, deriveBackRelationFieldName, deriveRelationFieldName, detectDestructiveChanges, extractCodecControlHooks, inferRelations, mapDefault, parseContractMarkerRow, parseRawDefault, partitionCallsByControlPolicy, partitionIssuesByControlPolicy, planFieldEventOperations, plannerFailure, plannerSuccess, pluralize, resolveDomainModel, resolveStorageTable, runnerFailure, runnerSuccess, temporalAuthoringPresets, temporalCodecPreset, temporalCodecPresetWithPrecision, timestampNowControlDescriptor, timestampNowRuntimeGenerator, toEnumMemberName, toEnumName, toFieldName, toModelName, verifySqlSchemaByDiff };
package/dist/family.mjs CHANGED
@@ -1,12 +1,12 @@
1
1
  import { t as resolveStorageTable } from "./resolve-storage-table-DZsfnzeW.mjs";
2
- import { a as computeStorageTypeVerdict, i as computeSqlDiffVerdict, n as classifyDiffSubjectGranularity, o as extractCodecControlHooks, r as classifySqlDiffIssue, s as verifySqlSchemaByDiff } from "./schema-verify-vtFZbmGq-BNfTr6fU.mjs";
3
- import { n as SqlContractSerializerBase, t as SqlContractSerializer } from "./sql-contract-serializer-2oBWuxTe-B9hzBBv1.mjs";
2
+ import { a as computeStorageTypeVerdict, i as computeSqlDiffVerdict, n as classifyDiffSubjectGranularity, o as extractCodecControlHooks, r as classifySqlDiffIssue, s as verifySqlSchemaByDiff } from "./schema-verify-C_PEdlAr-JK3UgFWU.mjs";
3
+ import { n as SqlContractSerializerBase, t as SqlContractSerializer } from "./sql-contract-serializer-2oBWuxTe-Bp9QfUjI.mjs";
4
4
  import { n as parseContractMarkerRow } from "./verify-E6Dd2vYp-gYwnlhLm.mjs";
5
5
  import { a as timestampNowControlDescriptor, i as temporalCodecPresetWithPrecision, n as temporalAuthoringPresets, r as temporalCodecPreset } from "./timestamp-now-generator-DRXygu32-DN9Qb1uI.mjs";
6
- import { _ as runnerSuccess, a as contractToSchemaIR, c as createMigrationPlan, d as partitionIssuesByControlPolicy, f as planFieldEventOperations, g as runnerFailure, h as resolveValueSetValues, i as contractNamespaceToSchemaIR, l as detectDestructiveChanges, m as plannerSuccess, n as assembleAuthoringContributions, o as controlPolicyForCall, p as plannerFailure, r as buildNativeTypeExpander, t as INIT_ADDITIVE_POLICY, u as partitionCallsByControlPolicy } from "./control-C1EmRznB.mjs";
6
+ import { a as contractToSchemaIR, c as createMigrationPlan, d as partitionIssuesByControlPolicy, f as planFieldEventOperations, g as runnerSuccess, h as runnerFailure, i as contractNamespaceToSchemaIR, l as detectDestructiveChanges, m as plannerSuccess, n as assembleAuthoringContributions, o as controlPolicyForCall, p as plannerFailure, r as buildNativeTypeExpander, t as INIT_ADDITIVE_POLICY, u as partitionCallsByControlPolicy } from "./control-Bj2zT_YF.mjs";
7
7
  import { t as arraysEqual } from "./diff-B16bL_IR.mjs";
8
8
  import { t as SqlSchemaVerifierBase } from "./ir-I-xciGUH.mjs";
9
9
  import { t as SqlMigration } from "./migration-CK4oePIo.mjs";
10
- import { a as mapDefault, c as toEnumMemberName, d as toModelName, i as inferRelations, l as toEnumName, n as deriveBackRelationFieldName, o as parseRawDefault, r as deriveRelationFieldName, s as pluralize, t as buildChildRelationField, u as toFieldName } from "./psl-infer-DGftl-HW.mjs";
10
+ import { a as mapDefault, c as toEnumMemberName, d as toModelName, i as inferRelations, l as toEnumName, n as deriveBackRelationFieldName, o as parseRawDefault, r as deriveRelationFieldName, s as pluralize, t as buildChildRelationField, u as toFieldName } from "./psl-infer-f5BgyRKm.mjs";
11
11
  import { i as timestampNowRuntimeGenerator, n as resolveDomainModel, t as UNBOUND_DOMAIN_NAMESPACE_ID } from "./runtime-tIHpGCcG.mjs";
12
- export { INIT_ADDITIVE_POLICY, SqlMigration as Migration, SqlContractSerializer, SqlContractSerializerBase, SqlSchemaVerifierBase, UNBOUND_DOMAIN_NAMESPACE_ID, arraysEqual, assembleAuthoringContributions, buildChildRelationField, buildNativeTypeExpander, classifyDiffSubjectGranularity, classifySqlDiffIssue, computeSqlDiffVerdict, computeStorageTypeVerdict, contractNamespaceToSchemaIR, contractToSchemaIR, controlPolicyForCall, createMigrationPlan, deriveBackRelationFieldName, deriveRelationFieldName, detectDestructiveChanges, extractCodecControlHooks, inferRelations, mapDefault, parseContractMarkerRow, parseRawDefault, partitionCallsByControlPolicy, partitionIssuesByControlPolicy, planFieldEventOperations, plannerFailure, plannerSuccess, pluralize, resolveDomainModel, resolveStorageTable, resolveValueSetValues, runnerFailure, runnerSuccess, temporalAuthoringPresets, temporalCodecPreset, temporalCodecPresetWithPrecision, timestampNowControlDescriptor, timestampNowRuntimeGenerator, toEnumMemberName, toEnumName, toFieldName, toModelName, verifySqlSchemaByDiff };
12
+ export { INIT_ADDITIVE_POLICY, SqlMigration as Migration, SqlContractSerializer, SqlContractSerializerBase, SqlSchemaVerifierBase, UNBOUND_DOMAIN_NAMESPACE_ID, arraysEqual, assembleAuthoringContributions, buildChildRelationField, buildNativeTypeExpander, classifyDiffSubjectGranularity, classifySqlDiffIssue, computeSqlDiffVerdict, computeStorageTypeVerdict, contractNamespaceToSchemaIR, contractToSchemaIR, controlPolicyForCall, createMigrationPlan, deriveBackRelationFieldName, deriveRelationFieldName, detectDestructiveChanges, extractCodecControlHooks, inferRelations, mapDefault, parseContractMarkerRow, parseRawDefault, partitionCallsByControlPolicy, partitionIssuesByControlPolicy, planFieldEventOperations, plannerFailure, plannerSuccess, pluralize, resolveDomainModel, resolveStorageTable, runnerFailure, runnerSuccess, temporalAuthoringPresets, temporalCodecPreset, temporalCodecPresetWithPrecision, timestampNowControlDescriptor, timestampNowRuntimeGenerator, toEnumMemberName, toEnumName, toFieldName, toModelName, verifySqlSchemaByDiff };
@@ -1,3 +1,3 @@
1
- import { a as SqlControlAdapterDescriptor, i as SqlControlAdapter, n as Lowerer, t as ExecuteRequestLowerer } from "./control-adapter-C99J7aEF-Cmay9zFj.mjs";
2
- import "./control-adapter-DrCAQQpa.mjs";
1
+ import { a as SqlControlAdapterDescriptor, i as SqlControlAdapter, n as Lowerer, t as ExecuteRequestLowerer } from "./control-adapter-C99J7aEF-BvoknoRl.mjs";
2
+ import "./control-adapter-BjSrEp2V.mjs";
3
3
  export type { ExecuteRequestLowerer, Lowerer, SqlControlAdapter, SqlControlAdapterDescriptor };
@@ -1,4 +1,4 @@
1
- import { A as SqlPlannerSuccessResult, C as SqlMigrationRunnerSuccessValue, D as SqlPlannerConflictLocation, E as SqlPlannerConflictKind, O as SqlPlannerFailureResult, S as SqlMigrationRunnerResult, T as SqlPlannerConflict, _ as SqlMigrationRunner, a as FieldEvent, b as SqlMigrationRunnerExecuteOptions, c as SqlControlAdapterDescriptor, d as SqlMigrationPlanContractInfo, f as SqlMigrationPlanOperation, g as SqlMigrationPlannerPlanOptions, h as SqlMigrationPlanner, i as ExpandNativeTypeInput, j as StorageTypePlanResult, k as SqlPlannerResult, l as SqlControlExtensionDescriptor, m as SqlMigrationPlanOperationTarget, n as CodecControlHooks, o as FieldEventContext, p as SqlMigrationPlanOperationStep, r as CreateSqlMigrationPlanOptions, s as ResolveIdentityValueInput, u as SqlMigrationPlan, v as SqlMigrationRunnerErrorCode, w as SqlPlanTargetDetails, x as SqlMigrationRunnerFailure, y as SqlMigrationRunnerExecuteCallbacks } from "./types-IqZMLrFC-D8PN7ygS.mjs";
2
- import { n as SqlSchemaDiffInput, r as SqlSchemaDiffResult, t as SqlSchemaDiffFn } from "./schema-differ-DpG_gnur-zSwkxqxK.mjs";
3
- import { A as partitionCallsByControlPolicy, B as temporalCodecPresetWithPrecision, C as buildNativeTypeExpander, D as createMigrationPlan, E as controlPolicyForCall, F as resolveValueSetValues, I as runnerFailure, L as runnerSuccess, M as planFieldEventOperations, N as plannerFailure, O as detectDestructiveChanges, P as plannerSuccess, R as temporalAuthoringPresets, S as assembleAuthoringContributions, T as contractToSchemaIR, V as timestampNowControlDescriptor, _ as SqlControlTargetDescriptor, a as EnumNamespaceSchemaResolver, b as TargetMigrationsCapability, c as MigrationOperationPolicy, d as MigrationPlanner, f as MigrationPlannerConflict, g as SqlControlFamilyInstance, h as PlanFieldEventOperationsOptions, i as DefaultResolver, j as partitionIssuesByControlPolicy, k as extractCodecControlHooks, l as MigrationPlan, m as NativeTypeExpander, n as ControlPolicySubject, o as INIT_ADDITIVE_POLICY, p as MigrationPlannerResult, r as DefaultRenderer, s as MigrationOperationClass, t as ContractToSchemaIROptions, u as MigrationPlanOperation, v as SqlDescribedContractSpace, w as contractNamespaceToSchemaIR, x as _default, y as SuppressionRecord, z as temporalCodecPreset } from "./control-BWngBFMj.mjs";
4
- export { type CodecControlHooks, type ContractToSchemaIROptions, type ControlPolicySubject, type CreateSqlMigrationPlanOptions, type DefaultRenderer, type DefaultResolver, type EnumNamespaceSchemaResolver, type ExpandNativeTypeInput, type FieldEvent, type FieldEventContext, INIT_ADDITIVE_POLICY, type MigrationOperationClass, type MigrationOperationPolicy, type MigrationPlan, type MigrationPlanOperation, type MigrationPlanner, type MigrationPlannerConflict, type MigrationPlannerResult, type NativeTypeExpander, type PlanFieldEventOperationsOptions, type ResolveIdentityValueInput, type SqlControlAdapterDescriptor, type SqlControlExtensionDescriptor, type SqlControlFamilyInstance, type SqlControlTargetDescriptor, type SqlDescribedContractSpace, type SqlMigrationPlan, type SqlMigrationPlanContractInfo, type SqlMigrationPlanOperation, type SqlMigrationPlanOperationStep, type SqlMigrationPlanOperationTarget, type SqlMigrationPlanner, type SqlMigrationPlannerPlanOptions, type SqlMigrationRunner, type SqlMigrationRunnerErrorCode, type SqlMigrationRunnerExecuteCallbacks, type SqlMigrationRunnerExecuteOptions, type SqlMigrationRunnerFailure, type SqlMigrationRunnerResult, type SqlMigrationRunnerSuccessValue, type SqlPlanTargetDetails, type SqlPlannerConflict, type SqlPlannerConflictKind, type SqlPlannerConflictLocation, type SqlPlannerFailureResult, type SqlPlannerResult, type SqlPlannerSuccessResult, type SqlSchemaDiffFn, type SqlSchemaDiffInput, type SqlSchemaDiffResult, type StorageTypePlanResult, type SuppressionRecord, type TargetMigrationsCapability, assembleAuthoringContributions, buildNativeTypeExpander, contractNamespaceToSchemaIR, contractToSchemaIR, controlPolicyForCall, createMigrationPlan, _default as default, detectDestructiveChanges, extractCodecControlHooks, partitionCallsByControlPolicy, partitionIssuesByControlPolicy, planFieldEventOperations, plannerFailure, plannerSuccess, resolveValueSetValues, runnerFailure, runnerSuccess, temporalAuthoringPresets, temporalCodecPreset, temporalCodecPresetWithPrecision, timestampNowControlDescriptor };
1
+ import { A as SqlPlannerSuccessResult, C as SqlMigrationRunnerSuccessValue, D as SqlPlannerConflictLocation, E as SqlPlannerConflictKind, O as SqlPlannerFailureResult, S as SqlMigrationRunnerResult, T as SqlPlannerConflict, _ as SqlMigrationRunner, a as FieldEvent, b as SqlMigrationRunnerExecuteOptions, c as SqlControlAdapterDescriptor, d as SqlMigrationPlanContractInfo, f as SqlMigrationPlanOperation, g as SqlMigrationPlannerPlanOptions, h as SqlMigrationPlanner, i as ExpandNativeTypeInput, j as StorageTypePlanResult, k as SqlPlannerResult, l as SqlControlExtensionDescriptor, m as SqlMigrationPlanOperationTarget, n as CodecControlHooks, o as FieldEventContext, p as SqlMigrationPlanOperationStep, r as CreateSqlMigrationPlanOptions, s as ResolveIdentityValueInput, u as SqlMigrationPlan, v as SqlMigrationRunnerErrorCode, w as SqlPlanTargetDetails, x as SqlMigrationRunnerFailure, y as SqlMigrationRunnerExecuteCallbacks } from "./types-IqZMLrFC-CcORLTOK.mjs";
2
+ import { n as SqlSchemaDiffInput, r as SqlSchemaDiffResult, t as SqlSchemaDiffFn } from "./schema-differ-DpG_gnur-BgbN2De2.mjs";
3
+ import { A as partitionCallsByControlPolicy, B as timestampNowControlDescriptor, C as buildNativeTypeExpander, D as createMigrationPlan, E as controlPolicyForCall, F as runnerFailure, I as runnerSuccess, L as temporalAuthoringPresets, M as planFieldEventOperations, N as plannerFailure, O as detectDestructiveChanges, P as plannerSuccess, R as temporalCodecPreset, S as assembleAuthoringContributions, T as contractToSchemaIR, _ as SqlControlTargetDescriptor, a as EnumNamespaceSchemaResolver, b as TargetMigrationsCapability, c as MigrationOperationPolicy, d as MigrationPlanner, f as MigrationPlannerConflict, g as SqlControlFamilyInstance, h as PlanFieldEventOperationsOptions, i as DefaultResolver, j as partitionIssuesByControlPolicy, k as extractCodecControlHooks, l as MigrationPlan, m as NativeTypeExpander, n as ControlPolicySubject, o as INIT_ADDITIVE_POLICY, p as MigrationPlannerResult, r as DefaultRenderer, s as MigrationOperationClass, t as ContractToSchemaIROptions, u as MigrationPlanOperation, v as SqlDescribedContractSpace, w as contractNamespaceToSchemaIR, x as _default, y as SuppressionRecord, z as temporalCodecPresetWithPrecision } from "./control-JKCfuZLF.mjs";
4
+ export { type CodecControlHooks, type ContractToSchemaIROptions, type ControlPolicySubject, type CreateSqlMigrationPlanOptions, type DefaultRenderer, type DefaultResolver, type EnumNamespaceSchemaResolver, type ExpandNativeTypeInput, type FieldEvent, type FieldEventContext, INIT_ADDITIVE_POLICY, type MigrationOperationClass, type MigrationOperationPolicy, type MigrationPlan, type MigrationPlanOperation, type MigrationPlanner, type MigrationPlannerConflict, type MigrationPlannerResult, type NativeTypeExpander, type PlanFieldEventOperationsOptions, type ResolveIdentityValueInput, type SqlControlAdapterDescriptor, type SqlControlExtensionDescriptor, type SqlControlFamilyInstance, type SqlControlTargetDescriptor, type SqlDescribedContractSpace, type SqlMigrationPlan, type SqlMigrationPlanContractInfo, type SqlMigrationPlanOperation, type SqlMigrationPlanOperationStep, type SqlMigrationPlanOperationTarget, type SqlMigrationPlanner, type SqlMigrationPlannerPlanOptions, type SqlMigrationRunner, type SqlMigrationRunnerErrorCode, type SqlMigrationRunnerExecuteCallbacks, type SqlMigrationRunnerExecuteOptions, type SqlMigrationRunnerFailure, type SqlMigrationRunnerResult, type SqlMigrationRunnerSuccessValue, type SqlPlanTargetDetails, type SqlPlannerConflict, type SqlPlannerConflictKind, type SqlPlannerConflictLocation, type SqlPlannerFailureResult, type SqlPlannerResult, type SqlPlannerSuccessResult, type SqlSchemaDiffFn, type SqlSchemaDiffInput, type SqlSchemaDiffResult, type StorageTypePlanResult, type SuppressionRecord, type TargetMigrationsCapability, assembleAuthoringContributions, buildNativeTypeExpander, contractNamespaceToSchemaIR, contractToSchemaIR, controlPolicyForCall, createMigrationPlan, _default as default, detectDestructiveChanges, extractCodecControlHooks, partitionCallsByControlPolicy, partitionIssuesByControlPolicy, planFieldEventOperations, plannerFailure, plannerSuccess, runnerFailure, runnerSuccess, temporalAuthoringPresets, temporalCodecPreset, temporalCodecPresetWithPrecision, timestampNowControlDescriptor };
@@ -1,4 +1,4 @@
1
- import { o as extractCodecControlHooks } from "./schema-verify-vtFZbmGq-BNfTr6fU.mjs";
1
+ import { o as extractCodecControlHooks } from "./schema-verify-C_PEdlAr-JK3UgFWU.mjs";
2
2
  import { a as timestampNowControlDescriptor, i as temporalCodecPresetWithPrecision, n as temporalAuthoringPresets, r as temporalCodecPreset } from "./timestamp-now-generator-DRXygu32-DN9Qb1uI.mjs";
3
- import { _ as runnerSuccess, a as contractToSchemaIR, c as createMigrationPlan, d as partitionIssuesByControlPolicy, f as planFieldEventOperations, g as runnerFailure, h as resolveValueSetValues, i as contractNamespaceToSchemaIR, l as detectDestructiveChanges, m as plannerSuccess, n as assembleAuthoringContributions, o as controlPolicyForCall, p as plannerFailure, r as buildNativeTypeExpander, s as control_default, t as INIT_ADDITIVE_POLICY, u as partitionCallsByControlPolicy } from "./control-C1EmRznB.mjs";
4
- export { INIT_ADDITIVE_POLICY, assembleAuthoringContributions, buildNativeTypeExpander, contractNamespaceToSchemaIR, contractToSchemaIR, controlPolicyForCall, createMigrationPlan, control_default as default, detectDestructiveChanges, extractCodecControlHooks, partitionCallsByControlPolicy, partitionIssuesByControlPolicy, planFieldEventOperations, plannerFailure, plannerSuccess, resolveValueSetValues, runnerFailure, runnerSuccess, temporalAuthoringPresets, temporalCodecPreset, temporalCodecPresetWithPrecision, timestampNowControlDescriptor };
3
+ import { a as contractToSchemaIR, c as createMigrationPlan, d as partitionIssuesByControlPolicy, f as planFieldEventOperations, g as runnerSuccess, h as runnerFailure, i as contractNamespaceToSchemaIR, l as detectDestructiveChanges, m as plannerSuccess, n as assembleAuthoringContributions, o as controlPolicyForCall, p as plannerFailure, r as buildNativeTypeExpander, s as control_default, t as INIT_ADDITIVE_POLICY, u as partitionCallsByControlPolicy } from "./control-Bj2zT_YF.mjs";
4
+ export { INIT_ADDITIVE_POLICY, assembleAuthoringContributions, buildNativeTypeExpander, contractNamespaceToSchemaIR, contractToSchemaIR, controlPolicyForCall, createMigrationPlan, control_default as default, detectDestructiveChanges, extractCodecControlHooks, partitionCallsByControlPolicy, partitionIssuesByControlPolicy, planFieldEventOperations, plannerFailure, plannerSuccess, runnerFailure, runnerSuccess, temporalAuthoringPresets, temporalCodecPreset, temporalCodecPresetWithPrecision, timestampNowControlDescriptor };
@@ -1,3 +1,3 @@
1
- import { o as arraysEqual, r as NativeTypeNormalizer } from "./control-adapter-C99J7aEF-Cmay9zFj.mjs";
2
- import { a as VerifySqlSchemaByDiffInput, c as computeSqlDiffVerdict, i as StorageTypeVerdictInput, l as computeStorageTypeVerdict, n as SqlDiffVerdictInput, o as classifyDiffSubjectGranularity, r as StorageTypeVerdict, s as classifySqlDiffIssue, t as SqlDiffVerdict, u as verifySqlSchemaByDiff } from "./diff-DnLtQXpg.mjs";
1
+ import { o as arraysEqual, r as NativeTypeNormalizer } from "./control-adapter-C99J7aEF-BvoknoRl.mjs";
2
+ import { a as VerifySqlSchemaByDiffInput, c as computeSqlDiffVerdict, i as StorageTypeVerdictInput, l as computeStorageTypeVerdict, n as SqlDiffVerdictInput, o as classifyDiffSubjectGranularity, r as StorageTypeVerdict, s as classifySqlDiffIssue, t as SqlDiffVerdict, u as verifySqlSchemaByDiff } from "./diff-DDfez6HZ.mjs";
3
3
  export { type NativeTypeNormalizer, type SqlDiffVerdict, type SqlDiffVerdictInput, type StorageTypeVerdict, type StorageTypeVerdictInput, type VerifySqlSchemaByDiffInput, arraysEqual, classifyDiffSubjectGranularity, classifySqlDiffIssue, computeSqlDiffVerdict, computeStorageTypeVerdict, verifySqlSchemaByDiff };
@@ -1,3 +1,3 @@
1
- import { a as computeStorageTypeVerdict, i as computeSqlDiffVerdict, n as classifyDiffSubjectGranularity, r as classifySqlDiffIssue, s as verifySqlSchemaByDiff } from "./schema-verify-vtFZbmGq-BNfTr6fU.mjs";
1
+ import { a as computeStorageTypeVerdict, i as computeSqlDiffVerdict, n as classifyDiffSubjectGranularity, r as classifySqlDiffIssue, s as verifySqlSchemaByDiff } from "./schema-verify-C_PEdlAr-JK3UgFWU.mjs";
2
2
  import { t as arraysEqual } from "./diff-B16bL_IR.mjs";
3
3
  export { arraysEqual, classifyDiffSubjectGranularity, classifySqlDiffIssue, computeSqlDiffVerdict, computeStorageTypeVerdict, verifySqlSchemaByDiff };
@@ -1,2 +1,2 @@
1
- import { i as SqlSchemaVerifierBase, n as SqlContractSerializerBase, r as SqlEntityHydrationFactory, t as SqlContractSerializer } from "./ir-Cvj3eU-K.mjs";
1
+ import { i as SqlSchemaVerifierBase, n as SqlContractSerializerBase, r as SqlEntityHydrationFactory, t as SqlContractSerializer } from "./ir-VWQX6aGP.mjs";
2
2
  export { SqlContractSerializer, SqlContractSerializerBase, type SqlEntityHydrationFactory, SqlSchemaVerifierBase };
@@ -1,3 +1,3 @@
1
- import { n as SqlContractSerializerBase, t as SqlContractSerializer } from "./sql-contract-serializer-2oBWuxTe-B9hzBBv1.mjs";
1
+ import { n as SqlContractSerializerBase, t as SqlContractSerializer } from "./sql-contract-serializer-2oBWuxTe-Bp9QfUjI.mjs";
2
2
  import { t as SqlSchemaVerifierBase } from "./ir-I-xciGUH.mjs";
3
3
  export { SqlContractSerializer, SqlContractSerializerBase, SqlSchemaVerifierBase };
@@ -1,2 +1,2 @@
1
- import { t as SqlMigration } from "./migration-BvCT6g2N.mjs";
1
+ import { t as SqlMigration } from "./migration-DvCs5-4I.mjs";
2
2
  export { SqlMigration as Migration };
@@ -1,4 +1,4 @@
1
- import { i as sqlFamilyPslBlockDescriptors, n as sqlFamilyAuthoringTypes, r as sqlFamilyEntityTypes, t as sqlFamilyAuthoringFieldPresets } from "./authoring-type-constructors-Blqoa2Ua-DyCmD6mp.mjs";
1
+ import { i as sqlFamilyPslBlockDescriptors, n as sqlFamilyAuthoringTypes, r as sqlFamilyEntityTypes, t as sqlFamilyAuthoringFieldPresets } from "./authoring-type-constructors-Blqoa2Ua-DymjrX_a.mjs";
2
2
  //#region ../../../2-sql/9-family/dist/pack.mjs
3
3
  const sqlFamilyPack = {
4
4
  kind: "family",
@@ -1,2 +1,2 @@
1
- import { _ as toEnumMemberName, a as PslPrinterOptions, b as toModelName, c as PslTypeResolution, d as deriveBackRelationFieldName, f as deriveRelationFieldName, g as pluralize, h as parseRawDefault, i as InferredRelations, l as RelationField, m as mapDefault, n as DefaultMappingResult, o as PslTypeMap, p as inferRelations, r as EnumInfo, s as PslTypeReference, t as DefaultMappingOptions, u as buildChildRelationField, v as toEnumName, y as toFieldName } from "./psl-infer-6je61Z6J.mjs";
1
+ import { _ as toEnumMemberName, a as PslPrinterOptions, b as toModelName, c as PslTypeResolution, d as deriveBackRelationFieldName, f as deriveRelationFieldName, g as pluralize, h as parseRawDefault, i as InferredRelations, l as RelationField, m as mapDefault, n as DefaultMappingResult, o as PslTypeMap, p as inferRelations, r as EnumInfo, s as PslTypeReference, t as DefaultMappingOptions, u as buildChildRelationField, v as toEnumName, y as toFieldName } from "./psl-infer-Dp_hwubv.mjs";
2
2
  export { type DefaultMappingOptions, type DefaultMappingResult, type EnumInfo, type InferredRelations, type PslPrinterOptions, type PslTypeMap, type PslTypeReference, type PslTypeResolution, type RelationField, buildChildRelationField, deriveBackRelationFieldName, deriveRelationFieldName, inferRelations, mapDefault, parseRawDefault, pluralize, toEnumMemberName, toEnumName, toFieldName, toModelName };
@@ -1,2 +1,2 @@
1
- import { a as mapDefault, c as toEnumMemberName, d as toModelName, i as inferRelations, l as toEnumName, n as deriveBackRelationFieldName, o as parseRawDefault, r as deriveRelationFieldName, s as pluralize, t as buildChildRelationField, u as toFieldName } from "./psl-infer-DGftl-HW.mjs";
1
+ import { a as mapDefault, c as toEnumMemberName, d as toModelName, i as inferRelations, l as toEnumName, n as deriveBackRelationFieldName, o as parseRawDefault, r as deriveRelationFieldName, s as pluralize, t as buildChildRelationField, u as toFieldName } from "./psl-infer-f5BgyRKm.mjs";
2
2
  export { buildChildRelationField, deriveBackRelationFieldName, deriveRelationFieldName, inferRelations, mapDefault, parseRawDefault, pluralize, toEnumMemberName, toEnumName, toFieldName, toModelName };
@@ -1,3 +1,3 @@
1
- import { n as resolveStorageTable, t as ResolvedStorageTable } from "./resolve-storage-table-DUwyRJmP.mjs";
2
- import { a as timestampNowRuntimeGenerator, i as sqlRuntimeFamilyDescriptor, n as UNBOUND_DOMAIN_NAMESPACE_ID, r as resolveDomainModel, t as ResolvedDomainModel } from "./runtime-AvfMMERk.mjs";
1
+ import { n as resolveStorageTable, t as ResolvedStorageTable } from "./resolve-storage-table-BJYVl94P.mjs";
2
+ import { a as timestampNowRuntimeGenerator, i as sqlRuntimeFamilyDescriptor, n as UNBOUND_DOMAIN_NAMESPACE_ID, r as resolveDomainModel, t as ResolvedDomainModel } from "./runtime-CiGC1spO.mjs";
3
3
  export { type ResolvedDomainModel, type ResolvedStorageTable, UNBOUND_DOMAIN_NAMESPACE_ID, sqlRuntimeFamilyDescriptor as default, resolveDomainModel, resolveStorageTable, timestampNowRuntimeGenerator };
@@ -1,6 +1,6 @@
1
1
  import { a as ReferentialAction, i as ForeignKeyReferenceInput, n as ForeignKeyInput } from "./foreign-key-BSy9u4O4-BnsOe5Nf.mjs";
2
2
  import { i as UniqueConstraintInput, n as PrimaryKeyInput } from "./unique-constraint-jQWfH7dg-zLWtFp99.mjs";
3
- import { r as IndexInput } from "./sql-index-DsI8HAeK-BJsn-jvD.mjs";
3
+ import { r as IndexInput } from "./sql-index-DsI8HAeK-SazZYeA2.mjs";
4
4
  //#region ../../../2-sql/1-core/contract/dist/foreign-key-materialization.d.mts
5
5
  //#region src/foreign-key-materialization.d.ts
6
6
  type BackingIndexCandidates = {
@@ -62,4 +62,4 @@ interface MaterializedTableConstraints {
62
62
  declare function materializeForeignKeysAndIndexes(tableName: string, foreignKeys: readonly ForeignKeyAuthoringInput[], declaredIndexes: readonly IndexInput[], uniques: readonly UniqueConstraintInput[], primaryKey: PrimaryKeyInput | undefined): MaterializedTableConstraints;
63
63
  //#endregion
64
64
  export { isBackedByColumnKeys as a, backingIndexColumnKeys as i, ForeignKeyAuthoringInput as n, materializeForeignKeysAndIndexes as o, MaterializedTableConstraints as r, BackingIndexCandidates as t };
65
- //# sourceMappingURL=foreign-key-materialization-Ca-wRbmj.d.mts.map
65
+ //# sourceMappingURL=foreign-key-materialization-CetaZvuu.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"foreign-key-materialization-Ca-wRbmj.d.mts","names":[],"sources":["../../../../2-sql/1-core/contract/dist/foreign-key-materialization.d.mts"],"mappings":";;;;;KAIK;WACM;aACE;;WAEF;aACE;;WAEF;aACE;;;;;;;;;;;;;;iBAcI,uBAAuB,OAAO;;;;;;iBAM9B,qBAAqB,4BAA4B;;;;;;UAMxD;WACC,QAAQ;WACR,QAAQ;WACR;WACA,WAAW;WACX,WAAW;WACX;WACA;;UAED;WACC,sBAAsB;WACtB,kBAAkB;;;;;;;;;;;iBAWZ,iCAAiC,mBAAmB,sBAAsB,4BAA4B,0BAA0B,cAAc,kBAAkB,yBAAyB,YAAY,8BAA8B"}
1
+ {"version":3,"file":"foreign-key-materialization-CetaZvuu.d.mts","names":[],"sources":["../../../../2-sql/1-core/contract/dist/foreign-key-materialization.d.mts"],"mappings":";;;;;KAIK;WACM;aACE;;WAEF;aACE;;WAEF;aACE;;;;;;;;;;;;;;iBAcI,uBAAuB,OAAO;;;;;;iBAM9B,qBAAqB,4BAA4B;;;;;;UAMxD;WACC,QAAQ;WACR,QAAQ;WACR;WACA,WAAW;WACX,WAAW;WACX;WACA;;UAED;WACC,sBAAsB;WACtB,kBAAkB;;;;;;;;;;;iBAWZ,iCAAiC,mBAAmB,sBAAsB,4BAA4B,0BAA0B,cAAc,kBAAkB,yBAAyB,YAAY,8BAA8B"}
@@ -1,4 +1,4 @@
1
- import { n as lowerAuthoredIndex } from "./index-naming-BoGBcMmI-DiJAr66H.mjs";
1
+ import { n as lowerAuthoredIndex } from "./index-naming-BoGBcMmI-DE0Eu71F.mjs";
2
2
  //#region ../../../2-sql/1-core/contract/dist/foreign-key-materialization.mjs
3
3
  /**
4
4
  * The column-list keys (`"colA,colB"`, order preserved) a table's own
@@ -69,4 +69,4 @@ function materializeForeignKeysAndIndexes(tableName, foreignKeys, declaredIndexe
69
69
  //#endregion
70
70
  export { isBackedByColumnKeys as n, materializeForeignKeysAndIndexes as r, backingIndexColumnKeys as t };
71
71
 
72
- //# sourceMappingURL=foreign-key-materialization-HI7BIQrG.mjs.map
72
+ //# sourceMappingURL=foreign-key-materialization-fH6cObko.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"foreign-key-materialization-HI7BIQrG.mjs","names":[],"sources":["../../../../2-sql/1-core/contract/dist/foreign-key-materialization.mjs"],"sourcesContent":["import { n as lowerAuthoredIndex } from \"./index-naming-BoGBcMmI.mjs\";\n//#region src/foreign-key-materialization.ts\n/**\n* The column-list keys (`\"colA,colB\"`, order preserved) a table's own\n* indexes, unique constraints, and primary key already back. A foreign key\n* whose source columns join to one of these keys needs no separately\n* derived backing index.\n*\n* Shared by {@link isBackedByColumnKeys}'s callers: `materializeForeignKeysAndIndexes`\n* (deriving the discrete backing-index entities persisted at `contract emit`)\n* and the postgres PSL inferrer (deciding whether an introspected relation\n* needs an explicit `index: false`).\n*/\nfunction backingIndexColumnKeys(table) {\n\treturn [\n\t\t...table.indexes.flatMap((index) => index.columns !== void 0 ? [index.columns.join(\",\")] : []),\n\t\t...table.uniques.map((unique) => unique.columns.join(\",\")),\n\t\t...table.primaryKey ? [table.primaryKey.columns.join(\",\")] : []\n\t];\n}\n/**\n* Whether `columns`, in order, matches one of `backingKeys` (see\n* {@link backingIndexColumnKeys}). Order-sensitive: `(a, b)` does not\n* satisfy a backing index declared as `(b, a)`.\n*/\nfunction isBackedByColumnKeys(columns, backingKeys) {\n\treturn backingKeys.includes(columns.join(\",\"));\n}\n/**\n* Lowers a table's authored foreign keys into the discrete entities\n* `contract.json` persists: a `constraint: false` FK contributes no\n* `foreignKeys[]` entry, and an `index: true` FK whose columns aren't already\n* backed by a declared index/unique/primary-key contributes a wire-named\n* `indexes[]` entry (default prefix + content-hash wire name). Declared\n* indexes always survive unchanged; a second FK sharing already-synthesized\n* backing columns does not mint a duplicate index.\n*/\nfunction materializeForeignKeysAndIndexes(tableName, foreignKeys, declaredIndexes, uniques, primaryKey) {\n\tconst satisfiedIndexColumns = new Set(backingIndexColumnKeys({\n\t\tindexes: declaredIndexes,\n\t\tuniques,\n\t\tprimaryKey\n\t}));\n\tconst synthesizedIndexes = [];\n\tconst materializedForeignKeys = [];\n\tfor (const { constraint, index, ...reference } of foreignKeys) {\n\t\tif (constraint !== false) materializedForeignKeys.push(reference);\n\t\tif (index !== false) {\n\t\t\tconst key = reference.source.columns.join(\",\");\n\t\t\tif (!satisfiedIndexColumns.has(key)) {\n\t\t\t\tsynthesizedIndexes.push(lowerAuthoredIndex(tableName, {\n\t\t\t\t\tcolumns: reference.source.columns,\n\t\t\t\t\twhere: void 0,\n\t\t\t\t\tunique: void 0,\n\t\t\t\t\tmap: void 0,\n\t\t\t\t\tname: void 0,\n\t\t\t\t\ttype: void 0,\n\t\t\t\t\toptions: void 0\n\t\t\t\t}));\n\t\t\t\tsatisfiedIndexColumns.add(key);\n\t\t\t}\n\t\t}\n\t}\n\treturn {\n\t\tforeignKeys: materializedForeignKeys,\n\t\tindexes: [...declaredIndexes, ...synthesizedIndexes]\n\t};\n}\n//#endregion\nexport { backingIndexColumnKeys, isBackedByColumnKeys, materializeForeignKeysAndIndexes };\n\n//# sourceMappingURL=foreign-key-materialization.mjs.map"],"mappings":";;;;;;;;;;;;;AAaA,SAAS,uBAAuB,OAAO;CACtC,OAAO;EACN,GAAG,MAAM,QAAQ,SAAS,UAAU,MAAM,YAAY,KAAK,IAAI,CAAC,MAAM,QAAQ,KAAK,GAAG,CAAC,IAAI,CAAC,CAAC;EAC7F,GAAG,MAAM,QAAQ,KAAK,WAAW,OAAO,QAAQ,KAAK,GAAG,CAAC;EACzD,GAAG,MAAM,aAAa,CAAC,MAAM,WAAW,QAAQ,KAAK,GAAG,CAAC,IAAI,CAAC;CAC/D;AACD;;;;;;AAMA,SAAS,qBAAqB,SAAS,aAAa;CACnD,OAAO,YAAY,SAAS,QAAQ,KAAK,GAAG,CAAC;AAC9C;;;;;;;;;;AAUA,SAAS,iCAAiC,WAAW,aAAa,iBAAiB,SAAS,YAAY;CACvG,MAAM,wBAAwB,IAAI,IAAI,uBAAuB;EAC5D,SAAS;EACT;EACA;CACD,CAAC,CAAC;CACF,MAAM,qBAAqB,CAAC;CAC5B,MAAM,0BAA0B,CAAC;CACjC,KAAK,MAAM,EAAE,YAAY,OAAO,GAAG,eAAe,aAAa;EAC9D,IAAI,eAAe,OAAO,wBAAwB,KAAK,SAAS;EAChE,IAAI,UAAU,OAAO;GACpB,MAAM,MAAM,UAAU,OAAO,QAAQ,KAAK,GAAG;GAC7C,IAAI,CAAC,sBAAsB,IAAI,GAAG,GAAG;IACpC,mBAAmB,KAAK,mBAAmB,WAAW;KACrD,SAAS,UAAU,OAAO;KAC1B,OAAO,KAAK;KACZ,QAAQ,KAAK;KACb,KAAK,KAAK;KACV,MAAM,KAAK;KACX,MAAM,KAAK;KACX,SAAS,KAAK;IACf,CAAC,CAAC;IACF,sBAAsB,IAAI,GAAG;GAC9B;EACD;CACD;CACA,OAAO;EACN,aAAa;EACb,SAAS,CAAC,GAAG,iBAAiB,GAAG,kBAAkB;CACpD;AACD"}
1
+ {"version":3,"file":"foreign-key-materialization-fH6cObko.mjs","names":[],"sources":["../../../../2-sql/1-core/contract/dist/foreign-key-materialization.mjs"],"sourcesContent":["import { n as lowerAuthoredIndex } from \"./index-naming-BoGBcMmI.mjs\";\n//#region src/foreign-key-materialization.ts\n/**\n* The column-list keys (`\"colA,colB\"`, order preserved) a table's own\n* indexes, unique constraints, and primary key already back. A foreign key\n* whose source columns join to one of these keys needs no separately\n* derived backing index.\n*\n* Shared by {@link isBackedByColumnKeys}'s callers: `materializeForeignKeysAndIndexes`\n* (deriving the discrete backing-index entities persisted at `contract emit`)\n* and the postgres PSL inferrer (deciding whether an introspected relation\n* needs an explicit `index: false`).\n*/\nfunction backingIndexColumnKeys(table) {\n\treturn [\n\t\t...table.indexes.flatMap((index) => index.columns !== void 0 ? [index.columns.join(\",\")] : []),\n\t\t...table.uniques.map((unique) => unique.columns.join(\",\")),\n\t\t...table.primaryKey ? [table.primaryKey.columns.join(\",\")] : []\n\t];\n}\n/**\n* Whether `columns`, in order, matches one of `backingKeys` (see\n* {@link backingIndexColumnKeys}). Order-sensitive: `(a, b)` does not\n* satisfy a backing index declared as `(b, a)`.\n*/\nfunction isBackedByColumnKeys(columns, backingKeys) {\n\treturn backingKeys.includes(columns.join(\",\"));\n}\n/**\n* Lowers a table's authored foreign keys into the discrete entities\n* `contract.json` persists: a `constraint: false` FK contributes no\n* `foreignKeys[]` entry, and an `index: true` FK whose columns aren't already\n* backed by a declared index/unique/primary-key contributes a wire-named\n* `indexes[]` entry (default prefix + content-hash wire name). Declared\n* indexes always survive unchanged; a second FK sharing already-synthesized\n* backing columns does not mint a duplicate index.\n*/\nfunction materializeForeignKeysAndIndexes(tableName, foreignKeys, declaredIndexes, uniques, primaryKey) {\n\tconst satisfiedIndexColumns = new Set(backingIndexColumnKeys({\n\t\tindexes: declaredIndexes,\n\t\tuniques,\n\t\tprimaryKey\n\t}));\n\tconst synthesizedIndexes = [];\n\tconst materializedForeignKeys = [];\n\tfor (const { constraint, index, ...reference } of foreignKeys) {\n\t\tif (constraint !== false) materializedForeignKeys.push(reference);\n\t\tif (index !== false) {\n\t\t\tconst key = reference.source.columns.join(\",\");\n\t\t\tif (!satisfiedIndexColumns.has(key)) {\n\t\t\t\tsynthesizedIndexes.push(lowerAuthoredIndex(tableName, {\n\t\t\t\t\tcolumns: reference.source.columns,\n\t\t\t\t\twhere: void 0,\n\t\t\t\t\tunique: void 0,\n\t\t\t\t\tmap: void 0,\n\t\t\t\t\tname: void 0,\n\t\t\t\t\ttype: void 0,\n\t\t\t\t\toptions: void 0\n\t\t\t\t}));\n\t\t\t\tsatisfiedIndexColumns.add(key);\n\t\t\t}\n\t\t}\n\t}\n\treturn {\n\t\tforeignKeys: materializedForeignKeys,\n\t\tindexes: [...declaredIndexes, ...synthesizedIndexes]\n\t};\n}\n//#endregion\nexport { backingIndexColumnKeys, isBackedByColumnKeys, materializeForeignKeysAndIndexes };\n\n//# sourceMappingURL=foreign-key-materialization.mjs.map"],"mappings":";;;;;;;;;;;;;AAaA,SAAS,uBAAuB,OAAO;CACtC,OAAO;EACN,GAAG,MAAM,QAAQ,SAAS,UAAU,MAAM,YAAY,KAAK,IAAI,CAAC,MAAM,QAAQ,KAAK,GAAG,CAAC,IAAI,CAAC,CAAC;EAC7F,GAAG,MAAM,QAAQ,KAAK,WAAW,OAAO,QAAQ,KAAK,GAAG,CAAC;EACzD,GAAG,MAAM,aAAa,CAAC,MAAM,WAAW,QAAQ,KAAK,GAAG,CAAC,IAAI,CAAC;CAC/D;AACD;;;;;;AAMA,SAAS,qBAAqB,SAAS,aAAa;CACnD,OAAO,YAAY,SAAS,QAAQ,KAAK,GAAG,CAAC;AAC9C;;;;;;;;;;AAUA,SAAS,iCAAiC,WAAW,aAAa,iBAAiB,SAAS,YAAY;CACvG,MAAM,wBAAwB,IAAI,IAAI,uBAAuB;EAC5D,SAAS;EACT;EACA;CACD,CAAC,CAAC;CACF,MAAM,qBAAqB,CAAC;CAC5B,MAAM,0BAA0B,CAAC;CACjC,KAAK,MAAM,EAAE,YAAY,OAAO,GAAG,eAAe,aAAa;EAC9D,IAAI,eAAe,OAAO,wBAAwB,KAAK,SAAS;EAChE,IAAI,UAAU,OAAO;GACpB,MAAM,MAAM,UAAU,OAAO,QAAQ,KAAK,GAAG;GAC7C,IAAI,CAAC,sBAAsB,IAAI,GAAG,GAAG;IACpC,mBAAmB,KAAK,mBAAmB,WAAW;KACrD,SAAS,UAAU,OAAO;KAC1B,OAAO,KAAK;KACZ,QAAQ,KAAK;KACb,KAAK,KAAK;KACV,MAAM,KAAK;KACX,MAAM,KAAK;KACX,SAAS,KAAK;IACf,CAAC,CAAC;IACF,sBAAsB,IAAI,GAAG;GAC9B;EACD;CACD;CACA,OAAO;EACN,aAAa;EACb,SAAS,CAAC,GAAG,iBAAiB,GAAG,kBAAkB;CACpD;AACD"}
@@ -1,18 +1,18 @@
1
- import { c as SqlStorage } from "./sql-storage-B0QwiTg6-B8DVctJm.mjs";
2
- import "./types-wy2-Y8wQ.mjs";
3
- import { r as SqlOperationDescriptors } from "./index-BZF7Wehu.mjs";
4
- import { Et as SqlCodecCallContext, O as ContractCodecRegistry, T as CodecRef$1, lt as LoweredParam, m as AnyQueryAst, ut as LoweredStatement, x as Codec$1 } from "./types-BwePDa3m-BVrPIi8V.mjs";
5
- import { E as SqlQueryable, _ as SqlConnection, o as MarkerReadResult, t as Adapter, v as SqlDriver } from "./ast-Bb6loOw9.mjs";
6
- import { a as Expression, i as CodecValue, o as RawCodecInferer, r as CodecTypesBase } from "./expression-KPBpeH4T.mjs";
7
- import { t as SqlExecutionPlan } from "./sql-execution-plan-Da_d82pz-IHBEmGSa.mjs";
8
- import { t as SqlQueryPlan } from "./plan-Bmp5R9sq-DKMRkx6Z.mjs";
9
- import "./plan-mKgmSe0R.mjs";
10
- import { n as CodecDescriptorRegistry, r as ExecutionContext } from "./query-lane-context-DjyAyYht-HDNYE_oF.mjs";
11
- import "./query-lane-context-Dcj4eXUl.mjs";
12
- import { i as SqlParamRefMutator } from "./middleware-eb7YwdD4-D0M6ACQ-.mjs";
13
- import "./middleware-ChwIEKBC.mjs";
14
- import { y as RuntimeScope } from "./types-dD8JJfeD-BOvMw2Iu.mjs";
15
- import "./types-Cty2fvYD.mjs";
1
+ import { c as SqlStorage } from "./sql-storage-aEsH6Fnv-_bWH3uY3.mjs";
2
+ import "./types-BL_h3id0.mjs";
3
+ import { r as SqlOperationDescriptors } from "./index-avHHFCFT.mjs";
4
+ import { Et as SqlCodecCallContext, O as ContractCodecRegistry, T as CodecRef$1, lt as LoweredParam, m as AnyQueryAst, ut as LoweredStatement, x as Codec$1 } from "./types-BwePDa3m-CrVQ_8YI.mjs";
5
+ import { E as SqlQueryable, _ as SqlConnection, o as MarkerReadResult, t as Adapter, v as SqlDriver } from "./ast-UfF480P2.mjs";
6
+ import { a as Expression, i as CodecValue, o as RawCodecInferer, r as CodecTypesBase } from "./expression-CBHseNtv.mjs";
7
+ import { t as SqlExecutionPlan } from "./sql-execution-plan-Da_d82pz-g3khvnbo.mjs";
8
+ import { t as SqlQueryPlan } from "./plan-Bmp5R9sq-mVFXvLM7.mjs";
9
+ import "./plan-Cl6aCuij.mjs";
10
+ import { n as CodecDescriptorRegistry, r as ExecutionContext } from "./query-lane-context-DjyAyYht-DdovdGjc.mjs";
11
+ import "./query-lane-context-BhDJZFMh.mjs";
12
+ import { i as SqlParamRefMutator } from "./middleware-eb7YwdD4-CiyaANOv.mjs";
13
+ import "./middleware-B8QoWWIx.mjs";
14
+ import { y as RuntimeScope } from "./types-dD8JJfeD-CS9uMlzW.mjs";
15
+ import "./types--gTlnnvl.mjs";
16
16
  import { Contract, JsonValue, PlanMeta } from "@prisma/orm-framework/contract/types";
17
17
  import { AnyCodecDescriptor, CodecDescriptor } from "@prisma/orm-framework/components/codec";
18
18
  import { AfterExecuteResult, AfterExecuteResult as AfterExecuteResult$1, AsyncIterableResult, ExecutionPlan, RuntimeCore, RuntimeExecuteOptions, RuntimeLog, RuntimeLog as Log, RuntimeMiddleware, RuntimeMiddlewareContext } from "@prisma/orm-framework/components/runtime";
@@ -507,4 +507,4 @@ interface LintsOptions {
507
507
  declare function lints(options?: LintsOptions): SqlMiddleware;
508
508
  //#endregion
509
509
  export { RuntimeQueryable as A, SqlRuntimeDriverInstance as B, PreparedStatementImpl as C, RuntimeFamilyAdapter as D, RuntimeConnection as E, SqlMiddleware as F, TelemetryOutcome as G, SqlRuntimeExtensionInstance as H, SqlMiddlewareContext as I, createExecutionContext as J, TransactionContext as K, SqlRuntimeAdapterDescriptor as L, RuntimeTransaction as M, SqlExecutionStack as N, RuntimeMutationDefaultGenerator as O, SqlExecutionStackWithDriver as P, withTransaction as Q, SqlRuntimeAdapterInstance as R, PreparedStatement as S, Runtime as T, SqlRuntimeTargetDescriptor as U, SqlRuntimeExtensionDescriptor as V, SqlStaticContributions as W, deriveParamMetadata as X, createSqlExecutionStack as Y, encodeParamsWithMetadata as Z, GeneratorStability as _, budgets as a, ParamsFromDeclaration as b, lints as c, validateContractCodecMappings as d, BindSiteParams as f, DeclaredNullable as g, DeclaredCodecId as h, Log as i, RuntimeTelemetryEvent as j, RuntimeParameterizedCodecDescriptor as k, lowerSqlPlan as l, Declaration as m, BudgetsOptions as n, createAstCodecRegistry as o, ConnectionProvider as p, VerifyMarkerOption as q, LintsOptions as r, extractCodecIds as s, AfterExecuteResult$1 as t, validateCodecRegistryCompleteness as u, MarkerReader as v, PreparedStatementInternals as w, PrepareCallback as x, ParamSpec as y, SqlRuntimeBase as z };
510
- //# sourceMappingURL=index-BOhWLVvH.d.mts.map
510
+ //# sourceMappingURL=index-COS9qF9d.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index-BOhWLVvH.d.mts","names":[],"sources":["../../../../2-sql/5-runtime/dist/prepared-statement-D4zOlprk.d.mts","../../../../2-sql/5-runtime/dist/index.d.mts"],"mappings":";;;;;;;;;;;;;;;;;;;;;UAaU;WACC,OAAO;WACP;;iBAEM,oBAAoB,KAAK,uBAAuB;iBAChD,yBAAyB,4BAA4B,mBAAmB,iBAAiB,KAAK,qBAAqB,iBAAiB,wBAAwB;;;UAGnK,6BAA6B;WAC5B,UAAU,SAAS;;;;;;UAMpB;WACC,KAAK;WACL,MAAM;;UAEP,cAAc,kBAAkB,0BAA0B,iCAAiC,kBAAkB,kBAAkB,mBAAmB;WACjJ;;;;;;;;;;;;;;;;;;;EAmBT,eAAe,OAAO,WAAW,KAAK,uBAAuB,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;EA0BrE,eAAe,MAAM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AoB;EACzM,cAAc,QAAQ;UACd;EACR,aAAa;EACb,SAAS;UACD;UACA;UACA;;;UAGA;EACR,cAAc,QAAQ;;iBAEP,gBAAgB,GAAG,SAAS,oBAAoB,KAAK,IAAI,uBAAuB,YAAY,KAAK,QAAQ;;;UAGhH;WACC;WACA,KAAK;WACL,MAAM;WACN,gBAAgB;WAChB,eAAe;WACf,wBAAwB;;cAErB,sBAAsB,QAAQ,gBAAgB,kBAAkB,QAAQ,MAAM;WACjF;WACA,KAAK;WACL,MAAM;WACN,gBAAgB;WAChB,eAAe;WACf,wBAAwB;EACjC,YAAY,WAAW;EACvB,QAAQ,QAAQ,kBAAkB,QAAQ,QAAQ,UAAU,wBAAwB,oBAAoB;;;;;;;;;;;;;;iBCrazF,uBAAuB,aAAa,0BAA0B;;;iBAG9D,gBAAgB,UAAU,SAAS,cAAc;iBACjD,8BAA8B,UAAU,yBAAyB,UAAU,SAAS;iBACpF,kCAAkC,UAAU,yBAAyB,UAAU,SAAS;;;;;;;;;;;;iBAYxF,aAAa,KAAK,SAAS,QAAQ,aAAa,SAAS,aAAa,mBAAmB,UAAU,SAAS,aAAa,WAAW,aAAa,OAAO,iBAAiB;;;UAGhL;WACC;WACA;WACA,YAAY;WACZ;WACA;aACE;aACA;;;iBAGI,QAAQ,UAAU,iBAAiB;;;UAG1C;WACC;aACE;aACA;aACA;aACA;aACA;;WAEF;;;;;;;;;;;;;;;;iBAgBM,MAAM,UAAU,eAAe"}
1
+ {"version":3,"file":"index-COS9qF9d.d.mts","names":[],"sources":["../../../../2-sql/5-runtime/dist/prepared-statement-D4zOlprk.d.mts","../../../../2-sql/5-runtime/dist/index.d.mts"],"mappings":";;;;;;;;;;;;;;;;;;;;;UAaU;WACC,OAAO;WACP;;iBAEM,oBAAoB,KAAK,uBAAuB;iBAChD,yBAAyB,4BAA4B,mBAAmB,iBAAiB,KAAK,qBAAqB,iBAAiB,wBAAwB;;;UAGnK,6BAA6B;WAC5B,UAAU,SAAS;;;;;;UA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{ w as QueryOperationTypeEntry } from "./types-BpPwiK2b-DCMVWQ_F.mjs";
2
+ import "./types-BL_h3id0.mjs";
3
3
  import { OperationDescriptor, OperationDescriptors, OperationRegistry } from "@prisma/orm-framework/operations";
4
4
  //#region ../../../2-sql/1-core/operations/dist/index.d.mts
5
5
  //#region src/index.d.ts
@@ -22,4 +22,4 @@ type SqlOperationRegistry = OperationRegistry<SqlOperationEntry>;
22
22
  declare function createSqlOperationRegistry(): SqlOperationRegistry;
23
23
  //#endregion
24
24
  export { SqlOperationRegistry as a, SqlOperationEntry as i, SqlOperationDescriptor as n, createSqlOperationRegistry as o, SqlOperationDescriptors as r, SqlLoweringSpec as t };
25
- //# sourceMappingURL=index-BZF7Wehu.d.mts.map
25
+ //# sourceMappingURL=index-avHHFCFT.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index-BZF7Wehu.d.mts","names":[],"sources":["../../../../2-sql/1-core/operations/dist/index.d.mts"],"mappings":";;;;;UAGU;WACC;WACA;WACA;;;;;;;;;KASN,oBAAoB;KACpB,yBAAyB,oBAAoB;KAC7C,0BAA0B,qBAAqB;KAC/C,uBAAuB,kBAAkB;iBAC7B,8BAA8B"}
1
+ {"version":3,"file":"index-avHHFCFT.d.mts","names":[],"sources":["../../../../2-sql/1-core/operations/dist/index.d.mts"],"mappings":";;;;;UAGU;WACC;WACA;WACA;;;;;;;;;KASN,oBAAoB;KACpB,yBAAyB,oBAAoB;KAC7C,0BAA0B,qBAAqB;KAC/C,uBAAuB,kBAAkB;iBAC7B,8BAA8B"}
@@ -1,4 +1,4 @@
1
- import { r as IndexInput } from "./sql-index-DsI8HAeK-BJsn-jvD.mjs";
1
+ import { r as IndexInput } from "./sql-index-DsI8HAeK-SazZYeA2.mjs";
2
2
  import { AuthoringWarning, AuthoringWarningSink } from "@prisma/orm-framework/components/authoring";
3
3
  //#region ../../../2-sql/1-core/contract/dist/index-naming.d.mts
4
4
  //#region src/index-naming.d.ts
@@ -59,4 +59,4 @@ declare function exactNameBodyWarning(subject: 'index' | 'policy', exactName: st
59
59
  declare function lowerAuthoredIndex(tableName: string, authored: AuthoredIndexInput, warnings?: AuthoringWarningSink): IndexInput;
60
60
  //#endregion
61
61
  export { lowerAuthoredIndex as i, AuthoredIndexMethod as n, exactNameBodyWarning as r, AuthoredIndexInput as t };
62
- //# sourceMappingURL=index-naming-BZWoh45T.d.mts.map
62
+ //# sourceMappingURL=index-naming-BfRyBZR4.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index-naming-BZWoh45T.d.mts","names":[],"sources":["../../../../2-sql/1-core/contract/dist/index-naming.d.mts"],"mappings":";;;;;;;;KAOK;WACM;WACA;;WAEA;WACA;;;;;;;;;KASN;WACM;WACA;;WAEA;WACA,SAAS;;;;;;;;;KASf,qBAAqB,wBAAwB;WACvC;WACA;WACA;WACA;;;;;;;;;;iBAUM,qBAAqB,6BAA6B,oBAAoB;;;;;;;;iBAQtE,mBAAmB,mBAAmB,UAAU,oBAAoB,WAAW,uBAAuB"}
1
+ {"version":3,"file":"index-naming-BfRyBZR4.d.mts","names":[],"sources":["../../../../2-sql/1-core/contract/dist/index-naming.d.mts"],"mappings":";;;;;;;;KAOK;WACM;WACA;;WAEA;WACA;;;;;;;;;KASN;WACM;WACA;;WAEA;WACA,SAAS;;;;;;;;;KASf,qBAAqB,wBAAwB;WACvC;WACA;WACA;WACA;;;;;;;;;;iBAUM,qBAAqB,6BAA6B,oBAAoB;;;;;;;;iBAQtE,mBAAmB,mBAAmB,UAAU,oBAAoB,WAAW,uBAAuB"}