@prisma/orm-family-sql 8.0.0-rc.19-dev.9 → 8.0.0-rc.19-dev.10

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 (557) hide show
  1. package/dist/{aggregate-descriptor-registry-Dd7Uj7DJ.mjs → aggregate-descriptor-registry-ZrKjxwQe.mjs} +3 -3
  2. package/dist/aggregate-descriptor-registry-ZrKjxwQe.mjs.map +1 -0
  3. package/dist/{ast-BJs2669T.mjs → ast-D0miQ1B6.mjs} +3 -3
  4. package/dist/ast-D0miQ1B6.mjs.map +1 -0
  5. package/dist/{ast-BySjcUKx.d.mts → ast-De1p3DM9.d.mts} +5 -5
  6. package/dist/ast-De1p3DM9.d.mts.map +1 -0
  7. package/dist/{attribute-specs-BsaemIyu.d.mts → attribute-specs-CTEOxEJS.d.mts} +5 -5
  8. package/dist/attribute-specs-CTEOxEJS.d.mts.map +1 -0
  9. package/dist/{authored-check-naming-CIX7Bbyh.mjs → authored-check-naming-BHGJhjqn.mjs} +5 -5
  10. package/dist/authored-check-naming-BHGJhjqn.mjs.map +1 -0
  11. package/dist/{authored-check-naming-CK6T_Dfh.d.mts → authored-check-naming-D-o196ry.d.mts} +3 -3
  12. package/dist/authored-check-naming-D-o196ry.d.mts.map +1 -0
  13. package/dist/{authoring-entity-types-CgKIgWq5-Dxf_T0Ih.d.mts → authoring-entity-types-CgKIgWq5-CjIkEw1m.d.mts} +3 -3
  14. package/dist/authoring-entity-types-CgKIgWq5-CjIkEw1m.d.mts.map +1 -0
  15. package/dist/builder.d.mts +3 -3
  16. package/dist/builder__runtime.d.mts +11 -11
  17. package/dist/builder__runtime.d.mts.map +1 -1
  18. package/dist/builder__runtime.mjs +8 -8
  19. package/dist/builder__runtime.mjs.map +1 -1
  20. package/dist/builder__types.d.mts +5 -5
  21. package/dist/{canonicalization-hooks-dmXkOR4a.mjs → canonicalization-hooks-Ce1v_TDl.mjs} +2 -2
  22. package/dist/canonicalization-hooks-Ce1v_TDl.mjs.map +1 -0
  23. package/dist/{canonicalization-hooks-CYnW_sGn.d.mts → canonicalization-hooks-DyapQ0my.d.mts} +2 -2
  24. package/dist/canonicalization-hooks-DyapQ0my.d.mts.map +1 -0
  25. package/dist/{check-constraint-B7qGu6rc-CBVYAMwG.d.mts → check-constraint-B7qGu6rc-Bk2ezWXu.d.mts} +4 -4
  26. package/dist/check-constraint-B7qGu6rc-Bk2ezWXu.d.mts.map +1 -0
  27. package/dist/{codec-descriptor-registry-MG2bFxW_.mjs → codec-descriptor-registry-CiiFzMtb.mjs} +4 -4
  28. package/dist/codec-descriptor-registry-CiiFzMtb.mjs.map +1 -0
  29. package/dist/collection-methods-Bc8v7iVP.d.mts +1 -0
  30. package/dist/{collection-methods-D2UnCS0S-CRYoAOtB.d.mts → collection-methods-D2UnCS0S-CjdGDJ5y.d.mts} +5 -5
  31. package/dist/collection-methods-D2UnCS0S-CjdGDJ5y.d.mts.map +1 -0
  32. package/dist/{config-types-D8quwydu.d.mts → config-types-DGD0sYRS.d.mts} +5 -5
  33. package/dist/config-types-DGD0sYRS.d.mts.map +1 -0
  34. package/dist/{config-types-BbBY5_GQ.mjs → config-types-DkEeq_qq.mjs} +3 -3
  35. package/dist/config-types-DkEeq_qq.mjs.map +1 -0
  36. package/dist/{contract-builder-xFftVmD8.d.mts → contract-builder-BrpdASoV.d.mts} +12 -12
  37. package/dist/contract-builder-BrpdASoV.d.mts.map +1 -0
  38. package/dist/{contract-builder-D7cTmhfs.mjs → contract-builder-Dp7AOnHB.mjs} +8 -8
  39. package/dist/contract-builder-Dp7AOnHB.mjs.map +1 -0
  40. package/dist/contract-emitter.d.mts +1 -1
  41. package/dist/contract-emitter.d.mts.map +1 -1
  42. package/dist/contract-emitter.mjs +1 -1
  43. package/dist/{contract-errors-BCN6RVI5-5IHBF_lg.mjs → contract-errors-BCN6RVI5-DoH6b_KZ.mjs} +2 -2
  44. package/dist/contract-errors-BCN6RVI5-DoH6b_KZ.mjs.map +1 -0
  45. package/dist/contract-prisma7__provider.d.mts +3 -3
  46. package/dist/contract-prisma7__provider.d.mts.map +1 -1
  47. package/dist/contract-prisma7__provider.mjs +10 -10
  48. package/dist/contract-prisma7__provider.mjs.map +1 -1
  49. package/dist/contract-psl.d.mts +4 -4
  50. package/dist/contract-psl.d.mts.map +1 -1
  51. package/dist/contract-psl.mjs +1 -1
  52. package/dist/contract-psl__attribute-specs.d.mts +1 -1
  53. package/dist/contract-psl__attribute-specs.mjs +1 -1
  54. package/dist/contract-psl__default-table-name.d.mts +1 -1
  55. package/dist/contract-psl__default-table-name.d.mts.map +1 -1
  56. package/dist/contract-psl__default-table-name.mjs +1 -1
  57. package/dist/contract-psl__diagnostics.d.mts +1 -1
  58. package/dist/contract-psl__diagnostics.d.mts.map +1 -1
  59. package/dist/contract-psl__diagnostics.mjs +1 -1
  60. package/dist/contract-psl__map-names.d.mts +1 -1
  61. package/dist/contract-psl__map-names.d.mts.map +1 -1
  62. package/dist/contract-psl__map-names.mjs +2 -2
  63. package/dist/contract-psl__map-names.mjs.map +1 -1
  64. package/dist/contract-psl__provider.d.mts +3 -3
  65. package/dist/contract-psl__provider.d.mts.map +1 -1
  66. package/dist/contract-psl__provider.mjs +3 -3
  67. package/dist/contract-psl__provider.mjs.map +1 -1
  68. package/dist/contract-ts.d.mts +4 -4
  69. package/dist/contract-ts.mjs +4 -4
  70. package/dist/contract-ts__config-types.d.mts +1 -1
  71. package/dist/contract-ts__config-types.mjs +1 -1
  72. package/dist/contract-ts__contract-builder.d.mts +3 -3
  73. package/dist/contract-ts__contract-builder.mjs +3 -3
  74. package/dist/{contract-view-BMR5IWk4.mjs → contract-view-DqpzeYeE.mjs} +2 -2
  75. package/dist/contract-view-DqpzeYeE.mjs.map +1 -0
  76. package/dist/{contract-view-BgpEwVz0.d.mts → contract-view-DuB35or0.d.mts} +3 -3
  77. package/dist/contract-view-DuB35or0.d.mts.map +1 -0
  78. package/dist/contract.d.mts +29 -29
  79. package/dist/contract.mjs +22 -22
  80. package/dist/contract__authored-check-naming.d.mts +1 -1
  81. package/dist/contract__authored-check-naming.mjs +1 -1
  82. package/dist/contract__canonicalization-hooks.d.mts +1 -1
  83. package/dist/contract__canonicalization-hooks.mjs +1 -1
  84. package/dist/contract__contract-view.d.mts +1 -1
  85. package/dist/contract__contract-view.mjs +1 -1
  86. package/dist/contract__data-type-support.d.mts +1 -1
  87. package/dist/contract__data-type-support.mjs +1 -1
  88. package/dist/contract__data-type.d.mts +1 -1
  89. package/dist/contract__data-type.mjs +2 -2
  90. package/dist/contract__entity-handle-lowering-hook.d.mts +1 -1
  91. package/dist/contract__entity-handle-lowering-hook.mjs +1 -1
  92. package/dist/contract__entity-kinds.d.mts +1 -1
  93. package/dist/contract__entity-kinds.mjs +1 -1
  94. package/dist/contract__factories.d.mts +1 -1
  95. package/dist/contract__factories.mjs +1 -1
  96. package/dist/contract__foreign-key-materialization.d.mts +1 -1
  97. package/dist/contract__foreign-key-materialization.mjs +2 -2
  98. package/dist/contract__index-naming.d.mts +1 -1
  99. package/dist/contract__index-naming.mjs +1 -1
  100. package/dist/contract__index-type-validation.d.mts +1 -1
  101. package/dist/contract__index-type-validation.mjs +1 -1
  102. package/dist/contract__index-types.d.mts +2 -2
  103. package/dist/contract__index-types.mjs +1 -1
  104. package/dist/contract__referential-action-sql.d.mts +1 -1
  105. package/dist/contract__referential-action-sql.mjs +1 -1
  106. package/dist/contract__resolve-storage-table.d.mts +1 -1
  107. package/dist/contract__resolve-storage-table.mjs +1 -1
  108. package/dist/contract__sql-expression.d.mts +1 -1
  109. package/dist/contract__sql-expression.mjs +1 -1
  110. package/dist/contract__types.d.mts +11 -11
  111. package/dist/contract__types.mjs +3 -3
  112. package/dist/contract__validators.d.mts +1 -1
  113. package/dist/contract__validators.mjs +2 -2
  114. package/dist/contract__value-set-derivation-hook.d.mts +1 -1
  115. package/dist/contract__value-set-derivation-hook.mjs +1 -1
  116. package/dist/{control-BW6gbqvb.d.mts → control-0cDzwyu1.d.mts} +19 -19
  117. package/dist/control-0cDzwyu1.d.mts.map +1 -0
  118. package/dist/{control-adapter-El4czoUh.d.mts → control-adapter-BLLXAM9_.d.mts} +5 -5
  119. package/dist/control-adapter-BLLXAM9_.d.mts.map +1 -0
  120. package/dist/{control-adapter-Bn0uhplA-D0fhkvnJ.d.mts → control-adapter-Bn0uhplA-DYCjJlfN.d.mts} +10 -10
  121. package/dist/control-adapter-Bn0uhplA-DYCjJlfN.d.mts.map +1 -0
  122. package/dist/{control-adapter-DRlEXxsv.mjs → control-adapter-SlQkTEwT.mjs} +3 -3
  123. package/dist/control-adapter-SlQkTEwT.mjs.map +1 -0
  124. package/dist/{control-DnFJf5_F.mjs → control-ba0_VwlQ.mjs} +18 -18
  125. package/dist/control-ba0_VwlQ.mjs.map +1 -0
  126. package/dist/{data-type-BMnEHaW3.mjs → data-type-BFSpaotu.mjs} +3 -3
  127. package/dist/data-type-BFSpaotu.mjs.map +1 -0
  128. package/dist/{data-type-iatMyRs6.d.mts → data-type-DJIvKQHf.d.mts} +4 -4
  129. package/dist/data-type-DJIvKQHf.d.mts.map +1 -0
  130. package/dist/{data-type-support-juGV2d9c.mjs → data-type-support-BhSoPUFj.mjs} +2 -2
  131. package/dist/data-type-support-BhSoPUFj.mjs.map +1 -0
  132. package/dist/{data-type-support-a9BR-PbH.d.mts → data-type-support-CXpA0ex-.d.mts} +2 -2
  133. package/dist/data-type-support-CXpA0ex-.d.mts.map +1 -0
  134. package/dist/{db-BmrN9nRS-MT5cfCJy.d.mts → db-BmrN9nRS-BKdvl6Lv.d.mts} +14 -14
  135. package/dist/db-BmrN9nRS-BKdvl6Lv.d.mts.map +1 -0
  136. package/dist/{ddl-types-By5mT2_S--j4lTxme.d.mts → ddl-types-By5mT2_S-CEkSuvfl.d.mts} +5 -5
  137. package/dist/ddl-types-By5mT2_S-CEkSuvfl.d.mts.map +1 -0
  138. package/dist/{default-mapping-CAOONlKQ-v7GTIkjE.d.mts → default-mapping-CAOONlKQ-4m07nb-O.d.mts} +2 -2
  139. package/dist/default-mapping-CAOONlKQ-4m07nb-O.d.mts.map +1 -0
  140. package/dist/{default-table-name-BfFY8qYR-lHNcVmY5.mjs → default-table-name-BfFY8qYR-CWZFDX6v.mjs} +2 -2
  141. package/dist/default-table-name-BfFY8qYR-CWZFDX6v.mjs.map +1 -0
  142. package/dist/{derived-checks-D5HVRvqN-B37oe30Z.mjs → derived-checks-D5HVRvqN-BJx1gwPA.mjs} +16 -16
  143. package/dist/derived-checks-D5HVRvqN-BJx1gwPA.mjs.map +1 -0
  144. package/dist/{derived-checks-DpPkO6Dt-D6tfanWv.d.mts → derived-checks-DpPkO6Dt-BzFrQoFZ.d.mts} +4 -4
  145. package/dist/derived-checks-DpPkO6Dt-BzFrQoFZ.d.mts.map +1 -0
  146. package/dist/{diagnostics-IM48vCjC.mjs → diagnostics-RHJxoiIk.mjs} +4 -4
  147. package/dist/diagnostics-RHJxoiIk.mjs.map +1 -0
  148. package/dist/{diff-DZ82XaGR.mjs → diff-C1rFOhek.mjs} +2 -2
  149. package/dist/diff-C1rFOhek.mjs.map +1 -0
  150. package/dist/{diff-D2PJJkGv.d.mts → diff-DnJBqc_l.d.mts} +8 -8
  151. package/dist/diff-DnJBqc_l.d.mts.map +1 -0
  152. package/dist/{dist-D8RKUdwh.mjs → dist-C8Y-PPuE.mjs} +4 -4
  153. package/dist/dist-C8Y-PPuE.mjs.map +1 -0
  154. package/dist/{dist-C_q1_QR9.mjs → dist-CHz1hF8M.mjs} +2 -2
  155. package/dist/dist-CHz1hF8M.mjs.map +1 -0
  156. package/dist/{dist-x6jvtkKM.mjs → dist-CMDXybwm.mjs} +2 -2
  157. package/dist/dist-CMDXybwm.mjs.map +1 -0
  158. package/dist/{driver-types-DRsYeq3j-X_D6hNMZ.d.mts → driver-types-DRsYeq3j-BimeCnUk.d.mts} +2 -2
  159. package/dist/driver-types-DRsYeq3j-BimeCnUk.d.mts.map +1 -0
  160. package/dist/{entity-handle-lowering-hook-B3atrRKX.mjs → entity-handle-lowering-hook-BJZSlVVF.mjs} +2 -2
  161. package/dist/entity-handle-lowering-hook-BJZSlVVF.mjs.map +1 -0
  162. package/dist/{entity-handle-lowering-hook-93syhZ0p.d.mts → entity-handle-lowering-hook-BuvLtgFi.d.mts} +2 -2
  163. package/dist/entity-handle-lowering-hook-BuvLtgFi.d.mts.map +1 -0
  164. package/dist/{entity-kinds-OhCjfrIe.d.mts → entity-kinds-BPG2xCZV.d.mts} +7 -7
  165. package/dist/entity-kinds-BPG2xCZV.d.mts.map +1 -0
  166. package/dist/{entity-kinds-JR5SAm5h-ZkDejOUK.mjs → entity-kinds-JR5SAm5h-DOH6VUtL.mjs} +5 -5
  167. package/dist/entity-kinds-JR5SAm5h-DOH6VUtL.mjs.map +1 -0
  168. package/dist/{errors-B5g0xWro-mWH2C07F.mjs → errors-B5g0xWro-C8plbqga.mjs} +2 -2
  169. package/dist/errors-B5g0xWro-C8plbqga.mjs.map +1 -0
  170. package/dist/errors.d.mts +1 -1
  171. package/dist/errors.d.mts.map +1 -1
  172. package/dist/errors.mjs +1 -1
  173. package/dist/{exports-C3wGYtID-Bg6ThaBe.mjs → exports-C3wGYtID-D65DEUTC.mjs} +9 -9
  174. package/dist/exports-C3wGYtID-D65DEUTC.mjs.map +1 -0
  175. package/dist/{expression-6ld_ZQL6-CQghHqQ4.d.mts → expression-6ld_ZQL6-Brvfpjqy.d.mts} +9 -9
  176. package/dist/expression-6ld_ZQL6-Brvfpjqy.d.mts.map +1 -0
  177. package/dist/{expression-CieaNuRM-BpwVyjJL.d.mts → expression-CieaNuRM-CI_2zExe.d.mts} +4 -4
  178. package/dist/expression-CieaNuRM-CI_2zExe.d.mts.map +1 -0
  179. package/dist/{expression-impl-B-XNINxr-vYwKVFeP.mjs → expression-impl-B-XNINxr-BhN2sysZ.mjs} +4 -4
  180. package/dist/expression-impl-B-XNINxr-BhN2sysZ.mjs.map +1 -0
  181. package/dist/expression-kBtMHj-W.d.mts +2 -0
  182. package/dist/{factories-C4JbtO84.mjs → factories-Crobuxwn.mjs} +5 -5
  183. package/dist/factories-Crobuxwn.mjs.map +1 -0
  184. package/dist/{factories-CfHDga-q.d.mts → factories-DbNP9qfs.d.mts} +7 -7
  185. package/dist/factories-DbNP9qfs.d.mts.map +1 -0
  186. package/dist/family.d.mts +16 -16
  187. package/dist/family.mjs +16 -16
  188. package/dist/family__control-adapter.d.mts +2 -2
  189. package/dist/family__control-adapter.mjs +1 -1
  190. package/dist/family__control.d.mts +4 -4
  191. package/dist/family__control.mjs +3 -3
  192. package/dist/family__diff.d.mts +1 -1
  193. package/dist/family__diff.mjs +2 -2
  194. package/dist/family__ir.d.mts +1 -1
  195. package/dist/family__ir.mjs +2 -2
  196. package/dist/family__migration.d.mts +1 -1
  197. package/dist/family__migration.mjs +1 -1
  198. package/dist/family__pack.d.mts +1 -1
  199. package/dist/family__pack.mjs +2 -2
  200. package/dist/family__psl-build.d.mts +2 -2
  201. package/dist/family__psl-build.mjs +2 -2
  202. package/dist/family__psl-infer.d.mts +1 -1
  203. package/dist/family__psl-infer.mjs +1 -1
  204. package/dist/family__runtime.d.mts +2 -2
  205. package/dist/family__runtime.mjs +2 -2
  206. package/dist/family__verify.d.mts +1 -1
  207. package/dist/family__verify.mjs +1 -1
  208. package/dist/{foreign-key-materialization-CgW18KP-.d.mts → foreign-key-materialization-48P2V8on.d.mts} +8 -8
  209. package/dist/foreign-key-materialization-48P2V8on.d.mts.map +1 -0
  210. package/dist/{foreign-key-materialization-BPQqd0qF.mjs → foreign-key-materialization-BM59w_Xg.mjs} +7 -7
  211. package/dist/foreign-key-materialization-BM59w_Xg.mjs.map +1 -0
  212. package/dist/{foreign-key-qkDFfG8t-Fyrzd0VI.d.mts → foreign-key-qkDFfG8t-TaK_GYWR.d.mts} +3 -3
  213. package/dist/foreign-key-qkDFfG8t-TaK_GYWR.d.mts.map +1 -0
  214. package/dist/{functions-DTInIMZT.d.mts → functions-CRvEdiQM.d.mts} +7 -7
  215. package/dist/functions-CRvEdiQM.d.mts.map +1 -0
  216. package/dist/{functions-0YWByawj.mjs → functions-CsOoN7I3.mjs} +4 -4
  217. package/dist/functions-CsOoN7I3.mjs.map +1 -0
  218. package/dist/{generator-functions-D_qdqBV--BoeJwWsz.mjs → generator-functions-D_qdqBV--B2Q0WOf5.mjs} +4 -4
  219. package/dist/generator-functions-D_qdqBV--B2Q0WOf5.mjs.map +1 -0
  220. package/dist/{index-ffCr9ySU.d.mts → index-CUG8HKk_.d.mts} +4 -4
  221. package/dist/index-CUG8HKk_.d.mts.map +1 -0
  222. package/dist/{index-BAxGJxON.d.mts → index-ClfuhAEt.d.mts} +23 -23
  223. package/dist/index-ClfuhAEt.d.mts.map +1 -0
  224. package/dist/{index-equivalence-DswCiq5l-D5VK0qTy.mjs → index-equivalence-DswCiq5l-CGsyPP9B.mjs} +3 -3
  225. package/dist/index-equivalence-DswCiq5l-CGsyPP9B.mjs.map +1 -0
  226. package/dist/{index-naming-BOcJT1B3-18gQUduD.mjs → index-naming-BOcJT1B3-mG8Fd6KN.mjs} +5 -5
  227. package/dist/index-naming-BOcJT1B3-mG8Fd6KN.mjs.map +1 -0
  228. package/dist/{index-naming-C7pme5Pj.d.mts → index-naming-Cs6wwia3.d.mts} +4 -4
  229. package/dist/index-naming-Cs6wwia3.d.mts.map +1 -0
  230. package/dist/{index-reference-4wsdeB7v-DiTLLldN.d.mts → index-reference-4wsdeB7v-BTOzTNIT.d.mts} +5 -5
  231. package/dist/index-reference-4wsdeB7v-BTOzTNIT.d.mts.map +1 -0
  232. package/dist/{index-reference-DR62gjQS.mjs → index-reference-BQSrkRfT.mjs} +2 -2
  233. package/dist/index-reference-BQSrkRfT.mjs.map +1 -0
  234. package/dist/index-reference-DFUfnGcB.d.mts +1 -0
  235. package/dist/{index-type-validation-Bcme_Ust.mjs → index-type-validation-DJEMmmw0.mjs} +3 -3
  236. package/dist/index-type-validation-DJEMmmw0.mjs.map +1 -0
  237. package/dist/{index-type-validation-Ibtp3RKo.d.mts → index-type-validation-fGGwAHWc.d.mts} +5 -5
  238. package/dist/index-type-validation-fGGwAHWc.d.mts.map +1 -0
  239. package/dist/{index-types-H1O43iYT-ONvDbszL.d.mts → index-types-H1O43iYT-BD0VwPqV.d.mts} +2 -2
  240. package/dist/index-types-H1O43iYT-BD0VwPqV.d.mts.map +1 -0
  241. package/dist/{index-types-pC_5vADQ-TTUXAfmL.mjs → index-types-pC_5vADQ-BOOBi14R.mjs} +3 -3
  242. package/dist/index-types-pC_5vADQ-BOOBi14R.mjs.map +1 -0
  243. package/dist/index-types-snhtt_Fo.d.mts +1 -0
  244. package/dist/{interpreter-BDpym-rc-BZVFp5GU.mjs → interpreter-BDpym-rc-C3-vTcej.mjs} +12 -12
  245. package/dist/interpreter-BDpym-rc-C3-vTcej.mjs.map +1 -0
  246. package/dist/{ir-I-xciGUH.mjs → ir-DzsUDO8e.mjs} +2 -2
  247. package/dist/ir-DzsUDO8e.mjs.map +1 -0
  248. package/dist/{ir-BjC1VOuq.d.mts → ir-VGuTeCGp.d.mts} +4 -4
  249. package/dist/ir-VGuTeCGp.d.mts.map +1 -0
  250. package/dist/middleware-D5UhS_mW.d.mts +1 -0
  251. package/dist/{middleware-DHkW6pRr-CFiQojK4.d.mts → middleware-DHkW6pRr-B67Dujfd.d.mts} +3 -3
  252. package/dist/middleware-DHkW6pRr-B67Dujfd.d.mts.map +1 -0
  253. package/dist/{middleware-yBAfiVWn-CzNCthJT.mjs → middleware-yBAfiVWn-DZO0vCRQ.mjs} +3 -3
  254. package/dist/middleware-yBAfiVWn-DZO0vCRQ.mjs.map +1 -0
  255. package/dist/{migration-Dy_4Wmiy.mjs → migration-BJQjkqFz.mjs} +2 -2
  256. package/dist/migration-BJQjkqFz.mjs.map +1 -0
  257. package/dist/{migration-DWLbMM34.d.mts → migration-CXZQR3C_.d.mts} +5 -5
  258. package/dist/migration-CXZQR3C_.d.mts.map +1 -0
  259. package/dist/{naming-BcD36g9T-DFyaudUa.d.mts → naming-BcD36g9T-Mfe_xGGL.d.mts} +2 -2
  260. package/dist/naming-BcD36g9T-Mfe_xGGL.d.mts.map +1 -0
  261. package/dist/{naming-bM5qm5PY-DdginUhA.mjs → naming-bM5qm5PY-jOg3JFMb.mjs} +2 -2
  262. package/dist/naming-bM5qm5PY-jOg3JFMb.mjs.map +1 -0
  263. package/dist/{opaque-sql-Dset3kln-BzzXoO94.mjs → opaque-sql-Dset3kln-CtsPDTXn.mjs} +2 -2
  264. package/dist/opaque-sql-Dset3kln-CtsPDTXn.mjs.map +1 -0
  265. package/dist/operations.d.mts +1 -1
  266. package/dist/operations.mjs +1 -1
  267. package/dist/orm-client.d.mts +21 -21
  268. package/dist/orm-client.mjs +11 -11
  269. package/dist/{pack-CdaZMfI_.d.mts → pack-CGcsowo7.d.mts} +5 -5
  270. package/dist/pack-CGcsowo7.d.mts.map +1 -0
  271. package/dist/{pack-BifOs83a.mjs → pack-vaUY9-7E.mjs} +5 -5
  272. package/dist/pack-vaUY9-7E.mjs.map +1 -0
  273. package/dist/{plan-Cr4azjnG-lIrzIrmu.d.mts → plan-Cr4azjnG-B5MWRcqp.d.mts} +5 -5
  274. package/dist/plan-Cr4azjnG-B5MWRcqp.d.mts.map +1 -0
  275. package/dist/{plan-Dh0LbYIv-Crx5-ThG.mjs → plan-Dh0LbYIv-ubBSdUgl.mjs} +2 -2
  276. package/dist/plan-Dh0LbYIv-ubBSdUgl.mjs.map +1 -0
  277. package/dist/plan-cqtZBj5m.d.mts +2 -0
  278. package/dist/{psl-attribute-parsing-BCsFWsSp-LaNsbcrw.mjs → psl-attribute-parsing-BCsFWsSp-BJ-wGlY6.mjs} +2 -2
  279. package/dist/psl-attribute-parsing-BCsFWsSp-BJ-wGlY6.mjs.map +1 -0
  280. package/dist/{psl-build-fwoI6rBO.mjs → psl-build-DFBG6vhz.mjs} +6 -6
  281. package/dist/psl-build-DFBG6vhz.mjs.map +1 -0
  282. package/dist/{psl-build-BYXXz2XD.d.mts → psl-build-RelubU2E.d.mts} +6 -6
  283. package/dist/psl-build-RelubU2E.d.mts.map +1 -0
  284. package/dist/{psl-column-resolution-ChZqioOc-DcjGSXDp.d.mts → psl-column-resolution-ChZqioOc-DkKTu21I.d.mts} +3 -3
  285. package/dist/psl-column-resolution-ChZqioOc-DkKTu21I.d.mts.map +1 -0
  286. package/dist/{psl-field-resolution-C5KQ7kzP-DH8oSBIL.mjs → psl-field-resolution-C5KQ7kzP-B0NwuRWV.mjs} +7 -7
  287. package/dist/psl-field-resolution-C5KQ7kzP-B0NwuRWV.mjs.map +1 -0
  288. package/dist/{psl-infer-CaEnF_x3.mjs → psl-infer--g4i84Go.mjs} +5 -5
  289. package/dist/psl-infer--g4i84Go.mjs.map +1 -0
  290. package/dist/{psl-infer-CpTRaF5I.d.mts → psl-infer-DzoxPZGd.d.mts} +5 -5
  291. package/dist/psl-infer-DzoxPZGd.d.mts.map +1 -0
  292. package/dist/{psl-names-C3cwe0rg-CsuHOV7E.mjs → psl-names-C3cwe0rg-D1CTmC3a.mjs} +2 -2
  293. package/dist/psl-names-C3cwe0rg-D1CTmC3a.mjs.map +1 -0
  294. package/dist/{query-lane-context-BCEoKy0_-DQOOliDn.d.mts → query-lane-context-BCEoKy0_-CBzNngG3.d.mts} +8 -8
  295. package/dist/query-lane-context-BCEoKy0_-CBzNngG3.d.mts.map +1 -0
  296. package/dist/query-lane-context-DElm2VXX.d.mts +1 -0
  297. package/dist/{referential-action-sql-Cw1Q0YSd.d.mts → referential-action-sql-B2vKoUK6.d.mts} +3 -3
  298. package/dist/referential-action-sql-B2vKoUK6.d.mts.map +1 -0
  299. package/dist/{referential-action-sql-DSqkrySN.mjs → referential-action-sql-BLzCtTi8.mjs} +2 -2
  300. package/dist/referential-action-sql-BLzCtTi8.mjs.map +1 -0
  301. package/dist/relational-core.d.mts +13 -13
  302. package/dist/relational-core.mjs +7 -7
  303. package/dist/relational-core__aggregate-descriptor-registry.d.mts +2 -2
  304. package/dist/relational-core__aggregate-descriptor-registry.d.mts.map +1 -1
  305. package/dist/relational-core__aggregate-descriptor-registry.mjs +1 -1
  306. package/dist/relational-core__ast.d.mts +4 -4
  307. package/dist/relational-core__ast.mjs +4 -4
  308. package/dist/relational-core__codec-descriptor-registry.d.mts +5 -5
  309. package/dist/relational-core__codec-descriptor-registry.d.mts.map +1 -1
  310. package/dist/relational-core__codec-descriptor-registry.mjs +1 -1
  311. package/dist/relational-core__collection-methods.d.mts +2 -2
  312. package/dist/relational-core__contract-free.d.mts +6 -6
  313. package/dist/relational-core__contract-free.d.mts.map +1 -1
  314. package/dist/relational-core__contract-free.mjs +4 -4
  315. package/dist/relational-core__contract-free.mjs.map +1 -1
  316. package/dist/relational-core__expression.d.mts +3 -3
  317. package/dist/relational-core__expression.mjs +1 -1
  318. package/dist/relational-core__functions.d.mts +1 -1
  319. package/dist/relational-core__functions.mjs +1 -1
  320. package/dist/relational-core__index-reference.d.mts +2 -2
  321. package/dist/relational-core__index-reference.mjs +1 -1
  322. package/dist/relational-core__middleware.d.mts +2 -2
  323. package/dist/relational-core__middleware.mjs +1 -1
  324. package/dist/relational-core__plan.d.mts +3 -3
  325. package/dist/relational-core__plan.mjs +1 -1
  326. package/dist/relational-core__query-lane-context.d.mts +2 -2
  327. package/dist/relational-core__types.d.mts +2 -2
  328. package/dist/{resolve-storage-table-DZsfnzeW.mjs → resolve-storage-table-BHLQsOza.mjs} +3 -3
  329. package/dist/resolve-storage-table-BHLQsOza.mjs.map +1 -0
  330. package/dist/{resolve-storage-table-CxmU_MPu.d.mts → resolve-storage-table-DCqtmnSU.d.mts} +4 -4
  331. package/dist/resolve-storage-table-DCqtmnSU.d.mts.map +1 -0
  332. package/dist/{runtime-Z3nD7ix1.mjs → runtime-6tH1yOxK.mjs} +2 -2
  333. package/dist/runtime-6tH1yOxK.mjs.map +1 -0
  334. package/dist/{runtime-Bmndf-fm.d.mts → runtime-CF6rAlE5.d.mts} +3 -3
  335. package/dist/runtime-CF6rAlE5.d.mts.map +1 -0
  336. package/dist/runtime.d.mts +4 -4
  337. package/dist/runtime.mjs +1 -1
  338. package/dist/runtime__internal__prepared-query.d.mts +1 -1
  339. package/dist/runtime__internal__prepared-query.mjs +1 -1
  340. package/dist/{schema-differ-DmP74bB8-0ZupRJKb.d.mts → schema-differ-DmP74bB8-Be7PDHNx.d.mts} +6 -6
  341. package/dist/schema-differ-DmP74bB8-Be7PDHNx.d.mts.map +1 -0
  342. package/dist/schema-ir.d.mts +1 -1
  343. package/dist/schema-ir.mjs +1 -1
  344. package/dist/schema-ir__naming.d.mts +1 -1
  345. package/dist/schema-ir__naming.mjs +1 -1
  346. package/dist/schema-ir__types.d.mts +2 -2
  347. package/dist/schema-ir__types.mjs +1 -1
  348. package/dist/{schema-verify-C3wbdviw-BifQBCpu.mjs → schema-verify-C3wbdviw-DMjIubOr.mjs} +5 -5
  349. package/dist/schema-verify-C3wbdviw-DMjIubOr.mjs.map +1 -0
  350. package/dist/{serialized-index-CrgG8ct1-DDfHKUEK.d.mts → serialized-index-CrgG8ct1-DKVJ7TDX.d.mts} +4 -4
  351. package/dist/serialized-index-CrgG8ct1-DKVJ7TDX.d.mts.map +1 -0
  352. package/dist/{serialized-index-DjCCnXB1-C_YccpTL.mjs → serialized-index-DjCCnXB1-DMA7BtO2.mjs} +4 -4
  353. package/dist/serialized-index-DjCCnXB1-DMA7BtO2.mjs.map +1 -0
  354. package/dist/{sql-contract-serializer-sMY3prTx-BkFoHhST.mjs → sql-contract-serializer-sMY3prTx-D2BfrNxs.mjs} +7 -7
  355. package/dist/sql-contract-serializer-sMY3prTx-D2BfrNxs.mjs.map +1 -0
  356. package/dist/{sql-data-type-D7M-YTTY-C9oWGZ3z.mjs → sql-data-type-D7M-YTTY-D2vRqDxn.mjs} +3 -3
  357. package/dist/sql-data-type-D7M-YTTY-D2vRqDxn.mjs.map +1 -0
  358. package/dist/{sql-execution-plan-3uxYjHyu-C0Z4_RSY.d.mts → sql-execution-plan-3uxYjHyu-Cl0eB5av.d.mts} +3 -3
  359. package/dist/sql-execution-plan-3uxYjHyu-Cl0eB5av.d.mts.map +1 -0
  360. package/dist/{sql-expression-BAtH-2UU.d.mts → sql-expression-B4BrhGPi.d.mts} +2 -2
  361. package/dist/sql-expression-B4BrhGPi.d.mts.map +1 -0
  362. package/dist/{sql-expression-BJCuy-WI.mjs → sql-expression-CKgKznXS.mjs} +3 -3
  363. package/dist/sql-expression-CKgKznXS.mjs.map +1 -0
  364. package/dist/{sql-index-ByAAE7K8-BpbPBWPD.d.mts → sql-index-ByAAE7K8-Dqtn_vUL.d.mts} +4 -4
  365. package/dist/sql-index-ByAAE7K8-Dqtn_vUL.d.mts.map +1 -0
  366. package/dist/{sql-node-kEz6YFZo-v2F7delx.d.mts → sql-node-kEz6YFZo-1ogT6Cxt.d.mts} +2 -2
  367. package/dist/sql-node-kEz6YFZo-1ogT6Cxt.d.mts.map +1 -0
  368. package/dist/{sql-storage-DeCAh5Hi-nJQUIgfL.d.mts → sql-storage-DeCAh5Hi-CEM-m8cs.d.mts} +5 -5
  369. package/dist/sql-storage-DeCAh5Hi-CEM-m8cs.d.mts.map +1 -0
  370. package/dist/{storage-table-Bf1ZjnxO-NvkG2pgq.d.mts → storage-table-Bf1ZjnxO-pUj6pyP0.d.mts} +7 -7
  371. package/dist/storage-table-Bf1ZjnxO-pUj6pyP0.d.mts.map +1 -0
  372. package/dist/{storage-table-DDvN83mw-CbCFr5wm.mjs → storage-table-DDvN83mw-DkbBFmK9.mjs} +4 -4
  373. package/dist/storage-table-DDvN83mw-DkbBFmK9.mjs.map +1 -0
  374. package/dist/{storage-value-set-BGlj5Uus-CvZD--GG.d.mts → storage-value-set-BGlj5Uus-ny2k-0PA.d.mts} +3 -3
  375. package/dist/storage-value-set-BGlj5Uus-ny2k-0PA.d.mts.map +1 -0
  376. package/dist/{transaction-state-BfXhs7D7-3k10jZ8I.mjs → transaction-state-BfXhs7D7-DhmbySW9.mjs} +2 -2
  377. package/dist/transaction-state-BfXhs7D7-DhmbySW9.mjs.map +1 -0
  378. package/dist/{transaction-state-DR3nKTmH-D6VdY7YX.d.mts → transaction-state-DR3nKTmH-Dcu5lbwd.d.mts} +11 -11
  379. package/dist/transaction-state-DR3nKTmH-Dcu5lbwd.d.mts.map +1 -0
  380. package/dist/{types-CRbj_WQf.d.mts → types-B0J6ZASy.d.mts} +12 -12
  381. package/dist/types-B0J6ZASy.d.mts.map +1 -0
  382. package/dist/{types-C7610W2l.mjs → types-CTdSkl0s.mjs} +3 -3
  383. package/dist/types-CTdSkl0s.mjs.map +1 -0
  384. package/dist/{types-Cq6ImLAB-BqOfLAYG.d.mts → types-Cq6ImLAB-BRpWMRJe.d.mts} +10 -10
  385. package/dist/types-Cq6ImLAB-BRpWMRJe.d.mts.map +1 -0
  386. package/dist/{types-CuCxAQat-BBGUHEku.d.mts → types-CuCxAQat-Dz8P4xyt.d.mts} +3 -3
  387. package/dist/types-CuCxAQat-Dz8P4xyt.d.mts.map +1 -0
  388. package/dist/types-CwP7Hgmt.d.mts +1 -0
  389. package/dist/{types-DfKvtJwS-tndgHh53.d.mts → types-DfKvtJwS-CrpWTGBJ.d.mts} +11 -11
  390. package/dist/types-DfKvtJwS-CrpWTGBJ.d.mts.map +1 -0
  391. package/dist/{types-DoyiTsjg-DDTmYyNY.mjs → types-DoyiTsjg-2YMhMJDA.mjs} +3 -3
  392. package/dist/types-DoyiTsjg-2YMhMJDA.mjs.map +1 -0
  393. package/dist/{types-DriMIMNQ-BBacSgaI.d.mts → types-DriMIMNQ-Cs5YW-O-.d.mts} +3 -3
  394. package/dist/types-DriMIMNQ-Cs5YW-O-.d.mts.map +1 -0
  395. package/dist/{types-NTQsD2MS-DAP2yVDn.mjs → types-NTQsD2MS-xcLtvKO9.mjs} +2 -2
  396. package/dist/types-NTQsD2MS-xcLtvKO9.mjs.map +1 -0
  397. package/dist/{types-TXO7x1BA-DuW4v0rw.d.mts → types-TXO7x1BA-B8fGzOYJ.d.mts} +12 -12
  398. package/dist/types-TXO7x1BA-B8fGzOYJ.d.mts.map +1 -0
  399. package/dist/types-ljUNyiWe.d.mts +1 -0
  400. package/dist/{unique-constraint-M5TlQnJQ-BiIHJ85k.d.mts → unique-constraint-M5TlQnJQ-qX-maNUV.d.mts} +3 -3
  401. package/dist/unique-constraint-M5TlQnJQ-qX-maNUV.d.mts.map +1 -0
  402. package/dist/{util-BBgcP3gI-XJBkxo1K.mjs → util-BBgcP3gI-CpL-0VuC.mjs} +2 -2
  403. package/dist/util-BBgcP3gI-CpL-0VuC.mjs.map +1 -0
  404. package/dist/{validators-xXKEHvnw.mjs → validators-BwA7ttZM.mjs} +7 -7
  405. package/dist/validators-BwA7ttZM.mjs.map +1 -0
  406. package/dist/{validators-BDuMio1F.d.mts → validators-FJs8HvFr.d.mts} +6 -6
  407. package/dist/validators-FJs8HvFr.d.mts.map +1 -0
  408. package/dist/{value-set-derivation-hook-BhgGVtw0.d.mts → value-set-derivation-hook-3E437jPU.d.mts} +3 -3
  409. package/dist/value-set-derivation-hook-3E437jPU.d.mts.map +1 -0
  410. package/dist/{value-set-derivation-hook-Di9JZ0X7.mjs → value-set-derivation-hook-HVaxhALD.mjs} +2 -2
  411. package/dist/value-set-derivation-hook-HVaxhALD.mjs.map +1 -0
  412. package/dist/{verify-BVk5bjdH-dq5M4iIh.mjs → verify-BVk5bjdH-DhKm6hB3.mjs} +3 -3
  413. package/dist/verify-BVk5bjdH-DhKm6hB3.mjs.map +1 -0
  414. package/dist/{verify-zDRnw0Rn.d.mts → verify-DHXbuZPB.d.mts} +2 -2
  415. package/dist/verify-DHXbuZPB.d.mts.map +1 -0
  416. package/package.json +18 -18
  417. package/dist/aggregate-descriptor-registry-Dd7Uj7DJ.mjs.map +0 -1
  418. package/dist/ast-BJs2669T.mjs.map +0 -1
  419. package/dist/ast-BySjcUKx.d.mts.map +0 -1
  420. package/dist/attribute-specs-BsaemIyu.d.mts.map +0 -1
  421. package/dist/authored-check-naming-CIX7Bbyh.mjs.map +0 -1
  422. package/dist/authored-check-naming-CK6T_Dfh.d.mts.map +0 -1
  423. package/dist/authoring-entity-types-CgKIgWq5-Dxf_T0Ih.d.mts.map +0 -1
  424. package/dist/canonicalization-hooks-CYnW_sGn.d.mts.map +0 -1
  425. package/dist/canonicalization-hooks-dmXkOR4a.mjs.map +0 -1
  426. package/dist/check-constraint-B7qGu6rc-CBVYAMwG.d.mts.map +0 -1
  427. package/dist/codec-descriptor-registry-MG2bFxW_.mjs.map +0 -1
  428. package/dist/collection-methods-BTknGdHI.d.mts +0 -1
  429. package/dist/collection-methods-D2UnCS0S-CRYoAOtB.d.mts.map +0 -1
  430. package/dist/config-types-BbBY5_GQ.mjs.map +0 -1
  431. package/dist/config-types-D8quwydu.d.mts.map +0 -1
  432. package/dist/contract-builder-D7cTmhfs.mjs.map +0 -1
  433. package/dist/contract-builder-xFftVmD8.d.mts.map +0 -1
  434. package/dist/contract-errors-BCN6RVI5-5IHBF_lg.mjs.map +0 -1
  435. package/dist/contract-view-BMR5IWk4.mjs.map +0 -1
  436. package/dist/contract-view-BgpEwVz0.d.mts.map +0 -1
  437. package/dist/control-BW6gbqvb.d.mts.map +0 -1
  438. package/dist/control-DnFJf5_F.mjs.map +0 -1
  439. package/dist/control-adapter-Bn0uhplA-D0fhkvnJ.d.mts.map +0 -1
  440. package/dist/control-adapter-DRlEXxsv.mjs.map +0 -1
  441. package/dist/control-adapter-El4czoUh.d.mts.map +0 -1
  442. package/dist/data-type-BMnEHaW3.mjs.map +0 -1
  443. package/dist/data-type-iatMyRs6.d.mts.map +0 -1
  444. package/dist/data-type-support-a9BR-PbH.d.mts.map +0 -1
  445. package/dist/data-type-support-juGV2d9c.mjs.map +0 -1
  446. package/dist/db-BmrN9nRS-MT5cfCJy.d.mts.map +0 -1
  447. package/dist/ddl-types-By5mT2_S--j4lTxme.d.mts.map +0 -1
  448. package/dist/default-mapping-CAOONlKQ-v7GTIkjE.d.mts.map +0 -1
  449. package/dist/default-table-name-BfFY8qYR-lHNcVmY5.mjs.map +0 -1
  450. package/dist/derived-checks-D5HVRvqN-B37oe30Z.mjs.map +0 -1
  451. package/dist/derived-checks-DpPkO6Dt-D6tfanWv.d.mts.map +0 -1
  452. package/dist/diagnostics-IM48vCjC.mjs.map +0 -1
  453. package/dist/diff-D2PJJkGv.d.mts.map +0 -1
  454. package/dist/diff-DZ82XaGR.mjs.map +0 -1
  455. package/dist/dist-C_q1_QR9.mjs.map +0 -1
  456. package/dist/dist-D8RKUdwh.mjs.map +0 -1
  457. package/dist/dist-x6jvtkKM.mjs.map +0 -1
  458. package/dist/driver-types-DRsYeq3j-X_D6hNMZ.d.mts.map +0 -1
  459. package/dist/entity-handle-lowering-hook-93syhZ0p.d.mts.map +0 -1
  460. package/dist/entity-handle-lowering-hook-B3atrRKX.mjs.map +0 -1
  461. package/dist/entity-kinds-JR5SAm5h-ZkDejOUK.mjs.map +0 -1
  462. package/dist/entity-kinds-OhCjfrIe.d.mts.map +0 -1
  463. package/dist/errors-B5g0xWro-mWH2C07F.mjs.map +0 -1
  464. package/dist/exports-C3wGYtID-Bg6ThaBe.mjs.map +0 -1
  465. package/dist/expression-6ld_ZQL6-CQghHqQ4.d.mts.map +0 -1
  466. package/dist/expression-BLiObOS8.d.mts +0 -2
  467. package/dist/expression-CieaNuRM-BpwVyjJL.d.mts.map +0 -1
  468. package/dist/expression-impl-B-XNINxr-vYwKVFeP.mjs.map +0 -1
  469. package/dist/factories-C4JbtO84.mjs.map +0 -1
  470. package/dist/factories-CfHDga-q.d.mts.map +0 -1
  471. package/dist/foreign-key-materialization-BPQqd0qF.mjs.map +0 -1
  472. package/dist/foreign-key-materialization-CgW18KP-.d.mts.map +0 -1
  473. package/dist/foreign-key-qkDFfG8t-Fyrzd0VI.d.mts.map +0 -1
  474. package/dist/functions-0YWByawj.mjs.map +0 -1
  475. package/dist/functions-DTInIMZT.d.mts.map +0 -1
  476. package/dist/generator-functions-D_qdqBV--BoeJwWsz.mjs.map +0 -1
  477. package/dist/index-BAxGJxON.d.mts.map +0 -1
  478. package/dist/index-equivalence-DswCiq5l-D5VK0qTy.mjs.map +0 -1
  479. package/dist/index-ffCr9ySU.d.mts.map +0 -1
  480. package/dist/index-naming-BOcJT1B3-18gQUduD.mjs.map +0 -1
  481. package/dist/index-naming-C7pme5Pj.d.mts.map +0 -1
  482. package/dist/index-reference-4wsdeB7v-DiTLLldN.d.mts.map +0 -1
  483. package/dist/index-reference-DR62gjQS.mjs.map +0 -1
  484. package/dist/index-reference-Da9mdOjD.d.mts +0 -1
  485. package/dist/index-type-validation-Bcme_Ust.mjs.map +0 -1
  486. package/dist/index-type-validation-Ibtp3RKo.d.mts.map +0 -1
  487. package/dist/index-types-ByX8MLso.d.mts +0 -1
  488. package/dist/index-types-H1O43iYT-ONvDbszL.d.mts.map +0 -1
  489. package/dist/index-types-pC_5vADQ-TTUXAfmL.mjs.map +0 -1
  490. package/dist/interpreter-BDpym-rc-BZVFp5GU.mjs.map +0 -1
  491. package/dist/ir-BjC1VOuq.d.mts.map +0 -1
  492. package/dist/ir-I-xciGUH.mjs.map +0 -1
  493. package/dist/middleware-DHkW6pRr-CFiQojK4.d.mts.map +0 -1
  494. package/dist/middleware-GO31SJSv.d.mts +0 -1
  495. package/dist/middleware-yBAfiVWn-CzNCthJT.mjs.map +0 -1
  496. package/dist/migration-DWLbMM34.d.mts.map +0 -1
  497. package/dist/migration-Dy_4Wmiy.mjs.map +0 -1
  498. package/dist/naming-BcD36g9T-DFyaudUa.d.mts.map +0 -1
  499. package/dist/naming-bM5qm5PY-DdginUhA.mjs.map +0 -1
  500. package/dist/opaque-sql-Dset3kln-BzzXoO94.mjs.map +0 -1
  501. package/dist/pack-BifOs83a.mjs.map +0 -1
  502. package/dist/pack-CdaZMfI_.d.mts.map +0 -1
  503. package/dist/plan-Cr4azjnG-lIrzIrmu.d.mts.map +0 -1
  504. package/dist/plan-Dh0LbYIv-Crx5-ThG.mjs.map +0 -1
  505. package/dist/plan-OXQ8s6Ee.d.mts +0 -2
  506. package/dist/psl-attribute-parsing-BCsFWsSp-LaNsbcrw.mjs.map +0 -1
  507. package/dist/psl-build-BYXXz2XD.d.mts.map +0 -1
  508. package/dist/psl-build-fwoI6rBO.mjs.map +0 -1
  509. package/dist/psl-column-resolution-ChZqioOc-DcjGSXDp.d.mts.map +0 -1
  510. package/dist/psl-field-resolution-C5KQ7kzP-DH8oSBIL.mjs.map +0 -1
  511. package/dist/psl-infer-CaEnF_x3.mjs.map +0 -1
  512. package/dist/psl-infer-CpTRaF5I.d.mts.map +0 -1
  513. package/dist/psl-names-C3cwe0rg-CsuHOV7E.mjs.map +0 -1
  514. package/dist/query-lane-context-BCEoKy0_-DQOOliDn.d.mts.map +0 -1
  515. package/dist/query-lane-context-BssPNZey.d.mts +0 -1
  516. package/dist/referential-action-sql-Cw1Q0YSd.d.mts.map +0 -1
  517. package/dist/referential-action-sql-DSqkrySN.mjs.map +0 -1
  518. package/dist/resolve-storage-table-CxmU_MPu.d.mts.map +0 -1
  519. package/dist/resolve-storage-table-DZsfnzeW.mjs.map +0 -1
  520. package/dist/runtime-Bmndf-fm.d.mts.map +0 -1
  521. package/dist/runtime-Z3nD7ix1.mjs.map +0 -1
  522. package/dist/schema-differ-DmP74bB8-0ZupRJKb.d.mts.map +0 -1
  523. package/dist/schema-verify-C3wbdviw-BifQBCpu.mjs.map +0 -1
  524. package/dist/serialized-index-CrgG8ct1-DDfHKUEK.d.mts.map +0 -1
  525. package/dist/serialized-index-DjCCnXB1-C_YccpTL.mjs.map +0 -1
  526. package/dist/sql-contract-serializer-sMY3prTx-BkFoHhST.mjs.map +0 -1
  527. package/dist/sql-data-type-D7M-YTTY-C9oWGZ3z.mjs.map +0 -1
  528. package/dist/sql-execution-plan-3uxYjHyu-C0Z4_RSY.d.mts.map +0 -1
  529. package/dist/sql-expression-BAtH-2UU.d.mts.map +0 -1
  530. package/dist/sql-expression-BJCuy-WI.mjs.map +0 -1
  531. package/dist/sql-index-ByAAE7K8-BpbPBWPD.d.mts.map +0 -1
  532. package/dist/sql-node-kEz6YFZo-v2F7delx.d.mts.map +0 -1
  533. package/dist/sql-storage-DeCAh5Hi-nJQUIgfL.d.mts.map +0 -1
  534. package/dist/storage-table-Bf1ZjnxO-NvkG2pgq.d.mts.map +0 -1
  535. package/dist/storage-table-DDvN83mw-CbCFr5wm.mjs.map +0 -1
  536. package/dist/storage-value-set-BGlj5Uus-CvZD--GG.d.mts.map +0 -1
  537. package/dist/transaction-state-BfXhs7D7-3k10jZ8I.mjs.map +0 -1
  538. package/dist/transaction-state-DR3nKTmH-D6VdY7YX.d.mts.map +0 -1
  539. package/dist/types-BUggiEEH.d.mts +0 -1
  540. package/dist/types-C7610W2l.mjs.map +0 -1
  541. package/dist/types-CRbj_WQf.d.mts.map +0 -1
  542. package/dist/types-Cq6ImLAB-BqOfLAYG.d.mts.map +0 -1
  543. package/dist/types-CuCxAQat-BBGUHEku.d.mts.map +0 -1
  544. package/dist/types-DDqbg3WC.d.mts +0 -1
  545. package/dist/types-DfKvtJwS-tndgHh53.d.mts.map +0 -1
  546. package/dist/types-DoyiTsjg-DDTmYyNY.mjs.map +0 -1
  547. package/dist/types-DriMIMNQ-BBacSgaI.d.mts.map +0 -1
  548. package/dist/types-NTQsD2MS-DAP2yVDn.mjs.map +0 -1
  549. package/dist/types-TXO7x1BA-DuW4v0rw.d.mts.map +0 -1
  550. package/dist/unique-constraint-M5TlQnJQ-BiIHJ85k.d.mts.map +0 -1
  551. package/dist/util-BBgcP3gI-XJBkxo1K.mjs.map +0 -1
  552. package/dist/validators-BDuMio1F.d.mts.map +0 -1
  553. package/dist/validators-xXKEHvnw.mjs.map +0 -1
  554. package/dist/value-set-derivation-hook-BhgGVtw0.d.mts.map +0 -1
  555. package/dist/value-set-derivation-hook-Di9JZ0X7.mjs.map +0 -1
  556. package/dist/verify-BVk5bjdH-dq5M4iIh.mjs.map +0 -1
  557. package/dist/verify-zDRnw0Rn.d.mts.map +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"file":"runtime-Bmndf-fm.d.mts","names":[],"sources":["../../../../2-sql/9-family/dist/runtime.d.mts"],"mappings":";;;;;;;;;;;;;;UAaU,iCAAiC;;;;;;;;;;;cAW7B,4BAA4B,+BAA+B;;;;;;;;;;;;;;;;;iBAiBxD,gCAAgC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"runtime-Z3nD7ix1.mjs","names":[],"sources":["../../../../2-sql/9-family/dist/runtime.mjs"],"sourcesContent":["import { TIMESTAMP_NOW_GENERATOR_ID } from \"@internal/framework-components/authoring\";\nimport { UNBOUND_DOMAIN_NAMESPACE_ID, resolveDomainModel } from \"@internal/contract/types\";\nimport { resolveStorageTable } from \"@internal/sql-contract/resolve-storage-table\";\n//#region src/core/runtime-instance.ts\n/**\n* Creates a SQL execution-plane family instance.\n*\n* This will be renamed to `createSqlExecutionFamilyInstance()` as part of `TML-1842`.\n*/\nfunction createSqlRuntimeFamilyInstance() {\n\treturn { familyId: \"sql\" };\n}\n//#endregion\n//#region src/core/runtime-descriptor.ts\n/**\n* SQL execution-plane family descriptor.\n*\n* Note: this is currently named `sqlRuntimeFamilyDescriptor` because the execution plane\n* framework types are still using the `Runtime*` naming (`RuntimeFamilyDescriptor`, etc.).\n*\n* This will be renamed to `sqlExecutionFamilyDescriptor` as part of `TML-1842`.\n*/\nconst sqlRuntimeFamilyDescriptor = {\n\tkind: \"family\",\n\tid: \"sql\",\n\tfamilyId: \"sql\",\n\tversion: \"0.0.1\",\n\tcreate() {\n\t\treturn createSqlRuntimeFamilyInstance();\n\t}\n};\nObject.freeze(sqlRuntimeFamilyDescriptor);\n//#endregion\n//#region src/core/timestamp-now-runtime-generator.ts\n/**\n* Builds the canonical runtime-plane generator for the wall-clock-now\n* mutation default. Returns `new Date()`; semantics are target-agnostic\n* so all SQL targets share this single implementation.\n*\n* Declares `stability: 'query'` so a single ORM bulk operation\n* (e.g. `createAll([...])`) shares one timestamp across every row and\n* every timestamp-defaulted column. Matches Prisma 6's `@updatedAt`\n* semantics: one `new Date()` per lowered mutation, not per row.\n*\n* Lives in its own module, exported only through `exports/runtime.ts`,\n* so the control-plane `timestamp-now-generator.ts` (descriptor +\n* authoring presets) stays free of runtime-plane imports.\n*/\nfunction timestampNowRuntimeGenerator() {\n\treturn {\n\t\tid: TIMESTAMP_NOW_GENERATOR_ID,\n\t\tgenerate: () => /* @__PURE__ */ new Date(),\n\t\tstability: \"query\"\n\t};\n}\n//#endregion\n//#region src/exports/runtime.ts\nvar runtime_default = sqlRuntimeFamilyDescriptor;\n//#endregion\nexport { UNBOUND_DOMAIN_NAMESPACE_ID, runtime_default as default, resolveDomainModel, resolveStorageTable, timestampNowRuntimeGenerator };\n\n//# sourceMappingURL=runtime.mjs.map"],"mappings":";;;;;;;;AASA,SAAS,iCAAiC;CACzC,OAAO,EAAE,UAAU,MAAM;AAC1B;;;;;;;;;AAWA,MAAM,6BAA6B;CAClC,MAAM;CACN,IAAI;CACJ,UAAU;CACV,SAAS;CACT,SAAS;EACR,OAAO,+BAA+B;CACvC;AACD;AACA,OAAO,OAAO,0BAA0B;;;;;;;;;;;;;;;AAiBxC,SAAS,+BAA+B;CACvC,OAAO;EACN,IAAI;EACJ,gCAAgC,IAAI,KAAK;EACzC,WAAW;CACZ;AACD;AAGA,IAAI,kBAAkB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"schema-differ-DmP74bB8-0ZupRJKb.d.mts","names":[],"sources":["../../../../2-sql/9-family/dist/schema-differ-DmP74bB8.d.mts"],"mappings":";;;;;;;;;;;;;;;;;UAcU;;WAEC,iBAAiB;;;;;;;;;WASjB,uBAAuB,OAAO,oBAAoB;;;;;;WAMlD,gBAAgB;aACd,QAAQ;;;UAGX;WACC,UAAU,SAAS;WACnB,QAAQ;WACR,qBAAqB,cAAc;;KAEzC,mBAAmB,OAAO,uBAAuB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"schema-verify-C3wbdviw-BifQBCpu.mjs","names":[],"sources":["../../../../2-sql/9-family/dist/schema-verify-C3wbdviw.mjs"],"sourcesContent":["import { findSqlDataTypeCollision, isSqlDataType } from \"@internal/sql-contract/data-type\";\nimport { assertNothingCastsFromSqlExpression } from \"@internal/sql-contract/sql-expression\";\nimport { VERIFY_CODE_SCHEMA_FAILURE, assertUniqueCodecOwner, dispositionForCategory, issueOutcome } from \"@internal/framework-components/control\";\nimport { blindCast } from \"@internal/utils/casts\";\nimport { ifDefined } from \"@internal/utils/defined\";\nimport { InternalError } from \"@internal/utils/internal-error\";\nimport { runtimeError } from \"@internal/framework-components/components\";\nimport { isStorageTypeInstance } from \"@internal/sql-contract/types\";\nimport { effectiveControlPolicy } from \"@internal/contract/types\";\n//#region src/core/assembly.ts\nfunction hasCodecControlHooks(descriptor) {\n\tif (typeof descriptor !== \"object\" || descriptor === null) return false;\n\tconst hooks = blindCast(descriptor).types?.codecTypes?.controlPlaneHooks;\n\treturn hooks !== null && hooks !== void 0 && typeof hooks === \"object\";\n}\nfunction extractCodecControlHooks(descriptors) {\n\tconst hooks = /* @__PURE__ */ new Map();\n\tconst owners = /* @__PURE__ */ new Map();\n\tfor (const descriptor of descriptors) {\n\t\tif (typeof descriptor !== \"object\" || descriptor === null) continue;\n\t\tif (!hasCodecControlHooks(descriptor)) continue;\n\t\tconst controlPlaneHooks = descriptor.types.codecTypes.controlPlaneHooks;\n\t\tfor (const [codecId, hook] of Object.entries(controlPlaneHooks)) {\n\t\t\tassertUniqueCodecOwner({\n\t\t\t\tcodecId,\n\t\t\t\towners,\n\t\t\t\tdescriptorId: descriptor.id,\n\t\t\t\tentityLabel: \"control hooks\",\n\t\t\t\tentityOwnershipLabel: \"owner\"\n\t\t\t});\n\t\t\thooks.set(codecId, hook);\n\t\t\towners.set(codecId, descriptor.id);\n\t\t}\n\t}\n\treturn hooks;\n}\n/**\n* The SQL family's checks of the stack's data types and codecs, each naming the contributor:\n* no two SQL data types would both recognise one reported type, by colliding claiming texts or by\n* claiming the same kind; no data type casts from `sql/expression`; every type stored as another\n* names a registered SQL data type; and every codec represents a\n* SQL data type, because a codec represents a column's type and `sql/expression` is the one data\n* type no column has.\n*/\nfunction enforceSqlDataTypeInvariants(declaredDataTypes, codecDescriptors) {\n\tconst declaredById = new Map(declaredDataTypes.map((declared) => [declared.type.id, declared]));\n\tconst capitalized = (text) => `${text.charAt(0).toUpperCase()}${text.slice(1)}`;\n\tconst describe = (type) => `data type \"${type.id}\" contributed by \"${declaredById.get(type.id)?.contributedBy ?? \"<unknown>\"}\"`;\n\tconst collision = findSqlDataTypeCollision(declaredDataTypes.map(({ type }) => type));\n\tif (collision !== void 0) {\n\t\tconst { first, second, claims } = collision;\n\t\tif (claims.by === \"kind\") throw new InternalError(`The ${describe(first)} and the ${describe(second)} both claim the kind \"${claims.kind}\".`);\n\t\tthrow new InternalError(`The ${describe(first)} claims the text \"${claims.first}\", which collides with the text \"${claims.second}\" claimed by the ${describe(second)}.`);\n\t}\n\tassertNothingCastsFromSqlExpression(declaredDataTypes);\n\tfor (const { type, contributedBy } of declaredDataTypes) {\n\t\tif (!isSqlDataType(type) || type.sql.storedAs === void 0) continue;\n\t\tconst storage = declaredById.get(type.sql.storedAs)?.type;\n\t\tif (storage !== void 0 && isSqlDataType(storage)) {\n\t\t\tconst further = storage.sql.storedAs;\n\t\t\tif (further === void 0) continue;\n\t\t\tthrow new InternalError(`${capitalized(describe(type))} is stored as \"${storage.id}\", which is itself stored as \"${further}\". Name \"${further}\" as the type it is stored as.`);\n\t\t}\n\t\tthrow runtimeError(\"CONTRACT.DATA_TYPE_UNREGISTERED\", `Data type \"${type.id}\" is stored as data type \"${type.sql.storedAs}\", which no component registers. Contributed by \"${contributedBy}\".`, {\n\t\t\tdataType: type.sql.storedAs,\n\t\t\tcontributedBy\n\t\t});\n\t}\n\tfor (const codec of codecDescriptors) {\n\t\tconst represented = declaredById.get(codec.dataType)?.type;\n\t\tif (represented === void 0 || isSqlDataType(represented)) continue;\n\t\tthrow new InternalError(`Codec \"${codec.codecId}\" represents ${describe(represented)}, which is not a SQL data type. In a SQL stack a codec represents a column's type, so its data type is declared with sqlDataType.`);\n\t}\n}\n//#endregion\n//#region src/core/diff/verifier-disposition.ts\n/**\n* Classifies a codec `verifyType` hook finding into the target-neutral\n* categories the framework grades. A storage type is a named type instance\n* (e.g. a native enum); the only shape divergence it can carry is a change\n* to its value set, so a paired mismatch always classifies as `valueDrift`.\n*/\nfunction classifyStorageTypeDiffIssue(issue) {\n\tif (issueOutcome(issue) === \"not-found\") return \"declaredMissing\";\n\tif (issueOutcome(issue) === \"not-expected\") return \"extraAuxiliary\";\n\treturn \"valueDrift\";\n}\nfunction verifierDisposition(controlPolicy, issue) {\n\treturn dispositionForCategory(controlPolicy, classifyStorageTypeDiffIssue(issue));\n}\n//#endregion\n//#region src/core/diff/schema-verify.ts\nfunction issueNode(issue) {\n\tconst node = issue.expected ?? issue.actual;\n\tif (node === void 0) return void 0;\n\treturn blindCast(node);\n}\n/**\n* Resolves an issue's framework-neutral {@link DiffSubjectGranularity} on\n* demand, from the issue's node's `nodeKind` via the target-provided\n* `granularityOf` map. The node carries only its `nodeKind` identity, never a\n* classification, and nothing is stamped onto the issue — every consumer\n* (the family verdict below, the framework aggregate's unclaimed-elements\n* sweep via {@link import('@internal/framework-components/control').SchemaSubjectClassifierCapable})\n* calls this the same way, resolved by the family/target that owns the node\n* vocabulary. `undefined` for an issue with no node.\n*/\nfunction classifyDiffSubjectGranularity(issue, granularityOf) {\n\tconst node = issueNode(issue);\n\treturn node === void 0 ? void 0 : granularityOf(node.nodeKind);\n}\n/**\n* Resolves an issue's storage `entityKind` on demand, from the issue's\n* node's `nodeKind` via the target-provided `entityKindOf` map — the sibling\n* of {@link classifyDiffSubjectGranularity}, called the same way by the same\n* consumers (via\n* {@link import('@internal/framework-components/control').SchemaSubjectClassifierCapable}).\n* `undefined` for an issue with no node, or for a node kind with no storage\n* entity of its own.\n*/\nfunction classifyDiffEntityKind(issue, entityKindOf) {\n\tconst node = issueNode(issue);\n\treturn node === void 0 ? void 0 : entityKindOf(node.nodeKind);\n}\n/**\n* Re-keys the legacy `classifySqlVerifierIssueKind` category mapping on the\n* issue's {@link DiffSubjectGranularity} (resolved via `granularityOf`) + the\n* issue reason. The vocabulary maps one-to-one: an undeclared live entity or\n* namespace is `extraTopLevelObject`, an undeclared live field\n* `extraNestedElement`, undeclared auxiliaries (constraints, indexes,\n* defaults) and structural leaves (policies) `extraAuxiliary`; every paired\n* divergence is `declaredIncompatible`; anything the database lacks is\n* `declaredMissing`.\n* `granularityOf` is the target's classifier, so target and extension node\n* kinds classify without the family importing them.\n*/\nfunction classifySqlDiffIssue(issue, granularityOf) {\n\tif (issueOutcome(issue) === \"not-found\") return \"declaredMissing\";\n\tif (issueOutcome(issue) === \"not-expected\") {\n\t\tconst granularity = classifyDiffSubjectGranularity(issue, granularityOf);\n\t\tif (granularity === \"entity\" || granularity === \"namespace\") return \"extraTopLevelObject\";\n\t\tif (granularity === \"field\") return \"extraNestedElement\";\n\t\treturn \"extraAuxiliary\";\n\t}\n\treturn \"declaredIncompatible\";\n}\n/**\n* Whether a `not-expected` issue is a strict-mode-only finding. The legacy\n* walk detected every relational extra (namespaces, entities, fields, and\n* their auxiliaries) only under `--strict`; the structural diff (roots, RLS\n* policies, roles) was never strict-gated — its extras fail in both modes.\n* Keyed on the issue's granularity, resolved via `granularityOf`.\n*/\nfunction isStrictOnlyExtra(issue, granularityOf) {\n\tconst granularity = classifyDiffSubjectGranularity(issue, granularityOf);\n\treturn granularity === \"namespace\" || granularity === \"entity\" || granularity === \"field\" || granularity === \"auxiliary\";\n}\n/**\n* Applies the two consumer filters to a diff issue list: strict gating\n* (relational `not-expected` findings drop in lenient mode) and\n* control-policy disposition (each surviving issue grades against its\n* subject table's effective policy; suppressed issues drop, `observed`\n* subjects warn). The verify verdict is `failures.length === 0`.\n*/\nfunction computeSqlDiffVerdict(input) {\n\tconst failures = [];\n\tconst warnings = [];\n\tfor (const issue of input.issues) {\n\t\tif (!input.strict && issueOutcome(issue) === \"not-expected\" && isStrictOnlyExtra(issue, input.granularityOf)) continue;\n\t\tconst disposition = dispositionForCategory(effectiveControlPolicy(input.resolveControlPolicy(issue), input.defaultControlPolicy), classifySqlDiffIssue(issue, input.granularityOf));\n\t\tif (disposition === \"suppress\") continue;\n\t\tif (disposition === \"warn\") {\n\t\t\twarnings.push(issue);\n\t\t\tcontinue;\n\t\t}\n\t\tfailures.push(issue);\n\t}\n\treturn {\n\t\tfailures,\n\t\twarnings\n\t};\n}\nfunction computeStorageTypeVerdict(input) {\n\tconst failures = [];\n\tconst warnings = [];\n\tconst policy = effectiveControlPolicy(void 0, input.contract.defaultControlPolicy);\n\tfor (const pair of input.namespacePairs) {\n\t\tif (pair.actual === void 0) continue;\n\t\tfor (const [typeName, typeInstance] of Object.entries(input.contract.storage.types ?? {})) {\n\t\t\tif (!isStorageTypeInstance(typeInstance)) continue;\n\t\t\tconst hook = input.codecHooks.get(typeInstance.codecId);\n\t\t\tif (!hook?.verifyType) continue;\n\t\t\tconst typeIssues = hook.verifyType({\n\t\t\t\ttypeName,\n\t\t\t\ttypeInstance,\n\t\t\t\tschema: pair.actual\n\t\t\t});\n\t\t\tfor (const issue of typeIssues) {\n\t\t\t\tconst disposition = verifierDisposition(policy, issue);\n\t\t\t\tif (disposition === \"suppress\") continue;\n\t\t\t\tif (disposition === \"warn\") {\n\t\t\t\t\twarnings.push(issue);\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tfailures.push(issue);\n\t\t\t}\n\t\t}\n\t}\n\treturn {\n\t\tfailures,\n\t\twarnings\n\t};\n}\n/**\n* THE SQL schema verify: runs the target's full-tree node diff, grades it\n* through the family's post-diff filters (strict gating + control-policy\n* disposition) plus the codec `verifyType` hook findings, and wraps the\n* verdict in the issue-based result envelope. `ok` holds exactly when both\n* issue lists are empty — the lists carry the verdict's failures.\n*/\nfunction verifySqlSchemaByDiff(input) {\n\tconst startTime = Date.now();\n\tconst verdictDiff = input.diffSchema({\n\t\tcontract: input.contract,\n\t\tschema: input.schema,\n\t\tframeworkComponents: input.frameworkComponents\n\t});\n\tconst diffVerdict = computeSqlDiffVerdict({\n\t\tissues: verdictDiff.issues,\n\t\tresolveControlPolicy: verdictDiff.resolveControlPolicy,\n\t\tstrict: input.strict,\n\t\tdefaultControlPolicy: input.contract.defaultControlPolicy,\n\t\tgranularityOf: input.granularityOf\n\t});\n\tconst storageTypeVerdict = computeStorageTypeVerdict({\n\t\tcontract: input.contract,\n\t\tnamespacePairs: verdictDiff.namespacePairs,\n\t\tcodecHooks: extractCodecControlHooks(input.frameworkComponents)\n\t});\n\tconst failCount = diffVerdict.failures.length + storageTypeVerdict.failures.length;\n\tconst ok = failCount === 0;\n\tconst profileHash = \"profileHash\" in input.contract && typeof input.contract.profileHash === \"string\" ? input.contract.profileHash : void 0;\n\treturn {\n\t\tok,\n\t\t...ok ? {} : { code: VERIFY_CODE_SCHEMA_FAILURE },\n\t\tsummary: ok ? \"Database schema satisfies contract\" : `Database schema does not satisfy contract (${failCount} failure${failCount === 1 ? \"\" : \"s\"})`,\n\t\tcontract: {\n\t\t\tstorageHash: input.contract.storage.storageHash,\n\t\t\t...ifDefined(\"profileHash\", profileHash)\n\t\t},\n\t\ttarget: {\n\t\t\texpected: input.contract.target,\n\t\t\tactual: input.contract.target\n\t\t},\n\t\tschema: {\n\t\t\tissues: [...diffVerdict.failures, ...storageTypeVerdict.failures],\n\t\t\twarnings: { issues: [...diffVerdict.warnings, ...storageTypeVerdict.warnings] }\n\t\t},\n\t\tmeta: { strict: input.strict },\n\t\ttimings: { total: Date.now() - startTime }\n\t};\n}\n//#endregion\nexport { computeStorageTypeVerdict as a, extractCodecControlHooks as c, computeSqlDiffVerdict as i, classifyDiffSubjectGranularity as n, verifySqlSchemaByDiff as o, classifySqlDiffIssue as r, enforceSqlDataTypeInvariants as s, classifyDiffEntityKind as t };\n\n//# sourceMappingURL=schema-verify-C3wbdviw.mjs.map"],"mappings":";;;;;;;;;;AAUA,SAAS,qBAAqB,YAAY;CACzC,IAAI,OAAO,eAAe,YAAY,eAAe,MA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,MAAM,SAAS,gBAAgB,WAAW,MAAM,SAAS,cAAc,KAAK;CAC1I,OAAO;EACN;EACA,GAAG,KAAK,CAAC,IAAI,EAAE,MAAM,2BAA2B;EAChD,SAAS,KAAK,uCAAuC,8CAA8C,UAAU,UAAU,cAAc,IAAI,KAAK,IAAI;EAClJ,UAAU;GACT,aAAa,MAAM,SAAS,QAAQ;GACpC,GAAG,UAAU,eAAe,WAAW;EACxC;EACA,QAAQ;GACP,UAAU,MAAM,SAAS;GACzB,QAAQ,MAAM,SAAS;EACxB;EACA,QAAQ;GACP,QAAQ,CAAC,GAAG,YAAY,UAAU,GAAG,mBAAmB,QAAQ;GAChE,UAAU,EAAE,QAAQ,CAAC,GAAG,YAAY,UAAU,GAAG,mBAAmB,QAAQ,EAAE;EAC/E;EACA,MAAM,EAAE,QAAQ,MAAM,OAAO;EAC7B,SAAS,EAAE,OAAO,KAAK,IAAI,IAAI,UAAU;CAC1C;AACD"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"serialized-index-CrgG8ct1-DDfHKUEK.d.mts","names":[],"sources":["../../../../2-sql/1-core/contract/dist/serialized-index-CrgG8ct1.d.mts"],"mappings":";;;;;;;;;UAQU;WACC;WACA;WACA;;;;;;iBAMM,mCAAmC,MAAM,4BAA4B;;;;;;;;KAQjF,kBAAkB;WACZ;WACA;WACA;WACA;WACA;WACA,UAAU;;;;;;;;iBAQJ,yBAAyB,MAAM,kBAAkB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"serialized-index-DjCCnXB1-C_YccpTL.mjs","names":[],"sources":["../../../../2-sql/1-core/contract/dist/serialized-index-DjCCnXB1.mjs"],"sourcesContent":["import { l as SqlNode } from \"./storage-table-DDvN83mw.mjs\";\nimport { parseNaming } from \"@internal/sql-schema-ir/naming\";\nimport { freezeNode } from \"@internal/framework-components/ir\";\nimport { ContractValidationError } from \"@internal/contract/contract-validation-error\";\n//#region src/ir/storage-value-set.ts\n/**\n* SQL Contract IR node for a value-set entry in a namespace's `valueSet`\n* map (`SqlNamespace.entries.valueSet`).\n*\n* A value-set records the ordered set of permitted codec-encoded values for\n* an enum-like column restriction. It does not carry a `codecId` — the\n* column that references it already holds the codec; the value-set holds\n* only the permitted values.\n*\n* The node's `kind` is enumerable (`'valueSet'`) so the JSON envelope\n* carries the discriminator and the serializer hydration walker can\n* dispatch on it. This follows the per-leaf enumerable-kind convention\n* established in the SQL-node comment (future polymorphic dispatch on\n* namespace entries needs the discriminator in JSON).\n*\n* The entry's name is not on the class — value-sets are keyed by name in\n* the parent namespace's `valueSet: Record<string, StorageValueSet>` map.\n*/\nvar StorageValueSet = class extends SqlNode {\n\tkind = \"valueSet\";\n\tvalues;\n\tconstructor(input) {\n\t\tsuper();\n\t\tthis.values = Object.freeze([...input.values]);\n\t\tfreezeNode(this);\n\t}\n};\nfunction isStorageValueSet(value) {\n\tif (typeof value !== \"object\" || value === null) return false;\n\treturn \"kind\" in value && value.kind === \"valueSet\" && \"values\" in value;\n}\n//#endregion\n//#region src/serialized-check-constraint.ts\n/**\n* Hydrates one stored check constraint into constructor input. `parseNaming`\n* is what rejects a hand-edited file whose `prefix` and `name` disagree.\n*/\nfunction checkConstraintInputFromSerialized(flat) {\n\treturn {\n\t\tnaming: parseNaming(flat.name, flat.prefix),\n\t\texpression: flat.expression\n\t};\n}\n//#endregion\n//#region src/serialized-index.ts\n/**\n* Hydrates one stored index into constructor input. The parameter is typed\n* but the values are whatever the file held, so each field the union depends\n* on is checked here rather than downstream — by the time `Index` sees the\n* data it is already a valid union.\n*/\nfunction indexInputFromSerialized(flat) {\n\tif (flat.name === void 0 || flat.name.length === 0) throw new ContractValidationError(\"Index: every index carries a full physical name; an expression index must be explicitly named (a default name cannot be derived from an expression).\", \"storage\");\n\tif (flat.columns === void 0 === (flat.expression === void 0)) throw new ContractValidationError(`Index \"${flat.name}\": exactly one of columns or expression must be set.`, \"storage\");\n\tconst carried = {\n\t\tnaming: parseNaming(flat.name, flat.prefix),\n\t\twhere: flat.where,\n\t\tunique: flat.unique,\n\t\ttype: flat.type,\n\t\toptions: flat.options\n\t};\n\treturn flat.expression !== void 0 ? {\n\t\t...carried,\n\t\texpression: flat.expression\n\t} : {\n\t\t...carried,\n\t\tcolumns: flat.columns ?? []\n\t};\n}\n//#endregion\nexport { isStorageValueSet as i, checkConstraintInputFromSerialized as n, StorageValueSet as r, indexInputFromSerialized as t };\n\n//# sourceMappingURL=serialized-index-DjCCnXB1.mjs.map"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAuBA,IAAI,kBAAkB,cAAc,QAAQ;CAC3C,OAAO;CACP;CACA,YAAY,OAAO;EAClB,MAAM;EACN,KAAK,SAAS,OAAO,OAAO,CAAC,GAAG,MAAM,MAAM,CAAC;EAC7C,WAAW,IAAI;CAChB;AACD;AACA,SAAS,kBAAkB,OAAO;CACjC,IAAI,OAAO,UAAU,YAAY,UAAU,MAAM,OAAO;CACxD,OAAO,UAAU,SAAS,MAAM,SAAS,cAAc,YAAY;AACpE;;;;;AAOA,SAAS,mCAAmC,MAAM;CACjD,OAAO;EACN,QAAQ,YAAY,KAAK,MAAM,KAAK,MAAM;EAC1C,YAAY,KAAK;CAClB;AACD;;;;;;;AASA,SAAS,yBAAyB,MAAM;CACvC,IAAI,KAAK,SAAS,KAAK,KAAK,KAAK,KAAK,WAAW,GAAG,MAAM,IAAI,wBAAwB,wJAAwJ,SAAS;CACvP,IAAI,KAAK,YAAY,KAAK,OAAO,KAAK,eAAe,KAAK,IAAI,MAAM,IAAI,wBAAwB,UAAU,KAAK,KAAK,uDAAuD,SAAS;CACpL,MAAM,UAAU;EACf,QAAQ,YAAY,KAAK,MAAM,KAAK,MAAM;EAC1C,OAAO,KAAK;EACZ,QAAQ,KAAK;EACb,MAAM,KAAK;EACX,SAAS,KAAK;CACf;CACA,OAAO,KAAK,eAAe,KAAK,IAAI;EACnC,GAAG;EACH,YAAY,KAAK;CAClB,IAAI;EACH,GAAG;EACH,SAAS,KAAK,WAAW,CAAC;CAC3B;AACD"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"sql-contract-serializer-sMY3prTx-BkFoHhST.mjs","names":[],"sources":["../../../../2-sql/9-family/dist/sql-contract-serializer-sMY3prTx.mjs"],"sourcesContent":["import { t as sqlFamilyError } from \"./errors-B5g0xWro.mjs\";\nimport { hydrateNamespaceEntities } from \"@internal/framework-components/ir\";\nimport { sqlContractCanonicalizationHooks } from \"@internal/sql-contract/canonicalization-hooks\";\nimport { blindCast } from \"@internal/utils/casts\";\nimport { ifDefined } from \"@internal/utils/defined\";\nimport { ContractValidationError } from \"@internal/contract/contract-validation-error\";\nimport { SqlStorage, isMaterializedSqlNamespace } from \"@internal/sql-contract/types\";\nimport { createSqlContractSchema, resolveSqlToOneRelationStorage, validateSqlContractFully } from \"@internal/sql-contract/validators\";\nimport { isPlainRecord as isPlainRecord$1 } from \"@internal/contract/is-plain-record\";\nimport { withDerivedToOneRelationNullability } from \"@internal/contract-authoring\";\nimport { composeSqlEntityKinds } from \"@internal/sql-contract/entity-kinds\";\nimport { type } from \"arktype\";\n//#region src/core/ir/sql-contract-serializer-base.ts\nconst NamespaceRawSchema = type({\n\tid: \"string\",\n\t\"kind?\": \"string\",\n\tentries: type({ \"+\": \"ignore\" })\n});\n/**\n* A `contract.json` written before to-one relations recorded `nullable` (rc.9 and earlier)\n* loads with the flag derived from storage: nullable when any local FK column is nullable or\n* cannot be resolved.\n*/\nfunction withSqlToOneRelationNullability(contract) {\n\tconst domain = withDerivedToOneRelationNullability(contract.domain, ({ model, relation }) => {\n\t\tconst { ownsForeignKey, columns } = resolveSqlToOneRelationStorage(contract, blindCast(model.storage), relation);\n\t\treturn {\n\t\t\townsReference: ownsForeignKey,\n\t\t\tlocalFieldNullability: columns.map((column) => column.nullable)\n\t\t};\n\t});\n\treturn {\n\t\t...contract,\n\t\tdomain\n\t};\n}\n/**\n* SQL family `ContractSerializer` abstract base. Carries the SQL-shared\n* deserialization pipeline:\n*\n* 1. `parseSqlContractStructure` validates the on-disk JSON envelope\n* against the SQL contract arktype schema (`validateSqlContractFully`)\n* and returns the validated flat-data shape.\n* 2. `hydrateSqlStorage` walks the validated `storage` subtree and\n* constructs the family-shared SQL Contract IR class hierarchy\n* (`SqlStorage` -> `StorageTable` -> `StorageColumn` / `PrimaryKey`\n* / …). The rest of the contract envelope is JSON-clean primitive\n* data and passes through unchanged.\n* 3. `constructTargetContract` is the target-specific extension hook;\n* defaults to identity. Targets that need to attach target-only\n* fields (e.g. target-specific derived storage fields) override it.\n*\n* Default `serializeContract` is identity over the contract — concrete\n* SQL targets ship JSON-clean class instances, so the contract value\n* can be stringified directly. The non-enumerable family-level `kind`\n* discriminator on `SqlNode` instances stays out of the persisted\n* envelope automatically. Targets that need to canonicalize on the way\n* out (key ordering, dropping computed-only fields) override\n* `serializeContract` directly.\n*/\nvar SqlContractSerializerBase = class {\n\tentityHydrationRegistry;\n\tdataTypes;\n\tcontractSchema;\n\tentryKinds;\n\tconstructor(entityHydrationRegistry = /* @__PURE__ */ new Map(), packEntityKinds = [], dataTypes = void 0) {\n\t\tthis.entityHydrationRegistry = entityHydrationRegistry;\n\t\tthis.dataTypes = dataTypes;\n\t\tthis.entryKinds = composeSqlEntityKinds(packEntityKinds);\n\t\tthis.contractSchema = packEntityKinds.length > 0 ? createSqlContractSchema(this.entryKinds) : void 0;\n\t}\n\tdeserializeContract(json) {\n\t\tconst validated = withSqlToOneRelationNullability(this.parseSqlContractStructure(json));\n\t\tconst hydrated = this.hydrateSqlStorage(validated);\n\t\treturn blindCast(this.constructTargetContract(hydrated));\n\t}\n\tserializeContract(contract) {\n\t\treturn blindCast(contract);\n\t}\n\tshouldPreserveEmpty = sqlContractCanonicalizationHooks.shouldPreserveEmpty;\n\tsortStorage = sqlContractCanonicalizationHooks.sortStorage;\n\thashCanonicalizationHooks = sqlContractCanonicalizationHooks;\n\tparseSqlContractStructure(json) {\n\t\treturn validateSqlContractFully(json, {\n\t\t\t...ifDefined(\"contractSchema\", this.contractSchema),\n\t\t\t...ifDefined(\"dataTypes\", this.dataTypes)\n\t\t});\n\t}\n\thydrateSqlStorage(validated) {\n\t\tconst types = validated.storage.types;\n\t\tconst hydratedTypes = types !== void 0 ? Object.fromEntries(Object.entries(types).map(([name, entry]) => [name, this.hydrateStorageTypeEntry(entry)])) : void 0;\n\t\tconst rawNamespaces = validated.storage.namespaces;\n\t\tif (rawNamespaces === void 0) throw new ContractValidationError(\"Contract storage.namespaces is required after structural validation\", \"structural\");\n\t\tconst hydratedNamespaces = this.hydrateSqlNamespaceMap(blindCast(rawNamespaces));\n\t\treturn {\n\t\t\t...validated,\n\t\t\tstorage: new SqlStorage({\n\t\t\t\tstorageHash: validated.storage.storageHash,\n\t\t\t\t...ifDefined(\"types\", hydratedTypes),\n\t\t\t\tnamespaces: blindCast(hydratedNamespaces)\n\t\t\t})\n\t\t};\n\t}\n\thydrateSqlNamespaceMap(namespaces) {\n\t\treturn Object.fromEntries(Object.entries(namespaces).map(([nsId, namespaceEntryRaw]) => {\n\t\t\tconst namespaceHydrated = this.hydrateSqlNamespaceEntry(nsId, namespaceEntryRaw);\n\t\t\tif (!isMaterializedSqlNamespace(namespaceHydrated)) throw sqlFamilyError(\"CONTRACT.PACK_CONTRIBUTION_INVALID\", `Target serializer bug: hydrateSqlNamespaceEntry for namespace \"${nsId}\" returned a non-NamespaceBase value. Override hydrateSqlNamespaceEntry to produce a target namespace concretion.`, {\n\t\t\t\twhy: \"The target contract serializer hydrated a namespace into a value that is not a materialized namespace concretion.\",\n\t\t\t\tfix: \"Fix the target package: its hydrateSqlNamespaceEntry override must return a target namespace concretion.\",\n\t\t\t\tmeta: { namespaceId: nsId }\n\t\t\t});\n\t\t\treturn [nsId, namespaceHydrated];\n\t\t}));\n\t}\n\thydrateSqlNamespaceEntry(nsId, raw) {\n\t\tconst id = typeof raw[\"id\"] === \"string\" ? raw[\"id\"] : nsId;\n\t\tconst parsed = NamespaceRawSchema({\n\t\t\t...raw,\n\t\t\tid\n\t\t});\n\t\tif (parsed instanceof type.errors) throw new ContractValidationError(`Namespace hydration failed: ${parsed.map((p) => p.message).join(\"; \")}`, \"structural\");\n\t\tconst entriesRaw = parsed.entries;\n\t\tconst rawEntriesMap = isPlainRecord$1(entriesRaw) ? entriesRaw : {};\n\t\tconst entriesInput = {};\n\t\tfor (const [key, innerMap] of Object.entries(rawEntriesMap)) entriesInput[key] = isPlainRecord$1(innerMap) ? innerMap : Object.freeze({});\n\t\tconst entriesOutput = hydrateNamespaceEntities(entriesInput, this.entryKinds, \"fail\", id);\n\t\tif (!Object.hasOwn(entriesOutput, \"table\")) entriesOutput[\"table\"] = {};\n\t\treturn blindCast({\n\t\t\tid,\n\t\t\tentries: entriesOutput\n\t\t});\n\t}\n\thydrateStorageTypeEntry(entry) {\n\t\tif (typeof entry !== \"object\" || entry === null) return entry;\n\t\tconst kind = isPlainRecord$1(entry) && \"kind\" in entry ? entry.kind : void 0;\n\t\tif (typeof kind !== \"string\") return entry;\n\t\tconst factory = this.entityHydrationRegistry.get(kind);\n\t\tif (factory === void 0) return entry;\n\t\treturn blindCast(factory(entry));\n\t}\n\tconstructTargetContract(hydrated) {\n\t\treturn blindCast(hydrated);\n\t}\n\t/**\n\t* Serializes a namespace's `entries` dict by walking every enumerable\n\t* kind — no kind is named here, mirroring the generic hydrate walk in\n\t* `hydrateSqlNamespaceEntry` above. `table` is the SQL family's one\n\t* universal base kind (every namespace carries it), so it is always\n\t* emitted, even when empty; every other kind — target- or\n\t* pack-contributed — is emitted only when it holds at least one entry.\n\t* A kind carried non-enumerable on `entries` is excluded here for free,\n\t* since `Object.entries` honors enumerability.\n\t*/\n\tserializeNamespaceEntries(entries) {\n\t\tconst out = { table: this.serializeEntries(entries[\"table\"] ?? {}) };\n\t\tfor (const [kind, record] of Object.entries(entries)) {\n\t\t\tif (kind === \"table\" || record == null || Object.keys(record).length === 0) continue;\n\t\t\tout[kind] = this.serializeEntries(record);\n\t\t}\n\t\treturn out;\n\t}\n\tserializeEntries(entries) {\n\t\tconst out = {};\n\t\tfor (const [name, entry] of Object.entries(entries)) out[name] = this.serializeJsonObject(entry);\n\t\treturn out;\n\t}\n\tserializeJsonObject(value) {\n\t\treturn blindCast(this.serializeJsonValue(value));\n\t}\n\tserializeJsonValue(value) {\n\t\treturn blindCast(JSON.parse(JSON.stringify(value)));\n\t}\n};\n//#endregion\n//#region src/core/ir/sql-contract-serializer.ts\n/**\n* Default SQL family `ContractSerializer` concretion. Inherits the\n* full SQL-shared deserialization pipeline (structural validation +\n* IR-class hydration) without pack-registered `storage.types`\n* hydration factories — targets that emit polymorphic JSON outside the\n* codec-typed envelope wire a target-specific subclass with a populated\n* registry (see Postgres). Family-level call sites instantiate this\n* default directly when no target serializer is supplied.\n*\n* Because this serializer has no target concretion, deserialization of\n* contracts that include namespace entries from JSON will throw unless\n* the caller provides pre-hydrated `NamespaceBase` instances. Production\n* paths always supply a target-specific serializer.\n*/\nvar SqlContractSerializer = class extends SqlContractSerializerBase {\n\tconstructor() {\n\t\tsuper(/* @__PURE__ */ new Map());\n\t}\n};\n//#endregion\nexport { SqlContractSerializerBase as n, SqlContractSerializer as t };\n\n//# sourceMappingURL=sql-contract-serializer-sMY3prTx.mjs.map"],"mappings":";;;;;;;;;;;;;AAaA,MAAM,qBAAqB,KAAK;CAC/B,IAAI;CACJ,SAAS;CACT,SAAS,KAAK,EAAE,KAAK,SAAS,CAAC;AAChC,CAAC;;;;;;AAMD,SAAS,gCAAgC,UAAU;CAClD,MAAM,SAAS,oCAAoC,SAAS,SAAS,EAAE,OAAO,eAAe;EAC5F,MAAM,EAAE,gBAAgB,YAAY,+BAA+B,UAAU,UAAU,MAAM,OAAO,GAAG,QAAQ;EAC/G,OAAO;GACN,eAAe;GACf,uBAAuB,QAAQ,KAAK,WAAW,OAAO,QAAQ;EAC/D;CACD,CAAC;CACD,OAAO;EACN,GAAG;EACH;CACD;AACD;;;;;;;;;;;;;;;;;;;;;;;;;AAyBA,IAAI,4BAA4B,MAAM;CACrC;CACA;CACA;CACA;CACA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U,QAAQ,KAAK,CAAC;CAChC;CACA,wBAAwB,UAAU;EACjC,OAAO,UAAU,QAAQ;CAC1B;;;;;;;;;;;CAWA,0BAA0B,SAAS;EAClC,MAAM,MAAM,EAAE,OAAO,KAAK,iBAAiB,QAAQ,YAAY,CAAC,CAAC,EAAE;EACnE,KAAK,MAAM,CAAC,MAAM,WAAW,OAAO,QAAQ,OAAO,GAAG;GACrD,IAAI,SAAS,WAAW,UAAU,QAAQ,OAAO,KAAK,MAAM,CAAC,CAAC,WAAW,GAAG;GAC5E,IAAI,QAAQ,KAAK,iBAAiB,MAAM;EACzC;EACA,OAAO;CACR;CACA,iBAAiB,SAAS;EACzB,MAAM,MAAM,CAAC;EACb,KAAK,MAAM,CAAC,MAAM,UAAU,OAAO,QAAQ,OAAO,GAAG,IAAI,QAAQ,KAAK,oBAAoB,KAAK;EAC/F,OAAO;CACR;CACA,oBAAoB,OAAO;EAC1B,OAAO,UAAU,KAAK,mBAAmB,KAAK,CAAC;CAChD;CACA,mBAAmB,OAAO;EACzB,OAAO,UAAU,KAAK,MAAM,KAAK,UAAU,KAAK,CAAC,CAAC;CACnD;AACD;;;;;;;;;;;;;;;AAiBA,IAAI,wBAAwB,cAAc,0BAA0B;CACnE,cAAc;EACb,sBAAsB,IAAI,IAAI,CAAC;CAChC;AACD"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"sql-data-type-D7M-YTTY-C9oWGZ3z.mjs","names":[],"sources":["../../../../2-sql/1-core/contract/dist/sql-data-type-D7M-YTTY.mjs"],"sourcesContent":["import { t as contractError } from \"./contract-errors-BCN6RVI5.mjs\";\nimport { ifDefined } from \"@internal/utils/defined\";\nimport { assertDataTypeParams, dataType, dataTypeParams, objectSchemaKeys, schemaKeysAllowing } from \"@internal/framework-components/codec\";\nimport { canonicalizeJson } from \"@internal/framework-components/utils\";\nimport { blindCast } from \"@internal/utils/casts\";\nimport { InternalError } from \"@internal/utils/internal-error\";\nimport { type } from \"arktype\";\n//#region src/sql-data-type.ts\nconst PLACEHOLDER = /\\{([A-Za-z][A-Za-z0-9]*)\\}/g;\nconst LITERAL_CHARACTERS = /^[a-z0-9_ (),.]*$/;\nconst REGEXP_SPECIAL = /[.*+?^${}()|[\\]\\\\]/g;\nfunction paramKeysOf(id, schema) {\n\tif (schema === void 0) return [];\n\tconst keys = objectSchemaKeys(schema);\n\tif (keys === void 0) refuseDeclaration(id, \"its parameter schema must be an arktype object schema.\");\n\treturn keys;\n}\nfunction placeholdersOf(text) {\n\treturn [...text.matchAll(PLACEHOLDER)].map((match) => match[1] ?? \"\");\n}\nfunction placeholderSetOf(text) {\n\treturn [...placeholdersOf(text)].sort().join(\",\");\n}\nfunction patternOf(text, signedKeys = []) {\n\tconst placeholders = text.replace(REGEXP_SPECIAL, \"\\\\$&\").replace(/\\\\\\{([A-Za-z][A-Za-z0-9]*)\\\\\\}/g, (_, name) => signedKeys.includes(name) ? \"(-?\\\\d+)\" : \"(\\\\d+)\");\n\treturn new RegExp(`^${placeholders}$`);\n}\nfunction refuseDeclaration(id, why) {\n\tthrow new InternalError(`Data type ${id}: ${why}`);\n}\nfunction checkText(id, text, paramKeys) {\n\tconst quoted = JSON.stringify(text.text);\n\tconst refuse = (why) => refuseDeclaration(id, `the text ${quoted} ${why}.`);\n\tif (text.text === \"\") refuse(\"is empty\");\n\tif (text.text !== text.text.trim()) refuse(\"starts or ends with a space\");\n\tif (text.text.includes(\" \")) refuse(\"has two spaces in a row\");\n\tconst literal = text.text.replace(PLACEHOLDER, \"\");\n\tif (literal.includes(\"{\") || literal.includes(\"}\")) refuse(\"has a placeholder that is not written {name}\");\n\tif (!LITERAL_CHARACTERS.test(literal)) refuse(\"must be lower case and contain only letters, digits, spaces, brackets, commas, dots, underscores and placeholders\");\n\tfor (const name of placeholdersOf(text.text)) if (!paramKeys.includes(name)) refuse(`names the parameter {${name}}, which the type does not declare`);\n\tif (text.display === void 0) return;\n\tconst display = JSON.stringify(text.display);\n\tif (text.display.toLowerCase() !== text.text.toLowerCase()) refuse(`has the display ${display}, which differs from it beyond letter case`);\n\tif (placeholdersOf(text.display).join(\",\") !== placeholdersOf(text.text).join(\",\")) refuse(`has the display ${display}, which writes a placeholder differently`);\n}\nfunction checkMarks(id, texts) {\n\tconst marked = /* @__PURE__ */ new Map();\n\tfor (const text of texts) {\n\t\tconst key = placeholderSetOf(text.text);\n\t\tconst entry = marked.get(key) ?? {};\n\t\tfor (const mark of [\"written\", \"catalog\"]) {\n\t\t\tif (text[mark] !== true) continue;\n\t\t\tconst other = entry[mark];\n\t\t\tif (other !== void 0) refuseDeclaration(id, `the texts ${JSON.stringify(other)} and ${JSON.stringify(text.text)} have the same placeholders and are both ${mark}.`);\n\t\t\tentry[mark] = text.text;\n\t\t}\n\t\tmarked.set(key, entry);\n\t}\n}\nfunction checkKindClaim(id, spec) {\n\tif (spec.nameIsCatalogText === true) {\n\t\tif (spec.render === void 0) refuseDeclaration(id, \"a type whose name is its catalog text declares render.\");\n\t\tif (spec.texts !== void 0 || spec.claimsKind !== void 0) refuseDeclaration(id, \"a type whose name is its catalog text declares no texts and claims no kind.\");\n\t}\n\tif (spec.claimsKind === void 0) {\n\t\tif (spec.render !== void 0 && spec.nameIsCatalogText !== true) refuseDeclaration(id, \"render is allowed only together with claimsKind or nameIsCatalogText.\");\n\t\tif (spec.fromReported !== void 0) refuseDeclaration(id, \"fromReported is allowed only together with claimsKind.\");\n\t\treturn;\n\t}\n\tif (spec.texts !== void 0) refuseDeclaration(id, \"a type that claims a kind declares no texts.\");\n}\nfunction checkStoredAs(id, spec) {\n\tif (spec.storedAs === void 0) return;\n\tif (spec.texts !== void 0) refuseDeclaration(id, \"a type stored as another declares no texts; its name is the name of the type it is stored as.\");\n\tif (spec.claimsKind !== void 0) refuseDeclaration(id, \"a type stored as another claims no kind.\");\n}\nconst identity = (params) => params;\nfunction isParamsOf(schema, params) {\n\treturn schema === void 0 || !(schema(params) instanceof type.errors);\n}\nfunction checkNormalFormsWritten(type) {\n\tconst written = new Set(type.sql.texts.filter((text) => text.written === true).map((text) => placeholderSetOf(text.text)));\n\tif (written.size === 0) return;\n\tconst probes = [{}, ...type.sql.texts.map((text) => Object.fromEntries(placeholdersOf(text.text).map((name) => [name, 1])))];\n\tfor (const probe of probes) {\n\t\tif (!isParamsOf(type.params, probe)) continue;\n\t\tconst normalKeys = presentKeys(type.sql.normalize(probe));\n\t\tif (!written.has([...normalKeys].sort().join(\",\"))) refuseDeclaration(type.id, `the parameters ${formatKeys(Object.keys(probe))} have the normal form ${formatKeys(normalKeys)}, which no written text takes.`);\n\t}\n}\n/** Declare a SQL data type, refusing a declaration that breaks a rule of the module. */\nfunction sqlDataType(id, spec) {\n\tconst declaredNormalize = spec.normalize ?? identity;\n\tconst normalize = (params) => isParamsOf(spec.params, params) ? declaredNormalize(params) : params;\n\tconst { params: _untypedParams, ...declared } = dataType(id, {\n\t\t...spec,\n\t\tnormalize\n\t});\n\tconst texts = spec.texts ?? [];\n\tconst paramKeys = paramKeysOf(declared.id, spec.params);\n\tfor (const text of texts) checkText(declared.id, text, paramKeys);\n\tcheckMarks(declared.id, texts);\n\tcheckKindClaim(declared.id, spec);\n\tcheckStoredAs(declared.id, spec);\n\tconst type = {\n\t\t...declared,\n\t\t...ifDefined(\"params\", spec.params),\n\t\tsql: {\n\t\t\ttexts,\n\t\t\tclaimsKind: spec.claimsKind,\n\t\t\tstoredAs: spec.storedAs,\n\t\t\tnormalize,\n\t\t\trender: spec.render,\n\t\t\tfromReported: spec.fromReported,\n\t\t\tnameIsCatalogText: spec.nameIsCatalogText === true\n\t\t}\n\t};\n\tcheckNormalFormsWritten(type);\n\treturn type;\n}\n/** Whether the name of `type` is the text the database catalog prints, as declared by {@link SqlDataTypeSpec.nameIsCatalogText}. */\nfunction nameIsCatalogText(type) {\n\treturn type.sql.nameIsCatalogText;\n}\n/** Whether `type` is a data type a SQL column can have. `sql/expression` is the one data type no column has. */\nfunction isSqlDataType(type) {\n\treturn \"sql\" in type;\n}\nfunction presentKeys(params) {\n\treturn Object.keys(params).filter((key) => params[key] !== void 0);\n}\nfunction formatKeys(keys) {\n\treturn `[${[...keys].sort().join(\", \")}]`;\n}\n/** The parameters, when `type` accepts them; otherwise `CONTRACT.TYPE_PARAMS_INVALID` naming each parameter it refuses. */\nfunction validateSqlTypeParams(type, params) {\n\tassertDataTypeParams(type, params);\n\treturn blindCast(params);\n}\nfunction pickText(type, mark, keys) {\n\tconst candidates = type.sql.texts.filter((text) => text[mark] === true);\n\tconst wanted = [...keys].sort().join(\",\");\n\tconst found = candidates.find((text) => placeholderSetOf(text.text) === wanted);\n\tif (found !== void 0) return found;\n\tconst verb = mark === \"written\" ? \"written\" : \"reported\";\n\tconst takes = candidates.length === 0 ? `it is never ${verb}` : `it is ${verb} with ${candidates.map((text) => formatKeys(placeholdersOf(text.text))).join(\", \")}`;\n\tthrow contractError(\"CONTRACT.TYPE_PARAMS_INVALID\", `${type.id} cannot be ${verb} with parameters ${formatKeys(keys)}; ${takes}`, { meta: {\n\t\tdataType: type.id,\n\t\tparameters: [...keys]\n\t} });\n}\nfunction substitute(type, text, params) {\n\treturn (text.display ?? text.text).replace(PLACEHOLDER, (_, name) => {\n\t\tconst value = params[name];\n\t\tif (!Number.isSafeInteger(value)) throw contractError(\"CONTRACT.TYPE_PARAMS_INVALID\", `${type.id}: the parameter ${name} is written into the type name and must be an integer`, { meta: {\n\t\t\tdataType: type.id,\n\t\t\tparameters: [name]\n\t\t} });\n\t\treturn String(value);\n\t});\n}\n/**\n* The name of `type` with no parameters, for places where parameters must not appear, such as a\n* cast. A type whose name is its catalog text has none: its parameters cannot be separated from its\n* name, so it is refused.\n*/\nfunction sqlBaseName(type, params) {\n\tif (type.sql.nameIsCatalogText) throw new InternalError(`Data type ${type.id} names its type by its catalog text, so it has no base name.`);\n\tif (type.sql.render !== void 0) return type.sql.render(validateSqlTypeParams(type, params));\n\tconst fewest = type.sql.texts.filter((text) => text.written === true).reduce((best, text) => best === void 0 || placeholdersOf(text.text).length < placeholdersOf(best.text).length ? text : best, void 0);\n\tif (fewest === void 0) throw new InternalError(`Data type ${type.id} has no written text and no render, so it has no base name.`);\n\tconst name = fewest.display ?? fewest.text;\n\tif (placeholdersOf(fewest.text).length === 0) return name;\n\tconst bracket = name.indexOf(\"(\");\n\treturn bracket === -1 ? name : name.slice(0, bracket);\n}\n/**\n* The base name of `type` with `params`, unquoted, for display. It differs from {@link sqlBaseName}\n* for a type that claims a kind, where it is the `typeName` parameter as written (`app.status`)\n* while `sqlBaseName` gives the quoted name `render` writes into SQL (`\"app\".\"status\"`), and for a\n* type whose name is its catalog text, where it is that whole text.\n*/\nfunction unquotedSqlBaseName(type, params) {\n\tif (type.sql.nameIsCatalogText) return renderSqlTypeName(type, params);\n\tif (type.sql.claimsKind === void 0) return sqlBaseName(type, params);\n\tconst { typeName } = validateSqlTypeParams(type, params);\n\tif (typeof typeName !== \"string\") throw new InternalError(`Data type ${type.id} claims the kind \"${type.sql.claimsKind}\" but declares no string typeName parameter.`);\n\treturn typeName;\n}\nconst ADD_THE_CODEC_PACK = \"Add the pack that provides the codec, and so declares its data type, to the configuration: to `extensions` in prisma.config or in defineContract.\";\n/** The SQL data type the codec `codecId` represents. */\nfunction sqlDataTypeOfCodec(codecId, lookups) {\n\tconst descriptor = lookups.codecLookup.descriptorFor(codecId);\n\tif (descriptor === void 0) throw contractError(\"CONTRACT.CODEC_DESCRIPTOR_MISSING\", `No codec \"${codecId}\" is registered, so its column type cannot be named.`, {\n\t\tfix: ADD_THE_CODEC_PACK,\n\t\tmeta: { codecId }\n\t});\n\tconst type = lookups.dataTypeLookup.get(descriptor.dataType);\n\tif (type === void 0) throw contractError(\"CONTRACT.DATA_TYPE_UNREGISTERED\", `Codec \"${codecId}\" represents data type \"${descriptor.dataType}\", which no component registers.`, {\n\t\tfix: ADD_THE_CODEC_PACK,\n\t\tmeta: {\n\t\t\tcodecId,\n\t\t\tdataType: descriptor.dataType\n\t\t}\n\t});\n\tif (!isSqlDataType(type)) throw new InternalError(`Data type ${type.id} is not a SQL data type, so it has no type name.`);\n\treturn type;\n}\n/**\n* The length of a column of data type `type` with `typeParams`, in the type's normal form, as verify compares it: a bare Postgres `character` holds 1. `undefined` when the column has no length, or when its data type drops the length because the database does not limit it, as SQLite's text types do.\n*/\nfunction sqlColumnLength(type, typeParams) {\n\tif (type === void 0 || !isSqlDataType(type)) return void 0;\n\tconst length = type.sql.normalize(dataTypeParams(type, typeParams ?? {}))[\"length\"];\n\treturn typeof length === \"number\" ? length : void 0;\n}\n/** The length of a column of `codecId` in its data type's normal form, or `undefined` for a column with no length or one whose database does not limit it. */\nfunction sqlCodecColumnLength(dataTypes, codecId, typeParams) {\n\tconst dataTypeId = dataTypes.dataTypeOfCodec(codecId);\n\treturn sqlColumnLength(dataTypeId === void 0 ? void 0 : dataTypes.lookup.get(dataTypeId), typeParams);\n}\n/** The type a column of `type` is stored as, whose name DDL writes and the database reports: `type` itself unless it names another. */\nfunction sqlStorageType(type, lookup) {\n\tif (type.sql.storedAs === void 0) return type;\n\tconst storage = lookup.get(type.sql.storedAs);\n\tif (storage === void 0 || !isSqlDataType(storage)) throw contractError(\"CONTRACT.DATA_TYPE_UNREGISTERED\", `Data type \"${type.id}\" is stored as \"${type.sql.storedAs}\", which no component registers as a SQL data type.`, { meta: {\n\t\tdataType: type.sql.storedAs,\n\t\tstoredBy: type.id\n\t} });\n\treturn storage;\n}\n/** The id of the type a column of the data type `dataTypeId` is stored as: {@link sqlStorageType} of it, which refuses a storage type the lookup does not register, or `dataTypeId` itself when the lookup does not know it as a SQL data type. */\nfunction sqlStorageTypeId(dataTypeId, lookup) {\n\tconst type = lookup.get(dataTypeId);\n\treturn type !== void 0 && isSqlDataType(type) ? sqlStorageType(type, lookup).id : dataTypeId;\n}\n/** The type a column is stored as, with its parameters in normal form, or the column's own id and parameters as written when the lookup does not know its data type as a SQL data type. */\nfunction storedColumnType(column, lookup) {\n\tconst type = lookup.get(column.dataType);\n\tif (type === void 0 || !isSqlDataType(type)) return {\n\t\tid: column.dataType,\n\t\tparams: column.typeParams ?? {}\n\t};\n\tconst storage = sqlStorageType(type, lookup);\n\treturn {\n\t\tid: storage.id,\n\t\tparams: storage.sql.normalize(dataTypeParams(storage, column.typeParams ?? {}))\n\t};\n}\n/**\n* Whether two contract columns have the same type: the types their data types are stored as are one type, those types' parameters are equal in normal form, and both or neither are lists. ADR 254.\n*/\nfunction sameSqlColumnType(a, b, lookup) {\n\tconst isList = (column) => column.many !== void 0 && column.many !== false;\n\tconst left = storedColumnType(a, lookup);\n\tconst right = storedColumnType(b, lookup);\n\treturn left.id === right.id && canonicalizeJson(left.params) === canonicalizeJson(right.params) && isList(a) === isList(b);\n}\n/** The type a column of the codec `codecId` is stored as: {@link sqlStorageType} of the data type it represents. */\nfunction sqlStorageTypeOfCodec(codecId, lookups) {\n\treturn sqlStorageType(sqlDataTypeOfCodec(codecId, lookups), lookups.dataTypeLookup);\n}\n/** {@link unquotedSqlBaseName} of the type a column of the codec `codecId` is stored as. */\nfunction unquotedSqlBaseNameOfCodec(codecId, typeParams, lookups) {\n\tconst type = sqlStorageTypeOfCodec(codecId, lookups);\n\treturn unquotedSqlBaseName(type, dataTypeParams(type, typeParams));\n}\n/** The text a migration writes for `type` with the raw `params`. */\nfunction renderSqlTypeName(type, params) {\n\tconst validated = validateSqlTypeParams(type, params);\n\tif (type.sql.render !== void 0) return type.sql.render(validated);\n\tconst normalized = type.sql.normalize(validated);\n\treturn substitute(type, pickText(type, \"written\", presentKeys(params).filter((key) => Object.hasOwn(normalized, key))), params);\n}\n/** The text the database catalog prints for `type` with `params`, in their normal form. */\nfunction renderSqlCatalogText(type, params) {\n\tconst validated = validateSqlTypeParams(type, params);\n\tif (type.sql.claimsKind !== void 0) throw new InternalError(`Data type ${type.id} claims the kind \"${type.sql.claimsKind}\" and has no catalog text.`);\n\tif (type.sql.render !== void 0) return type.sql.render(validated);\n\tconst normalized = type.sql.normalize(validated);\n\treturn substitute(type, pickText(type, \"catalog\", presentKeys(normalized)), normalized);\n}\nfunction prepareReportedText(text) {\n\tlet prepared = \"\";\n\tlet quoted = false;\n\tlet spacePending = false;\n\tfor (const character of text.trim()) {\n\t\tif (!quoted && /\\s/.test(character)) {\n\t\t\tspacePending = true;\n\t\t\tcontinue;\n\t\t}\n\t\tif (spacePending && !/[(,]$/.test(prepared) && character !== \")\") prepared += \" \";\n\t\tspacePending = false;\n\t\tif (character === \"\\\"\") quoted = !quoted;\n\t\tprepared += quoted ? character : character.toLowerCase();\n\t}\n\treturn prepared;\n}\nfunction claims(text) {\n\treturn text.catalog === true || text.written !== true;\n}\nfunction claimingTexts(type) {\n\treturn type.sql.texts.filter(claims).map((text) => text.text);\n}\nfunction textsCollide(a, b) {\n\tconst withOnes = (text) => text.replace(PLACEHOLDER, \"1\");\n\treturn patternOf(a).test(withOnes(b)) || patternOf(b).test(withOnes(a));\n}\nfunction collisionBetween(first, second) {\n\tconst kind = first.sql.claimsKind;\n\tif (kind !== void 0 && kind === second.sql.claimsKind) return {\n\t\tby: \"kind\",\n\t\tkind\n\t};\n\tfor (const a of claimingTexts(first)) {\n\t\tconst b = claimingTexts(second).find((text) => textsCollide(a, text));\n\t\tif (b !== void 0) return {\n\t\t\tby: \"text\",\n\t\t\tfirst: a,\n\t\t\tsecond: b\n\t\t};\n\t}\n}\n/**\n* The first two SQL data types in `types` that would both recognise one reported type: a claiming\n* text of each collides, or both claim the same kind. Two texts collide when either one's pattern\n* matches the other with each placeholder written as 1.\n*/\nfunction findSqlDataTypeCollision(types) {\n\tconst sqlTypes = types.filter(isSqlDataType);\n\tfor (const [index, first] of sqlTypes.entries()) for (const second of sqlTypes.slice(index + 1)) {\n\t\tconst claims = collisionBetween(first, second);\n\t\tif (claims !== void 0) return {\n\t\t\tfirst,\n\t\t\tsecond,\n\t\t\tclaims\n\t\t};\n\t}\n}\n/**\n* The data type that claims a reported type, with its parameters in normal form, or undefined when\n* no type in `dataTypes` claims it or its parameters fail the type's schema.\n*/\nfunction resolveReportedSqlType(reported, dataTypes) {\n\tconst sqlTypes = dataTypes.filter(isSqlDataType);\n\tif (reported.kind !== void 0) {\n\t\tconst claimant = sqlTypes.find((type) => type.sql.claimsKind === reported.kind);\n\t\tif (claimant === void 0) return void 0;\n\t\treturn resolvedWith(claimant, claimant.sql.fromReported?.(reported) ?? {});\n\t}\n\tconst text = prepareReportedText(reported.text);\n\tfor (const type of sqlTypes) for (const candidate of type.sql.texts) {\n\t\tif (!claims(candidate)) continue;\n\t\tconst params = paramsMatching(type, candidate, text);\n\t\tif (params !== void 0) return resolvedWith(type, params);\n\t}\n}\nconst signedParamKeysByType = /* @__PURE__ */ new WeakMap();\n/** The parameters of `type` that may be negative, whose placeholders read a leading minus. */\nfunction signedParamKeys(type) {\n\tconst known = signedParamKeysByType.get(type);\n\tif (known !== void 0) return known;\n\tconst keys = schemaKeysAllowing(type.params, -1) ?? [];\n\tsignedParamKeysByType.set(type, keys);\n\treturn keys;\n}\nfunction paramsMatching(type, candidate, text) {\n\tconst match = patternOf(candidate.text, signedParamKeys(type)).exec(text);\n\tif (match === null) return void 0;\n\treturn Object.fromEntries(placeholdersOf(candidate.text).map((name, index) => [name, Number.parseInt(match[index + 1] ?? \"\", 10)]));\n}\n/**\n* Every data type in `dataTypes` that reads `text` as a migration may write it, with its parameters\n* in normal form: any of a type's texts counts, whether written, printed by the catalog or only\n* claimed. Empty when no type reads it or its parameters fail the type's schema. A type that claims\n* a kind has no texts, so it never reads one.\n*/\nfunction resolveWrittenSqlTypes(text, dataTypes) {\n\tconst prepared = prepareReportedText(text);\n\treturn dataTypes.filter(isSqlDataType).flatMap((type) => {\n\t\tfor (const candidate of type.sql.texts) {\n\t\t\tconst params = paramsMatching(type, candidate, prepared);\n\t\t\tif (params === void 0) continue;\n\t\t\tconst resolved = resolvedWith(type, params);\n\t\t\tif (resolved !== void 0) return [resolved];\n\t\t}\n\t\treturn [];\n\t});\n}\nfunction resolvedWith(type$1, params) {\n\tif (type$1.params !== void 0 && type$1.params(params) instanceof type.errors) return void 0;\n\treturn {\n\t\tdataType: type$1,\n\t\ttypeParams: type$1.sql.normalize(params)\n\t};\n}\n//#endregion\nexport { unquotedSqlBaseName as _, renderSqlTypeName as a, sameSqlColumnType as c, sqlColumnLength as d, sqlDataType as f, sqlStorageTypeOfCodec as g, sqlStorageTypeId as h, renderSqlCatalogText as i, sqlBaseName as l, sqlStorageType as m, isSqlDataType as n, resolveReportedSqlType as o, sqlDataTypeOfCodec as p, nameIsCatalogText as r, resolveWrittenSqlTypes as s, findSqlDataTypeCollision as t, sqlCodecColumnLength as u, unquotedSqlBaseNameOfCodec as v, validateSqlTypeParams as y };\n\n//# sourceMappingURL=sql-data-type-D7M-YTTY.mjs.map"],"mappings":";;;;;;;;AAQA,MAAM,cAAc;AACpB,MAAM,qBAAqB;AAC3B,MAAM,iBAAiB;AACvB,SAAS,YAAY,IAAI,QAAQ;CAChC,IAAI,WAAW,KAAK,GAAG,OAAO,CAAC;CAC/B,MAAM,OAAO,iBAAiB,MAAM;CACpC,IAAI,SAAS,KAAK,GAAG,kBAAkB,IAAI,wDAAwD;CACnG,OAAO;AACR;AACA,SAAS,eAAe,MAAM;CAC7B,OAAO,CAAC,GAAG,KAAK,SAAS,WAAW,CAAC,CAAC,CAAC,KAAK,UAAU,MAAM,MAAM,EAAE;AACrE;AACA,SAAS,iBAAiB,MAAM;CAC/B,OAAO,CAAC,GAAG,eAAe,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,KAAK,GAAG;AACjD;AACA,SAAS,UAAU,MAAM,aAAa,CAAC,GAAG;CACzC,MAAM,eAAe,KAAK,QAAQ,gBAAgB,MAAM,CAAC,CAAC,QAAQ,oCAAoC,GAAG,SAAS,WAAW,SAAS,IAAI,IAAI,aAAa,QAAQ;CACnK,OAAO,IAAI,OAAO,IAAI,aAAa,EAAE;AACtC;AACA,SAAS,kBAAkB,IAAI,KAAK;CACnC,MAAM,IAAI,cAAc,aAAa,GAAG,IAAI,KAAK;AAClD;AACA,SAAS,UA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WACrD;WACA;WACA,KAAK"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"sql-expression-BAtH-2UU.d.mts","names":[],"sources":["../../../../2-sql/1-core/contract/dist/sql-expression.d.mts"],"mappings":";;;;;cAIc,6BAA6B;cAC7B;;cAEA,uBAAuB;;cAEvB,6BAA6B;UACjC;WACC,oBAAoB;WACpB;aACE,WAAW,SAAS,eAAe;;;;cAIlC,2BAA2B;;iBAExB,kBAAkB,OAAO;;iBAEzB,cAAc;;;;;iBAKd,0BAA0B;;iBAE1B,iBAAiB;;;;;;iBAMjB,oCAAoC,mBAAmB;WAC7D,MAAM;WACN;;cAEG;;cAEA;YACF;WACD;;EAET,YAAY;;;iBAGG,gBAAgB,iBAAiB,SAAS;;;;;;iBAM1C,kBAAkB,iBAAiB;;iBAEnC,IAAI,SAAS,yBAAyB,iBAAiB,kBAAkB;;iBAEzE,qBAAqB,gBAAgB,eAAe"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"sql-expression-BJCuy-WI.mjs","names":[],"sources":["../../../../2-sql/1-core/contract/dist/sql-expression.mjs"],"sourcesContent":["import { t as contractError } from \"./contract-errors-BCN6RVI5.mjs\";\nimport { canonicalizeTaggedLiteralBody, describeTaggedLiteralFailure, printTaggedLiteral, printedTaggedLiteralReadsBack, resolveTemplateTagEscapes } from \"@internal/framework-components/authoring\";\nimport { dataType, dataTypeId, readJsonString, refuseJsonValue } from \"@internal/framework-components/codec\";\nimport { InternalError } from \"@internal/utils/internal-error\";\nimport { runtimeError } from \"@internal/framework-components/components\";\n//#region src/sql-expression.ts\nconst SQL_EXPRESSION_DATA_TYPE_ID = dataTypeId(\"sql/expression\");\nconst SQL_EXPRESSION_TAG = \"sql\";\n/** The data type of a SQL expression in the target database's language. It declares no casts. The SQL family registers it. ADR 254. */\nconst sqlExpressionDataType = frozenWithCasts(dataType(SQL_EXPRESSION_DATA_TYPE_ID, { read: readStoredSqlText }));\nfunction readStoredSqlText(json) {\n\tconst text = readJsonString(SQL_EXPRESSION_DATA_TYPE_ID, json);\n\tconst canonical = storedSqlText(text);\n\tif (canonical === text) return text;\n\treturn refuseJsonValue(SQL_EXPRESSION_DATA_TYPE_ID, canonical === void 0 ? \"text a sql literal can hold\" : `${JSON.stringify(canonical)}, the canonical text of the sql literal it was written as`, json);\n}\n/** PSL support for `sql/expression`. The SQL family registers it under `SQL_EXPRESSION_DATA_TYPE_ID`. */\nconst sqlExpressionAuthoringEntry = Object.freeze({\n\twritten: Object.freeze({\n\t\tkind: \"tag\",\n\t\ttag: \"sql\",\n\t\tparse: (text) => text\n\t}),\n\tprint: (value) => sqlTextFromStored(value),\n\tdocumentation: \"A SQL expression in the target database's language. Prisma passes it to the database unchanged.\"\n});\nfunction frozenWithCasts(type) {\n\tObject.freeze(type.casts);\n\treturn Object.freeze(type);\n}\n/** The SQL family's registration of `sql/expression`, shaped as the family descriptor's `dataTypes` and `authoring.dataTypes`. */\nconst sqlExpressionRegistration = Object.freeze({\n\tdataTypes: Object.freeze([sqlExpressionDataType]),\n\tauthoring: Object.freeze({ dataTypes: Object.freeze({ [SQL_EXPRESSION_DATA_TYPE_ID]: sqlExpressionAuthoringEntry }) })\n});\n/** The SQL text held by the stored form of a `sql/expression` value. */\nfunction sqlTextFromStored(value) {\n\tif (typeof value === \"string\") return value;\n\tthrow new InternalError(`A sql/expression value is a string, got ${JSON.stringify(value)}.`);\n}\n/** The text a `sql` literal holding `text` reads back as, or `undefined` when `text` has a NUL character or is too large. */\nfunction storedSqlText(text) {\n\tconst canonical = canonicalizeTaggedLiteralBody(text);\n\treturn canonical.ok ? canonical.text : void 0;\n}\n/**\n* A `sql` literal holding `text`. Throws when the literal would read back as different text; check with `sqlTextsReadBack`\n* first. The result of `storedSqlText` always reads back.\n*/\nfunction printSqlExpressionLiteral(text) {\n\tif (!printedTaggedLiteralReadsBack(text)) throw new InternalError(`A sql literal cannot hold ${JSON.stringify(text)}: it would read back as different text.`);\n\treturn printTaggedLiteral(\"sql\", text);\n}\n/** Whether every present text reads back unchanged when printed as a `sql` literal. */\nfunction sqlTextsReadBack(texts) {\n\treturn texts.every((text) => text === void 0 || printedTaggedLiteralReadsBack(text));\n}\nfunction castFromSqlExpression(type) {\n\tif (Object.hasOwn(type.casts, SQL_EXPRESSION_DATA_TYPE_ID)) return \"a cast\";\n\tif (type.listCast?.of.includes(SQL_EXPRESSION_DATA_TYPE_ID)) return \"a list cast\";\n}\n/**\n* Throws when a data type declares a cast or a list cast from `sql/expression`. A `sql` literal is\n* SQL the database runs, so a cast would turn it into a value of another type with no diagnostic.\n* ADR 254.\n*/\nfunction assertNothingCastsFromSqlExpression(declaredDataTypes) {\n\tfor (const { type, contributedBy } of declaredDataTypes) {\n\t\tconst declared = castFromSqlExpression(type);\n\t\tif (declared === void 0) continue;\n\t\tthrow runtimeError(\"CONTRACT.DATA_TYPE_CASTS_FROM_SQL_EXPRESSION\", `Data type \"${type.id}\" from \"${contributedBy}\" declares ${declared} from ${SQL_EXPRESSION_DATA_TYPE_ID}. No data type may cast from ${SQL_EXPRESSION_DATA_TYPE_ID}: a sql literal is SQL the database runs, not a value of another type.`, {\n\t\t\tdataType: type.id,\n\t\t\tcontributedBy\n\t\t});\n\t}\n}\nconst SQL_EXPRESSION_MARKER = Symbol.for(\"@prisma/sql-expression\");\n/** A value of the data type `sql/expression` in TypeScript. Its text is always canonical. */\nvar SqlExpression = class {\n\t[SQL_EXPRESSION_MARKER] = true;\n\ttext;\n\t/** Canonicalizes `text` as a PSL `sql` literal's text is canonicalized. Throws CONTRACT.SQL_EXPRESSION_INVALID on NUL or oversize text. */\n\tconstructor(text) {\n\t\tconst canonical = canonicalizeTaggedLiteralBody(text);\n\t\tif (!canonical.ok) throw contractError(\"CONTRACT.SQL_EXPRESSION_INVALID\", describeTaggedLiteralFailure(canonical.reason), { meta: {\n\t\t\treason: canonical.reason,\n\t\t\toffset: canonical.offset\n\t\t} });\n\t\tthis.text = canonical.text;\n\t\tObject.freeze(this);\n\t}\n};\n/** Whether `value` is a `sql` value, made by this copy of the package or by another one. */\nfunction isSqlExpression(value) {\n\treturn typeof value === \"object\" && value !== null && Reflect.get(value, SQL_EXPRESSION_MARKER) === true && typeof Reflect.get(value, \"text\") === \"string\";\n}\n/**\n* This copy's `SqlExpression` for `value`: the value itself when this copy made it, a new one built\n* from the text of a `sql` value another copy made, so that text is canonicalized here too, or\n* `undefined` for anything else.\n*/\nfunction readSqlExpression(value) {\n\tif (value instanceof SqlExpression) return value;\n\treturn isSqlExpression(value) ? new SqlExpression(value.text) : void 0;\n}\n/** Raw SQL written as a template literal: `` sql`\"userId\" = auth.uid()` ``. Other `sql` values may be interpolated; each later line of one takes the indentation of the template line it sits on. */\nfunction sql(strings, ...values) {\n\tconst texts = values.map((value, index) => {\n\t\tconst expression = readSqlExpression(value);\n\t\tif (expression === void 0) throw contractError(\"CONTRACT.SQL_EXPRESSION_INTERPOLATION\", \"sql`...` only interpolates other sql`...` values; write any other text inside the template.\", { meta: { index } });\n\t\treturn expression.text;\n\t});\n\tconst pieces = strings.raw.map((piece) => resolveTemplateTagEscapes(piece));\n\tlet joined = pieces[0] ?? \"\";\n\tlet templateLineIndent = indentOfLastLine(joined);\n\ttexts.forEach((value, index) => {\n\t\tconst piece = pieces[index + 1] ?? \"\";\n\t\tjoined += value.replaceAll(\"\\n\", `\\n${templateLineIndent}`) + piece;\n\t\tif (/[\\n\\r]/.test(piece)) templateLineIndent = indentOfLastLine(piece);\n\t});\n\treturn new SqlExpression(joined);\n}\nfunction indentOfLastLine(templatePiece) {\n\tconst lastLine = templatePiece.slice(Math.max(templatePiece.lastIndexOf(\"\\n\"), templatePiece.lastIndexOf(\"\\r\")) + 1);\n\treturn LEADING_WHITESPACE.exec(lastLine)?.[0] ?? \"\";\n}\nconst LEADING_WHITESPACE = /^[ \\t]*/;\n/** Reads `value` with `readSqlExpression`; throws for anything that is not a `sql` value. For callers that JavaScript cannot type-check. */\nfunction requireSqlExpression(value, what) {\n\tconst expression = readSqlExpression(value);\n\tif (expression !== void 0) return expression;\n\tthrow contractError(\"CONTRACT.ARGUMENT_INVALID\", `${what} must be a sql\\`...\\` value.`, { meta: { what } });\n}\n//#endregion\nexport { SQL_EXPRESSION_DATA_TYPE_ID, SQL_EXPRESSION_TAG, SqlExpression, assertNothingCastsFromSqlExpression, isSqlExpression, printSqlExpressionLiteral, readSqlExpression, requireSqlExpression, sql, sqlExpressionAuthoringEntry, sqlExpressionDataType, sqlExpressionRegistration, sqlTextFromStored, sqlTextsReadBack, storedSqlText };\n\n//# sourceMappingURL=sql-expression.mjs.map"],"mappings":";;;;;;AAMA,MAAM,8BAA8B,WAAW,gBAAgB;AAC/D,MAAM,qBAAqB;;AAE3B,MAAM,wBAAwB,gBAAgB,SAAS,6BAA6B,EAAE,MAAM,kBAAkB,CAAC,CAAC;AAChH,SAAS,kBAAkB,MAAM;CAChC,MAAM,OAAO,eAAe,6BAA6B,IAAI;CAC7D,MAAM,YAAY,cAAc,IAAI;CACpC,IAAI,cAAc,MAAM,OAAO;CAC/B,OAAO,gBAAgB,6BAA6B,cAAc,KAAK,IAAI,gCAAgC,GAAG,KAAK,UAAU,SAAS,EAAE,4DAA4D,IAAI;AACzM;;AAEA,MAAM,8BAA8B,OAAO,OAAO;CACjD,SAAS,OAAO,OAAO;EACtB,MAAM;EACN,KAAK;EACL,QAAQ,SAAS;CAClB,CAAC;CACD,QAAQ,UAAU,kBAAkB,KAAK;CACzC,eAAe;AAChB,CAAC;AACD,SAAS,gBAAgB,MAAM;CAC9B,OAAO,OAAO,KAAK,KAAK;CACxB,OAAO,OAAO,OAAO,IAAI;AAC1B;;AAEA,MAAM,4BAA4B,OAAO,OAAO;CAC/C,WAAW,OAAO,OAAO,CAAC,qBAAqB,CAAC;CAChD,WAAW,OAAO,OAAO,EAAE,WAAW,OAAO,OAAO,GAAG,8BAA8B,4BAA4B,CAAC,EAAE,CAAC;AACtH,CAAC;;AAED,SAAS,kBAAkB,OAAO;CACjC,IAAI,OAAO,UAAU,UAAU,OAAO;CACtC,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c,6BAA6B,GAAG,KAAK,+BAA+B,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC;AAC3G"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"sql-index-ByAAE7K8-BpbPBWPD.d.mts","names":[],"sources":["../../../../2-sql/1-core/contract/dist/sql-index-ByAAE7K8.d.mts"],"mappings":";;;;;;;;;;;KAUK;;WAEM;WACA;;WAEA;;;;;WAKA;;;;;;;;KAQN,aAAa;;WAEP,QAAQ;;WAER;;WAEA;WACA;WACA,SAAS;;;;;;;;;;;;;;;;;;;;cAoBN,cAAc;WACjB;WACA;;WAEA;WACA;WACA;WACA;WACA;WACA,UAAU;EACnB,YAAY,OAAO;SACZ,KAAK,OAAO,QAAQ,aAAa"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"sql-node-kEz6YFZo-v2F7delx.d.mts","names":[],"sources":["../../../../2-sql/1-core/contract/dist/sql-node-kEz6YFZo.d.mts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uBAkCuB,gBAAgB;WAC5B;EACT"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"sql-storage-DeCAh5Hi-nJQUIgfL.d.mts","names":[],"sources":["../../../../2-sql/1-core/contract/dist/sql-storage-DeCAh5Hi.d.mts"],"mappings":";;;;;;;;;;;;;;;cAcc;;;;UAIJ,4BAA4B;WAC3B,aAAa;WACb;WACA;WACA,YAAY;;;;;KAKlB,8BAA8B,KAAK;;;;KAInC,2BAA2B,KAAK;WAC1B,aAAa;;;;;;;iBAOP,sBAAsB,OAAO,2BAA2B;;;;iBAIxD,mBAAmB,YAAY,sCAAsC;;;;;;iBAMrE,sBAAsB,iBAAiB,SAAS;;;;;;;;;;KAU5D,sBAAsB,sBAAsB;UACvC;WACC;WACA,SAAS,SAAS,eAAe,SAAS;;;;;;KAMhD,uBAAuB,OAAO,sBAAsB;;;;;;;;UAQ/C,kCAAkC;WACjC,kBAAkB;;;;;;iBAMZ,4BAA4B,WAAW,qCAAqC,aAAa;UAChG,gBAAgB;WACf,aAAa,gBAAgB;WAC7B,QAAQ,eAAe;WACvB,YAAY,SAAS,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KA6B1C,sBAAsB,SAAS,eAAe,SAAS;WACjD,QAAQ,SAAS,eAAe;WAChC,WAAW,SAAS,eAAe;;;;;;;;;;;UAWpC;WACC;WACA;WACA,SAAS;WACT;EACT,cAAc;;;;;;;;uBAQO,yBAAyB,yBAAyB;oBACrD;oBACA,SAAS;WAClB,aAAa;;;;;;;;;;;;iBAYP,2BAA2B,aAAa,KAAK;cAChD,WAAW,uCAAuC,mBAAmB;WACxE,aAAa,gBAAgB;WAC7B,YAAY,SAAS,eAAe;WACpC,QAAQ,SAAS,eAAe;EACzC,YAAY,OAAO,gBAAgB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"storage-table-Bf1ZjnxO-NvkG2pgq.d.mts","names":[],"sources":["../../../../2-sql/1-core/contract/dist/storage-table-Bf1ZjnxO.d.mts"],"mappings":";;;;;;;;;;;;;;KAaK;WACM;;KAEN;;WAEM;WACA;WACA;WACA,aAAa;WACb,UAAU;WACV,UAAU;WACV,WAAW;WACX,OAAO;;;;;;;;;;;;;;;cAeJ,sBAAsB;WACzB;WACA;WACA;WACA,MAAM;WACN,aAAa;WACb,UAAU;WACV,UAAU;WACV,WAAW;EACpB,YAAY,OAAO;SACZ,KAAK,OAAO,gBAAgB,qBAAqB;;;;UAIhD;WACC,SAAS,eAAe,gBAAgB;WACxC,aAAa,aAAa;WAC1B,SAAS,cAAc,mBAAmB;WAC1C,SAAS,cAAc,QAAQ;WAC/B,aAAa,cAAc,aAAa;WACxC,UAAU;WACV,SAAS,cAAc,kBAAkB;;;;;;;;;;;;;;cActC,qBAAqB;WACxB,SAAS,SAAS,eAAe;WACjC,SAAS,cAAc;WACvB,SAAS,cAAc;WACvB,aAAa,cAAc;WAC3B,aAAa;WACb,UAAU;WACV,SAAS,cAAc;EAChC,YAAY,OAAO;;;;;;;;SAQZ,GAAG,OAAO,2BAA2B,SAAS;SAC9C,OAAO,OAAO,0BAA0B,6BAA6B,SAAS"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"storage-table-DDvN83mw-CbCFr5wm.mjs","names":[],"sources":["../../../../2-sql/1-core/contract/dist/storage-table-DDvN83mw.mjs"],"sourcesContent":["import { t as contractError } from \"./contract-errors-BCN6RVI5.mjs\";\nimport { nameOf } from \"@internal/sql-schema-ir/naming\";\nimport { IRNodeBase, freezeNode } from \"@internal/framework-components/ir\";\nimport { InternalError } from \"@internal/utils/internal-error\";\nimport { ContractValidationError } from \"@internal/contract/contract-validation-error\";\nimport { asNamespaceId } from \"@internal/contract/types\";\n//#region src/ir/sql-node.ts\n/**\n* SQL family IR node base. Carries the family-level `kind` discriminator\n* `'sql'` and inherits the framework's `freezeNode` affordance.\n*\n* Single family-level discriminator (not per-leaf) reflects the fact that\n* SQL IR has no polymorphic dispatch today — verifiers and serializers\n* walk by structural position (`storage.tables[name].columns[name]`),\n* not by inspecting `kind`. The abstract bar for per-leaf discriminators\n* isn't earned until a future polymorphic consumer arrives.\n*\n* `kind` is installed as a non-enumerable own property on every instance,\n* which keeps three things clean simultaneously:\n*\n* - `JSON.stringify(node)` produces the canonical pre-lift JSON envelope\n* shape (no `kind` field), so emitted contract.json files and the\n* `validateSqlContractFully` arktype schemas stay unchanged.\n* - Test assertions that use `toEqual({...})` against the pre-lift flat\n* shape continue to pass — only enumerable own properties are\n* compared.\n* - Direct access (`node.kind`) and runtime narrowing\n* (`if (node.kind === 'sql')`) still work, so future polymorphic\n* dispatch can begin reading `kind` without a runtime change.\n*\n* Future per-leaf overrides land cleanly: a class that gains a\n* polymorphic-dispatch consumer (e.g. an enum type instance walked\n* alongside other types) overrides `kind` with its narrower literal\n* at that leaf level. Per-leaf overrides will use enumerable kind\n* (matching the Mongo per-class-discriminator precedent) because they\n* encode dispatch-relevant information that callers need to see in\n* JSON envelopes; the family-level `'sql'` is uniform across all SQL\n* IR and carries no dispatch-relevant information.\n*/\nvar SqlNode = class extends IRNodeBase {\n\tkind;\n\tconstructor() {\n\t\tsuper();\n\t\tObject.defineProperty(this, \"kind\", {\n\t\t\tvalue: \"sql\",\n\t\t\twritable: false,\n\t\t\tenumerable: false,\n\t\t\tconfigurable: true\n\t\t});\n\t}\n};\n//#endregion\n//#region src/ir/check-constraint.ts\n/**\n* SQL Contract IR node for a table-level check constraint, name-identified:\n* `name` is the full physical name; a present `prefix` marks the constraint as\n* wire-named (`name` is `formatWireName(prefix, <8hex>)` over the expression's\n* content hash), an absent `prefix` marks it exact (the name is adopted\n* verbatim). This is the convention indexes and RLS policies already use — see\n* ADR 234, \"Content-addressed wire names for Postgres-normalized objects\".\n*\n* The predicate is opaque: one SQL string, never parsed and never rendered\n* from structured parts. A database reprints predicates in its own normalized\n* form, so a wire-named check is compared by name — the hash already commits\n* to the expression the contract declared.\n*/\nvar CheckConstraint = class CheckConstraint extends SqlNode {\n\tname;\n\texpression;\n\tconstructor(input) {\n\t\tsuper();\n\t\tconst name = nameOf(input.naming);\n\t\tif (name.length === 0) throw new ContractValidationError(\"CheckConstraint: every check constraint carries a full physical name.\", \"storage\");\n\t\tthis.name = name;\n\t\tif (input.naming.kind === \"wire\") this.prefix = input.naming.prefix;\n\t\tthis.expression = input.expression;\n\t\tfreezeNode(this);\n\t}\n\t/**\n\t* Normalizes either shape into an instance: an existing `CheckConstraint`\n\t* passes through, canonical input is constructed. Callers that accept\n\t* \"instance or input\" go through this, so the constructor keeps one\n\t* canonical shape instead of widening to a union.\n\t*/\n\tstatic from(value) {\n\t\treturn value instanceof CheckConstraint ? value : new CheckConstraint(value);\n\t}\n};\n//#endregion\n//#region src/ir/sql-index.ts\n/**\n* SQL Contract IR node for a table-level secondary index, name-identified:\n* `name` is the full physical name; a present `prefix` marks the index as\n* wire-named (`name` is `formatWireName(prefix, <8hex>)`), an absent `prefix`\n* marks it exact (the name is adopted verbatim).\n*\n* `expression`, `where`, and `unique` are genuine SQL-family attributes —\n* functional and partial indexes are standard SQL supported natively by\n* Postgres and SQLite alike, and the family IR must be able to represent\n* anything any SQL target can introspect. A target declining to AUTHOR them\n* (SQLite's rejection at namespace construction) is a capability decision,\n* not evidence of target-specificity.\n*\n* Note that this class shadows the global TypeScript `Index` lib type\n* at the family-shared name; consumer files that need both should\n* alias one (e.g.\n* `import { Index as SqlIndexNode } from '@internal/sql-contract/types'`).\n*/\nvar Index = class Index extends SqlNode {\n\tname;\n\tunique;\n\tconstructor(input) {\n\t\tsuper();\n\t\tconst name = nameOf(input.naming);\n\t\tif (name.length === 0) throw new ContractValidationError(\"Index: every index carries a full physical name; an expression index must be explicitly named (a default name cannot be derived from an expression).\", \"storage\");\n\t\tif (input.columns === void 0 === (input.expression === void 0)) throw new ContractValidationError(`Index \"${name}\": exactly one of columns or expression must be set.`, \"storage\");\n\t\tthis.name = name;\n\t\tthis.unique = input.unique;\n\t\tif (input.naming.kind === \"wire\") this.prefix = input.naming.prefix;\n\t\tif (input.columns !== void 0) this.columns = input.columns;\n\t\tif (input.expression !== void 0) this.expression = input.expression;\n\t\tif (input.where !== void 0) this.where = input.where;\n\t\tif (input.type !== void 0) this.type = input.type;\n\t\tif (input.options !== void 0) this.options = input.options;\n\t\tfreezeNode(this);\n\t}\n\tstatic from(value) {\n\t\treturn value instanceof Index ? value : new Index(value);\n\t}\n};\n//#endregion\n//#region src/ir/foreign-key-reference.ts\n/**\n* SQL Contract IR node for one side (source or target) of a foreign-key\n* declaration. Carries the full coordinate: namespace, table, and columns.\n*\n* Cross-space discrimination is based on `spaceId` presence: absent means\n* local (same contract-space); present means cross-space (the referenced\n* table lives in the contract-space identified by `spaceId`).\n*\n* For local references `spaceId` is absent from JSON, keeping the serialized\n* shape byte-identical to contracts authored before cross-space support was\n* added. For cross-space references `spaceId` appears in JSON so round-trips\n* are lossless.\n*\n* Use `UNBOUND_NAMESPACE_ID` from `@internal/framework-components/ir`\n* as the sentinel `namespaceId` for single-namespace (unbound) references.\n*/\nvar ForeignKeyReference = class ForeignKeyReference extends SqlNode {\n\tnamespaceId;\n\ttableName;\n\tcolumns;\n\tconstructor(input) {\n\t\tsuper();\n\t\tthis.namespaceId = asNamespaceId(input.namespaceId);\n\t\tthis.tableName = input.tableName;\n\t\tthis.columns = input.columns;\n\t\tif (input.spaceId !== void 0) this.spaceId = input.spaceId;\n\t\tfreezeNode(this);\n\t}\n\tstatic from(value) {\n\t\treturn value instanceof ForeignKeyReference ? value : new ForeignKeyReference(value);\n\t}\n};\n//#endregion\n//#region src/ir/foreign-key.ts\n/**\n* SQL Contract IR node for a table-level foreign-key declaration — the\n* referential constraint only (source, target, `onDelete`/`onUpdate`).\n*\n* A persisted `foreignKeys[]` entry always denotes a real constraint: whether\n* to emit the constraint at all, and whether to back it with an index, are\n* authoring-time decisions (PSL `@relation(index:)`, TS `fk({ constraint,\n* index })`) resolved once at `contract emit` — a `constraint: false` FK\n* simply has no entry here, and a backing index (if any) is its own discrete,\n* named entry in the table's `indexes[]`. `index` says what serves the\n* foreign key's lookups; it is absent when nothing backs the foreign key.\n*\n* Each FK carries explicit `source` and `target` {@link ForeignKeyReference}\n* coordinates (namespace, table, columns). For single-namespace contracts the\n* sentinel `UNBOUND_NAMESPACE_ID` appears on both sides.\n*\n* The nested references are normalised to {@link ForeignKeyReference}\n* instances inside the constructor so downstream walks see a uniform AST\n* regardless of whether the input was a JSON literal or an already-constructed\n* class instance.\n*/\nvar ForeignKey = class ForeignKey extends SqlNode {\n\tsource;\n\ttarget;\n\tconstructor(input) {\n\t\tsuper();\n\t\tthis.source = ForeignKeyReference.from(input.source);\n\t\tthis.target = ForeignKeyReference.from(input.target);\n\t\tif (input.name !== void 0) this.name = input.name;\n\t\tif (input.onDelete !== void 0) this.onDelete = input.onDelete;\n\t\tif (input.onUpdate !== void 0) this.onUpdate = input.onUpdate;\n\t\tif (typeof input.index === \"object\") this.index = input.index;\n\t\tfreezeNode(this);\n\t}\n\tstatic from(value) {\n\t\treturn value instanceof ForeignKey ? value : new ForeignKey(value);\n\t}\n};\n//#endregion\n//#region src/ir/primary-key.ts\n/**\n* SQL Contract IR node for a table's primary-key constraint.\n*/\nvar PrimaryKey = class PrimaryKey extends SqlNode {\n\tcolumns;\n\tconstructor(input) {\n\t\tsuper();\n\t\tthis.columns = input.columns;\n\t\tif (input.name !== void 0) this.name = input.name;\n\t\tfreezeNode(this);\n\t}\n\tstatic from(value) {\n\t\treturn value instanceof PrimaryKey ? value : new PrimaryKey(value);\n\t}\n};\n//#endregion\n//#region src/ir/storage-column.ts\n/**\n* SQL Contract IR node for a single column entry in `StorageTable.columns`.\n*\n* Single concrete family-shared class — every SQL target reads the\n* same column shape today, so there is no per-target subclass. The\n* class type accepts any caller that constructs via\n* `new StorageColumn(input)`; literal construction sites must pass\n* through the constructor or the family-base hydration walker.\n*\n* The column's `name` is not on the class — columns are keyed by name\n* in the parent `StorageTable.columns: Record<string, StorageColumn>`\n* map, so a `name` field would be redundant with the key.\n*/\nvar StorageColumn = class StorageColumn extends SqlNode {\n\tdataType;\n\tcodecId;\n\tnullable;\n\tmany;\n\tconstructor(input) {\n\t\tsuper();\n\t\tif (Object.hasOwn(input, \"elementNullable\")) throw contractError(\"CONTRACT.ARGUMENT_INVALID\", \"StorageColumn elementNullable must be nested under many.\", { meta: { reason: \"sibling-elementNullable\" } });\n\t\tthis.dataType = input.dataType;\n\t\tthis.codecId = input.codecId;\n\t\tthis.nullable = input.nullable;\n\t\tthis.many = input.many ?? false;\n\t\tif (input.typeParams !== void 0) this.typeParams = input.typeParams;\n\t\tif (input.default !== void 0) this.default = input.default;\n\t\tif (input.control !== void 0) this.control = input.control;\n\t\tif (input.valueSet !== void 0) this.valueSet = input.valueSet;\n\t\tfreezeNode(this);\n\t}\n\tstatic from(value) {\n\t\treturn value instanceof StorageColumn ? value : new StorageColumn(value);\n\t}\n};\n//#endregion\n//#region src/ir/unique-constraint.ts\n/**\n* SQL Contract IR node for a table-level unique constraint.\n*/\nvar UniqueConstraint = class UniqueConstraint extends SqlNode {\n\tcolumns;\n\tconstructor(input) {\n\t\tsuper();\n\t\tthis.columns = input.columns;\n\t\tif (input.name !== void 0) this.name = input.name;\n\t\tfreezeNode(this);\n\t}\n\tstatic from(value) {\n\t\treturn value instanceof UniqueConstraint ? value : new UniqueConstraint(value);\n\t}\n};\n//#endregion\n//#region src/ir/storage-table.ts\n/**\n* SQL Contract IR node for a single table entry in a namespace's\n* `tables` map.\n*\n* The constructor normalises nested IR-class fields (columns, primary\n* key, uniques, indexes, foreign keys) into the appropriate class\n* instances so downstream walks see a uniform AST regardless of whether\n* the input was a JSON literal or an already-constructed class.\n*\n* The table's `name` is not on the class — tables are keyed by name in\n* the parent namespace's `tables: Record<string, StorageTable>` map.\n*/\nvar StorageTable = class StorageTable extends SqlNode {\n\tcolumns;\n\tuniques;\n\tindexes;\n\tforeignKeys;\n\tconstructor(input) {\n\t\tsuper();\n\t\tthis.columns = Object.freeze(Object.fromEntries(Object.entries(input.columns).map(([name, col]) => [name, StorageColumn.from(col)])));\n\t\tif (input.primaryKey !== void 0) this.primaryKey = PrimaryKey.from(input.primaryKey);\n\t\tthis.uniques = Object.freeze(input.uniques.map(UniqueConstraint.from));\n\t\tthis.indexes = Object.freeze(input.indexes.map(Index.from));\n\t\tthis.foreignKeys = Object.freeze(input.foreignKeys.map(ForeignKey.from));\n\t\tif (input.control !== void 0) this.control = input.control;\n\t\tif (input.checks !== void 0 && input.checks.length > 0) this.checks = Object.freeze(input.checks.map(CheckConstraint.from));\n\t\tfreezeNode(this);\n\t}\n\t/**\n\t* Runtime guard that a namespace `table` entry is really a `StorageTable`.\n\t* The compiler already types the entry as `StorageTable`, but a\n\t* freshly-deserialized contract may carry plain JSON at that slot until\n\t* hydration; this duck-types the structural shape. Accepts `undefined` so\n\t* optional-chained entry lookups pass straight through.\n\t*/\n\tstatic is(value) {\n\t\tif (typeof value !== \"object\" || value === null) return false;\n\t\treturn \"columns\" in value && \"uniques\" in value && \"indexes\" in value && \"foreignKeys\" in value;\n\t}\n\tstatic assert(value, coordinate) {\n\t\tif (!StorageTable.is(value)) throw new InternalError(`Expected a StorageTable at ${coordinate}`);\n\t}\n};\n//#endregion\nexport { ForeignKey as a, CheckConstraint as c, PrimaryKey as i, SqlNode as l, UniqueConstraint as n, ForeignKeyReference as o, StorageColumn as r, Index as s, StorageTable as t };\n\n//# sourceMappingURL=storage-table-DDvN83mw.mjs.map"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuCA,IAAI,UAAU,cAAc,WAAW;CACtC;CACA,cAAc;EACb,MAAM;EACN,OAAO,eAAe,MAAM,QAAQ;GACnC,OAAO;GACP,UAAU;GACV,YAAY;GACZ,cAAc;EACf,CAAC;CACF;AACD;;;;;;;;;;;;;;AAgBA,IAAI,kBAAkB,MAAM,wBAAwB,QAAQ;CAC3D;CACA;CACA,YAAY,OAAO;EAClB,MAAM;EACN,MAAM,OAAO,OAAO,MAAM,MAAM;EAChC,IAAI,KAAK,WAAW,GAAG,MAAM,IAAI,wBAAwB,yEAAyE,SAAS;EAC3I,KAAK,OAAO;EACZ,IAAI,MAAM,OAAO,SAAS,QAAQ,KAAK,SAAS,MAAM,OAAO;EAC7D,KAAK,aAAa,MAAM;EACxB,WAAW,IAAI;CAChB;;;;;;;CAOA,OAAO,KAAK,OAAO;EAClB,OAAO,iBAAiB,kBAAkB,QAAQ,IAAI,gBAAgB,KAAK;CAC5E;AACD;;;;;;;;;;;;;;;;;;;AAqBA,IAAI,QAAQ,MAAM,cAAc,QAAQ;CACvC;CACA;CACA,YAAY,OAAO;EAClB,MAAM;EACN,MAAM,OAAO,OAAO,MAAM,MAAM;EAChC,IAAI,KAAK,WAAW,GAAG,MAAM,IAAI,wBAAwB,wJAAwJ,SAAS;EAC1N,IAAI,MAAM,YAAY,KAAK,OAAO,MAAM,eAAe,KAAK,IAAI,MAAM,IAAI,wBAAwB,UAAU,KAAK,uDAAuD,SAAS;EACjL,KAAK,OAAO;EACZ,KAAK,SAAS,M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iBAAiB;;;;;;;;;;;;;;;;;;;;cAoBd,wBAAwB;WAC3B;WACA,iBAAiB;EAC1B,YAAY,OAAO;;iBAEJ,kBAAkB,iBAAiB,SAAS"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"transaction-state-BfXhs7D7-3k10jZ8I.mjs","names":[],"sources":["../../../../2-sql/5-runtime/dist/transaction-state-BfXhs7D7.mjs"],"sourcesContent":["import { invariant } from \"@internal/utils/assertions\";\n//#region src/prepared/prepared-execute.ts\nconst preparedStatementExecute = Symbol(\"preparedStatementExecute\");\nfunction isPreparedStatementExecuteTarget(target) {\n\treturn preparedStatementExecute in target;\n}\nfunction runPreparedExecute(target, statement, params, options) {\n\tinvariant(isPreparedStatementExecuteTarget(target), \"RuntimeQueryable is missing the prepared statement execute bridge\");\n\treturn target[preparedStatementExecute](statement, params, options);\n}\n//#endregion\n//#region src/prepared/prepared-query.ts\nconst preparedStatementQuery = Symbol(\"preparedStatementQuery\");\nfunction isPreparedStatementQueryTarget(target) {\n\treturn preparedStatementQuery in target;\n}\nfunction runPreparedQuery(target, statement, params, options) {\n\tinvariant(isPreparedStatementQueryTarget(target), \"RuntimeQueryable is missing the prepared statement query bridge\");\n\treturn target[preparedStatementQuery](statement, params, options);\n}\n//#endregion\n//#region src/transaction-state.ts\n/**\n* What the database did with a transaction the runtime wrapped. `withTransaction` and the ORM read it to tell a failed `COMMIT` or `ROLLBACK` from an `activityEnded` hook that threw after the database had already settled the transaction.\n*/\nconst transactionSettlement = Symbol(\"transactionSettlement\");\nfunction settlementOf(transaction) {\n\treturn isSettledTransactionTarget(transaction) ? transaction[transactionSettlement] : void 0;\n}\nfunction isSettledTransactionTarget(value) {\n\treturn transactionSettlement in value;\n}\n/**\n* How the last transaction start on a connection the runtime made went. `withTransaction` releases the connection after a start the `activityStarted` hooks refused before any `BEGIN` was sent, and destroys it after any other start failure.\n*/\nconst transactionStart = Symbol(\"transactionStart\");\nfunction createTransactionStart() {\n\treturn { refusedBeforeBegin: false };\n}\nfunction wasRefusedBeforeBegin(connection) {\n\treturn isTransactionStartTarget(connection) && connection[transactionStart].refusedBeforeBegin;\n}\nfunction isTransactionStartTarget(value) {\n\treturn transactionStart in value;\n}\n//#endregion\nexport { wasRefusedBeforeBegin as a, preparedStatementExecute as c, transactionStart as i, runPreparedExecute as l, settlementOf as n, preparedStatementQuery as o, transactionSettlement as r, runPreparedQuery as s, createTransactionStart as t };\n\n//# sourceMappingURL=transaction-state-BfXhs7D7.mjs.map"],"mappings":";;AAEA,MAAM,2BAA2B,OAAO,0BAA0B;AAClE,SAAS,iCAAiC,QAAQ;CACjD,OAAO,4BAA4B;AACpC;AACA,SAAS,mBAAmB,QAAQ,WAAW,QAAQ,SAAS;CAC/D,UAAU,iCAAiC,MAAM,GAAG,mEAAmE;CACvH,OAAO,OAAO,yBAAyB,CAAC,WAAW,QAAQ,OAAO;AACnE;AAGA,MAAM,yBAAyB,OAAO,wBAAwB;AAC9D,SAAS,+BAA+B,QAAQ;CAC/C,OAAO,0BAA0B;AAClC;AACA,SAAS,iBAAiB,QAAQ,WAAW,QAAQ,SAAS;CAC7D,UAAU,+BAA+B,MAAM,GAAG,iEAAiE;CACnH,OAAO,OAAO,uBAAuB,CAAC,WAAW,QAAQ,OAAO;AACjE;;;;AAMA,MAAM,wBAAwB,OAAO,uBAAuB;AAC5D,SAAS,aAAa,aAAa;CAClC,OAAO,2BAA2B,WAAW,IAAI,YAAY,yBAAyB,KAAK;AAC5F;AACA,SAAS,2BAA2B,OAAO;CAC1C,OAAO,yBAAyB;AACjC;;;;AAIA,MAAM,mBAAmB,OAAO,kBAAkB;AAClD,SAAS,yBAAyB;CACjC,OAAO,EAAE,oBAAoB,MAAM;AACpC;AACA,SAAS,sBAAsB,YAAY;CAC1C,OAAO,yBAAyB,UAAU,KAAK,WAAW,iBAAiB,CAAC;AAC7E;AACA,SAAS,yBAAyB,OAAO;CACxC,OAAO,oBAAoB;AAC5B"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"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B;;UAER;YACE,wBAAwB;;iBAEnB,aAAa,sBAAsB;;;;cAItC;UACJ;EACR;;UAEQ;YACE,mBAAmB;;iBAEd,0BAA0B"}
@@ -1 +0,0 @@
1
- import "./types-CuCxAQat-BBGUHEku.mjs";
@@ -1 +0,0 @@
1
- {"version":3,"file":"types-C7610W2l.mjs","names":[],"sources":["../../../../2-sql/1-core/contract/dist/types.mjs"],"sourcesContent":["import { a as ForeignKey, c as CheckConstraint, i as PrimaryKey, l as SqlNode, n as UniqueConstraint, o as ForeignKeyReference, r as StorageColumn, s as Index, t as StorageTable } from \"./storage-table-DDvN83mw.mjs\";\nimport { i as isStorageValueSet, n as checkConstraintInputFromSerialized, r as StorageValueSet, t as indexInputFromSerialized } from \"./serialized-index-DjCCnXB1.mjs\";\nimport { NamespaceBase, freezeNode, isPlainRecord } from \"@internal/framework-components/ir\";\nimport { InternalError } from \"@internal/utils/internal-error\";\nimport { RelationKeys } from \"@internal/framework-components/runtime\";\n//#region src/ir/storage-type-instance.ts\n/**\n* Sentinel kind for the legacy codec-triple shape persisted under\n* `SqlStorage.types`. Plain JSON-clean object literals carry this\n* discriminator so the polymorphic slot dispatch can route them down\n* the codec path while target-specific IR class instances (e.g. the\n* Postgres enum class) keep their own narrower `kind` literal.\n*/\nconst CODEC_INSTANCE_KIND = \"codec-instance\";\n/**\n* Stamp the codec-instance `kind` discriminator on a caller-supplied\n* codec triple. Idempotent: input that already carries the discriminator\n* passes through unchanged. Missing `typeParams` is normalised to `{}`.\n*/\nfunction toStorageTypeInstance(input) {\n\treturn {\n\t\tkind: CODEC_INSTANCE_KIND,\n\t\tcodecId: input.codecId,\n\t\tdataType: input.dataType,\n\t\ttypeParams: input.typeParams ?? {}\n\t};\n}\n/**\n* A type's parameters, with empty parameters read as none, as a codec reads them; {@link toStorageTypeInstance} stores `{}` for a codec without parameters.\n*/\nfunction nonEmptyTypeParams(typeParams) {\n\treturn typeParams !== void 0 && Object.keys(typeParams).length > 0 ? typeParams : void 0;\n}\n/**\n* Type-guard for codec-typed entries on the polymorphic\n* `SqlStorage.types` slot. Distinguishes `StorageTypeInstance` from\n* any class-instance kinds a target pack contributes.\n*/\nfunction isStorageTypeInstance(value) {\n\tif (typeof value !== \"object\" || value === null) return false;\n\treturn value.kind === CODEC_INSTANCE_KIND;\n}\n//#endregion\n//#region src/ir/sql-storage.ts\n/**\n* Narrows framework `AuthoringContributions` to the SQL-family shape by testing\n* for the SQL-specific `createNamespace` capability.\n*/\nfunction isSqlAuthoringContributions(authoring) {\n\tif (authoring === void 0 || !Object.hasOwn(authoring, \"createNamespace\")) return false;\n\treturn typeof Reflect.get(authoring, \"createNamespace\") === \"function\";\n}\n/**\n* Abstract SQL family namespace base class. Target concretions (`PostgresSchema`,\n* `SqliteDatabase`, …) extend this — it is never instantiated directly.\n* `entries` is the open ADR 224 dictionary: `entries[entityKind][entityName]`\n* addresses any entity.\n*/\nvar SqlNamespaceBase = class extends NamespaceBase {};\n/**\n* Realm-safe guard for hydrated `SqlNamespaceBase` concretions. Checks\n* `qualifyTable` structurally instead of `instanceof NamespaceBase`, so it\n* survives duplicate-module boundaries (e.g. dist e2e where the target and\n* the family carry separate copies of `@internal/framework-components`).\n*\n* Every concrete `SqlNamespaceBase` subclass (`PostgresSchema`, `SqliteDatabase`,\n* `TestSqlNamespace`, …) implements `qualifyTable`. Raw `SqlNamespaceInput`\n* objects (`{ id, entries }`) do not.\n*/\nfunction isMaterializedSqlNamespace(x) {\n\tif (typeof x !== \"object\" || x === null || !(\"qualifyTable\" in x)) return false;\n\treturn typeof x.qualifyTable === \"function\";\n}\nvar SqlStorage = class extends SqlNode {\n\tstorageHash;\n\tnamespaces;\n\tconstructor(input) {\n\t\tsuper();\n\t\tthis.storageHash = input.storageHash;\n\t\tthis.namespaces = Object.freeze(input.namespaces);\n\t\tif (input.types !== void 0) this.types = Object.freeze(Object.fromEntries(Object.entries(input.types).map(([name, ti]) => [name, normaliseTypeEntry(name, ti)])));\n\t\tfreezeNode(this);\n\t}\n};\n/**\n* Strict polymorphic-slot dispatch for `SqlStorage.types` entries.\n* Every entry must carry a `kind: 'codec-instance'` discriminator or\n* be an already-constructed `StorageTypeInstance`. Untagged or\n* unrecognised inputs throw a diagnostic naming the entry and its\n* `kind`, so format drift surfaces loudly at the deserializer\n* boundary instead of slipping past the seam and corrupting\n* downstream IR walks.\n*\n* Codec-triple authors that have an untagged shape on hand can call\n* `toStorageTypeInstance(...)` (which stamps the `'codec-instance'`\n* discriminator) before constructing `SqlStorage`. On-disk reads\n* cross `familyInstance.deserializeContract` first; the structural\n* arktype schema rejects untagged entries earlier, so this throw\n* only fires for in-memory authoring bugs.\n*/\nfunction normaliseTypeEntry(name, entry) {\n\tif (isStorageTypeInstance(entry)) {\n\t\tif (\"typeParams\" in entry) return entry;\n\t\treturn toStorageTypeInstance(entry);\n\t}\n\tconst rawKind = isPlainRecord(entry) && \"kind\" in entry ? entry.kind : void 0;\n\tconst kindDescription = rawKind === void 0 ? \"missing `kind` discriminator\" : `unrecognised \\`kind\\` discriminator ${JSON.stringify(rawKind)}`;\n\tthrow new InternalError(`storage.types[${JSON.stringify(name)}] has ${kindDescription}; expected ${JSON.stringify(\"codec-instance\")}. Untagged codec triples should be wrapped with toStorageTypeInstance(...) before construction.`);\n}\n//#endregion\n//#region src/types.ts\nconst DEFAULT_FK_CONSTRAINT = true;\nconst DEFAULT_FK_INDEX = true;\nfunction applyFkDefaults(fk, overrideDefaults) {\n\treturn {\n\t\tconstraint: fk.constraint ?? overrideDefaults?.constraint ?? true,\n\t\tindex: fk.index ?? overrideDefaults?.index ?? true\n\t};\n}\n//#endregion\nexport { CODEC_INSTANCE_KIND, CheckConstraint, DEFAULT_FK_CONSTRAINT, DEFAULT_FK_INDEX, ForeignKey, ForeignKeyReference, Index, PrimaryKey, RelationKeys, SqlNamespaceBase, SqlNode, SqlStorage, StorageColumn, StorageTable, StorageValueSet, UniqueConstraint, applyFkDefaults, checkConstraintInputFromSerialized, indexInputFromSerialized, isMaterializedSqlNamespace, isSqlAuthoringContributions, isStorageTypeInstance, isStorageValueSet, nonEmptyTypeParams, toStorageTypeInstance };\n\n//# sourceMappingURL=types.mjs.map"],"mappings":";;;;;;;;;;;;AAaA,MAAM,sBAAsB;;;;;;AAM5B,SAAS,sBAAsB,OAAO;CACrC,OAAO;EACN,MAAM;EACN,SAAS,MAAM;EACf,UAAU,MAAM;EAChB,YAAY,MAAM,cAAc,CAAC;CAClC;AACD;;;;AAIA,SAAS,mBAAmB,YAAY;CACvC,OAAO,eAAe,KAAK,KAAK,OAAO,KAAK,UAAU,CAAC,CAAC,SAAS,IAAI,aAAa,KAAK;AACxF;;;;;;AAMA,SAAS,sBAAsB,OAAO;CACrC,IAAI,OAAO,UAAU,YAAY,UAAU,MAAM,OAAO;CACxD,OAAO,MAAM,SAAS;AACvB;;;;;AAOA,SAAS,4BAA4B,WAAW;CAC/C,IAAI,cAAc,KAAK,KAAK,CAAC,OAAO,OAAO,WAAW,iBAAiB,GAAG,OAAO;CACjF,OAAO,OAAO,QAAQ,IAAI,WAAW,iBAAiB,MAAM;AAC7D;;;;;;;AAOA,IAAI,mBAAmB,cAAc,cAAc,CAAC;;;;;;;;;;;AAWpD,SAAS,2BAA2B,GAAG;CACtC,IAAI,OAAO,MAAM,YAAY,MAAM,QAAQ,EAAE,kBAAkB,IAAI,OAAO;CAC1E,OAAO,OAAO,EAAE,iBAAiB;AAClC;AACA,IAAI,aAAa,cAAc,QAAQ;CACtC;CACA;CACA,YAAY,OAAO;EAClB,MAAM;EACN,KAAK,cAAc,MAAM;EACzB,KAAK,aAAa,OAAO,OAAO,MAAM,UAAU;EAChD,IAAI,MAAM,UAAU,KAAK,GAAG,KAAK,QAAQ,OAAO,OAAO,OAAO,YAAY,OAAO,QAAQ,MAAM,KAAK,CAAC,CAAC,KAAK,CAAC,MAAM,QAAQ,CAAC,MAAM,mBAAmB,MAAM,EAAE,CAAC,CAAC,CAAC,CAAC;EAChK,WAAW,IAAI;CAChB;AACD;;;;;;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;WACC,QAAQ,eAAe,aAAa;WACpC,cAAc;;;;;;;;;;;;;;;;;cAiBX,oBAAoB,2BAA2B;WAClD;WACA,QAAQ,SAAS,eAAe;WAChC,cAAc;EACvB,YAAY,OAAO;MACf;EACJ,UAAU,OAAO;EACjB,qBAAqB"}
@@ -1 +0,0 @@
1
- import "./types-TXO7x1BA-DuW4v0rw.mjs";
@@ -1 +0,0 @@
1
- {"version":3,"file":"types-DfKvtJwS-tndgHh53.d.mts","names":[],"sources":["../../../../2-sql/1-core/contract/dist/types-DfKvtJwS.d.mts"],"mappings":";;;;;;;;;;;;;UAYU,yBAAyB,mCAAmC,6BAA6B;EACjG,MAAM,MAAM,yBAAyB,aAAa,8BAA8B;aACrE,MAAM;;;KAGd;WACM;WACA,WAAW;WACX,WAAW;WACX,QAAQ;;KAEd;WACM;WACA;WACA;;KAEN;WACM;WACA;WACA,QAAQ,eAAe;;cAEpB;cACA;iBACG,gBAAgB;EAC/B;EACA;GACC;EACD;EACA;;EAEA;EACA;;KAEG,yBAAyB,eAAe,eAAe;KACvD,iCAAiC,eAAe,eAAe;;;;KAI/D;WACM;WACA;;;;;;;;;KASN;WACM,SAAS,eAAe;WACxB,eAAe;WACf,WAAW;;;KAGjB,qBAAqB,eAAe;;KAEpC;WACM;WACA;aACE;aACA;aACA;;WAEF;aACE;aACA;;WAEF;;;KAGN,eAAe;WACT,QAAQ;aACN;eACE;eACA,eAAe;;MAExB;WACK,UAAU;aACR,gBAAgB;MACvB;;KAED,aAAa,eAAe;WACtB,iBAAiB;IACxB;KACC,cAAc,eAAe;WACvB;aACE;aACA,eAAe;;IAExB;KACC,eAAe,aAAa,WAAW;WACjC;aACE;aACA,eAAe;;IAExB,gBAAgB,UAAU;KACzB,cAAc,eAAe;WACvB;aACE;aACA,aAAa;;IAEtB;KACC,eAAe,aAAa,SAAS;WAC/B;aACE;aACA,aAAa;;IAEtB,cAAc,UAAU;KACvB,kBAAkB,aAAa,+BAA+B,QAAQ;WAChE;aACE,MA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AkB,KAAK,aAAa,4BAA4B;KAChE,2BAA2B,KAAK,sBAAsB,4BAA4B;KAClF,wBAAwB,KAAK,mBAAmB,4BAA4B;KAC5E,uBAAuB,KAAK,kBAAkB,4BAA4B;KAC1E,0BAA0B,KAAK,qBAAqB,4BAA4B;KAChF,+BAA+B,KAAK,0BAA0B,4BAA4B;KAC1F,sBAAsB,KAAK,iBAAiB,4BAA4B;KACxE,kBAAkB,WAAW,cAAc,6BAA6B,kBAAkB,aAAa,aAAa"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"types-DoyiTsjg-DDTmYyNY.mjs","names":[],"sources":["../../../../2-sql/1-core/schema-ir/dist/types-DoyiTsjg.mjs"],"sourcesContent":["import { f as normalizeIndexOptionValue, l as nameOf } from \"./naming-bM5qm5PY.mjs\";\nimport { IRNodeBase, freezeNode } from \"@internal/framework-components/ir\";\nimport { blindCast } from \"@internal/utils/casts\";\nimport { InternalError } from \"@internal/utils/internal-error\";\nimport { canonicalStringify } from \"@internal/utils/canonical-stringify\";\nimport { dataTypeValuesEqual } from \"@internal/framework-components/codec\";\nimport { canonicalizeJson } from \"@internal/framework-components/utils\";\nimport { ifDefined } from \"@internal/utils/defined\";\nimport { isArrayEqual } from \"@internal/utils/array-equal\";\n//#region src/ir/schema-node-kinds.ts\n/**\n* The `nodeKind` discriminant for each relational schema-diff leaf node.\n* Each node carries a unique value; the differ pairs siblings by `id`, and\n* these kinds distinguish the node types that appear as `PostgresTableSchemaNode`\n* children (columns, primary key, foreign keys, uniques, indexes, checks) from\n* each other and from the RLS policy/role kinds a target defines separately.\n*/\nconst RelationalSchemaNodeKind = {\n\tschema: \"sql-schema\",\n\ttable: \"sql-table\",\n\tcolumn: \"sql-column\",\n\tcolumnDefault: \"sql-column-default\",\n\tprimaryKey: \"sql-primary-key\",\n\tforeignKey: \"sql-foreign-key\",\n\tunique: \"sql-unique\",\n\tindex: \"sql-index\",\n\tcheck: \"sql-check-constraint\"\n};\n/**\n* The one real map from a relational `nodeKind` to the framework-neutral\n* {@link DiffSubjectGranularity} its diff issues carry — the SQL family's\n* post-diff filters (issue category, strict-mode gating) and the framework\n* aggregate's unclaimed-elements sweep key on the granularity, never on the\n* `nodeKind` spelling and never on anything stamped on the node. Resolution\n* is by `nodeKind` equality against this map, not a suffix string match.\n* Target-specific node kinds (Postgres namespace/table/policy/role) are\n* outside this family layer's vocabulary and map their own kinds directly.\n*/\nconst RELATIONAL_NODE_GRANULARITY = {\n\t[RelationalSchemaNodeKind.schema]: \"structural\",\n\t[RelationalSchemaNodeKind.table]: \"entity\",\n\t[RelationalSchemaNodeKind.column]: \"field\",\n\t[RelationalSchemaNodeKind.columnDefault]: \"auxiliary\",\n\t[RelationalSchemaNodeKind.primaryKey]: \"auxiliary\",\n\t[RelationalSchemaNodeKind.foreignKey]: \"auxiliary\",\n\t[RelationalSchemaNodeKind.unique]: \"auxiliary\",\n\t[RelationalSchemaNodeKind.index]: \"auxiliary\",\n\t[RelationalSchemaNodeKind.check]: \"auxiliary\"\n};\nfunction isRelationalSchemaNodeKind(nodeKind) {\n\treturn Object.hasOwn(RELATIONAL_NODE_GRANULARITY, nodeKind);\n}\n/**\n* Looks up the subject granularity for a relational `nodeKind`. Throws for a\n* `nodeKind` outside this map (a target-specific kind, e.g. Postgres's\n* namespace/table/policy/role) — those map their own kinds directly rather\n* than through this family-level map.\n*/\nfunction relationalNodeGranularity(nodeKind) {\n\tif (!isRelationalSchemaNodeKind(nodeKind)) throw new InternalError(`relationalNodeGranularity: unrecognized relational node kind \"${nodeKind}\"`);\n\treturn RELATIONAL_NODE_GRANULARITY[nodeKind];\n}\n/**\n* The one real map from a relational `nodeKind` to its storage `entityKind`\n* — the same vocabulary the contract storage's `entries` dictionary keys use\n* (`elementCoordinates` walks it). Only the whole-table kind has an entity of\n* its own; every other relational node (a column, an index, …) is nested\n* under one and maps to nothing here.\n*/\nconst RELATIONAL_NODE_ENTITY_KIND = { [RelationalSchemaNodeKind.table]: \"table\" };\n/**\n* Looks up the storage `entityKind` for a relational `nodeKind` — sibling of\n* {@link relationalNodeGranularity}, resolved by `nodeKind` equality against\n* {@link RELATIONAL_NODE_ENTITY_KIND}. `undefined` for a target-specific kind\n* (targets map their own kinds directly) or a relational kind with no entity\n* of its own.\n*/\nfunction relationalNodeEntityKind(nodeKind) {\n\treturn isRelationalSchemaNodeKind(nodeKind) ? RELATIONAL_NODE_ENTITY_KIND[nodeKind] : void 0;\n}\n//#endregion\n//#region src/ir/sql-schema-ir-node.ts\n/**\n* SQL Schema IR node base. Carries the family-level\n* `kind = 'sql-schema-ir'` discriminator and inherits the framework's\n* `freezeNode` affordance.\n*\n* SQL Schema IR represents the actual database state as discovered by\n* introspection (the parallel to SQL Contract IR, which represents the\n* desired state).\n*\n* The discriminator is installed as a non-enumerable own property,\n* matching the SqlNode pattern. This keeps `JSON.stringify(node)`\n* canonical (no `kind` field), keeps `toEqual({...})` test assertions\n* against pre-lift flat shapes passing, and keeps `node.kind` readable\n* for dispatch.\n*\n* Both `kind` and `nodeKind` are required: every concrete leaf is a node\n* the generic differ can pair and compare, so every leaf must declare which\n* node it is. `nodeKind` has no default here — every direct subclass sets its\n* own literal value (the relational leaves via `RelationalSchemaNodeKind`,\n* target concretions via their own vocabulary, e.g. `PostgresSchemaNodeKind`).\n*/\nvar SqlSchemaIRNode = class extends IRNodeBase {\n\tconstructor() {\n\t\tsuper();\n\t\tObject.defineProperty(this, \"kind\", {\n\t\t\tvalue: \"sql-schema-ir\",\n\t\t\twritable: false,\n\t\t\tenumerable: false,\n\t\t\tconfigurable: false\n\t\t});\n\t}\n};\n/**\n* Asserts `node` matches `predicate`, narrowing its type to `T`. The one\n* shared implementation every node class's `static assert` and `isEqualTo`\n* reach for, instead of each hand-writing its own throw: the message names\n* the class the caller expected.\n*/\nfunction assertNode(node, className, predicate) {\n\tif (node === void 0 || !predicate(node)) throw new InternalError(`Expected a ${className} but got nodeKind=${node?.nodeKind ?? \"undefined\"}`);\n}\n/**\n* Defines a non-enumerable own property, the same treatment `kind` gets\n* above: a derivation-time render-support field stays out of\n* `JSON.stringify`, `toEqual({...})` structural assertions, and spreads,\n* while remaining directly readable (`node.field`) for the one consumer\n* that resolves it at plan time. A no-op when `value` is `undefined` — the\n* property is simply absent, matching every other optional field on these\n* nodes.\n*/\nfunction defineNonEnumerable(target, key, value) {\n\tif (value === void 0) return;\n\tObject.defineProperty(target, key, {\n\t\tvalue,\n\t\tenumerable: false,\n\t\twritable: false,\n\t\tconfigurable: false\n\t});\n}\n//#endregion\n//#region src/ir/primary-key.ts\n/**\n* Primary-key Schema IR node. Mirrors the Contract IR `PrimaryKey`\n* shape (same `columns` + optional `name`) so verification can compare\n* intent and actual structurally. Defined here independently to avoid\n* a sql-schema-ir -> sql-contract dependency.\n*\n* Implements `DiffableNode` so a primary key is directly a table's diff-tree\n* child. `id` is a fixed sentinel — a table has at most one primary key, so\n* there is never a sibling to disambiguate against. `isEqualTo` compares the\n* column tuple; the PK's own `name` is a database-assigned label with no\n* semantic weight, so it is not compared (mirrors the policy node's\n* name-insensitivity to non-identifying detail).\n*/\nvar PrimaryKey = class PrimaryKey extends SqlSchemaIRNode {\n\tnodeKind = RelationalSchemaNodeKind.primaryKey;\n\tcolumns;\n\tconstructor(input) {\n\t\tsuper();\n\t\tthis.columns = input.columns;\n\t\tif (input.name !== void 0) this.name = input.name;\n\t\tdefineNonEnumerable(this, \"dependsOn\", input.dependsOn);\n\t\tfreezeNode(this);\n\t}\n\tget id() {\n\t\treturn \"primary-key\";\n\t}\n\tchildren() {\n\t\treturn [];\n\t}\n\tstatic from(value) {\n\t\treturn value instanceof PrimaryKey ? value : new PrimaryKey(value);\n\t}\n\tstatic is(node) {\n\t\treturn node.nodeKind === RelationalSchemaNodeKind.primaryKey;\n\t}\n\tisEqualTo(other) {\n\t\tconst node = blindCast(other);\n\t\tassertNode(node, \"PrimaryKey\", PrimaryKey.is);\n\t\treturn this.columns.length === node.columns.length && this.columns.every((c, i) => c === node.columns[i]);\n\t}\n};\n//#endregion\n//#region src/ir/sql-check-constraint-ir.ts\n/**\n* Schema IR node for a table-level check constraint, carried as an opaque\n* predicate. The expression is never parsed — a database reprints predicates\n* in its own normalized form, so any structured reading of it would drift.\n*\n* Implements `DiffableNode` so a check is directly a table's diff-tree child;\n* `id` is `check:<name>`. `isEqualTo` is mode-selected by the receiver's\n* `prefix` (the differ always calls `expected.isEqualTo(actual)`): a\n* wire-named receiver compares ids only — the wire name's hash already\n* commits to the predicate — while an exact-named receiver byte-compares the\n* expression, which is reliable precisely when both sides came from the same\n* reprint.\n*/\nvar SqlCheckConstraintIR = class SqlCheckConstraintIR extends SqlSchemaIRNode {\n\tnodeKind = RelationalSchemaNodeKind.check;\n\tname;\n\texpression;\n\tconstructor(input) {\n\t\tsuper();\n\t\tthis.name = nameOf(input.naming);\n\t\tif (input.naming.kind === \"wire\") this.prefix = input.naming.prefix;\n\t\tthis.expression = input.expression;\n\t\tdefineNonEnumerable(this, \"dependsOn\", input.dependsOn);\n\t\tfreezeNode(this);\n\t}\n\tget id() {\n\t\treturn `check:${this.name}`;\n\t}\n\tchildren() {\n\t\treturn [];\n\t}\n\tstatic from(value) {\n\t\treturn value instanceof SqlCheckConstraintIR ? value : new SqlCheckConstraintIR(value);\n\t}\n\tstatic is(node) {\n\t\treturn node.nodeKind === RelationalSchemaNodeKind.check;\n\t}\n\tisEqualTo(other) {\n\t\tconst node = blindCast(other);\n\t\tassertNode(node, \"SqlCheckConstraintIR\", SqlCheckConstraintIR.is);\n\t\tif (this.prefix !== void 0) return this.id === node.id;\n\t\treturn this.expression === node.expression;\n\t}\n};\n//#endregion\n//#region src/ir/sql-default-value.ts\nfunction isList(value) {\n\treturn Array.isArray(value);\n}\n/** Whether two defaults are one value: the same type, parameters and value, element by element for a list. */\nfunction sqlDefaultValuesEqual(a, b) {\n\tif (!isList(a) || !isList(b)) return !isList(a) && !isList(b) && dataTypeValuesEqual(a, b);\n\treturn a.length === b.length && a.every((element, index) => {\n\t\tconst other = b[index];\n\t\tif (element === null || other === null || other === void 0) return element === other;\n\t\treturn dataTypeValuesEqual(element, other);\n\t});\n}\n//#endregion\n//#region src/ir/sql-column-default-ir.ts\n/**\n* Schema-diff node for a column's default value. The default is the one\n* column attribute with an extra/missing/drift lifecycle of its own, so it\n* is a child node of the column rather than a compared attribute: an\n* undeclared live default surfaces as `not-expected`, a declared default the\n* database lacks as `not-found`, and a divergent value as `not-equal` — the\n* three reasons cover the legacy `extra_default` / `default_missing` /\n* `default_mismatch` vocabulary with no attribute inspection.\n*\n* `id` is a fixed sentinel — a column has at most one default. Built\n* transiently by `SqlColumnIR.children()` from the column's own fields;\n* never constructed by derivation or introspection directly.\n*/\nvar SqlColumnDefaultIR = class SqlColumnDefaultIR extends SqlSchemaIRNode {\n\tnodeKind = RelationalSchemaNodeKind.columnDefault;\n\tconstructor(input) {\n\t\tsuper();\n\t\tif (input.resolved !== void 0) this.resolved = input.resolved;\n\t\tif (input.raw !== void 0) this.raw = input.raw;\n\t\tdefineNonEnumerable(this, \"authored\", input.authored);\n\t\tdefineNonEnumerable(this, \"value\", input.value);\n\t\tdefineNonEnumerable(this, \"unreadable\", input.unreadable);\n\t\tdefineNonEnumerable(this, \"expressionValue\", input.expressionValue);\n\t\tdefineNonEnumerable(this, \"many\", input.many);\n\t\tdefineNonEnumerable(this, \"codecRef\", input.codecRef);\n\t\tdefineNonEnumerable(this, \"sqlExpressionLiteralFor\", input.sqlExpressionLiteralFor);\n\t\tfreezeNode(this);\n\t}\n\tget id() {\n\t\treturn \"default\";\n\t}\n\tchildren() {\n\t\treturn [];\n\t}\n\tstatic is(node) {\n\t\treturn node.nodeKind === RelationalSchemaNodeKind.columnDefault;\n\t}\n\t/**\n\t* Compares with `this` as the expected side. Two literals compare as values of the column's type\n\t* when both sides hold one, and as canonical JSON otherwise; a `Date` the column's codec could not\n\t* read into a value equals nothing. Two expressions compare as text, with\n\t* case and whitespace ignored outside quotes. An expected expression that writes a literal, read by\n\t* the column's codec during introspection, matches a reported literal when the two values are\n\t* equal; when the codec could not read one of them, it compares with the reported text. A resolved\n\t* side against a raw-only side is a mismatch; two raw-only nodes compare their text.\n\t*/\n\tisEqualTo(other) {\n\t\tconst node = blindCast(other);\n\t\tassertNode(node, \"SqlColumnDefaultIR\", SqlColumnDefaultIR.is);\n\t\tconst expected = this.resolved;\n\t\tconst actual = node.resolved;\n\t\tif (expected?.kind === \"function\" && actual === void 0) return node.raw !== void 0 && sameExpression(expected.expression, node.raw);\n\t\tif (expected === void 0 || actual === void 0) return expected === actual && this.raw === node.raw;\n\t\tif (expected.kind === \"function\") {\n\t\t\tif (actual.kind === \"function\") return sameExpression(expected.expression, actual.expression);\n\t\t\tif (node.value !== void 0 && node.expressionValue !== void 0) return sqlDefaultValuesEqual(node.expressionValue, node.value);\n\t\t\treturn node.raw !== void 0 && sameExpression(expected.expression, node.raw);\n\t\t}\n\t\tif (actual.kind !== \"literal\") return false;\n\t\tif (this.value !== void 0 && node.value !== void 0) return sqlDefaultValuesEqual(this.value, node.value);\n\t\tif (expected.value instanceof Date || actual.value instanceof Date) return false;\n\t\treturn canonicalStringify(expected.value) === canonicalStringify(actual.value);\n\t}\n\t/**\n\t* For two default expressions, the text the database reads back, since it may store an expression\n\t* in a form of its own. Otherwise why the column's codec could not read the database's default, or\n\t* the value each side holds.\n\t*/\n\texplainMismatch(actual) {\n\t\tif (!(actual instanceof SqlColumnDefaultIR)) return void 0;\n\t\tif (actual.unreadable !== void 0) return {\n\t\t\ttext: actual.unreadable,\n\t\t\tcause: \"differs\"\n\t\t};\n\t\treturn this.storedExpressionForm(actual) ?? {\n\t\t\ttext: `The contract holds ${describeDefault(this)}, and the database holds ${describeDefault(actual)}.`,\n\t\t\tcause: \"differs\"\n\t\t};\n\t}\n\tstoredExpressionForm(actual) {\n\t\tif (this.resolved?.kind !== \"function\" || actual.resolved?.kind !== \"function\") return void 0;\n\t\tconst literalFor = this.sqlExpressionLiteralFor;\n\t\tconst shown = (text) => literalFor?.(text) ?? JSON.stringify(text);\n\t\tconst stored = actual.raw ?? actual.resolved.expression;\n\t\tconst written = literalFor === void 0 ? stored : [stored, actual.resolved.expression].find((text) => literalFor(text) !== void 0);\n\t\tconst advice = written === void 0 ? \"No `sql` literal writes that text unchanged, so change the default's SQL in the contract until the database stores it as written.\" : `If they do, write the default as ${shown(written)}.`;\n\t\treturn {\n\t\t\ttext: `The database reads this default back as ${shown(written ?? stored)}; the contract declares ${shown(this.resolved.expression)}. The database may store a default expression in its own form, so the two can mean the same. ${advice}`,\n\t\t\tcause: \"possibly-equivalent\"\n\t\t};\n\t}\n};\n/** A default as a person reads it: a literal as JSON, the value its type read when there is one, an expression as its text, and the text the database reports beside a value read from it. */\nfunction describeDefault(node) {\n\tconst resolved = node.resolved;\n\tif (resolved === void 0) return node.raw ?? \"no default\";\n\tif (resolved.kind === \"function\") return resolved.expression;\n\tconst shown = JSON.stringify(node.value === void 0 ? resolved.value : jsonOfDefaultValue(node.value));\n\treturn node.raw === void 0 || node.raw === shown ? shown : `${shown} (${node.raw})`;\n}\nfunction isDefaultList(value) {\n\treturn Array.isArray(value);\n}\nfunction jsonOfDefaultValue(value) {\n\treturn isDefaultList(value) ? value.map((element) => element === null ? null : element.value) : value.value;\n}\nfunction sameExpression(a, b) {\n\treturn comparableExpression(a) === comparableExpression(b);\n}\n/** The expression with case and whitespace dropped outside quotes; a quoted literal or identifier keeps both, since they change what it means. */\nfunction comparableExpression(expression) {\n\tlet result = \"\";\n\tlet quote;\n\tfor (const char of expression) if (quote !== void 0) {\n\t\tresult += char;\n\t\tif (char === quote) quote = void 0;\n\t} else if (char === \"'\" || char === \"\\\"\") {\n\t\tquote = char;\n\t\tresult += char;\n\t} else if (!/\\s/.test(char)) result += char.toLowerCase();\n\treturn result;\n}\n//#endregion\n//#region src/ir/sql-column-ir.ts\n/**\n* Schema IR node for a single column on a table, as observed by\n* introspection. Unlike the Contract IR `StorageColumn`, this carries\n* the column's `name` (Schema IR columns are returned as arrays from\n* introspection queries; the parent table re-keys them into a record\n* for downstream consumers).\n*\n* Implements `DiffableNode` so a column is directly a table's diff-tree\n* child: `id` is the column name (unique among a table's columns); `isEqualTo`\n* compares this column's own attributes only, never its default, which is a\n* child node: the type by {@link sqlColumnTypesEqual}, and nullability.\n*/\nvar SqlColumnIR = class SqlColumnIR extends SqlSchemaIRNode {\n\tnodeKind = RelationalSchemaNodeKind.column;\n\tname;\n\t/** See {@link SqlColumnIRInput.typeText}. */\n\ttypeText;\n\tnullable;\n\tconstructor(input) {\n\t\tsuper();\n\t\tthis.name = input.name;\n\t\tthis.typeText = input.typeText;\n\t\tthis.nullable = input.nullable;\n\t\tif (input.default !== void 0) this.default = input.default;\n\t\tif (input.annotations !== void 0) this.annotations = input.annotations;\n\t\tif (input.many !== void 0) this.many = input.many;\n\t\tif (input.resolvedDefault !== void 0) this.resolvedDefault = input.resolvedDefault;\n\t\tdefineNonEnumerable(this, \"authoredDefault\", input.authoredDefault);\n\t\tdefineNonEnumerable(this, \"codecRef\", input.codecRef);\n\t\tdefineNonEnumerable(this, \"storedType\", input.storedType);\n\t\tdefineNonEnumerable(this, \"storedTypeParams\", input.storedTypeParams);\n\t\tdefineNonEnumerable(this, \"defaultValue\", input.defaultValue);\n\t\tdefineNonEnumerable(this, \"defaultUnreadable\", input.defaultUnreadable);\n\t\tdefineNonEnumerable(this, \"defaultExpressionValue\", input.defaultExpressionValue);\n\t\tdefineNonEnumerable(this, \"sqlExpressionLiteralFor\", input.sqlExpressionLiteralFor);\n\t\tdefineNonEnumerable(this, \"reportedType\", input.reportedType);\n\t\tdefineNonEnumerable(this, \"catalogText\", input.catalogText);\n\t\tfreezeNode(this);\n\t}\n\tget id() {\n\t\treturn `column:${this.name}`;\n\t}\n\t/**\n\t* The column's default, when declared/present, is the column's one child\n\t* node — it has an extra/missing/drift lifecycle of its own, so the differ\n\t* recurses to it rather than `isEqualTo` comparing it. Built transiently\n\t* from this column's own fields.\n\t*/\n\tchildren() {\n\t\tif (this.resolvedDefault === void 0 && this.default === void 0) return [];\n\t\treturn [new SqlColumnDefaultIR({\n\t\t\t...ifDefined(\"resolved\", this.resolvedDefault),\n\t\t\t...ifDefined(\"raw\", this.default),\n\t\t\t...ifDefined(\"authored\", this.authoredDefault),\n\t\t\t...ifDefined(\"value\", this.defaultValue),\n\t\t\t...ifDefined(\"unreadable\", this.defaultUnreadable),\n\t\t\t...ifDefined(\"expressionValue\", this.defaultExpressionValue),\n\t\t\t...ifDefined(\"many\", this.many ?? this.codecRef?.many),\n\t\t\t...ifDefined(\"codecRef\", this.codecRef),\n\t\t\t...ifDefined(\"sqlExpressionLiteralFor\", this.sqlExpressionLiteralFor)\n\t\t})];\n\t}\n\t/** This column under another name, with every other field as it is. */\n\twithName(name) {\n\t\tconst fields = Object.fromEntries(Object.getOwnPropertyNames(this).map((key) => [key, Reflect.get(this, key)]));\n\t\treturn new SqlColumnIR({\n\t\t\t...blindCast(fields),\n\t\t\tname\n\t\t});\n\t}\n\tstatic is(node) {\n\t\treturn node.nodeKind === RelationalSchemaNodeKind.column;\n\t}\n\t/**\n\t* Compares the column's own attributes only — the default lives on the child node: the type, by {@link sqlColumnTypesEqual}, and nullability.\n\t*/\n\tisEqualTo(other) {\n\t\tconst node = blindCast(other);\n\t\tassertNode(node, \"SqlColumnIR\", SqlColumnIR.is);\n\t\treturn sqlColumnTypesEqual(this, node) && this.nullable === node.nullable;\n\t}\n\t/** Why `actual` is not this column: the two types as written and reported, or the nullability of each. The two sides always hold different values. */\n\texplainMismatch(actual) {\n\t\tif (actual === void 0) return void 0;\n\t\tconst node = blindCast(actual);\n\t\tassertNode(node, \"SqlColumnIR\", SqlColumnIR.is);\n\t\tconst texts = catalogTexts(this, node);\n\t\tif (texts !== void 0 && texts.expected !== texts.actual) return differs(`The column type is \"${texts.expected}\", but the database reports \"${texts.actual}\". A type named by its catalog text is compared with the text the database reports, exactly.`);\n\t\tif (node.storedType === void 0 && node.reportedType !== void 0) return differs(node.typeText === \"\" ? \"The database column has no declared type.\" : `The database column is ${shownTypeOf(node)}, which no data type in the configured stack declares.`);\n\t\tif (!sqlColumnTypesEqual(this, node)) return differs(`The contract column is ${shownTypeOf(this)} and the database column is ${shownTypeOf(node)}.`);\n\t\tif (this.nullable !== node.nullable) return differs(`The contract column is ${nullability(this)} and the database column is ${nullability(node)}.`);\n\t}\n};\n/**\n* Whether two columns have the same type: both have a stored type, the two are one data type, their parameters are equal as canonical JSON, and both or neither are lists. A column no data type claims has no stored type and never has the same type as another. ADR 254.\n*\n* When either column carries a {@link SqlColumnIR.catalogText}, the two compare by text instead, exactly, with `[]` for a list: that text against the other column's catalog text or reported text. ADR 273.\n*/\nfunction sqlColumnTypesEqual(a, b) {\n\tconst texts = catalogTexts(a, b);\n\tif (texts !== void 0) return texts.expected === texts.actual;\n\treturn a.storedType !== void 0 && b.storedType !== void 0 && a.storedType.id === b.storedType.id && canonicalizeJson(a.storedTypeParams ?? {}) === canonicalizeJson(b.storedTypeParams ?? {}) && Boolean(a.many) === Boolean(b.many);\n}\n/** The text a column's type compares by, with `[]` for a list, when it has one: its catalog text, or the text the database reports. */\nfunction comparedText(column) {\n\tconst text = column.catalogText ?? column.reportedType?.text;\n\treturn text === void 0 ? void 0 : `${text}${column.many === true ? \"[]\" : \"\"}`;\n}\n/** The two texts a pair of columns compares by, when either carries a catalog text. A side with no text to compare gives the empty text, which no catalog text equals. */\nfunction catalogTexts(expected, actual) {\n\tif (expected.catalogText === void 0 && actual.catalogText === void 0) return void 0;\n\treturn {\n\t\texpected: comparedText(expected) ?? \"\",\n\t\tactual: comparedText(actual) ?? \"\"\n\t};\n}\n/** The column's type as the contract writes it, or as introspection gives it, with `[]` for a list, in double quotes unless the text has double quotes of its own, as `\"char\"` does. */\nfunction shownTypeOf(column) {\n\tconst text = `${column.typeText}${column.many === true ? \"[]\" : \"\"}`;\n\treturn text.includes(\"\\\"\") ? text : `\"${text}\"`;\n}\nfunction differs(text) {\n\treturn {\n\t\ttext,\n\t\tcause: \"differs\"\n\t};\n}\nfunction nullability(column) {\n\treturn column.nullable ? \"nullable\" : \"not nullable\";\n}\n//#endregion\n//#region src/ir/sql-foreign-key-ir.ts\n/**\n* Schema IR node for a foreign-key constraint as observed by\n* introspection. The `referencedTable` / `referencedColumns` field\n* names match the introspection vocabulary (`pg_constraint.confkey`,\n* etc.) and intentionally differ from the Contract IR's nested\n* `references: { table, columns }` shape so that the verifier's\n* structural comparison stays explicit about which side it's reading.\n*\n* Implements `DiffableNode` so a foreign key is directly a table's diff-tree\n* child. Foreign keys are frequently unnamed (introspection may not carry a\n* constraint name, and the contract side never invents one), so `id` is\n* derived from the referencing/referenced coordinates rather than `name` —\n* the same tuple that makes two FK constraints the same constraint. This\n* also serves as the comparison key: two FKs with the same coordinates are\n* paired by the differ, and `isEqualTo` then compares the remaining\n* attribute — the referential actions.\n*/\nvar SqlForeignKeyIR = class SqlForeignKeyIR extends SqlSchemaIRNode {\n\tnodeKind = RelationalSchemaNodeKind.foreignKey;\n\tcolumns;\n\treferencedTable;\n\treferencedColumns;\n\tconstructor(input) {\n\t\tsuper();\n\t\tthis.columns = input.columns;\n\t\tthis.referencedTable = input.referencedTable;\n\t\tthis.referencedColumns = input.referencedColumns;\n\t\tif (input.referencedSchema !== void 0) this.referencedSchema = input.referencedSchema;\n\t\tif (input.name !== void 0) this.name = input.name;\n\t\tif (input.onDelete !== void 0) this.onDelete = input.onDelete;\n\t\tif (input.onUpdate !== void 0) this.onUpdate = input.onUpdate;\n\t\tif (input.annotations !== void 0) this.annotations = input.annotations;\n\t\tconst resolvedReferencedNamespace = input.resolvedReferencedNamespace ?? input.referencedSchema;\n\t\tif (resolvedReferencedNamespace !== void 0) this.resolvedReferencedNamespace = resolvedReferencedNamespace;\n\t\tdefineNonEnumerable(this, \"dependsOn\", input.dependsOn);\n\t\tfreezeNode(this);\n\t}\n\tget id() {\n\t\tconst referencedNamespace = this.resolvedReferencedNamespace ?? \"\";\n\t\treturn `foreign-key:${this.columns.join(\",\")}->${referencedNamespace}.${this.referencedTable}(${this.referencedColumns.join(\",\")})`;\n\t}\n\tchildren() {\n\t\treturn [];\n\t}\n\tstatic is(node) {\n\t\treturn node.nodeKind === RelationalSchemaNodeKind.foreignKey;\n\t}\n\t/**\n\t* Referential-action comparison with `this` as the expected side, matching\n\t* the relational walk's `getReferentialActionMismatches`: `noAction` is the\n\t* database default and equivalent to an undeclared action, and drift is\n\t* flagged only when the expected side declares a (normalized) action.\n\t*/\n\tisEqualTo(other) {\n\t\tconst node = blindCast(other);\n\t\tassertNode(node, \"SqlForeignKeyIR\", SqlForeignKeyIR.is);\n\t\treturn referentialActionMatches(this.onDelete, node.onDelete) && referentialActionMatches(this.onUpdate, node.onUpdate);\n\t}\n};\nfunction referentialActionMatches(expected, actual) {\n\tconst normalizedExpected = expected === \"noAction\" ? void 0 : expected;\n\tif (normalizedExpected === void 0) return true;\n\treturn normalizedExpected === (actual === \"noAction\" ? void 0 : actual);\n}\n//#endregion\n//#region src/ir/sql-index-ir.ts\n/**\n* Schema IR node for a secondary index as observed by introspection.\n* Unlike the Contract IR `Index`, the Schema IR carries an explicit\n* `unique` field — introspection sees the underlying index regardless\n* of whether the user expressed it as `@@index` or `@@unique`, and the\n* verifier needs to distinguish them when comparing to the Contract.\n*\n* Implements `DiffableNode` so an index is directly a table's diff-tree\n* child. Indexes are name-identified: every index — contract-derived or\n* introspected — carries its full physical name, and `id` is that name.\n* Names are catalog-unique per schema, so two indexes legitimately sharing\n* one column tuple (a unique index beside a redundant plain index) are two\n* distinct siblings, and expression indexes need no column tuple at all.\n*\n* `isEqualTo` is selected by the receiver (the differ always calls\n* `expected.isEqualTo(actual)`) and delegates to {@link contentEquals} —\n* the single node-owned content relation: both modes compare `unique`\n* strict, `type` and option values through the named normalization seams,\n* and `columns` ordered-strict when both sides carry them; an exact-named\n* receiver (`prefix === undefined`) additionally byte-compares\n* `expression`/`where` (both sides are reprints in the supported flow —\n* normalizing would only mask real drift); a wire-named receiver never\n* compares bodies (the wire-name hash already commits to them).\n*\n* `expression`, `where`, and `unique` are genuine SQL-family attributes —\n* functional and partial indexes are standard SQL that any SQL target may\n* introspect, so the family node must represent them; a target declining\n* to author them is a capability decision, not target-specificity.\n*/\nvar SqlIndexIR = class SqlIndexIR extends SqlSchemaIRNode {\n\tnodeKind = RelationalSchemaNodeKind.index;\n\tname;\n\tunique;\n\tconstructor(input) {\n\t\tsuper();\n\t\tconst name = nameOf(input.naming);\n\t\tif (input.columns === void 0 === (input.expression === void 0)) throw new InternalError(`SqlIndexIR \"${name}\": exactly one of columns or expression must be set.`);\n\t\tthis.name = name;\n\t\tthis.unique = input.unique;\n\t\tif (input.naming.kind === \"wire\") this.prefix = input.naming.prefix;\n\t\tif (input.columns !== void 0) this.columns = input.columns;\n\t\tif (input.expression !== void 0) this.expression = input.expression;\n\t\tif (input.where !== void 0) this.where = input.where;\n\t\tconst normalizedType = normalizeIndexType(input.type);\n\t\tif (normalizedType !== void 0) this.type = normalizedType;\n\t\tif (input.options !== void 0) this.options = input.options;\n\t\tif (input.annotations !== void 0) this.annotations = input.annotations;\n\t\tdefineNonEnumerable(this, \"dependsOn\", input.dependsOn);\n\t\tdefineNonEnumerable(this, \"partial\", input.partial);\n\t\tfreezeNode(this);\n\t}\n\tget id() {\n\t\treturn `index:${this.name}`;\n\t}\n\tchildren() {\n\t\treturn [];\n\t}\n\tstatic from(value) {\n\t\treturn value instanceof SqlIndexIR ? value : new SqlIndexIR(value);\n\t}\n\tstatic is(node) {\n\t\treturn node.nodeKind === RelationalSchemaNodeKind.index;\n\t}\n\t/**\n\t* Mode-selected structural equality — see the class doc. Delegates to the\n\t* single node-owned relation: `columns` compare ordered-strict when both\n\t* sides carry them; an exact receiver (`prefix === undefined`)\n\t* byte-compares `expression ?? ''` and `where ?? ''`; a wire-named receiver\n\t* never compares bodies (the wire-name hash already commits to them).\n\t*/\n\tisEqualTo(other) {\n\t\tconst node = blindCast(other);\n\t\tassertNode(node, \"SqlIndexIR\", SqlIndexIR.is);\n\t\treturn this.contentEquals(node, {\n\t\t\tcolumnPresence: \"when-both-defined\",\n\t\t\tbodies: this.prefix !== void 0 ? \"ignored\" : \"verbatim\"\n\t\t});\n\t}\n\t/**\n\t* The single index content-equality relation — every comparer (the differ\n\t* via {@link isEqualTo}, the planner's rename content-pairing) calls this\n\t* with its mode-appropriate strictness rather than growing a parallel\n\t* relation:\n\t*\n\t* - `columnPresence: 'when-both-defined'` (the differ's rule) compares\n\t* the tuples ordered-strict only when both sides carry them — a paired\n\t* node's identity already agreed, so a column node meeting an\n\t* expression node skips the tuple.\n\t* - `columnPresence: 'matching'` (the rename-pairing rule) additionally\n\t* requires presence to agree: a column index never pairs an expression\n\t* index.\n\t* - `bodies: 'verbatim'` byte-compares `expression ?? ''` / `where ?? ''`\n\t* (absent ≡ empty, no normalization — both sides are reprints in the\n\t* supported flow); `bodies: 'ignored'` skips them (wire identity —\n\t* the wire-name hash commits to the content).\n\t*\n\t* `unique` compares strictly; `type` and option VALUES compare through\n\t* the named normalization seams below.\n\t*/\n\tcontentEquals(other, strictness) {\n\t\tconst columnsEqual = strictness.columnPresence === \"matching\" ? this.columns === void 0 === (other.columns === void 0) && (this.columns === void 0 || isArrayEqual(this.columns, other.columns ?? [])) : this.columns === void 0 || other.columns === void 0 || isArrayEqual(this.columns, other.columns);\n\t\tif (!(this.unique === other.unique && normalizeIndexType(this.type) === normalizeIndexType(other.type) && indexOptionsEqual(this.options, other.options) && columnsEqual)) return false;\n\t\tif (strictness.bodies === \"ignored\") return true;\n\t\treturn (this.expression ?? \"\") === (other.expression ?? \"\") && (this.where ?? \"\") === (other.where ?? \"\");\n\t}\n};\n/**\n* The btree-default normalization seam: the default access method (`btree`\n* in every supported SQL target) normalizes to absent. Applied at\n* construction — every derivation path (contract tree, introspection, flat\n* family tree) builds through the class, so both compare sides are\n* symmetric by definition — and again inside\n* {@link SqlIndexIR.contentEquals} so the relation holds for any input.\n* The contract JSON and the wire-name content hash keep the authored\n* spelling: `@@index([a], type: \"btree\")` and `@@index([a])` are distinct\n* wire names — but content-equal after normalization, so a spelling change\n* between them converges as a rename via the planner's content\n* pairing (the hashes differ, so hash pairing never pairs them).\n*/\nfunction normalizeIndexType(type) {\n\treturn type === \"btree\" ? void 0 : type;\n}\n/**\n* Option-bag equality: same key set, values compared through\n* {@link normalizeIndexOptionValue} — Postgres introspection returns\n* reloptions values as catalog-reprint strings (`'70'`, `'on'`) while\n* contract option leaves are typed (number, boolean, string).\n*/\nfunction indexOptionsEqual(a, b) {\n\tconst aKeys = a ? Object.keys(a).sort() : [];\n\tconst bKeys = b ? Object.keys(b).sort() : [];\n\tif (aKeys.length !== bKeys.length) return false;\n\tfor (let i = 0; i < aKeys.length; i += 1) if (aKeys[i] !== bKeys[i]) return false;\n\tif (aKeys.length === 0) return true;\n\tfor (const key of aKeys) if (normalizeIndexOptionValue(a?.[key]) !== normalizeIndexOptionValue(b?.[key])) return false;\n\treturn true;\n}\n//#endregion\n//#region src/ir/sql-unique-ir.ts\n/**\n* Schema IR node for a table-level unique constraint as observed by\n* introspection.\n*\n* Implements `DiffableNode` so a unique constraint is directly a table's\n* diff-tree child. Unique constraints are frequently unnamed, so `id` is\n* derived from the column tuple rather than `name` — the column tuple is\n* also what makes two unique constraints the same constraint, so it doubles\n* as the pairing key. There are no further attributes to compare once\n* columns are equal (the differ pairs on `id`), so `isEqualTo` is identity.\n*/\nvar SqlUniqueIR = class SqlUniqueIR extends SqlSchemaIRNode {\n\tnodeKind = RelationalSchemaNodeKind.unique;\n\tcolumns;\n\tconstructor(input) {\n\t\tsuper();\n\t\tthis.columns = [...input.columns];\n\t\tif (input.name !== void 0) this.name = input.name;\n\t\tif (input.annotations !== void 0) this.annotations = input.annotations;\n\t\tdefineNonEnumerable(this, \"dependsOn\", input.dependsOn);\n\t\tfreezeNode(this);\n\t}\n\tget id() {\n\t\treturn `unique:${this.columns.join(\",\")}`;\n\t}\n\tchildren() {\n\t\treturn [];\n\t}\n\tstatic is(node) {\n\t\treturn node.nodeKind === RelationalSchemaNodeKind.unique;\n\t}\n\tisEqualTo(other) {\n\t\tconst node = blindCast(other);\n\t\tassertNode(node, \"SqlUniqueIR\", SqlUniqueIR.is);\n\t\treturn this.id === node.id;\n\t}\n};\n//#endregion\n//#region src/ir/sql-table-ir.ts\n/**\n* Schema IR node for a single table as observed by introspection.\n*\n* Unlike the Contract IR `StorageTable`, this carries the table's\n* `name` — introspection queries return tables as arrays and the\n* verifier keys them into `SqlSchemaIR.tables` afterwards, so the name\n* stays on the table object for downstream call sites that walk\n* `Object.values(schema.tables)`.\n*\n* The constructor normalises nested IR-class fields so downstream\n* walks see a uniform AST regardless of whether the input was a\n* plain-data literal (from introspection) or already-constructed\n* class instances.\n*\n* Implements `DiffableNode` so a flat (single-schema) tree is directly\n* diffable: `id` is the table name; `isEqualTo` is identity (the table's\n* structural drift is entirely expressed by its children); `children()`\n* yields every column, the primary key (when present), every foreign key,\n* unique, index, and check constraint — the same composition and order as\n* the Postgres table node, minus policies.\n*/\nvar SqlTableIR = class extends SqlSchemaIRNode {\n\tnodeKind = RelationalSchemaNodeKind.table;\n\tname;\n\tcolumns;\n\tforeignKeys;\n\tuniques;\n\tindexes;\n\tconstructor(input) {\n\t\tsuper();\n\t\tthis.name = input.name;\n\t\tthis.columns = Object.freeze(Object.fromEntries(Object.entries(input.columns).map(([key, col]) => [key, col instanceof SqlColumnIR ? col : new SqlColumnIR(col)])));\n\t\tthis.foreignKeys = Object.freeze(input.foreignKeys.map((fk) => fk instanceof SqlForeignKeyIR ? fk : new SqlForeignKeyIR(fk)));\n\t\tthis.uniques = Object.freeze(input.uniques.map((u) => u instanceof SqlUniqueIR ? u : new SqlUniqueIR(u)));\n\t\tthis.indexes = Object.freeze(input.indexes.map(SqlIndexIR.from));\n\t\tif (input.primaryKey !== void 0) this.primaryKey = PrimaryKey.from(input.primaryKey);\n\t\tif (input.annotations !== void 0) this.annotations = input.annotations;\n\t\tif (input.checks !== void 0 && input.checks.length > 0) this.checks = Object.freeze(input.checks.map(SqlCheckConstraintIR.from));\n\t\tfreezeNode(this);\n\t}\n\tget id() {\n\t\treturn this.name;\n\t}\n\tisEqualTo(other) {\n\t\treturn this.id === other.id;\n\t}\n\tchildren() {\n\t\treturn [\n\t\t\t...Object.values(this.columns),\n\t\t\t...this.primaryKey ? [this.primaryKey] : [],\n\t\t\t...this.foreignKeys,\n\t\t\t...this.uniques,\n\t\t\t...this.indexes,\n\t\t\t...this.checks ?? []\n\t\t];\n\t}\n};\n//#endregion\n//#region src/ir/sql-schema-ir.ts\n/**\n* Root Schema IR node representing the complete database schema as\n* observed by introspection. Target-agnostic; used by both verifiers\n* (compare against intended Contract storage) and migration planners\n* (derive operations needed to reconcile).\n*\n* The constructor normalises nested `SqlTableIR` instances so\n* downstream walks see a uniform AST regardless of whether the input\n* was a plain-data literal or already-constructed class instances.\n*\n* Implements `DiffableNode` as the root of a flat (single-schema) diff\n* tree: `id` is the fixed sentinel `'database'` (roots have no siblings),\n* `isEqualTo` is identity (a container has no own attributes), and\n* `children()` yields the table nodes.\n*/\nvar SqlSchemaIR = class extends SqlSchemaIRNode {\n\tnodeKind = RelationalSchemaNodeKind.schema;\n\ttables;\n\tconstructor(input) {\n\t\tsuper();\n\t\tthis.tables = Object.freeze(Object.fromEntries(Object.entries(input.tables).map(([key, t]) => [key, t instanceof SqlTableIR ? t : new SqlTableIR(t)])));\n\t\tif (input.annotations !== void 0) this.annotations = input.annotations;\n\t\tfreezeNode(this);\n\t}\n\tget id() {\n\t\treturn \"database\";\n\t}\n\tisEqualTo(other) {\n\t\treturn this.id === other.id;\n\t}\n\tchildren() {\n\t\treturn Object.values(this.tables);\n\t}\n};\n//#endregion\nexport { relationalNodeGranularity as _, SqlForeignKeyIR as a, SqlColumnDefaultIR as c, PrimaryKey as d, SqlSchemaIRNode as f, relationalNodeEntityKind as g, RelationalSchemaNodeKind as h, SqlIndexIR as i, sqlDefaultValuesEqual as l, defineNonEnumerable as m, SqlTableIR as n, SqlColumnIR as o, assertNode as p, SqlUniqueIR as r, sq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