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

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 (564) hide show
  1. package/README.md +2 -6
  2. package/dist/{aggregate-descriptor-registry-C7hel5O7.mjs → aggregate-descriptor-registry-ZrKjxwQe.mjs} +5 -5
  3. package/dist/aggregate-descriptor-registry-ZrKjxwQe.mjs.map +1 -0
  4. package/dist/ast-D0miQ1B6.mjs +372 -0
  5. package/dist/ast-D0miQ1B6.mjs.map +1 -0
  6. package/dist/ast-YEMe_B8z.d.mts +292 -0
  7. package/dist/ast-YEMe_B8z.d.mts.map +1 -0
  8. package/dist/attribute-specs-DA_RwQFB.d.mts +114 -0
  9. package/dist/attribute-specs-DA_RwQFB.d.mts.map +1 -0
  10. package/dist/{authored-check-naming-Hf9990DV.mjs → authored-check-naming-BHGJhjqn.mjs} +5 -5
  11. package/dist/authored-check-naming-BHGJhjqn.mjs.map +1 -0
  12. package/dist/{authored-check-naming-BWBe-PVE.d.mts → authored-check-naming-D-o196ry.d.mts} +3 -3
  13. package/dist/authored-check-naming-D-o196ry.d.mts.map +1 -0
  14. package/dist/authoring-entity-types-CgKIgWq5-pEdfjam5.d.mts +9 -0
  15. package/dist/authoring-entity-types-CgKIgWq5-pEdfjam5.d.mts.map +1 -0
  16. package/dist/builder.d.mts +4 -3
  17. package/dist/builder__runtime.d.mts +29 -31
  18. package/dist/builder__runtime.d.mts.map +1 -1
  19. package/dist/builder__runtime.mjs +261 -191
  20. package/dist/builder__runtime.mjs.map +1 -1
  21. package/dist/builder__types.d.mts +6 -3
  22. package/dist/{canonicalization-hooks-dmXkOR4a.mjs → canonicalization-hooks-Ce1v_TDl.mjs} +2 -2
  23. package/dist/canonicalization-hooks-Ce1v_TDl.mjs.map +1 -0
  24. package/dist/{canonicalization-hooks-CYnW_sGn.d.mts → canonicalization-hooks-DyapQ0my.d.mts} +2 -2
  25. package/dist/canonicalization-hooks-DyapQ0my.d.mts.map +1 -0
  26. package/dist/{check-constraint-B7qGu6rc-HvQjjX82.d.mts → check-constraint-B7qGu6rc-Bk2ezWXu.d.mts} +4 -4
  27. package/dist/check-constraint-B7qGu6rc-Bk2ezWXu.d.mts.map +1 -0
  28. package/dist/{codec-descriptor-registry-N0dhtKaH.mjs → codec-descriptor-registry-CiiFzMtb.mjs} +13 -40
  29. package/dist/codec-descriptor-registry-CiiFzMtb.mjs.map +1 -0
  30. package/dist/collection-methods-BB8YH69u.d.mts +1 -0
  31. package/dist/collection-methods-D2UnCS0S-DOy2qHYS.d.mts +77 -0
  32. package/dist/collection-methods-D2UnCS0S-DOy2qHYS.d.mts.map +1 -0
  33. package/dist/{config-types-D9fdKG3g.d.mts → config-types-C-1mIiJO.d.mts} +5 -5
  34. package/dist/config-types-C-1mIiJO.d.mts.map +1 -0
  35. package/dist/{config-types-gAm54C_v.mjs → config-types-DkEeq_qq.mjs} +10 -6
  36. package/dist/config-types-DkEeq_qq.mjs.map +1 -0
  37. package/dist/{contract-builder-D4a5dT7j.mjs → contract-builder-50lF0kz1.mjs} +431 -226
  38. package/dist/contract-builder-50lF0kz1.mjs.map +1 -0
  39. package/dist/contract-builder-C_Zi57iD.d.mts +1967 -0
  40. package/dist/contract-builder-C_Zi57iD.d.mts.map +1 -0
  41. package/dist/contract-emitter.d.mts +4 -7
  42. package/dist/contract-emitter.d.mts.map +1 -1
  43. package/dist/contract-emitter.mjs +1 -1
  44. package/dist/{contract-errors-BCN6RVI5-5IHBF_lg.mjs → contract-errors-BCN6RVI5-DoH6b_KZ.mjs} +2 -2
  45. package/dist/contract-errors-BCN6RVI5-DoH6b_KZ.mjs.map +1 -0
  46. package/dist/contract-prisma7__provider.d.mts +97 -0
  47. package/dist/contract-prisma7__provider.d.mts.map +1 -0
  48. package/dist/contract-prisma7__provider.mjs +2011 -0
  49. package/dist/contract-prisma7__provider.mjs.map +1 -0
  50. package/dist/contract-psl.d.mts +18 -29
  51. package/dist/contract-psl.d.mts.map +1 -1
  52. package/dist/contract-psl.mjs +1 -1
  53. package/dist/contract-psl__attribute-specs.d.mts +2 -0
  54. package/dist/contract-psl__attribute-specs.mjs +2 -0
  55. package/dist/contract-psl__default-table-name.d.mts +7 -0
  56. package/dist/contract-psl__default-table-name.d.mts.map +1 -0
  57. package/dist/contract-psl__default-table-name.mjs +2 -0
  58. package/dist/contract-psl__diagnostics.d.mts +12 -0
  59. package/dist/contract-psl__diagnostics.d.mts.map +1 -0
  60. package/dist/contract-psl__diagnostics.mjs +2 -0
  61. package/dist/contract-psl__map-names.d.mts +16 -0
  62. package/dist/contract-psl__map-names.d.mts.map +1 -0
  63. package/dist/contract-psl__map-names.mjs +21 -0
  64. package/dist/contract-psl__map-names.mjs.map +1 -0
  65. package/dist/contract-psl__provider.d.mts +3 -3
  66. package/dist/contract-psl__provider.d.mts.map +1 -1
  67. package/dist/contract-psl__provider.mjs +95 -46
  68. package/dist/contract-psl__provider.mjs.map +1 -1
  69. package/dist/contract-ts.d.mts +5 -5
  70. package/dist/contract-ts.mjs +5 -4
  71. package/dist/contract-ts__config-types.d.mts +1 -1
  72. package/dist/contract-ts__config-types.mjs +1 -1
  73. package/dist/contract-ts__contract-builder.d.mts +4 -4
  74. package/dist/contract-ts__contract-builder.mjs +4 -3
  75. package/dist/{contract-view-BMR5IWk4.mjs → contract-view-DqpzeYeE.mjs} +2 -2
  76. package/dist/contract-view-DqpzeYeE.mjs.map +1 -0
  77. package/dist/{contract-view-CPHxoAEX.d.mts → contract-view-DuB35or0.d.mts} +3 -3
  78. package/dist/contract-view-DuB35or0.d.mts.map +1 -0
  79. package/dist/contract.d.mts +30 -28
  80. package/dist/contract.mjs +23 -18
  81. package/dist/contract__authored-check-naming.d.mts +1 -1
  82. package/dist/contract__authored-check-naming.mjs +1 -1
  83. package/dist/contract__canonicalization-hooks.d.mts +1 -1
  84. package/dist/contract__canonicalization-hooks.mjs +1 -1
  85. package/dist/contract__contract-view.d.mts +1 -1
  86. package/dist/contract__contract-view.mjs +1 -1
  87. package/dist/contract__data-type-support.d.mts +2 -0
  88. package/dist/contract__data-type-support.mjs +2 -0
  89. package/dist/contract__data-type.d.mts +2 -0
  90. package/dist/contract__data-type.mjs +3 -0
  91. package/dist/contract__entity-handle-lowering-hook.d.mts +2 -2
  92. package/dist/contract__entity-handle-lowering-hook.mjs +2 -2
  93. package/dist/contract__entity-kinds.d.mts +1 -1
  94. package/dist/contract__entity-kinds.mjs +1 -1
  95. package/dist/contract__factories.d.mts +1 -1
  96. package/dist/contract__factories.mjs +1 -1
  97. package/dist/contract__foreign-key-materialization.d.mts +2 -2
  98. package/dist/contract__foreign-key-materialization.mjs +3 -2
  99. package/dist/contract__index-naming.d.mts +2 -2
  100. package/dist/contract__index-naming.mjs +2 -2
  101. package/dist/contract__index-type-validation.d.mts +2 -2
  102. package/dist/contract__index-type-validation.mjs +1 -1
  103. package/dist/contract__index-types.d.mts +3 -3
  104. package/dist/contract__index-types.mjs +2 -2
  105. package/dist/contract__referential-action-sql.d.mts +1 -1
  106. package/dist/contract__referential-action-sql.mjs +1 -1
  107. package/dist/contract__resolve-storage-table.d.mts +1 -1
  108. package/dist/contract__resolve-storage-table.mjs +1 -1
  109. package/dist/contract__sql-expression.d.mts +2 -0
  110. package/dist/contract__sql-expression.mjs +2 -0
  111. package/dist/contract__types.d.mts +12 -12
  112. package/dist/contract__types.mjs +4 -4
  113. package/dist/contract__validators.d.mts +2 -2
  114. package/dist/contract__validators.mjs +3 -3
  115. package/dist/contract__value-set-derivation-hook.d.mts +1 -1
  116. package/dist/contract__value-set-derivation-hook.mjs +1 -1
  117. package/dist/control-BK50zF6c.mjs +2721 -0
  118. package/dist/control-BK50zF6c.mjs.map +1 -0
  119. package/dist/control-ChAUdOOu.d.mts +1416 -0
  120. package/dist/control-ChAUdOOu.d.mts.map +1 -0
  121. package/dist/{control-adapter-C99J7aEF-B7eQd7vD.d.mts → control-adapter-Bn0uhplA-BzP2uPqJ.d.mts} +27 -44
  122. package/dist/control-adapter-Bn0uhplA-BzP2uPqJ.d.mts.map +1 -0
  123. package/dist/control-adapter-NZ2kKc4x.d.mts +13 -0
  124. package/dist/control-adapter-NZ2kKc4x.d.mts.map +1 -0
  125. package/dist/control-adapter-SlQkTEwT.mjs +16 -0
  126. package/dist/control-adapter-SlQkTEwT.mjs.map +1 -0
  127. package/dist/data-type-BFSpaotu.mjs +52 -0
  128. package/dist/data-type-BFSpaotu.mjs.map +1 -0
  129. package/dist/data-type-DJIvKQHf.d.mts +158 -0
  130. package/dist/data-type-DJIvKQHf.d.mts.map +1 -0
  131. package/dist/data-type-support-BhSoPUFj.mjs +9 -0
  132. package/dist/data-type-support-BhSoPUFj.mjs.map +1 -0
  133. package/dist/data-type-support-CXpA0ex-.d.mts +7 -0
  134. package/dist/data-type-support-CXpA0ex-.d.mts.map +1 -0
  135. package/dist/{db-D18PrXKW-DvTv4JFn.d.mts → db-D1d75IvM-D4mRDC6w.d.mts} +123 -128
  136. package/dist/db-D1d75IvM-D4mRDC6w.d.mts.map +1 -0
  137. package/dist/{ddl-types-CXx4vPz6-BsgrnSUY.d.mts → ddl-types-By5mT2_S-CdaaFvsX.d.mts} +24 -29
  138. package/dist/ddl-types-By5mT2_S-CdaaFvsX.d.mts.map +1 -0
  139. package/dist/default-mapping-CAOONlKQ-4m07nb-O.d.mts +39 -0
  140. package/dist/default-mapping-CAOONlKQ-4m07nb-O.d.mts.map +1 -0
  141. package/dist/default-table-name-BfFY8qYR-CWZFDX6v.mjs +9 -0
  142. package/dist/default-table-name-BfFY8qYR-CWZFDX6v.mjs.map +1 -0
  143. package/dist/derived-checks-D5HVRvqN-BJx1gwPA.mjs +1508 -0
  144. package/dist/derived-checks-D5HVRvqN-BJx1gwPA.mjs.map +1 -0
  145. package/dist/{derived-checks-DPdD01O0-DGqOFjs6.d.mts → derived-checks-DpPkO6Dt-9U9UJZOo.d.mts} +4 -4
  146. package/dist/derived-checks-DpPkO6Dt-9U9UJZOo.d.mts.map +1 -0
  147. package/dist/diagnostics-RHJxoiIk.mjs +23 -0
  148. package/dist/diagnostics-RHJxoiIk.mjs.map +1 -0
  149. package/dist/{diff-DbTNVm2f.d.mts → diff-1qHOLoUB.d.mts} +23 -10
  150. package/dist/diff-1qHOLoUB.d.mts.map +1 -0
  151. package/dist/diff-C1rFOhek.mjs +21 -0
  152. package/dist/diff-C1rFOhek.mjs.map +1 -0
  153. package/dist/{dist-ZK6oeI5e.mjs → dist-C8Y-PPuE.mjs} +36 -212
  154. package/dist/dist-C8Y-PPuE.mjs.map +1 -0
  155. package/dist/{dist-C_q1_QR9.mjs → dist-CHz1hF8M.mjs} +2 -2
  156. package/dist/dist-CHz1hF8M.mjs.map +1 -0
  157. package/dist/{dist-x6jvtkKM.mjs → dist-CMDXybwm.mjs} +2 -2
  158. package/dist/dist-CMDXybwm.mjs.map +1 -0
  159. package/dist/{driver-types-BQtRkOJ0-Bv2RPSfr.d.mts → driver-types-DRsYeq3j-BimeCnUk.d.mts} +11 -2
  160. package/dist/driver-types-DRsYeq3j-BimeCnUk.d.mts.map +1 -0
  161. package/dist/entity-handle-lowering-hook-BJZSlVVF.mjs +16 -0
  162. package/dist/entity-handle-lowering-hook-BJZSlVVF.mjs.map +1 -0
  163. package/dist/{entity-handle-lowering-hook-CIvRKBfa.d.mts → entity-handle-lowering-hook-BuvLtgFi.d.mts} +8 -11
  164. package/dist/entity-handle-lowering-hook-BuvLtgFi.d.mts.map +1 -0
  165. package/dist/{entity-kinds-B5cUFU22.d.mts → entity-kinds-BPG2xCZV.d.mts} +7 -7
  166. package/dist/entity-kinds-BPG2xCZV.d.mts.map +1 -0
  167. package/dist/{entity-kinds-D7vwoN_T-CCBwFJy0.mjs → entity-kinds-JR5SAm5h-DOH6VUtL.mjs} +31 -28
  168. package/dist/entity-kinds-JR5SAm5h-DOH6VUtL.mjs.map +1 -0
  169. package/dist/{errors-B5g0xWro-mWH2C07F.mjs → errors-B5g0xWro-C8plbqga.mjs} +2 -2
  170. package/dist/errors-B5g0xWro-C8plbqga.mjs.map +1 -0
  171. package/dist/errors.d.mts +1 -1
  172. package/dist/errors.d.mts.map +1 -1
  173. package/dist/errors.mjs +1 -1
  174. package/dist/exports-C3wGYtID-D65DEUTC.mjs +2389 -0
  175. package/dist/exports-C3wGYtID-D65DEUTC.mjs.map +1 -0
  176. package/dist/{expression-FJK6Ar-d.d.mts → expression-6ld_ZQL6-fOuazzzm.d.mts} +37 -16
  177. package/dist/expression-6ld_ZQL6-fOuazzzm.d.mts.map +1 -0
  178. package/dist/expression-CieaNuRM-B1uVqxwd.d.mts +22 -0
  179. package/dist/expression-CieaNuRM-B1uVqxwd.d.mts.map +1 -0
  180. package/dist/expression-D8HstQiB.d.mts +2 -0
  181. package/dist/{expression-CX5mTA-z.mjs → expression-impl-B-XNINxr-BhN2sysZ.mjs} +41 -18
  182. package/dist/expression-impl-B-XNINxr-BhN2sysZ.mjs.map +1 -0
  183. package/dist/{factories-SVor5xIT.mjs → factories-Crobuxwn.mjs} +27 -20
  184. package/dist/factories-Crobuxwn.mjs.map +1 -0
  185. package/dist/{factories-P3qBQhO-.d.mts → factories-DbNP9qfs.d.mts} +16 -10
  186. package/dist/factories-DbNP9qfs.d.mts.map +1 -0
  187. package/dist/family.d.mts +17 -13
  188. package/dist/family.mjs +17 -12
  189. package/dist/family__control-adapter.d.mts +3 -3
  190. package/dist/family__control-adapter.mjs +2 -1
  191. package/dist/family__control.d.mts +5 -4
  192. package/dist/family__control.mjs +4 -4
  193. package/dist/family__diff.d.mts +2 -3
  194. package/dist/family__diff.mjs +2 -2
  195. package/dist/family__ir.d.mts +1 -1
  196. package/dist/family__ir.mjs +2 -2
  197. package/dist/family__migration.d.mts +1 -1
  198. package/dist/family__migration.mjs +1 -1
  199. package/dist/family__pack.d.mts +2 -249
  200. package/dist/family__pack.mjs +3 -18
  201. package/dist/family__psl-build.d.mts +3 -0
  202. package/dist/family__psl-build.mjs +3 -0
  203. package/dist/family__psl-infer.d.mts +2 -2
  204. package/dist/family__psl-infer.mjs +2 -2
  205. package/dist/family__runtime.d.mts +2 -2
  206. package/dist/family__runtime.mjs +2 -2
  207. package/dist/family__verify.d.mts +1 -1
  208. package/dist/family__verify.mjs +1 -1
  209. package/dist/foreign-key-materialization-48P2V8on.d.mts +98 -0
  210. package/dist/foreign-key-materialization-48P2V8on.d.mts.map +1 -0
  211. package/dist/foreign-key-materialization-BM59w_Xg.mjs +287 -0
  212. package/dist/foreign-key-materialization-BM59w_Xg.mjs.map +1 -0
  213. package/dist/{foreign-key-C-iTPuRT-C9ip8zFx.d.mts → foreign-key-qkDFfG8t-TaK_GYWR.d.mts} +21 -5
  214. package/dist/foreign-key-qkDFfG8t-TaK_GYWR.d.mts.map +1 -0
  215. package/dist/functions-CsOoN7I3.mjs +88 -0
  216. package/dist/functions-CsOoN7I3.mjs.map +1 -0
  217. package/dist/functions-EW-RrRn3.d.mts +73 -0
  218. package/dist/functions-EW-RrRn3.d.mts.map +1 -0
  219. package/dist/generator-functions-D_qdqBV--Bq296cED.mjs +544 -0
  220. package/dist/generator-functions-D_qdqBV--Bq296cED.mjs.map +1 -0
  221. package/dist/index-7nHHQsAj.d.mts +606 -0
  222. package/dist/index-7nHHQsAj.d.mts.map +1 -0
  223. package/dist/{index-C5I8D-MB.d.mts → index-Nqc3OHR_.d.mts} +4 -5
  224. package/dist/index-Nqc3OHR_.d.mts.map +1 -0
  225. package/dist/index-equivalence-DswCiq5l-CGsyPP9B.mjs +109 -0
  226. package/dist/index-equivalence-DswCiq5l-CGsyPP9B.mjs.map +1 -0
  227. package/dist/{index-naming-DREt6js7-CRH27yUv.mjs → index-naming-BOcJT1B3-mG8Fd6KN.mjs} +35 -9
  228. package/dist/index-naming-BOcJT1B3-mG8Fd6KN.mjs.map +1 -0
  229. package/dist/{index-naming-Ct65z5Xk.d.mts → index-naming-Cs6wwia3.d.mts} +15 -5
  230. package/dist/index-naming-Cs6wwia3.d.mts.map +1 -0
  231. package/dist/index-reference-4wsdeB7v-DCwswK-q.d.mts +67 -0
  232. package/dist/index-reference-4wsdeB7v-DCwswK-q.d.mts.map +1 -0
  233. package/dist/index-reference-BQSrkRfT.mjs +55 -0
  234. package/dist/index-reference-BQSrkRfT.mjs.map +1 -0
  235. package/dist/index-reference-D8ewQRJr.d.mts +1 -0
  236. package/dist/index-type-validation-DJEMmmw0.mjs +42 -0
  237. package/dist/index-type-validation-DJEMmmw0.mjs.map +1 -0
  238. package/dist/index-type-validation-fGGwAHWc.d.mts +16 -0
  239. package/dist/index-type-validation-fGGwAHWc.d.mts.map +1 -0
  240. package/dist/index-types-H1O43iYT-BD0VwPqV.d.mts +66 -0
  241. package/dist/index-types-H1O43iYT-BD0VwPqV.d.mts.map +1 -0
  242. package/dist/index-types-pC_5vADQ-BOOBi14R.mjs +95 -0
  243. package/dist/index-types-pC_5vADQ-BOOBi14R.mjs.map +1 -0
  244. package/dist/index-types-snhtt_Fo.d.mts +1 -0
  245. package/dist/interpreter-D5qk4B---CG0C7kdx.mjs +2280 -0
  246. package/dist/interpreter-D5qk4B---CG0C7kdx.mjs.map +1 -0
  247. package/dist/{ir-Bghjt-FG.d.mts → ir-BvptQsFW.d.mts} +11 -5
  248. package/dist/ir-BvptQsFW.d.mts.map +1 -0
  249. package/dist/{ir-I-xciGUH.mjs → ir-DzsUDO8e.mjs} +2 -2
  250. package/dist/ir-DzsUDO8e.mjs.map +1 -0
  251. package/dist/{middleware-AhTz1BOW-th-Suxuf.d.mts → middleware-DHkW6pRr-DM6hd9iZ.d.mts} +5 -5
  252. package/dist/middleware-DHkW6pRr-DM6hd9iZ.d.mts.map +1 -0
  253. package/dist/middleware-gqy3l13N.d.mts +1 -0
  254. package/dist/{middleware-CMr4CHNz-DHIUdxlm.mjs → middleware-yBAfiVWn-DZO0vCRQ.mjs} +3 -3
  255. package/dist/middleware-yBAfiVWn-DZO0vCRQ.mjs.map +1 -0
  256. package/dist/{migration-CK4oePIo.mjs → migration-BJQjkqFz.mjs} +4 -4
  257. package/dist/migration-BJQjkqFz.mjs.map +1 -0
  258. package/dist/{migration-CjDRZNep.d.mts → migration-Cxmpzaz0.d.mts} +6 -6
  259. package/dist/migration-Cxmpzaz0.d.mts.map +1 -0
  260. package/dist/{naming-CV9j2pXl-KARaDReS.d.mts → naming-BcD36g9T-Mfe_xGGL.d.mts} +9 -14
  261. package/dist/naming-BcD36g9T-Mfe_xGGL.d.mts.map +1 -0
  262. package/dist/{naming-DKr4TJd7-Cszhq9RV.mjs → naming-bM5qm5PY-jOg3JFMb.mjs} +20 -31
  263. package/dist/naming-bM5qm5PY-jOg3JFMb.mjs.map +1 -0
  264. package/dist/{ddl-types-BGdnAbXo-DKPHPUGx.mjs → opaque-sql-Dset3kln-CtsPDTXn.mjs} +24 -11
  265. package/dist/opaque-sql-Dset3kln-CtsPDTXn.mjs.map +1 -0
  266. package/dist/operations.d.mts +1 -1
  267. package/dist/operations.mjs +1 -1
  268. package/dist/orm-client.d.mts +817 -267
  269. package/dist/orm-client.d.mts.map +1 -1
  270. package/dist/orm-client.mjs +4719 -2942
  271. package/dist/orm-client.mjs.map +1 -1
  272. package/dist/pack-DA8HZ2mo.d.mts +535 -0
  273. package/dist/pack-DA8HZ2mo.d.mts.map +1 -0
  274. package/dist/pack-gSvGQWqs.mjs +80 -0
  275. package/dist/pack-gSvGQWqs.mjs.map +1 -0
  276. package/dist/{plan-CDxduYaN-pLIyyJaB.d.mts → plan-Cr4azjnG-CuL8FqXC.d.mts} +12 -8
  277. package/dist/plan-Cr4azjnG-CuL8FqXC.d.mts.map +1 -0
  278. package/dist/{plan-Dh0LbYIv-Crx5-ThG.mjs → plan-Dh0LbYIv-ubBSdUgl.mjs} +2 -2
  279. package/dist/plan-Dh0LbYIv-ubBSdUgl.mjs.map +1 -0
  280. package/dist/plan-Di6Gs2JD.d.mts +2 -0
  281. package/dist/psl-attribute-parsing-BCsFWsSp-BJ-wGlY6.mjs +42 -0
  282. package/dist/psl-attribute-parsing-BCsFWsSp-BJ-wGlY6.mjs.map +1 -0
  283. package/dist/psl-build-DFBG6vhz.mjs +426 -0
  284. package/dist/psl-build-DFBG6vhz.mjs.map +1 -0
  285. package/dist/psl-build-RelubU2E.d.mts +112 -0
  286. package/dist/psl-build-RelubU2E.d.mts.map +1 -0
  287. package/dist/psl-column-resolution-ChZqioOc-BREg4J7d.d.mts +24 -0
  288. package/dist/psl-column-resolution-ChZqioOc-BREg4J7d.d.mts.map +1 -0
  289. package/dist/psl-field-resolution-C5KQ7kzP-B0NwuRWV.mjs +1960 -0
  290. package/dist/psl-field-resolution-C5KQ7kzP-B0NwuRWV.mjs.map +1 -0
  291. package/dist/psl-infer--g4i84Go.mjs +201 -0
  292. package/dist/psl-infer--g4i84Go.mjs.map +1 -0
  293. package/dist/psl-infer-DzoxPZGd.d.mts +80 -0
  294. package/dist/psl-infer-DzoxPZGd.d.mts.map +1 -0
  295. package/dist/psl-names-C3cwe0rg-D1CTmC3a.mjs +66 -0
  296. package/dist/psl-names-C3cwe0rg-D1CTmC3a.mjs.map +1 -0
  297. package/dist/{query-lane-context-Qa-eddrE-kuZ8Z86-.d.mts → query-lane-context-BCEoKy0_-CzmyavC9.d.mts} +20 -49
  298. package/dist/query-lane-context-BCEoKy0_-CzmyavC9.d.mts.map +1 -0
  299. package/dist/query-lane-context-VqH0mS9B.d.mts +1 -0
  300. package/dist/{referential-action-sql-DJ9ps6-S.d.mts → referential-action-sql-B2vKoUK6.d.mts} +3 -3
  301. package/dist/referential-action-sql-B2vKoUK6.d.mts.map +1 -0
  302. package/dist/{referential-action-sql-DSqkrySN.mjs → referential-action-sql-BLzCtTi8.mjs} +2 -2
  303. package/dist/referential-action-sql-BLzCtTi8.mjs.map +1 -0
  304. package/dist/relational-core.d.mts +14 -13
  305. package/dist/relational-core.mjs +8 -8
  306. package/dist/relational-core__aggregate-descriptor-registry.d.mts +2 -2
  307. package/dist/relational-core__aggregate-descriptor-registry.d.mts.map +1 -1
  308. package/dist/relational-core__aggregate-descriptor-registry.mjs +1 -1
  309. package/dist/relational-core__ast.d.mts +5 -5
  310. package/dist/relational-core__ast.mjs +5 -5
  311. package/dist/relational-core__codec-descriptor-registry.d.mts +7 -8
  312. package/dist/relational-core__codec-descriptor-registry.d.mts.map +1 -1
  313. package/dist/relational-core__codec-descriptor-registry.mjs +1 -1
  314. package/dist/relational-core__collection-methods.d.mts +3 -0
  315. package/dist/relational-core__contract-free.d.mts +18 -8
  316. package/dist/relational-core__contract-free.d.mts.map +1 -1
  317. package/dist/relational-core__contract-free.mjs +26 -10
  318. package/dist/relational-core__contract-free.mjs.map +1 -1
  319. package/dist/relational-core__expression.d.mts +4 -2
  320. package/dist/relational-core__expression.mjs +2 -2
  321. package/dist/relational-core__functions.d.mts +2 -0
  322. package/dist/relational-core__functions.mjs +2 -0
  323. package/dist/relational-core__index-reference.d.mts +3 -0
  324. package/dist/relational-core__index-reference.mjs +2 -0
  325. package/dist/relational-core__middleware.d.mts +2 -2
  326. package/dist/relational-core__middleware.mjs +1 -1
  327. package/dist/relational-core__plan.d.mts +4 -4
  328. package/dist/relational-core__plan.mjs +1 -1
  329. package/dist/relational-core__query-lane-context.d.mts +3 -3
  330. package/dist/relational-core__types.d.mts +2 -2
  331. package/dist/{resolve-storage-table-DZsfnzeW.mjs → resolve-storage-table-BHLQsOza.mjs} +3 -3
  332. package/dist/resolve-storage-table-BHLQsOza.mjs.map +1 -0
  333. package/dist/{resolve-storage-table-Nyrgk4h8.d.mts → resolve-storage-table-DCqtmnSU.d.mts} +4 -4
  334. package/dist/resolve-storage-table-DCqtmnSU.d.mts.map +1 -0
  335. package/dist/{runtime-tIHpGCcG.mjs → runtime-6tH1yOxK.mjs} +6 -6
  336. package/dist/runtime-6tH1yOxK.mjs.map +1 -0
  337. package/dist/{runtime-DpKF2Yu2.d.mts → runtime-CF6rAlE5.d.mts} +7 -8
  338. package/dist/runtime-CF6rAlE5.d.mts.map +1 -0
  339. package/dist/runtime.d.mts +5 -5
  340. package/dist/runtime.mjs +2 -1799
  341. package/dist/runtime__internal__prepared-query.d.mts +2 -2
  342. package/dist/runtime__internal__prepared-query.mjs +2 -2
  343. package/dist/{schema-differ-DpG_gnur-DFAtGezx.d.mts → schema-differ-DmP74bB8-tqHKiJ88.d.mts} +6 -6
  344. package/dist/schema-differ-DmP74bB8-tqHKiJ88.d.mts.map +1 -0
  345. package/dist/schema-ir.d.mts +2 -2
  346. package/dist/schema-ir.mjs +2 -2
  347. package/dist/schema-ir__naming.d.mts +1 -1
  348. package/dist/schema-ir__naming.mjs +1 -1
  349. package/dist/schema-ir__types.d.mts +3 -3
  350. package/dist/schema-ir__types.mjs +2 -2
  351. package/dist/{schema-verify-C_PEdlAr-Dxxjm6EM.mjs → schema-verify-C3wbdviw-DMjIubOr.mjs} +50 -8
  352. package/dist/schema-verify-C3wbdviw-DMjIubOr.mjs.map +1 -0
  353. package/dist/{serialized-index-CrgG8ct1-DG3JpHc7.d.mts → serialized-index-CrgG8ct1-DKVJ7TDX.d.mts} +4 -4
  354. package/dist/serialized-index-CrgG8ct1-DKVJ7TDX.d.mts.map +1 -0
  355. package/dist/{serialized-index-nBTwanKy-_ddEK4tk.mjs → serialized-index-DjCCnXB1-DMA7BtO2.mjs} +4 -4
  356. package/dist/serialized-index-DjCCnXB1-DMA7BtO2.mjs.map +1 -0
  357. package/dist/{sql-contract-serializer-2oBWuxTe-DKZTf2n8.mjs → sql-contract-serializer-sMY3prTx-D2BfrNxs.mjs} +41 -16
  358. package/dist/sql-contract-serializer-sMY3prTx-D2BfrNxs.mjs.map +1 -0
  359. package/dist/sql-data-type-D7M-YTTY-D2vRqDxn.mjs +400 -0
  360. package/dist/sql-data-type-D7M-YTTY-D2vRqDxn.mjs.map +1 -0
  361. package/dist/{sql-execution-plan--jKyLpe5-CMGhgO0M.d.mts → sql-execution-plan-3uxYjHyu-DLknM-Pj.d.mts} +3 -3
  362. package/dist/sql-execution-plan-3uxYjHyu-DLknM-Pj.d.mts.map +1 -0
  363. package/dist/sql-expression-B4BrhGPi.d.mts +62 -0
  364. package/dist/sql-expression-B4BrhGPi.d.mts.map +1 -0
  365. package/dist/sql-expression-CKgKznXS.mjs +137 -0
  366. package/dist/sql-expression-CKgKznXS.mjs.map +1 -0
  367. package/dist/{sql-index-ByAAE7K8-DKj2V86p.d.mts → sql-index-ByAAE7K8-Dqtn_vUL.d.mts} +4 -4
  368. package/dist/sql-index-ByAAE7K8-Dqtn_vUL.d.mts.map +1 -0
  369. package/dist/{sql-node-kEz6YFZo-v2F7delx.d.mts → sql-node-kEz6YFZo-1ogT6Cxt.d.mts} +2 -2
  370. package/dist/sql-node-kEz6YFZo-1ogT6Cxt.d.mts.map +1 -0
  371. package/dist/{sql-storage-8LqxeLAY-DH4DdUXx.d.mts → sql-storage-DeCAh5Hi-CEM-m8cs.d.mts} +19 -22
  372. package/dist/sql-storage-DeCAh5Hi-CEM-m8cs.d.mts.map +1 -0
  373. package/dist/{storage-table-DSeWszOL-CI-cItEK.d.mts → storage-table-Bf1ZjnxO-pUj6pyP0.d.mts} +17 -24
  374. package/dist/storage-table-Bf1ZjnxO-pUj6pyP0.d.mts.map +1 -0
  375. package/dist/{storage-table-ZzbR-xzQ-BRoTQE_2.mjs → storage-table-DDvN83mw-DkbBFmK9.mjs} +12 -9
  376. package/dist/storage-table-DDvN83mw-DkbBFmK9.mjs.map +1 -0
  377. package/dist/{storage-value-set-BGlj5Uus-CvZD--GG.d.mts → storage-value-set-BGlj5Uus-ny2k-0PA.d.mts} +3 -3
  378. package/dist/storage-value-set-BGlj5Uus-ny2k-0PA.d.mts.map +1 -0
  379. package/dist/transaction-state-BfXhs7D7-DhmbySW9.mjs +45 -0
  380. package/dist/transaction-state-BfXhs7D7-DhmbySW9.mjs.map +1 -0
  381. package/dist/transaction-state-DR3nKTmH-D29jmVE-.d.mts +115 -0
  382. package/dist/transaction-state-DR3nKTmH-D29jmVE-.d.mts.map +1 -0
  383. package/dist/types-B9wSEUsV.d.mts +1 -0
  384. package/dist/{types-CUsJrvEl.mjs → types-CTdSkl0s.mjs} +13 -6
  385. package/dist/types-CTdSkl0s.mjs.map +1 -0
  386. package/dist/types-CkAd8SWm.d.mts +57 -0
  387. package/dist/types-CkAd8SWm.d.mts.map +1 -0
  388. package/dist/{types-IqZMLrFC-DcH8v_u3.d.mts → types-Cq6ImLAB-RlU4jJAX.d.mts} +27 -41
  389. package/dist/types-Cq6ImLAB-RlU4jJAX.d.mts.map +1 -0
  390. package/dist/{types-YStFFkKs-D9UAmnON.d.mts → types-CuCxAQat-Dz8P4xyt.d.mts} +141 -86
  391. package/dist/types-CuCxAQat-Dz8P4xyt.d.mts.map +1 -0
  392. package/dist/types-DfKvtJwS-CrpWTGBJ.d.mts +273 -0
  393. package/dist/types-DfKvtJwS-CrpWTGBJ.d.mts.map +1 -0
  394. package/dist/{types-4YenawkP-CwaaZSid.mjs → types-DoyiTsjg-2YMhMJDA.mjs} +181 -80
  395. package/dist/types-DoyiTsjg-2YMhMJDA.mjs.map +1 -0
  396. package/dist/{types-v3qxLLxo-DCeKv7yY.d.mts → types-DriMIMNQ-BkbsW7w3.d.mts} +68 -34
  397. package/dist/types-DriMIMNQ-BkbsW7w3.d.mts.map +1 -0
  398. package/dist/{types-Dt4e_jC--COeP8xzN.mjs → types-NTQsD2MS-xcLtvKO9.mjs} +83 -17
  399. package/dist/types-NTQsD2MS-xcLtvKO9.mjs.map +1 -0
  400. package/dist/{types-CyxGtOOh-BggSa6Fe.d.mts → types-TXO7x1BA-CYYIY8NI.d.mts} +14 -14
  401. package/dist/types-TXO7x1BA-CYYIY8NI.d.mts.map +1 -0
  402. package/dist/types-ljUNyiWe.d.mts +1 -0
  403. package/dist/{unique-constraint-M5TlQnJQ-BiIHJ85k.d.mts → unique-constraint-M5TlQnJQ-qX-maNUV.d.mts} +3 -3
  404. package/dist/unique-constraint-M5TlQnJQ-qX-maNUV.d.mts.map +1 -0
  405. package/dist/{util-DQQgv2j1-D6INZaRG.mjs → util-BBgcP3gI-CpL-0VuC.mjs} +12 -3
  406. package/dist/util-BBgcP3gI-CpL-0VuC.mjs.map +1 -0
  407. package/dist/{validators-CrWD6bSP.mjs → validators-BwA7ttZM.mjs} +0 -0
  408. package/dist/validators-BwA7ttZM.mjs.map +1 -0
  409. package/dist/{validators-Belo8QqM.d.mts → validators-FJs8HvFr.d.mts} +54 -16
  410. package/dist/validators-FJs8HvFr.d.mts.map +1 -0
  411. package/dist/{value-set-derivation-hook-BhgGVtw0.d.mts → value-set-derivation-hook-3E437jPU.d.mts} +3 -3
  412. package/dist/value-set-derivation-hook-3E437jPU.d.mts.map +1 -0
  413. package/dist/{value-set-derivation-hook-Di9JZ0X7.mjs → value-set-derivation-hook-HVaxhALD.mjs} +2 -2
  414. package/dist/value-set-derivation-hook-HVaxhALD.mjs.map +1 -0
  415. package/dist/{verify-u0UTdZgD-DSAaz9rW.mjs → verify-BVk5bjdH-DhKm6hB3.mjs} +8 -7
  416. package/dist/verify-BVk5bjdH-DhKm6hB3.mjs.map +1 -0
  417. package/dist/{verify-zDRnw0Rn.d.mts → verify-DHXbuZPB.d.mts} +2 -2
  418. package/dist/verify-DHXbuZPB.d.mts.map +1 -0
  419. package/package.json +33 -22
  420. package/dist/aggregate-descriptor-registry-C7hel5O7.mjs.map +0 -1
  421. package/dist/ast-HFcfQZr-.d.mts +0 -206
  422. package/dist/ast-HFcfQZr-.d.mts.map +0 -1
  423. package/dist/ast-Lbl4VwqP.mjs +0 -325
  424. package/dist/ast-Lbl4VwqP.mjs.map +0 -1
  425. package/dist/authored-check-naming-BWBe-PVE.d.mts.map +0 -1
  426. package/dist/authored-check-naming-Hf9990DV.mjs.map +0 -1
  427. package/dist/authoring-type-constructors-Blqoa2Ua-DqvNCOb2.mjs +0 -316
  428. package/dist/authoring-type-constructors-Blqoa2Ua-DqvNCOb2.mjs.map +0 -1
  429. package/dist/canonicalization-hooks-CYnW_sGn.d.mts.map +0 -1
  430. package/dist/canonicalization-hooks-dmXkOR4a.mjs.map +0 -1
  431. package/dist/check-constraint-B7qGu6rc-HvQjjX82.d.mts.map +0 -1
  432. package/dist/codec-descriptor-registry-N0dhtKaH.mjs.map +0 -1
  433. package/dist/config-types-D9fdKG3g.d.mts.map +0 -1
  434. package/dist/config-types-gAm54C_v.mjs.map +0 -1
  435. package/dist/contract-builder-CG_tGDbB.d.mts +0 -1360
  436. package/dist/contract-builder-CG_tGDbB.d.mts.map +0 -1
  437. package/dist/contract-builder-D4a5dT7j.mjs.map +0 -1
  438. package/dist/contract-errors-BCN6RVI5-5IHBF_lg.mjs.map +0 -1
  439. package/dist/contract-view-BMR5IWk4.mjs.map +0 -1
  440. package/dist/contract-view-CPHxoAEX.d.mts.map +0 -1
  441. package/dist/contract__pack-types.d.mts +0 -2
  442. package/dist/control-D3cB5YQp.mjs +0 -1267
  443. package/dist/control-D3cB5YQp.mjs.map +0 -1
  444. package/dist/control-DTLJ1WtZ.d.mts +0 -945
  445. package/dist/control-DTLJ1WtZ.d.mts.map +0 -1
  446. package/dist/control-adapter-C99J7aEF-B7eQd7vD.d.mts.map +0 -1
  447. package/dist/control-adapter-MZJQiwcE.d.mts +0 -1
  448. package/dist/db-D18PrXKW-DvTv4JFn.d.mts.map +0 -1
  449. package/dist/ddl-types-BGdnAbXo-DKPHPUGx.mjs.map +0 -1
  450. package/dist/ddl-types-CXx4vPz6-BsgrnSUY.d.mts.map +0 -1
  451. package/dist/derived-checks-DFMRmiAu-DGfB8aS4.mjs +0 -1057
  452. package/dist/derived-checks-DFMRmiAu-DGfB8aS4.mjs.map +0 -1
  453. package/dist/derived-checks-DPdD01O0-DGqOFjs6.d.mts.map +0 -1
  454. package/dist/diff-B16bL_IR.mjs +0 -13
  455. package/dist/diff-B16bL_IR.mjs.map +0 -1
  456. package/dist/diff-DbTNVm2f.d.mts.map +0 -1
  457. package/dist/dist-C_q1_QR9.mjs.map +0 -1
  458. package/dist/dist-ZK6oeI5e.mjs.map +0 -1
  459. package/dist/dist-x6jvtkKM.mjs.map +0 -1
  460. package/dist/driver-types-BQtRkOJ0-Bv2RPSfr.d.mts.map +0 -1
  461. package/dist/entity-handle-lowering-hook-CIvRKBfa.d.mts.map +0 -1
  462. package/dist/entity-handle-lowering-hook-DwLIKNiS.mjs +0 -11
  463. package/dist/entity-handle-lowering-hook-DwLIKNiS.mjs.map +0 -1
  464. package/dist/entity-kinds-B5cUFU22.d.mts.map +0 -1
  465. package/dist/entity-kinds-D7vwoN_T-CCBwFJy0.mjs.map +0 -1
  466. package/dist/errors-B5g0xWro-mWH2C07F.mjs.map +0 -1
  467. package/dist/expression-CX5mTA-z.mjs.map +0 -1
  468. package/dist/expression-FJK6Ar-d.d.mts.map +0 -1
  469. package/dist/factories-P3qBQhO-.d.mts.map +0 -1
  470. package/dist/factories-SVor5xIT.mjs.map +0 -1
  471. package/dist/family__pack.d.mts.map +0 -1
  472. package/dist/family__pack.mjs.map +0 -1
  473. package/dist/foreign-key-C-iTPuRT-C9ip8zFx.d.mts.map +0 -1
  474. package/dist/foreign-key-materialization-CkvOzJWy.d.mts +0 -65
  475. package/dist/foreign-key-materialization-CkvOzJWy.d.mts.map +0 -1
  476. package/dist/foreign-key-materialization-Cu7-7LHl.mjs +0 -73
  477. package/dist/foreign-key-materialization-Cu7-7LHl.mjs.map +0 -1
  478. package/dist/index-C-vQOMY_.d.mts +0 -84
  479. package/dist/index-C-vQOMY_.d.mts.map +0 -1
  480. package/dist/index-C5I8D-MB.d.mts.map +0 -1
  481. package/dist/index-naming-Ct65z5Xk.d.mts.map +0 -1
  482. package/dist/index-naming-DREt6js7-CRH27yUv.mjs.map +0 -1
  483. package/dist/index-type-validation-COH4d78M.mjs +0 -17
  484. package/dist/index-type-validation-COH4d78M.mjs.map +0 -1
  485. package/dist/index-type-validation-CZ5L2lli.d.mts +0 -10
  486. package/dist/index-type-validation-CZ5L2lli.d.mts.map +0 -1
  487. package/dist/index-types-CNhHgKHi.d.mts +0 -1
  488. package/dist/index-types-DJQ_xwaE.mjs +0 -40
  489. package/dist/index-types-DJQ_xwaE.mjs.map +0 -1
  490. package/dist/index-types-DPVhsW0v-D-BikM4h.d.mts +0 -31
  491. package/dist/index-types-DPVhsW0v-D-BikM4h.d.mts.map +0 -1
  492. package/dist/interpreter-DyiUUAWh-DYdjIpiE.mjs +0 -3680
  493. package/dist/interpreter-DyiUUAWh-DYdjIpiE.mjs.map +0 -1
  494. package/dist/ir-Bghjt-FG.d.mts.map +0 -1
  495. package/dist/ir-I-xciGUH.mjs.map +0 -1
  496. package/dist/lane-query-builder.d.mts +0 -236
  497. package/dist/lane-query-builder.d.mts.map +0 -1
  498. package/dist/lane-query-builder.mjs +0 -67
  499. package/dist/lane-query-builder.mjs.map +0 -1
  500. package/dist/middleware--TtoxUiW.d.mts +0 -1
  501. package/dist/middleware-AhTz1BOW-th-Suxuf.d.mts.map +0 -1
  502. package/dist/middleware-CMr4CHNz-DHIUdxlm.mjs.map +0 -1
  503. package/dist/migration-CK4oePIo.mjs.map +0 -1
  504. package/dist/migration-CjDRZNep.d.mts.map +0 -1
  505. package/dist/naming-CV9j2pXl-KARaDReS.d.mts.map +0 -1
  506. package/dist/naming-DKr4TJd7-Cszhq9RV.mjs.map +0 -1
  507. package/dist/pack-types-BcLTpwbv.d.mts +0 -14
  508. package/dist/pack-types-BcLTpwbv.d.mts.map +0 -1
  509. package/dist/plan-BHLdb0Z7.d.mts +0 -2
  510. package/dist/plan-CDxduYaN-pLIyyJaB.d.mts.map +0 -1
  511. package/dist/plan-Dh0LbYIv-Crx5-ThG.mjs.map +0 -1
  512. package/dist/prepared-query-BJr50wPm-ChoqfJbX.mjs +0 -22
  513. package/dist/prepared-query-BJr50wPm-ChoqfJbX.mjs.map +0 -1
  514. package/dist/prepared-statement-9QpkE6JG-C430V3MO.d.mts +0 -529
  515. package/dist/prepared-statement-9QpkE6JG-C430V3MO.d.mts.map +0 -1
  516. package/dist/psl-infer-CCAD6FWA.d.mts +0 -119
  517. package/dist/psl-infer-CCAD6FWA.d.mts.map +0 -1
  518. package/dist/psl-infer-Dk5kgKre.mjs +0 -362
  519. package/dist/psl-infer-Dk5kgKre.mjs.map +0 -1
  520. package/dist/query-lane-context-Qa-eddrE-kuZ8Z86-.d.mts.map +0 -1
  521. package/dist/query-lane-context-XMvk7fmY.d.mts +0 -1
  522. package/dist/referential-action-sql-DJ9ps6-S.d.mts.map +0 -1
  523. package/dist/referential-action-sql-DSqkrySN.mjs.map +0 -1
  524. package/dist/resolve-storage-table-DZsfnzeW.mjs.map +0 -1
  525. package/dist/resolve-storage-table-Nyrgk4h8.d.mts.map +0 -1
  526. package/dist/runtime-DpKF2Yu2.d.mts.map +0 -1
  527. package/dist/runtime-tIHpGCcG.mjs.map +0 -1
  528. package/dist/runtime.mjs.map +0 -1
  529. package/dist/schema-differ-DpG_gnur-DFAtGezx.d.mts.map +0 -1
  530. package/dist/schema-verify-C_PEdlAr-Dxxjm6EM.mjs.map +0 -1
  531. package/dist/serialized-index-CrgG8ct1-DG3JpHc7.d.mts.map +0 -1
  532. package/dist/serialized-index-nBTwanKy-_ddEK4tk.mjs.map +0 -1
  533. package/dist/sql-contract-serializer-2oBWuxTe-DKZTf2n8.mjs.map +0 -1
  534. package/dist/sql-execution-plan--jKyLpe5-CMGhgO0M.d.mts.map +0 -1
  535. package/dist/sql-index-ByAAE7K8-DKj2V86p.d.mts.map +0 -1
  536. package/dist/sql-node-kEz6YFZo-v2F7delx.d.mts.map +0 -1
  537. package/dist/sql-storage-8LqxeLAY-DH4DdUXx.d.mts.map +0 -1
  538. package/dist/storage-table-DSeWszOL-CI-cItEK.d.mts.map +0 -1
  539. package/dist/storage-table-ZzbR-xzQ-BRoTQE_2.mjs.map +0 -1
  540. package/dist/storage-value-set-BGlj5Uus-CvZD--GG.d.mts.map +0 -1
  541. package/dist/timestamp-now-generator-DRXygu32-DN9Qb1uI.mjs +0 -173
  542. package/dist/timestamp-now-generator-DRXygu32-DN9Qb1uI.mjs.map +0 -1
  543. package/dist/types-4YenawkP-CwaaZSid.mjs.map +0 -1
  544. package/dist/types-B0msOnBM.d.mts +0 -1
  545. package/dist/types-BDUG29Df-LE85dIXP.d.mts +0 -161
  546. package/dist/types-BDUG29Df-LE85dIXP.d.mts.map +0 -1
  547. package/dist/types-CUsJrvEl.mjs.map +0 -1
  548. package/dist/types-CyxGtOOh-BggSa6Fe.d.mts.map +0 -1
  549. package/dist/types-Dt4e_jC--COeP8xzN.mjs.map +0 -1
  550. package/dist/types-Dwcw0F8X.d.mts +0 -1
  551. package/dist/types-IqZMLrFC-DcH8v_u3.d.mts.map +0 -1
  552. package/dist/types-UcHa2cTe.d.mts +0 -17
  553. package/dist/types-UcHa2cTe.d.mts.map +0 -1
  554. package/dist/types-YStFFkKs-D9UAmnON.d.mts.map +0 -1
  555. package/dist/types-v3qxLLxo-DCeKv7yY.d.mts.map +0 -1
  556. package/dist/unique-constraint-M5TlQnJQ-BiIHJ85k.d.mts.map +0 -1
  557. package/dist/util-DQQgv2j1-D6INZaRG.mjs.map +0 -1
  558. package/dist/validators-Belo8QqM.d.mts.map +0 -1
  559. package/dist/validators-CrWD6bSP.mjs.map +0 -1
  560. package/dist/value-set-derivation-hook-BhgGVtw0.d.mts.map +0 -1
  561. package/dist/value-set-derivation-hook-Di9JZ0X7.mjs.map +0 -1
  562. package/dist/verify-u0UTdZgD-DSAaz9rW.mjs.map +0 -1
  563. package/dist/verify-zDRnw0Rn.d.mts.map +0 -1
  564. /package/dist/{contract__pack-types.mjs → relational-core__collection-methods.mjs} +0 -0
@@ -1,37 +1,50 @@
1
- import { t as applySqlSpecifierControlPolicy } from "./derived-checks-DFMRmiAu-DGfB8aS4.mjs";
2
- import { t as interpretPslDocumentToSqlContract } from "./interpreter-DyiUUAWh-DYdjIpiE.mjs";
3
- import { collectScalarTypeConstructors } from "@prisma/orm-framework/components/authoring";
4
- import { InternalError } from "@prisma/orm-framework/utils/internal-error";
1
+ import { t as applySqlSpecifierControlPolicy } from "./derived-checks-D5HVRvqN-BJx1gwPA.mjs";
2
+ import { i as interpretPslDocumentToSqlContract } from "./interpreter-D5qk4B---CG0C7kdx.mjs";
5
3
  import { ifDefined } from "@prisma/orm-framework/utils/defined";
6
- import { buildSymbolTable, rangeToPslSpan } from "@prisma/orm-framework/psl-parser";
7
- import { notOk, ok } from "@prisma/orm-framework/utils/result";
4
+ import { collectScalarTypeConstructors } from "@prisma/orm-framework/components/authoring";
8
5
  import { readFile } from "node:fs/promises";
9
- import { withSeedDiagnostics } from "@prisma/orm-framework/psl-parser/interpret";
10
6
  import { parse } from "@prisma/orm-framework/psl-parser/syntax";
7
+ import { assertDefined } from "@prisma/orm-framework/utils/assertions";
8
+ import { notOk, ok } from "@prisma/orm-framework/utils/result";
11
9
  import { basename, extname } from "pathe";
12
- //#region ../../../2-sql/2-authoring/contract-psl/dist/provider.mjs
10
+ import { buildSymbolTable, createBinder, isPrismaNextSchema, mapPslDiagnostics } from "@prisma/orm-framework/psl-parser";
11
+ import { withSeedDiagnostics } from "@prisma/orm-framework/psl-parser/interpret";
12
+ import { isDynamicPattern } from "tinyglobby";
13
+ //#region ../../../2-sql-family/2-authoring/contract-psl/dist/provider.mjs
14
+ /**
15
+ * The directory portion of `pattern` before its first glob-magic segment,
16
+ * joined back with `/` (e.g. a `prisma` directory holding a recursive
17
+ * `.prisma` glob derives `./prisma`). A rootless pattern with no static
18
+ * segments yields `''`.
19
+ */
20
+ function staticPrefixDirectory(pattern) {
21
+ const staticSegments = [];
22
+ for (const segment of pattern.replaceAll("\\", "/").split("/")) {
23
+ if (isDynamicPattern(segment)) break;
24
+ staticSegments.push(segment);
25
+ }
26
+ return staticSegments.join("/");
27
+ }
13
28
  /**
14
29
  * Derives the emit output path from the schema input path so artefacts land
15
30
  * colocated with the source (e.g. `src/contract/schema.prisma` →
16
- * `src/contract/contract.json`). The provider owns this because it is the
17
- * only layer that knows the input path; the upstream `normalizeContractConfig`
31
+ * `src/contract/contract.json`). A glob-shaped path derives from its static
32
+ * prefix directory instead (a recursive glob under `prisma` derives
33
+ * `./prisma/contract.json`). The provider owns this because it is the only
34
+ * layer that knows the input path; the upstream `normalizeContractConfig`
18
35
  * default is a last-resort fallback for providers that don't carry one.
19
36
  */
20
37
  function defaultOutputFromSchemaPath(schemaPath) {
38
+ if (isDynamicPattern(schemaPath)) {
39
+ const prefix = staticPrefixDirectory(schemaPath);
40
+ return prefix.length === 0 ? "contract.json" : `${prefix}/contract.json`;
41
+ }
21
42
  const ext = extname(schemaPath);
22
43
  if (ext.length === 0) return `${schemaPath}.json`;
23
44
  const base = schemaPath.slice(0, -ext.length);
24
45
  if (basename(base) === "schema") return `${base.slice(0, -6)}contract.json`;
25
46
  return `${base}.json`;
26
47
  }
27
- function mapParseDiagnostics(diagnostics, sourceFile, sourceId) {
28
- return diagnostics.map((diagnostic) => ({
29
- code: diagnostic.code,
30
- message: diagnostic.message,
31
- sourceId,
32
- span: rangeToPslSpan(diagnostic.range, sourceFile)
33
- }));
34
- }
35
48
  function prismaContract(schemaPath, options) {
36
49
  return {
37
50
  source: {
@@ -40,9 +53,10 @@ function prismaContract(schemaPath, options) {
40
53
  interpret(input, context) {
41
54
  const scalarColumnDescriptors = collectScalarTypeConstructors(context.authoringContributions.type);
42
55
  return interpretPslDocumentToSqlContract({
56
+ documents: input.documents,
43
57
  symbolTable: input.symbolTable,
44
- sourceFile: input.sourceFile,
45
- sourceId: input.sourceId,
58
+ sources: input.sources,
59
+ binder: input.binder,
46
60
  seedDiagnostics: [],
47
61
  target: options.target,
48
62
  authoringContributions: context.authoringContributions,
@@ -51,47 +65,82 @@ function prismaContract(schemaPath, options) {
51
65
  composedExtensionContracts: context.composedExtensionContracts,
52
66
  ...ifDefined("composedExtensionPackRefs", options.composedExtensionPackRefs?.length ? options.composedExtensionPackRefs : void 0),
53
67
  controlMutationDefaults: context.controlMutationDefaults,
68
+ generatorFunctions: context.generatorFunctions,
54
69
  createNamespace: options.createNamespace,
55
70
  capabilities: context.capabilities,
56
71
  codecLookup: context.codecLookup,
72
+ dataTypes: context.dataTypes,
57
73
  ...ifDefined("enumInferenceCodecs", options.enumInferenceCodecs)
58
74
  });
59
75
  },
60
76
  async load(context) {
61
- const [absoluteSchemaPath] = context.resolvedInputs;
62
- if (absoluteSchemaPath === void 0) throw new InternalError("prismaContract: context.resolvedInputs is empty. The CLI config loader should populate it positional-matched with source.inputs.");
63
- let schema;
64
- try {
65
- schema = await readFile(absoluteSchemaPath, "utf-8");
66
- } catch (error) {
67
- const message = String(error);
68
- return notOk({
69
- summary: `Failed to read Prisma schema at "${schemaPath}"`,
70
- diagnostics: [{
77
+ const candidates = [...new Set(context.resolvedInputs)].sort();
78
+ if (candidates.length === 0) return notOk({
79
+ summary: "No schema files matched the configured contract source",
80
+ diagnostics: [{
81
+ code: "PSL_NO_SCHEMA_FILES_MATCHED",
82
+ message: `No files matched the configured pattern "${schemaPath}"`,
83
+ sourceId: schemaPath
84
+ }]
85
+ });
86
+ const readDiagnostics = [];
87
+ const members = [];
88
+ const undirected = [];
89
+ for (const path of candidates) {
90
+ let text;
91
+ try {
92
+ text = await readFile(path, "utf-8");
93
+ } catch (error) {
94
+ const message = String(error);
95
+ readDiagnostics.push({
71
96
  code: "PSL_SCHEMA_READ_FAILED",
72
97
  message,
98
+ sourceId: path
99
+ });
100
+ continue;
101
+ }
102
+ if (isPrismaNextSchema(text)) members.push({
103
+ path,
104
+ text
105
+ });
106
+ else undirected.push(path);
107
+ }
108
+ if (members.length === 0) {
109
+ if (undirected.length === 0) return notOk({
110
+ summary: "Failed to read Prisma schema files",
111
+ diagnostics: readDiagnostics
112
+ });
113
+ return notOk({
114
+ summary: "No schema file carries the \"// use prisma-8\" directive",
115
+ diagnostics: [...readDiagnostics, {
116
+ code: "PSL_NO_OPTED_IN_SCHEMA_FILES",
117
+ message: `None of the matched files carry the "// use prisma-8" directive: ${undirected.join(", ")}`,
73
118
  sourceId: schemaPath
74
- }],
75
- meta: {
76
- schemaPath,
77
- absoluteSchemaPath,
78
- cause: message
79
- }
119
+ }]
80
120
  });
81
121
  }
82
- const { document, sourceFile, diagnostics: parseDiagnostics } = parse(schema);
83
- const { table: symbolTable, diagnostics: symbolTableDiagnostics } = buildSymbolTable({
84
- document,
85
- sourceFile,
86
- pslBlockDescriptors: context.authoringContributions.pslBlockDescriptors
122
+ const parsed = members.map(({ path, text }) => parse(text, path));
123
+ const documents = parsed.map(({ document }) => document);
124
+ const [firstSources, ...restSources] = parsed.map(({ sources }) => sources);
125
+ assertDefined(firstSources, "prismaContract requires at least one parsed schema file");
126
+ const sources = firstSources.merge(...restSources);
127
+ const seedDiagnostics = [...readDiagnostics, ...mapPslDiagnostics(parsed.flatMap(({ diagnostics }) => diagnostics), sources)];
128
+ const { symbolTable, diagnostics: symbolTableDiagnostics } = buildSymbolTable({
129
+ documents,
130
+ sources,
131
+ defaultNamespaceId: context.defaultNamespaceId
132
+ });
133
+ const { binder, diagnostics: binderDiagnostics } = createBinder({
134
+ symbolTable,
135
+ sources,
136
+ context
87
137
  });
88
- const seedDiagnostics = [...mapParseDiagnostics(parseDiagnostics, sourceFile, schemaPath), ...mapParseDiagnostics(symbolTableDiagnostics, sourceFile, schemaPath)];
89
138
  const interpreted = withSeedDiagnostics(this.interpret({
90
- document,
91
- sourceFile,
139
+ documents,
140
+ sources,
92
141
  symbolTable,
93
- sourceId: schemaPath
94
- }, context), seedDiagnostics);
142
+ binder
143
+ }, context), [...seedDiagnostics, ...mapPslDiagnostics([...symbolTableDiagnostics, ...binderDiagnostics], sources)]);
95
144
  if (!interpreted.ok) return interpreted;
96
145
  return ok(applySqlSpecifierControlPolicy(interpreted.value, options.defaultControlPolicy, options.createNamespace));
97
146
  }
@@ -1 +1 @@
1
- {"version":3,"file":"contract-psl__provider.mjs","names":[],"sources":["../../../../2-sql/2-authoring/contract-psl/dist/provider.mjs"],"sourcesContent":["import { t as interpretPslDocumentToSqlContract } from \"./interpreter-DyiUUAWh.mjs\";\nimport { collectScalarTypeConstructors } from \"@internal/framework-components/authoring\";\nimport { buildSymbolTable, rangeToPslSpan } from \"@internal/psl-parser\";\nimport { applySqlSpecifierControlPolicy } from \"@internal/sql-contract-ts/contract-builder\";\nimport { ifDefined } from \"@internal/utils/defined\";\nimport { notOk, ok } from \"@internal/utils/result\";\nimport { InternalError } from \"@internal/utils/internal-error\";\nimport { readFile } from \"node:fs/promises\";\nimport { withSeedDiagnostics } from \"@internal/psl-parser/interpret\";\nimport { parse } from \"@internal/psl-parser/syntax\";\nimport { basename, extname } from \"pathe\";\n//#region src/provider.ts\n/**\n* Derives the emit output path from the schema input path so artefacts land\n* colocated with the source (e.g. `src/contract/schema.prisma` →\n* `src/contract/contract.json`). The provider owns this because it is the\n* only layer that knows the input path; the upstream `normalizeContractConfig`\n* default is a last-resort fallback for providers that don't carry one.\n*/\nfunction defaultOutputFromSchemaPath(schemaPath) {\n\tconst ext = extname(schemaPath);\n\tif (ext.length === 0) return `${schemaPath}.json`;\n\tconst base = schemaPath.slice(0, -ext.length);\n\tif (basename(base) === \"schema\") return `${base.slice(0, -6)}contract.json`;\n\treturn `${base}.json`;\n}\nfunction mapParseDiagnostics(diagnostics, sourceFile, sourceId) {\n\treturn diagnostics.map((diagnostic) => ({\n\t\tcode: diagnostic.code,\n\t\tmessage: diagnostic.message,\n\t\tsourceId,\n\t\tspan: rangeToPslSpan(diagnostic.range, sourceFile)\n\t}));\n}\nfunction prismaContract(schemaPath, options) {\n\treturn {\n\t\tsource: {\n\t\t\tformat: \"psl\",\n\t\t\tinputs: [schemaPath],\n\t\t\tinterpret(input, context) {\n\t\t\t\tconst scalarColumnDescriptors = collectScalarTypeConstructors(context.authoringContributions.type);\n\t\t\t\treturn interpretPslDocumentToSqlContract({\n\t\t\t\t\tsymbolTable: input.symbolTable,\n\t\t\t\t\tsourceFile: input.sourceFile,\n\t\t\t\t\tsourceId: input.sourceId,\n\t\t\t\t\tseedDiagnostics: [],\n\t\t\t\t\ttarget: options.target,\n\t\t\t\t\tauthoringContributions: context.authoringContributions,\n\t\t\t\t\tscalarColumnDescriptors,\n\t\t\t\t\t...ifDefined(\"composedExtensions\", context.composedExtensions.length > 0 ? [...context.composedExtensions] : void 0),\n\t\t\t\t\tcomposedExtensionContracts: context.composedExtensionContracts,\n\t\t\t\t\t...ifDefined(\"composedExtensionPackRefs\", options.composedExtensionPackRefs?.length ? options.composedExtensionPackRefs : void 0),\n\t\t\t\t\tcontrolMutationDefaults: context.controlMutationDefaults,\n\t\t\t\t\tcreateNamespace: options.createNamespace,\n\t\t\t\t\tcapabilities: context.capabilities,\n\t\t\t\t\tcodecLookup: context.codecLookup,\n\t\t\t\t\t...ifDefined(\"enumInferenceCodecs\", options.enumInferenceCodecs)\n\t\t\t\t});\n\t\t\t},\n\t\t\tasync load(context) {\n\t\t\t\tconst [absoluteSchemaPath] = context.resolvedInputs;\n\t\t\t\tif (absoluteSchemaPath === void 0) throw new InternalError(\"prismaContract: context.resolvedInputs is empty. The CLI config loader should populate it positional-matched with source.inputs.\");\n\t\t\t\tlet schema;\n\t\t\t\ttry {\n\t\t\t\t\tschema = await readFile(absoluteSchemaPath, \"utf-8\");\n\t\t\t\t} catch (error) {\n\t\t\t\t\tconst message = String(error);\n\t\t\t\t\treturn notOk({\n\t\t\t\t\t\tsummary: `Failed to read Prisma schema at \"${schemaPath}\"`,\n\t\t\t\t\t\tdiagnostics: [{\n\t\t\t\t\t\t\tcode: \"PSL_SCHEMA_READ_FAILED\",\n\t\t\t\t\t\t\tmessage,\n\t\t\t\t\t\t\tsourceId: schemaPath\n\t\t\t\t\t\t}],\n\t\t\t\t\t\tmeta: {\n\t\t\t\t\t\t\tschemaPath,\n\t\t\t\t\t\t\tabsoluteSchemaPath,\n\t\t\t\t\t\t\tcause: message\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t\tconst { document, sourceFile, diagnostics: parseDiagnostics } = parse(schema);\n\t\t\t\tconst { table: symbolTable, diagnostics: symbolTableDiagnostics } = buildSymbolTable({\n\t\t\t\t\tdocument,\n\t\t\t\t\tsourceFile,\n\t\t\t\t\tpslBlockDescriptors: context.authoringContributions.pslBlockDescriptors\n\t\t\t\t});\n\t\t\t\tconst seedDiagnostics = [...mapParseDiagnostics(parseDiagnostics, sourceFile, schemaPath), ...mapParseDiagnostics(symbolTableDiagnostics, sourceFile, schemaPath)];\n\t\t\t\tconst interpreted = withSeedDiagnostics(this.interpret({\n\t\t\t\t\tdocument,\n\t\t\t\t\tsourceFile,\n\t\t\t\t\tsymbolTable,\n\t\t\t\t\tsourceId: schemaPath\n\t\t\t\t}, context), seedDiagnostics);\n\t\t\t\tif (!interpreted.ok) return interpreted;\n\t\t\t\treturn ok(applySqlSpecifierControlPolicy(interpreted.value, options.defaultControlPolicy, options.createNamespace));\n\t\t\t}\n\t\t},\n\t\toutput: options.output ?? defaultOutputFromSchemaPath(schemaPath)\n\t};\n}\n//#endregion\nexport { prismaContract };\n\n//# sourceMappingURL=provider.mjs.map"],"mappings":";;;;;;;;;;;;;;;;;;;AAmBA,SAAS,4BAA4B,YAAY;CAChD,MAAM,MAAM,QAAQ,UAAU;CAC9B,IAAI,IAAI,WAAW,GAAG,OAAO,GAAG,WAAW;CAC3C,MAAM,OAAO,WAAW,MAAM,GAAG,CAAC,IAAI,MAAM;CAC5C,IAAI,SAAS,IAAI,MAAM,UAAU,OAAO,GAAG,KAAK,MAAM,GAAG,EAAE,EAAE;CAC7D,OAAO,GAAG,KAAK;AAChB;AACA,SAAS,oBAAoB,aAAa,YAAY,UAAU;CAC/D,OAAO,YAAY,KAAK,gBAAgB;EACvC,MAAM,WAAW;EACjB,SAAS,WAAW;EACpB;EACA,MAAM,eAAe,WAAW,OAAO,UAAU;CAClD,EAAE;AACH;AACA,SAAS,eAAe,YAAY,SAAS;CAC5C,OAAO;EACN,QAAQ;GACP,QAAQ;GACR,QAAQ,CAAC,UAAU;GACnB,UAAU,OAAO,SAAS;IACzB,MAAM,0BAA0B,8BAA8B,QAAQ,uBAAuB,IAAI;IACjG,OAAO,kCAAkC;KACxC,aAAa,MAAM;KACnB,YAAY,MAAM;KAClB,UAAU,MAAM;KAChB,iBAAiB,CAAC;KAClB,QAAQ,QAAQ;KAChB,wBAAwB,QAAQ;KAChC;KACA,GAAG,UAAU,sBAAsB,QAAQ,mBAAmB,SAAS,IAAI,CAAC,GAAG,QAAQ,kBAAkB,IAAI,KAAK,CAAC;KACnH,4BAA4B,QAAQ;KACpC,GAAG,UAAU,6BAA6B,QAAQ,2BAA2B,SAAS,QAAQ,4BAA4B,KAAK,CAAC;KAChI,yBAAyB,QAAQ;KACjC,iBAAiB,QAAQ;KACzB,cAAc,QAAQ;KACtB,aAAa,QAAQ;KACrB,GAAG,UAAU,uBAAuB,QAAQ,mBAAmB;IAChE,CAAC;GACF;GACA,MAAM,KAAK,SAAS;IACnB,MAAM,CAAC,sBAAsB,QAAQ;IACrC,IAAI,uBAAuB,KAAK,GAAG,MAAM,IAAI,cAAc,kIAAkI;IAC7L,IAAI;IACJ,IAAI;KACH,SAAS,MAAM,SAAS,oBAAoB,OAAO;IACpD,SAAS,OAAO;KACf,MAAM,UAAU,OAAO,KAAK;KAC5B,OAAO,MAAM;MACZ,SAAS,oCAAoC,WAAW;MACxD,aAAa,CAAC;OACb,MAAM;OACN;OACA,UAAU;MACX,CAAC;MACD,MAAM;OACL;OACA;OACA,OAAO;MACR;KACD,CAAC;IACF;IACA,MAAM,EAAE,UAAU,YAAY,aAAa,qBAAqB,MAAM,MAAM;IAC5E,MAAM,EAAE,OAAO,aAAa,aAAa,2BAA2B,iBAAiB;KACpF;KACA;KACA,qBAAqB,QAAQ,uBAAuB;IACrD,CAAC;IACD,MAAM,kBAAkB,CAAC,GAAG,oBAAoB,kBAAkB,YAAY,UAAU,GAAG,GAAG,oBAAoB,wBAAwB,YAAY,UAAU,CAAC;IACjK,MAAM,cAAc,oBAAoB,KAAK,UAAU;KACtD;KACA;KACA;KACA,UAAU;IACX,GAAG,OAAO,GAAG,eAAe;IAC5B,IAAI,CAAC,YAAY,IAAI,OAAO;IAC5B,OAAO,GAAG,+BAA+B,YAAY,OAAO,QAAQ,sBAAsB,QAAQ,eAAe,CAAC;GACnH;EACD;EACA,QAAQ,QAAQ,UAAU,4BAA4B,UAAU;CACjE;AACD"}
1
+ {"version":3,"file":"contract-psl__provider.mjs","names":[],"sources":["../../../../2-sql-family/2-authoring/contract-psl/dist/provider.mjs"],"sourcesContent":["import { n as interpretPslDocumentToSqlContract } from \"./interpreter-D5qk4B--.mjs\";\nimport { buildSymbolTable, createBinder, isPrismaNextSchema, mapPslDiagnostics } from \"@internal/psl-parser\";\nimport { applySqlSpecifierControlPolicy } from \"@internal/sql-contract-ts/contract-builder\";\nimport { ifDefined } from \"@internal/utils/defined\";\nimport { assertDefined } from \"@internal/utils/assertions\";\nimport { collectScalarTypeConstructors } from \"@internal/framework-components/authoring\";\nimport { withSeedDiagnostics } from \"@internal/psl-parser/interpret\";\nimport { parse } from \"@internal/psl-parser/syntax\";\nimport { notOk, ok } from \"@internal/utils/result\";\nimport { readFile } from \"node:fs/promises\";\nimport { basename, extname } from \"pathe\";\nimport { isDynamicPattern } from \"tinyglobby\";\n//#region src/provider.ts\n/**\n* The directory portion of `pattern` before its first glob-magic segment,\n* joined back with `/` (e.g. a `prisma` directory holding a recursive\n* `.prisma` glob derives `./prisma`). A rootless pattern with no static\n* segments yields `''`.\n*/\nfunction staticPrefixDirectory(pattern) {\n\tconst staticSegments = [];\n\tfor (const segment of pattern.replaceAll(\"\\\\\", \"/\").split(\"/\")) {\n\t\tif (isDynamicPattern(segment)) break;\n\t\tstaticSegments.push(segment);\n\t}\n\treturn staticSegments.join(\"/\");\n}\n/**\n* Derives the emit output path from the schema input path so artefacts land\n* colocated with the source (e.g. `src/contract/schema.prisma` →\n* `src/contract/contract.json`). A glob-shaped path derives from its static\n* prefix directory instead (a recursive glob under `prisma` derives\n* `./prisma/contract.json`). The provider owns this because it is the only\n* layer that knows the input path; the upstream `normalizeContractConfig`\n* default is a last-resort fallback for providers that don't carry one.\n*/\nfunction defaultOutputFromSchemaPath(schemaPath) {\n\tif (isDynamicPattern(schemaPath)) {\n\t\tconst prefix = staticPrefixDirectory(schemaPath);\n\t\treturn prefix.length === 0 ? \"contract.json\" : `${prefix}/contract.json`;\n\t}\n\tconst ext = extname(schemaPath);\n\tif (ext.length === 0) return `${schemaPath}.json`;\n\tconst base = schemaPath.slice(0, -ext.length);\n\tif (basename(base) === \"schema\") return `${base.slice(0, -6)}contract.json`;\n\treturn `${base}.json`;\n}\nfunction prismaContract(schemaPath, options) {\n\treturn {\n\t\tsource: {\n\t\t\tformat: \"psl\",\n\t\t\tinputs: [schemaPath],\n\t\t\tinterpret(input, context) {\n\t\t\t\tconst scalarColumnDescriptors = collectScalarTypeConstructors(context.authoringContributions.type);\n\t\t\t\treturn interpretPslDocumentToSqlContract({\n\t\t\t\t\tdocuments: input.documents,\n\t\t\t\t\tsymbolTable: input.symbolTable,\n\t\t\t\t\tsources: input.sources,\n\t\t\t\t\tbinder: input.binder,\n\t\t\t\t\tseedDiagnostics: [],\n\t\t\t\t\ttarget: options.target,\n\t\t\t\t\tauthoringContributions: context.authoringContributions,\n\t\t\t\t\tscalarColumnDescriptors,\n\t\t\t\t\t...ifDefined(\"composedExtensions\", context.composedExtensions.length > 0 ? [...context.composedExtensions] : void 0),\n\t\t\t\t\tcomposedExtensionContracts: context.composedExtensionContracts,\n\t\t\t\t\t...ifDefined(\"composedExtensionPackRefs\", options.composedExtensionPackRefs?.length ? options.composedExtensionPackRefs : void 0),\n\t\t\t\t\tcontrolMutationDefaults: context.controlMutationDefaults,\n\t\t\t\t\tgeneratorFunctions: context.generatorFunctions,\n\t\t\t\t\tcreateNamespace: options.createNamespace,\n\t\t\t\t\tcapabilities: context.capabilities,\n\t\t\t\t\tcodecLookup: context.codecLookup,\n\t\t\t\t\tdataTypes: context.dataTypes,\n\t\t\t\t\t...ifDefined(\"enumInferenceCodecs\", options.enumInferenceCodecs)\n\t\t\t\t});\n\t\t\t},\n\t\t\tasync load(context) {\n\t\t\t\tconst candidates = [...new Set(context.resolvedInputs)].sort();\n\t\t\t\tif (candidates.length === 0) return notOk({\n\t\t\t\t\tsummary: \"No schema files matched the configured contract source\",\n\t\t\t\t\tdiagnostics: [{\n\t\t\t\t\t\tcode: \"PSL_NO_SCHEMA_FILES_MATCHED\",\n\t\t\t\t\t\tmessage: `No files matched the configured pattern \"${schemaPath}\"`,\n\t\t\t\t\t\tsourceId: schemaPath\n\t\t\t\t\t}]\n\t\t\t\t});\n\t\t\t\tconst readDiagnostics = [];\n\t\t\t\tconst members = [];\n\t\t\t\tconst undirected = [];\n\t\t\t\tfor (const path of candidates) {\n\t\t\t\t\tlet text;\n\t\t\t\t\ttry {\n\t\t\t\t\t\ttext = await readFile(path, \"utf-8\");\n\t\t\t\t\t} catch (error) {\n\t\t\t\t\t\tconst message = String(error);\n\t\t\t\t\t\treadDiagnostics.push({\n\t\t\t\t\t\t\tcode: \"PSL_SCHEMA_READ_FAILED\",\n\t\t\t\t\t\t\tmessage,\n\t\t\t\t\t\t\tsourceId: path\n\t\t\t\t\t\t});\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tif (isPrismaNextSchema(text)) members.push({\n\t\t\t\t\t\tpath,\n\t\t\t\t\t\ttext\n\t\t\t\t\t});\n\t\t\t\t\telse undirected.push(path);\n\t\t\t\t}\n\t\t\t\tif (members.length === 0) {\n\t\t\t\t\tif (undirected.length === 0) return notOk({\n\t\t\t\t\t\tsummary: \"Failed to read Prisma schema files\",\n\t\t\t\t\t\tdiagnostics: readDiagnostics\n\t\t\t\t\t});\n\t\t\t\t\treturn notOk({\n\t\t\t\t\t\tsummary: \"No schema file carries the \\\"// use prisma-8\\\" directive\",\n\t\t\t\t\t\tdiagnostics: [...readDiagnostics, {\n\t\t\t\t\t\t\tcode: \"PSL_NO_OPTED_IN_SCHEMA_FILES\",\n\t\t\t\t\t\t\tmessage: `None of the matched files carry the \"// use prisma-8\" directive: ${undirected.join(\", \")}`,\n\t\t\t\t\t\t\tsourceId: schemaPath\n\t\t\t\t\t\t}]\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t\tconst parsed = members.map(({ path, text }) => parse(text, path));\n\t\t\t\tconst documents = parsed.map(({ document }) => document);\n\t\t\t\tconst [firstSources, ...restSources] = parsed.map(({ sources }) => sources);\n\t\t\t\tassertDefined(firstSources, \"prismaContract requires at least one parsed schema file\");\n\t\t\t\tconst sources = firstSources.merge(...restSources);\n\t\t\t\tconst seedDiagnostics = [...readDiagnostics, ...mapPslDiagnostics(parsed.flatMap(({ diagnostics }) => diagnostics), sources)];\n\t\t\t\tconst { symbolTable, diagnostics: symbolTableDiagnostics } = buildSymbolTable({\n\t\t\t\t\tdocuments,\n\t\t\t\t\tsources,\n\t\t\t\t\tdefaultNamespaceId: context.defaultNamespaceId\n\t\t\t\t});\n\t\t\t\tconst { binder, diagnostics: binderDiagnostics } = createBinder({\n\t\t\t\t\tsymbolTable,\n\t\t\t\t\tsources,\n\t\t\t\t\tcontext\n\t\t\t\t});\n\t\t\t\tconst interpreted = withSeedDiagnostics(this.interpret({\n\t\t\t\t\tdocuments,\n\t\t\t\t\tsources,\n\t\t\t\t\tsymbolTable,\n\t\t\t\t\tbinder\n\t\t\t\t}, context), [...seedDiagnostics, ...mapPslDiagnostics([...symbolTableDiagnostics, ...binderDiagnostics], sources)]);\n\t\t\t\tif (!interpreted.ok) return interpreted;\n\t\t\t\treturn ok(applySqlSpecifierControlPolicy(interpreted.value, options.defaultControlPolicy, options.createNamespace));\n\t\t\t}\n\t\t},\n\t\toutput: options.output ?? defaultOutputFromSchemaPath(schemaPath)\n\t};\n}\n//#endregion\nexport { prismaContract };\n\n//# sourceMappingURL=provider.mjs.map"],"mappings":";;;;;;;;;;;;;;;;;;;AAmBA,SAAS,sBAAsB,SAAS;CACvC,MAAM,iBAAiB,CAAC;CACxB,KAAK,MAAM,WAAW,QAAQ,WAAW,MAAM,GAAG,CAAC,CAAC,MAAM,GAAG,GAAG;EAC/D,IAAI,iBAAiB,OAAO,GAAG;EAC/B,eAAe,KAAK,OAAO;CAC5B;CACA,OAAO,eAAe,KAAK,GAAG;AAC/B;;;;;;;;;;AAUA,SAAS,4BAA4B,YAAY;CAChD,IAAI,iBAAiB,UAAU,GAAG;EACjC,MAAM,SAAS,sBAAsB,UAAU;EAC/C,OAAO,OAAO,WAAW,IAAI,kBAAkB,GAAG,OAAO;CAC1D;CACA,MAAM,MAAM,QAAQ,UAAU;CAC9B,IAAI,IAAI,WAAW,GAAG,OAAO,GAAG,WAAW;CAC3C,MAAM,OAAO,WAAW,MAAM,GAAG,CAAC,IAAI,MAAM;CAC5C,IAAI,SAAS,IAAI,MAAM,UAAU,OAAO,GAAG,KAAK,MAAM,GAAG,EAAE,EAAE;CAC7D,OAAO,GAAG,KAAK;AAChB;AACA,SAAS,eAAe,YAAY,SAAS;CAC5C,OAAO;EACN,QAAQ;GACP,QAAQ;GACR,QAAQ,CAAC,UAAU;GACnB,UAAU,OAAO,SAAS;IACzB,MAAM,0BAA0B,8BAA8B,QAAQ,uBAAuB,IAAI;IACjG,OAAO,kCAAkC;KACxC,WAAW,MAAM;KACjB,aAAa,MAAM;KACnB,SAAS,MAAM;KACf,QAAQ,MAAM;KACd,iBAAiB,CAAC;KAClB,QAAQ,QAAQ;KAChB,wBAAwB,QAAQ;KAChC;KACA,GAAG,UAAU,sBAAsB,QAAQ,mBAAmB,SAAS,IAAI,CAAC,GAAG,QAAQ,kBAAkB,IAAI,KAAK,CAAC;KACnH,4BAA4B,QAAQ;KACpC,GAAG,UAAU,6BAA6B,QAAQ,2BAA2B,SAAS,QAAQ,4BAA4B,KAAK,CAAC;KAChI,yBAAyB,QAAQ;KACjC,oBAAoB,QAAQ;KAC5B,iBAAiB,QAAQ;KACzB,cAAc,QAAQ;KACtB,aAAa,QAAQ;KACrB,WAAW,QAAQ;KACnB,GAAG,UAAU,uBAAuB,QAAQ,mBAAmB;IAChE,CAAC;GACF;GACA,MAAM,KAAK,SAAS;IACnB,MAAM,aAAa,CAAC,GAAG,IAAI,IAAI,QAAQ,cAAc,CAAC,CAAC,CAAC,KAAK;IAC7D,IAAI,WAAW,WAAW,GAAG,OAAO,MAAM;KACzC,SAAS;KACT,aAAa,CAAC;MACb,MAAM;MACN,SAAS,4CAA4C,WAAW;MAChE,UAAU;KACX,CAAC;IACF,CAAC;IACD,MAAM,kBAAkB,CAAC;IACzB,MAAM,UAAU,CAAC;IACjB,MAAM,aAAa,CAAC;IACpB,KAAK,MAAM,QAAQ,YAAY;KAC9B,IAAI;KACJ,IAAI;MACH,OAAO,MAAM,SAAS,MAAM,OAAO;KACpC,SAAS,OAAO;MACf,MAAM,UAAU,OAAO,KAAK;MAC5B,gBAAgB,KAAK;OACpB,MAAM;OACN;OACA,UAAU;MACX,CAAC;MACD;KACD;KACA,IAAI,mBAAmB,IAAI,GAAG,QAAQ,KAAK;MAC1C;MACA;KACD,CAAC;UACI,WAAW,KAAK,IAAI;IAC1B;IACA,IAAI,QAAQ,WAAW,GAAG;KACzB,IAAI,WAAW,WAAW,GAAG,OAAO,MAAM;MACzC,SAAS;MACT,aAAa;KACd,CAAC;KACD,OAAO,MAAM;MACZ,SAAS;MACT,aAAa,CAAC,GAAG,iBAAiB;OACjC,MAAM;OACN,SAAS,oEAAoE,WAAW,KAAK,IAAI;OACjG,UAAU;MACX,CAAC;KACF,CAAC;IACF;IACA,MAAM,SAAS,QAAQ,KAAK,EAAE,MAAM,WAAW,MAAM,MAAM,IAAI,CAAC;IAChE,MAAM,YAAY,OAAO,KAAK,EAAE,eAAe,QAAQ;IACvD,MAAM,CAAC,cAAc,GAAG,eAAe,OAAO,KAAK,EAAE,cAAc,OAAO;IAC1E,cAAc,cAAc,yDAAyD;IACrF,MAAM,UAAU,aAAa,MAAM,GAAG,WAAW;IACjD,MAAM,kBAAkB,CAAC,GAAG,iBAAiB,GAAG,kBAAkB,OAAO,SAAS,EAAE,kBAAkB,WAAW,GAAG,OAAO,CAAC;IAC5H,MAAM,EAAE,aAAa,aAAa,2BAA2B,iBAAiB;KAC7E;KACA;KACA,oBAAoB,QAAQ;IAC7B,CAAC;IACD,MAAM,EAAE,QAAQ,aAAa,sBAAsB,aAAa;KAC/D;KACA;KACA;IACD,CAAC;IACD,MAAM,cAAc,oBAAoB,KAAK,UAAU;KACtD;KACA;KACA;KACA;IACD,GAAG,OAAO,GAAG,CAAC,GAAG,iBAAiB,GAAG,kBAAkB,CAAC,GAAG,wBAAwB,GAAG,iBAAiB,GAAG,OAAO,CAAC,CAAC;IACnH,IAAI,CAAC,YAAY,IAAI,OAAO;IAC5B,OAAO,GAAG,+BAA+B,YAAY,OAAO,QAAQ,sBAAsB,QAAQ,eAAe,CAAC;GACnH;EACD;EACA,QAAQ,QAAQ,UAAU,4BAA4B,UAAU;CACjE;AACD"}
@@ -1,5 +1,5 @@
1
- import { t as CheckKind } from "./naming-CV9j2pXl-KARaDReS.mjs";
2
- import { n as applySqlSpecifierControlPolicy, t as SqlNamespaceFactory } from "./derived-checks-DPdD01O0-DGqOFjs6.mjs";
3
- import { i as typescriptContractFromPath, n as emptyContract, r as typescriptContract, t as ContractConfig } from "./config-types-D9fdKG3g.mjs";
4
- import { A as enumType, C as UniqueConstraintNode, D as buildSqlContractFromDefinition, E as buildContractDefinition, F as rel, M as field, N as member, O as check, P as model, S as TargetFieldRef, T as buildBoundContract, _ as ModelLike, a as CodecTypeMap, b as RelationNode, c as ContractInput, d as EnumTypeHandle, f as ExtractCodecTypesFromPack, g as MergeEnums, h as IndexNode, i as CodecInput, j as extensionModel, k as defineContract, l as ContractModelBuilder, m as ForeignKeyNode, n as BoundEnumType, o as ComposedAuthoringHelpers, p as FieldNode, r as CheckNode, s as ContractDefinition, t as AttachedEntities, u as EnumMember, v as ModelNode, w as bindEnumType, x as ScalarFieldBuilder, y as PrimaryKeyNode } from "./contract-builder-CG_tGDbB.mjs";
5
- export { type AttachedEntities, type BoundEnumType, type CheckKind, type CheckNode, type CodecInput, type CodecTypeMap, type ComposedAuthoringHelpers, type ContractConfig, type ContractDefinition, type ContractInput, type ContractModelBuilder, type EnumMember, type EnumTypeHandle, type ExtractCodecTypesFromPack, type FieldNode, type ForeignKeyNode, type IndexNode, type MergeEnums, type ModelLike, type ModelNode, type PrimaryKeyNode, type RelationNode, type ScalarFieldBuilder, type SqlNamespaceFactory, type TargetFieldRef, type UniqueConstraintNode, applySqlSpecifierControlPolicy, bindEnumType, buildBoundContract, buildContractDefinition, buildSqlContractFromDefinition, check, defineContract, emptyContract, enumType, extensionModel, field, member, model, rel, typescriptContract, typescriptContractFromPath };
1
+ import { n as applySqlSpecifierControlPolicy, t as SqlNamespaceFactory } from "./derived-checks-DpPkO6Dt-9U9UJZOo.mjs";
2
+ import { r as SqlExpression, u as sql } from "./sql-expression-B4BrhGPi.mjs";
3
+ import { $ as extensionModel, A as MergeEnums, B as UniqueConstraintNode, C as ForeignKeyTableReference, D as IndexOptionsFunction, E as IndexNode, F as ScalarFieldBuilder, G as bindEnumType, H as ValueObjectMemberNode, I as ScalarMemberNode, J as buildSqlContractFromDefinition, K as buildBoundContract, L as TableNode, M as ModelNode, N as PrimaryKeyNode, O as IndexOptionsInput, P as RelationNode, Q as enumType, R as TableProperties, S as ForeignKeyNode, T as IndexExpressionInput, U as ValueObjectNode, V as ValueObjectFieldNode, W as autoincrement, X as createComposedAuthoringHelpers, Y as check, Z as defineContract, _ as EnumMember, a as CheckNode, at as rel, b as FieldNode, c as ColumnNode, d as ContractDefinition, et as field, f as ContractInput, g as DeferredIndexOptions, h as DeferredIndexExpression, i as BoundEnumType, it as now, j as ModelLike, k as ManyOptions, l as ColumnRef, m as DeferredIndexColumn, n as AuthoredColumnDefault, nt as member, o as CodecInput, ot as storedAsListColumn, p as ContractModelBuilder, q as buildContractDefinition, r as AuthoredColumnDefaultLiteralValue, rt as model, s as CodecTypeMap, t as AttachedEntities, tt as isValueObjectMember, u as ComposedAuthoringHelpers, v as EnumTypeHandle, w as IndexConstraint, x as ForeignKeyModelReference, y as ExtractCodecTypesFromPack, z as TargetFieldRef } from "./contract-builder-C_Zi57iD.mjs";
4
+ import { i as typescriptContractFromPath, n as emptyContract, r as typescriptContract, t as ContractConfig } from "./config-types-C-1mIiJO.mjs";
5
+ export { type AttachedEntities, type AuthoredColumnDefault, type AuthoredColumnDefaultLiteralValue, type BoundEnumType, type CheckNode, type CodecInput, type CodecTypeMap, type ColumnNode, type ColumnRef, type ComposedAuthoringHelpers, type ContractConfig, type ContractDefinition, type ContractInput, type ContractModelBuilder, type DeferredIndexColumn, type DeferredIndexExpression, type DeferredIndexOptions, type EnumMember, type EnumTypeHandle, type ExtractCodecTypesFromPack, type FieldNode, type ForeignKeyModelReference, type ForeignKeyNode, type ForeignKeyTableReference, type IndexConstraint, type IndexExpressionInput, type IndexNode, type IndexOptionsFunction, type IndexOptionsInput, type ManyOptions, type MergeEnums, type ModelLike, type ModelNode, type PrimaryKeyNode, type RelationNode, type ScalarFieldBuilder, type ScalarMemberNode, type SqlExpression, type SqlNamespaceFactory, type TableNode, type TableProperties, type TargetFieldRef, type UniqueConstraintNode, type ValueObjectFieldNode, type ValueObjectMemberNode, type ValueObjectNode, applySqlSpecifierControlPolicy, autoincrement, bindEnumType, buildBoundContract, buildContractDefinition, buildSqlContractFromDefinition, check, createComposedAuthoringHelpers, defineContract, emptyContract, enumType, extensionModel, field, isValueObjectMember, member, model, now, rel, sql, storedAsListColumn, typescriptContract, typescriptContractFromPath };
@@ -1,4 +1,5 @@
1
- import { n as buildSqlContractFromDefinition, t as applySqlSpecifierControlPolicy } from "./derived-checks-DFMRmiAu-DGfB8aS4.mjs";
2
- import { a as defineContract, c as field, d as rel, i as check, l as member, n as buildBoundContract, o as enumType, r as buildContractDefinition, s as extensionModel, t as bindEnumType, u as model } from "./contract-builder-D4a5dT7j.mjs";
3
- import { n as typescriptContract, r as typescriptContractFromPath, t as emptyContract } from "./config-types-gAm54C_v.mjs";
4
- export { applySqlSpecifierControlPolicy, bindEnumType, buildBoundContract, buildContractDefinition, buildSqlContractFromDefinition, check, defineContract, emptyContract, enumType, extensionModel, field, member, model, rel, typescriptContract, typescriptContractFromPath };
1
+ import { l as sql } from "./sql-expression-CKgKznXS.mjs";
2
+ import { i as isValueObjectMember, n as buildSqlContractFromDefinition, o as storedAsListColumn, t as applySqlSpecifierControlPolicy } from "./derived-checks-D5HVRvqN-BJx1gwPA.mjs";
3
+ import { a as check, c as enumType, d as member, f as model, i as buildContractDefinition, l as extensionModel, m as rel, n as bindEnumType, o as createComposedAuthoringHelpers, p as now, r as buildBoundContract, s as defineContract, t as autoincrement, u as field } from "./contract-builder-50lF0kz1.mjs";
4
+ import { n as typescriptContract, r as typescriptContractFromPath, t as emptyContract } from "./config-types-DkEeq_qq.mjs";
5
+ export { applySqlSpecifierControlPolicy, autoincrement, bindEnumType, buildBoundContract, buildContractDefinition, buildSqlContractFromDefinition, check, createComposedAuthoringHelpers, defineContract, emptyContract, enumType, extensionModel, field, isValueObjectMember, member, model, now, rel, sql, storedAsListColumn, typescriptContract, typescriptContractFromPath };
@@ -1,2 +1,2 @@
1
- import { i as typescriptContractFromPath, n as emptyContract, r as typescriptContract, t as ContractConfig } from "./config-types-D9fdKG3g.mjs";
1
+ import { i as typescriptContractFromPath, n as emptyContract, r as typescriptContract, t as ContractConfig } from "./config-types-C-1mIiJO.mjs";
2
2
  export { type ContractConfig, emptyContract, typescriptContract, typescriptContractFromPath };
@@ -1,2 +1,2 @@
1
- import { n as typescriptContract, r as typescriptContractFromPath, t as emptyContract } from "./config-types-gAm54C_v.mjs";
1
+ import { n as typescriptContract, r as typescriptContractFromPath, t as emptyContract } from "./config-types-DkEeq_qq.mjs";
2
2
  export { emptyContract, typescriptContract, typescriptContractFromPath };
@@ -1,4 +1,4 @@
1
- import { t as CheckKind } from "./naming-CV9j2pXl-KARaDReS.mjs";
2
- import { n as applySqlSpecifierControlPolicy, t as SqlNamespaceFactory } from "./derived-checks-DPdD01O0-DGqOFjs6.mjs";
3
- import { A as enumType, C as UniqueConstraintNode, D as buildSqlContractFromDefinition, E as buildContractDefinition, F as rel, M as field, N as member, O as check, P as model, S as TargetFieldRef, T as buildBoundContract, _ as ModelLike, a as CodecTypeMap, b as RelationNode, c as ContractInput, d as EnumTypeHandle, f as ExtractCodecTypesFromPack, g as MergeEnums, h as IndexNode, i as CodecInput, j as extensionModel, k as defineContract, l as ContractModelBuilder, m as ForeignKeyNode, n as BoundEnumType, o as ComposedAuthoringHelpers, p as FieldNode, r as CheckNode, s as ContractDefinition, t as AttachedEntities, u as EnumMember, v as ModelNode, w as bindEnumType, x as ScalarFieldBuilder, y as PrimaryKeyNode } from "./contract-builder-CG_tGDbB.mjs";
4
- export { type AttachedEntities, type BoundEnumType, type CheckKind, type CheckNode, type CodecInput, type CodecTypeMap, type ComposedAuthoringHelpers, type ContractDefinition, type ContractInput, type ContractModelBuilder, type EnumMember, type EnumTypeHandle, type ExtractCodecTypesFromPack, type FieldNode, type ForeignKeyNode, type IndexNode, type MergeEnums, type ModelLike, type ModelNode, type PrimaryKeyNode, type RelationNode, type ScalarFieldBuilder, type SqlNamespaceFactory, type TargetFieldRef, type UniqueConstraintNode, applySqlSpecifierControlPolicy, bindEnumType, buildBoundContract, buildContractDefinition, buildSqlContractFromDefinition, check, defineContract, enumType, extensionModel, field, member, model, rel };
1
+ import { n as applySqlSpecifierControlPolicy, t as SqlNamespaceFactory } from "./derived-checks-DpPkO6Dt-9U9UJZOo.mjs";
2
+ import { r as SqlExpression, u as sql } from "./sql-expression-B4BrhGPi.mjs";
3
+ import { $ as extensionModel, A as MergeEnums, B as UniqueConstraintNode, C as ForeignKeyTableReference, D as IndexOptionsFunction, E as IndexNode, F as ScalarFieldBuilder, G as bindEnumType, H as ValueObjectMemberNode, I as ScalarMemberNode, J as buildSqlContractFromDefinition, K as buildBoundContract, L as TableNode, M as ModelNode, N as PrimaryKeyNode, O as IndexOptionsInput, P as RelationNode, Q as enumType, R as TableProperties, S as ForeignKeyNode, T as IndexExpressionInput, U as ValueObjectNode, V as ValueObjectFieldNode, W as autoincrement, X as createComposedAuthoringHelpers, Y as check, Z as defineContract, _ as EnumMember, a as CheckNode, at as rel, b as FieldNode, c as ColumnNode, d as ContractDefinition, et as field, f as ContractInput, g as DeferredIndexOptions, h as DeferredIndexExpression, i as BoundEnumType, it as now, j as ModelLike, k as ManyOptions, l as ColumnRef, m as DeferredIndexColumn, n as AuthoredColumnDefault, nt as member, o as CodecInput, ot as storedAsListColumn, p as ContractModelBuilder, q as buildContractDefinition, r as AuthoredColumnDefaultLiteralValue, rt as model, s as CodecTypeMap, t as AttachedEntities, tt as isValueObjectMember, u as ComposedAuthoringHelpers, v as EnumTypeHandle, w as IndexConstraint, x as ForeignKeyModelReference, y as ExtractCodecTypesFromPack, z as TargetFieldRef } from "./contract-builder-C_Zi57iD.mjs";
4
+ export { type AttachedEntities, type AuthoredColumnDefault, type AuthoredColumnDefaultLiteralValue, type BoundEnumType, type CheckNode, type CodecInput, type CodecTypeMap, type ColumnNode, type ColumnRef, type ComposedAuthoringHelpers, type ContractDefinition, type ContractInput, type ContractModelBuilder, type DeferredIndexColumn, type DeferredIndexExpression, type DeferredIndexOptions, type EnumMember, type EnumTypeHandle, type ExtractCodecTypesFromPack, type FieldNode, type ForeignKeyModelReference, type ForeignKeyNode, type ForeignKeyTableReference, type IndexConstraint, type IndexExpressionInput, type IndexNode, type IndexOptionsFunction, type IndexOptionsInput, type ManyOptions, type MergeEnums, type ModelLike, type ModelNode, type PrimaryKeyNode, type RelationNode, type ScalarFieldBuilder, type ScalarMemberNode, type SqlExpression, type SqlNamespaceFactory, type TableNode, type TableProperties, type TargetFieldRef, type UniqueConstraintNode, type ValueObjectFieldNode, type ValueObjectMemberNode, type ValueObjectNode, applySqlSpecifierControlPolicy, autoincrement, bindEnumType, buildBoundContract, buildContractDefinition, buildSqlContractFromDefinition, check, createComposedAuthoringHelpers, defineContract, enumType, extensionModel, field, isValueObjectMember, member, model, now, rel, sql, storedAsListColumn };
@@ -1,3 +1,4 @@
1
- import { n as buildSqlContractFromDefinition, t as applySqlSpecifierControlPolicy } from "./derived-checks-DFMRmiAu-DGfB8aS4.mjs";
2
- import { a as defineContract, c as field, d as rel, i as check, l as member, n as buildBoundContract, o as enumType, r as buildContractDefinition, s as extensionModel, t as bindEnumType, u as model } from "./contract-builder-D4a5dT7j.mjs";
3
- export { applySqlSpecifierControlPolicy, bindEnumType, buildBoundContract, buildContractDefinition, buildSqlContractFromDefinition, check, defineContract, enumType, extensionModel, field, member, model, rel };
1
+ import { l as sql } from "./sql-expression-CKgKznXS.mjs";
2
+ import { i as isValueObjectMember, n as buildSqlContractFromDefinition, o as storedAsListColumn, t as applySqlSpecifierControlPolicy } from "./derived-checks-D5HVRvqN-BJx1gwPA.mjs";
3
+ import { a as check, c as enumType, d as member, f as model, i as buildContractDefinition, l as extensionModel, m as rel, n as bindEnumType, o as createComposedAuthoringHelpers, p as now, r as buildBoundContract, s as defineContract, t as autoincrement, u as field } from "./contract-builder-50lF0kz1.mjs";
4
+ export { applySqlSpecifierControlPolicy, autoincrement, bindEnumType, buildBoundContract, buildContractDefinition, buildSqlContractFromDefinition, check, createComposedAuthoringHelpers, defineContract, enumType, extensionModel, field, isValueObjectMember, member, model, now, rel, sql, storedAsListColumn };
@@ -1,5 +1,5 @@
1
1
  import { buildNamespacedEntities, buildSingleNamespaceView } from "@prisma/orm-framework/components/ir";
2
- //#region ../../../2-sql/1-core/contract/dist/contract-view.mjs
2
+ //#region ../../../2-sql-family/1-core/contract/dist/contract-view.mjs
3
3
  /**
4
4
  * The SQL family's statically-named built-in entity kinds. `table` and
5
5
  * `valueSet` are promoted to top-level view accessors; pack-contributed kinds
@@ -36,4 +36,4 @@ function buildSqlSchemaQualifiedView(contract) {
36
36
  //#endregion
37
37
  export { buildSqlSchemaQualifiedView as n, buildSqlSingleNamespaceView as r, SQL_BUILTIN_KINDS as t };
38
38
 
39
- //# sourceMappingURL=contract-view-BMR5IWk4.mjs.map
39
+ //# sourceMappingURL=contract-view-DqpzeYeE.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"contract-view-DqpzeYeE.mjs","names":[],"sources":["../../../../2-sql-family/1-core/contract/dist/contract-view.mjs"],"sourcesContent":["import { buildNamespacedEntities, buildSingleNamespaceView } from \"@internal/framework-components/ir\";\n//#region src/contract-view.ts\n/**\n* The SQL family's statically-named built-in entity kinds. `table` and\n* `valueSet` are promoted to top-level view accessors; pack-contributed kinds\n* (e.g. `policy`) stay under `.entries`.\n*/\nconst SQL_BUILTIN_KINDS = [\"table\", \"valueSet\"];\n/**\n* Builds the single-namespace SQL view: unwraps the sole namespace's SQL\n* built-in kinds (`table`, `valueSet`) to the root, attaches the namespace-keyed\n* `namespace` map, and layers both over the deserialized contract. Targets with\n* one default namespace (SQLite) call this directly; Postgres qualifies by\n* schema.\n*/\nfunction buildSqlSingleNamespaceView(contract) {\n\tconst rootAccessors = buildSingleNamespaceView(contract.storage, SQL_BUILTIN_KINDS);\n\tconst namespace = buildNamespacedEntities(contract.storage, SQL_BUILTIN_KINDS);\n\treturn {\n\t\t...contract,\n\t\t...rootAccessors,\n\t\tnamespace\n\t};\n}\n/**\n* Builds the schema-qualified SQL view: attaches the namespace-keyed `namespace`\n* map over the deserialized contract. Postgres uses this.\n*/\nfunction buildSqlSchemaQualifiedView(contract) {\n\tconst namespace = buildNamespacedEntities(contract.storage, SQL_BUILTIN_KINDS);\n\treturn {\n\t\t...contract,\n\t\tnamespace\n\t};\n}\n//#endregion\nexport { SQL_BUILTIN_KINDS, buildSqlSchemaQualifiedView, buildSqlSingleNamespaceView };\n\n//# sourceMappingURL=contract-view.mjs.map"],"mappings":";;;;;;;AAOA,MAAM,oBAAoB,CAAC,SAAS,UAAU;;;;;;;;AAQ9C,SAAS,4BAA4B,UAAU;CAC9C,MAAM,gBAAgB,yBAAyB,SAAS,SAAS,iBAAiB;CAClF,MAAM,YAAY,wBAAwB,SAAS,SAAS,iBAAiB;CAC7E,OAAO;EACN,GAAG;EACH,GAAG;EACH;CACD;AACD;;;;;AAKA,SAAS,4BAA4B,UAAU;CAC9C,MAAM,YAAY,wBAAwB,SAAS,SAAS,iBAAiB;CAC7E,OAAO;EACN,GAAG;EACH;CACD;AACD"}
@@ -1,7 +1,7 @@
1
- import { c as SqlStorage } from "./sql-storage-8LqxeLAY-DH4DdUXx.mjs";
1
+ import { l as SqlStorage } from "./sql-storage-DeCAh5Hi-CEM-m8cs.mjs";
2
2
  import { DefaultNamespaceEntries, NamespacedEntities, SingleNamespaceView } from "@prisma/orm-framework/components/ir";
3
3
  import { Contract } from "@prisma/orm-framework/contract/types";
4
- //#region ../../../2-sql/1-core/contract/dist/contract-view.d.mts
4
+ //#region ../../../2-sql-family/1-core/contract/dist/contract-view.d.mts
5
5
  //#region src/contract-view.d.ts
6
6
  /**
7
7
  * The SQL family's statically-named built-in entity kinds. `table` and
@@ -58,4 +58,4 @@ type SqlSchemaQualifiedView<TContract extends Contract<SqlStorage>> = TContract
58
58
  declare function buildSqlSchemaQualifiedView<TContract extends Contract<SqlStorage>>(contract: TContract): SqlSchemaQualifiedView<TContract>;
59
59
  //#endregion
60
60
  export { SqlSingleNamespaceView as a, SqlSingleNamespaceAccessors as i, SqlBuiltinKind as n, buildSqlSchemaQualifiedView as o, SqlSchemaQualifiedView as r, buildSqlSingleNamespaceView as s, SQL_BUILTIN_KINDS as t };
61
- //# sourceMappingURL=contract-view-CPHxoAEX.d.mts.map
61
+ //# sourceMappingURL=contract-view-DuB35or0.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"contract-view-DuB35or0.d.mts","names":[],"sources":["../../../../2-sql-family/1-core/contract/dist/contract-view.d.mts"],"mappings":";;;;;;;;;;cASc;KACT,yBAAyB;KACzB,WAAW,kBAAkB,SAAS,eAAe,wBAAwB;;;;;;;KAO7E,4BAA4B,kBAAkB,SAAS,eAAe,oBAAoB,WAAW,YAAY;;;;;;;;;;KAUjH,uBAAuB,kBAAkB,SAAS,eAAe,YAAY,4BAA4B;WACnG,WAAW,mBAAmB,sBAAsB;;;;;;;;;iBAS9C,4BAA4B,kBAAkB,SAAS,aAAa,UAAU,YAAY,uBAAuB;;;;;;;;;;;KAW7H,uBAAuB,kBAAkB,SAAS,eAAe;WAC3D,WAAW,mBAAmB,sBAAsB;;;;;;iBAM9C,4BAA4B,kBAAkB,SAAS,aAAa,UAAU,YAAY,uBAAuB"}
@@ -1,28 +1,30 @@
1
- import { t as SqlNode } from "./sql-node-kEz6YFZo-v2F7delx.mjs";
2
- import { n as CheckConstraintInput, t as CheckConstraint } from "./check-constraint-B7qGu6rc-HvQjjX82.mjs";
3
- import { a as ReferentialAction, i as ForeignKeyReferenceInput, n as ForeignKeyInput, r as ForeignKeyReference, t as ForeignKey } from "./foreign-key-C-iTPuRT-C9ip8zFx.mjs";
4
- import { i as UniqueConstraintInput, n as PrimaryKeyInput, r as UniqueConstraint, t as PrimaryKey } from "./unique-constraint-M5TlQnJQ-BiIHJ85k.mjs";
5
- import { r as IndexInput, t as Index } from "./sql-index-ByAAE7K8-DKj2V86p.mjs";
6
- import { i as StorageTableInput, n as StorageColumnInput, r as StorageTable, t as StorageColumn } from "./storage-table-DSeWszOL-CI-cItEK.mjs";
7
- import { n as StorageValueSetInput, r as isStorageValueSet, t as StorageValueSet } from "./storage-value-set-BGlj5Uus-CvZD--GG.mjs";
8
- import { a as SqlNamespaceEntries, c as SqlStorage, d as StorageTypeInstance, f as StorageTypeInstanceInput, g as toStorageTypeInstance, h as isStorageTypeInstance, i as SqlNamespaceBase, l as SqlStorageInput, m as isSqlAuthoringContributions, n as SqlAuthoringContributions, o as SqlNamespaceFactory, p as isMaterializedSqlNamespace, r as SqlNamespace, s as SqlNamespaceInput, t as CODEC_INSTANCE_KIND, u as SqlStorageTypeEntry } from "./sql-storage-8LqxeLAY-DH4DdUXx.mjs";
9
- import { i as indexInputFromSerialized, n as SerializedIndex, r as checkConstraintInputFromSerialized, t as SerializedCheckConstraint } from "./serialized-index-CrgG8ct1-DG3JpHc7.mjs";
10
- import { A as SqlModelStorage, C as QueryOperationSelfSpec, D as ResolveCodecTypes, E as QueryOperationTypesOf, F as TypeMapsPhantomKey, I as applyFkDefaults, M as StorageColumnInputTypesOf, N as StorageColumnTypesOf, O as SqlControlDriverInstance, P as TypeMaps, S as QueryOperationReturn, T as QueryOperationTypesBase, _ as FieldInputTypesOf, a as CodecTypesOf, b as NamespacedFieldTypeMap, c as DEFAULT_FK_INDEX, d as ExtractFieldInputTypes, f as ExtractFieldOutputTypes, g as ExtractTypeMapsFromContract, h as ExtractStorageColumnTypes, i as AggregateTypesOf, j as SqlQueryOperationTypes, k as SqlModelFieldStorage, l as ExtractAggregateTypes, m as ExtractStorageColumnInputTypes, n as AggregateResultType, o as ContractWithTypeMaps, p as ExtractQueryOperationTypes, r as AggregateTypesBase, s as DEFAULT_FK_CONSTRAINT, t as AggregateOperationTypes, u as ExtractCodecTypes, v as FieldOutputTypesOf, w as QueryOperationTypeEntry, x as NamespacedStorageColumnTypeMap, y as ForeignKeyOptions } from "./types-BDUG29Df-LE85dIXP.mjs";
11
- import { n as StorageColumnTypeAcrossNamespaces, t as StorageColumnMapAt } from "./types-UcHa2cTe.mjs";
12
- import { a as ResolvedPackEntityHandle, c as providesEntityHandleLowering, i as ResolvedEntityHandleRef, n as LoweredPackEntity, o as ResolvedPslModelRefs, r as PackEntityHandle, s as SqlEntityHandleLoweringContribution, t as EntityHandleLoweringInput } from "./entity-handle-lowering-hook-CIvRKBfa.mjs";
13
- import { i as lowerAuthoredIndex, n as AuthoredIndexMethod, r as exactNameBodyWarning, t as AuthoredIndexInput } from "./index-naming-Ct65z5Xk.mjs";
14
- import { a as IndexTypeRegistry, i as IndexTypeRegistration, n as IndexTypeEntry, o as createIndexTypeRegistry, r as IndexTypeMap, s as defineIndexTypes, t as IndexTypeBuilder } from "./index-types-DPVhsW0v-D-BikM4h.mjs";
15
- import "./index-types-CNhHgKHi.mjs";
16
- import { n as lowerAuthoredCheck, t as AuthoredCheckInput } from "./authored-check-naming-BWBe-PVE.mjs";
17
- import { t as sqlContractCanonicalizationHooks } from "./canonicalization-hooks-CYnW_sGn.mjs";
18
- import { a as SqlSingleNamespaceView, i as SqlSingleNamespaceAccessors, n as SqlBuiltinKind, o as buildSqlSchemaQualifiedView, r as SqlSchemaQualifiedView, s as buildSqlSingleNamespaceView, t as SQL_BUILTIN_KINDS } from "./contract-view-CPHxoAEX.mjs";
19
- import { n as tableEntityKind, r as valueSetEntityKind, t as composeSqlEntityKinds } from "./entity-kinds-B5cUFU22.mjs";
20
- import { a as pk, i as model, n as fk, o as table, r as index, s as unique, t as col } from "./factories-P3qBQhO-.mjs";
21
- import { a as isBackedByColumnKeys, i as backingIndexColumnKeys, n as ForeignKeyAuthoringInput, o as materializeForeignKeysAndIndexes, r as MaterializedTableConstraints, t as BackingIndexCandidates } from "./foreign-key-materialization-CkvOzJWy.mjs";
22
- import { t as validateIndexTypes } from "./index-type-validation-CZ5L2lli.mjs";
23
- import { t as StorageTypeMetadata } from "./pack-types-BcLTpwbv.mjs";
24
- import { t as REFERENTIAL_ACTION_SQL } from "./referential-action-sql-DJ9ps6-S.mjs";
25
- import { n as resolveStorageTable, t as ResolvedStorageTable } from "./resolve-storage-table-Nyrgk4h8.mjs";
26
- import { S as validateStorageSemantics, _ as validateModel, a as ContractEnumSchema, b as validateSqlStorageConsistency, c as ForeignKeySourceSchema, d as StorageTableSchema, f as StorageValueSetSchema, g as createSqlStorageSchema, h as createSqlContractSchema, i as ColumnDefaultSchema, l as IndexSchema, m as createNamespaceEntrySchema, n as ColumnDefaultFunctionSchema, o as ForeignKeyReferenceSchema, p as ValidateSqlContractFullyOptions, r as ColumnDefaultLiteralSchema, s as ForeignKeySchema, t as CheckConstraintSchema, u as ReferentialActionSchema, v as validateModelStorageReferences, x as validateStorage, y as validateSqlContractFully } from "./validators-Belo8QqM.mjs";
27
- import { n as deriveValueSetFromEntity, r as providesValueSetDerivation, t as SqlValueSetDerivingEntityTypeOutput } from "./value-set-derivation-hook-BhgGVtw0.mjs";
28
- export { type AggregateOperationTypes, type AggregateResultType, type AggregateTypesBase, type AggregateTypesOf, type AuthoredCheckInput, type AuthoredIndexInput, type AuthoredIndexMethod, type BackingIndexCandidates, CODEC_INSTANCE_KIND, CheckConstraint, type CheckConstraintInput, CheckConstraintSchema, type CodecTypesOf, ColumnDefaultFunctionSchema, ColumnDefaultLiteralSchema, ColumnDefaultSchema, ContractEnumSchema, type ContractWithTypeMaps, DEFAULT_FK_CONSTRAINT, DEFAULT_FK_INDEX, type EntityHandleLoweringInput, type ExtractAggregateTypes, type ExtractCodecTypes, type ExtractFieldInputTypes, type ExtractFieldOutputTypes, type ExtractQueryOperationTypes, type ExtractStorageColumnInputTypes, type ExtractStorageColumnTypes, type ExtractTypeMapsFromContract, type FieldInputTypesOf, type FieldOutputTypesOf, ForeignKey, type ForeignKeyAuthoringInput, type ForeignKeyInput, type ForeignKeyOptions, ForeignKeyReference, type ForeignKeyReferenceInput, ForeignKeyReferenceSchema, ForeignKeySchema, ForeignKeySourceSchema, Index, type IndexInput, IndexSchema, type IndexTypeBuilder, type IndexTypeEntry, type IndexTypeMap, type IndexTypeRegistration, type IndexTypeRegistry, type LoweredPackEntity, type MaterializedTableConstraints, type NamespacedFieldTypeMap, type NamespacedStorageColumnTypeMap, type PackEntityHandle, PrimaryKey, type PrimaryKeyInput, type QueryOperationReturn, type QueryOperationSelfSpec, type QueryOperationTypeEntry, type QueryOperationTypesBase, type QueryOperationTypesOf, REFERENTIAL_ACTION_SQL, type ReferentialAction, ReferentialActionSchema, type ResolveCodecTypes, type ResolvedEntityHandleRef, type ResolvedPackEntityHandle, type ResolvedPslModelRefs, type ResolvedStorageTable, SQL_BUILTIN_KINDS, type SerializedCheckConstraint, type SerializedIndex, type SqlAuthoringContributions, type SqlBuiltinKind, type SqlControlDriverInstance, type SqlEntityHandleLoweringContribution, type SqlModelFieldStorage, type SqlModelStorage, type SqlNamespace, SqlNamespaceBase, type SqlNamespaceEntries, type SqlNamespaceFactory, type SqlNamespaceInput, SqlNode, type SqlQueryOperationTypes, type SqlSchemaQualifiedView, type SqlSingleNamespaceAccessors, type SqlSingleNamespaceView, SqlStorage, type SqlStorageInput, type SqlStorageTypeEntry, type SqlValueSetDerivingEntityTypeOutput, StorageColumn, type StorageColumnInput, type StorageColumnInputTypesOf, type StorageColumnMapAt, type StorageColumnTypeAcrossNamespaces, type StorageColumnTypesOf, StorageTable, type StorageTableInput, StorageTableSchema, type StorageTypeInstance, type StorageTypeInstanceInput, type StorageTypeMetadata, StorageValueSet, type StorageValueSetInput, StorageValueSetSchema, type TypeMaps, type TypeMapsPhantomKey, UniqueConstraint, type UniqueConstraintInput, ValidateSqlContractFullyOptions, applyFkDefaults, backingIndexColumnKeys, buildSqlSchemaQualifiedView, buildSqlSingleNamespaceView, checkConstraintInputFromSerialized, col, composeSqlEntityKinds, createIndexTypeRegistry, createNamespaceEntrySchema, createSqlContractSchema, createSqlStorageSchema, defineIndexTypes, deriveValueSetFromEntity, exactNameBodyWarning, fk, index, indexInputFromSerialized, isBackedByColumnKeys, isMaterializedSqlNamespace, isSqlAuthoringContributions, isStorageTypeInstance, isStorageValueSet, lowerAuthoredCheck, lowerAuthoredIndex, materializeForeignKeysAndIndexes, model, pk, providesEntityHandleLowering, providesValueSetDerivation, resolveStorageTable, sqlContractCanonicalizationHooks, table, tableEntityKind, toStorageTypeInstance, unique, validateIndexTypes, validateModel, validateModelStorageReferences, validateSqlContractFully, validateSqlStorageConsistency, validateStorage, validateStorageSemantics, valueSetEntityKind };
1
+ import { t as SqlNode } from "./sql-node-kEz6YFZo-1ogT6Cxt.mjs";
2
+ import { n as CheckConstraintInput, t as CheckConstraint } from "./check-constraint-B7qGu6rc-Bk2ezWXu.mjs";
3
+ import { a as ForeignKeyReferenceInput, i as ForeignKeyReference, n as ForeignKeyIndex, o as ReferentialAction, r as ForeignKeyInput, t as ForeignKey } from "./foreign-key-qkDFfG8t-TaK_GYWR.mjs";
4
+ import { i as UniqueConstraintInput, n as PrimaryKeyInput, r as UniqueConstraint, t as PrimaryKey } from "./unique-constraint-M5TlQnJQ-qX-maNUV.mjs";
5
+ import { r as IndexInput, t as Index } from "./sql-index-ByAAE7K8-Dqtn_vUL.mjs";
6
+ import { i as StorageTableInput, n as StorageColumnInput, r as StorageTable, t as StorageColumn } from "./storage-table-Bf1ZjnxO-pUj6pyP0.mjs";
7
+ import { n as StorageValueSetInput, r as isStorageValueSet, t as StorageValueSet } from "./storage-value-set-BGlj5Uus-ny2k-0PA.mjs";
8
+ import { _ as nonEmptyTypeParams, a as SqlNamespaceBase, c as SqlNamespaceInput, d as SqlStorageTypeEntry, f as StorageTypeInstance, g as isStorageTypeInstance, h as isSqlAuthoringContributions, i as SqlNamespace, l as SqlStorage, m as isMaterializedSqlNamespace, n as CODEC_INSTANCE_KIND, o as SqlNamespaceEntries, p as StorageTypeInstanceInput, r as SqlAuthoringContributions, s as SqlNamespaceFactory, t as AuthoredStorageTypeInstance, u as SqlStorageInput, v as toStorageTypeInstance } from "./sql-storage-DeCAh5Hi-CEM-m8cs.mjs";
9
+ import { i as indexInputFromSerialized, n as SerializedIndex, r as checkConstraintInputFromSerialized, t as SerializedCheckConstraint } from "./serialized-index-CrgG8ct1-DKVJ7TDX.mjs";
10
+ import { A as ResolveCodecTypes, C as NamespacedStorageColumnTypeMap, D as QueryOperationTypesBase, E as QueryOperationTypeEntry, F as StorageColumnInputTypesOf, I as StorageColumnTypesOf, L as TypeMaps, M as SqlModelFieldStorage, N as SqlModelStorage, O as QueryOperationTypesFunction, P as SqlQueryOperationTypes, R as TypeMapsPhantomKey, S as NamespacedFieldTypeMap, T as QueryOperationSelfSpec, _ as ExtractStorageColumnTypes, a as AggregateTypesOf, b as FieldOutputTypesOf, c as ContractWithTypeMaps, d as ExtractAggregateTypes, f as ExtractCodecTypes, g as ExtractStorageColumnInputTypes, h as ExtractQueryOperationTypes, i as AggregateTypesFromDescriptors, j as SqlControlDriverInstance, k as QueryOperationTypesOf, l as DEFAULT_FK_CONSTRAINT, m as ExtractFieldOutputTypes, n as AggregateResultType, o as ApplyQueryOperationTypes, p as ExtractFieldInputTypes, r as AggregateTypesBase, s as CodecTypesOf, t as AggregateOperationTypes, u as DEFAULT_FK_INDEX, v as ExtractTypeMapsFromContract, w as QueryOperationReturn, x as ForeignKeyOptions, y as FieldInputTypesOf, z as applyFkDefaults } from "./types-DfKvtJwS-CrpWTGBJ.mjs";
11
+ import { a as RelationNamesOf, c as ShapeSpec, i as RelationKeys, l as StorageColumnMapAt, n as HasExecutionCreateDefault, o as Scalars, r as IsOptionalCreateColumn, s as Shape, t as ColumnTypesFromStorage, u as StorageColumnTypeAcrossNamespaces } from "./types-CkAd8SWm.mjs";
12
+ import { a as ResolvedPackEntityHandle, c as SqlPslEntityPlacementOutput, i as ResolvedEntityHandleRef, l as providesEntityHandleLowering, n as LoweredPackEntity, o as ResolvedPslModelRefs, r as PackEntityHandle, s as SqlEntityHandleLoweringContribution, t as EntityHandleLoweringInput, u as providesPslEntityPlacement } from "./entity-handle-lowering-hook-BuvLtgFi.mjs";
13
+ import { a as assertNothingCastsFromSqlExpression, c as readSqlExpression, d as sqlExpressionAuthoringEntry, f as sqlExpressionDataType, g as storedSqlText, h as sqlTextsReadBack, i as SqlExpressionRegistration, l as requireSqlExpression, m as sqlTextFromStored, n as SQL_EXPRESSION_TAG, o as isSqlExpression, p as sqlExpressionRegistration, r as SqlExpression, s as printSqlExpressionLiteral, t as SQL_EXPRESSION_DATA_TYPE_ID, u as sql } from "./sql-expression-B4BrhGPi.mjs";
14
+ import { a as IndexTypeRegistry, c as defineIndexTypes, i as IndexTypeRegistration, l as indexTypeRegistryOf, n as IndexTypeEntry, o as accessMethodOf, r as IndexTypeMap, s as createIndexTypeRegistry, t as IndexTypeBuilder, u as rendersIndexBody } from "./index-types-H1O43iYT-BD0VwPqV.mjs";
15
+ import "./index-types-snhtt_Fo.mjs";
16
+ import { a as lowerAuthoredIndex, i as isAuthoredIndexInput, n as AuthoredIndexMethod, r as exactNameBodyWarning, t as AuthoredIndexInput } from "./index-naming-Cs6wwia3.mjs";
17
+ import { n as lowerAuthoredCheck, t as AuthoredCheckInput } from "./authored-check-naming-D-o196ry.mjs";
18
+ import { t as sqlContractCanonicalizationHooks } from "./canonicalization-hooks-DyapQ0my.mjs";
19
+ import { a as SqlSingleNamespaceView, i as SqlSingleNamespaceAccessors, n as SqlBuiltinKind, o as buildSqlSchemaQualifiedView, r as SqlSchemaQualifiedView, s as buildSqlSingleNamespaceView, t as SQL_BUILTIN_KINDS } from "./contract-view-DuB35or0.mjs";
20
+ import { A as unquotedSqlBaseNameOfCodec, C as sqlDataType, D as sqlStorageTypeId, E as sqlStorageType, O as sqlStorageTypeOfCodec, S as sqlColumnLength, T as sqlRawDataType, _ as resolveReportedSqlType, a as SqlDataTypeCollision, b as sqlBaseName, c as SqlRawTypeParams, d as checkRawTypeText, f as findSqlDataTypeCollision, g as renderSqlTypeName, h as renderSqlCatalogText, i as SqlDataType, j as validateSqlTypeParams, k as unquotedSqlBaseName, l as SqlTypeParams, m as nameIsCatalogText, n as SQL_RAW_DATA_TYPE_ID, o as SqlDataTypeFacts, p as isSqlDataType, r as SqlColumnTypeFields, s as SqlDataTypeSpec, t as ResolvedSqlType, u as SqlTypeText, v as resolveWrittenSqlTypes, w as sqlDataTypeOfCodec, x as sqlCodecColumnLength, y as sameSqlColumnType } from "./data-type-DJIvKQHf.mjs";
21
+ import { t as escapePslString } from "./data-type-support-CXpA0ex-.mjs";
22
+ import { n as tableEntityKind, r as valueSetEntityKind, t as composeSqlEntityKinds } from "./entity-kinds-BPG2xCZV.mjs";
23
+ import { a as pk, i as model, n as fk, o as table, r as index, s as unique, t as col } from "./factories-DbNP9qfs.mjs";
24
+ import { a as declaredBackingObjectName, c as derivedBackingIndexIsRedundant, i as MaterializedTableConstraints, l as leadingBackingObjectName, n as ForeignKeyAuthoringInput, o as declaredIndexesServeForeignKey, r as IndexCandidate, s as defaultForeignKeyIndex, t as FOREIGN_KEY_INDEX_UNRESOLVED, u as materializeForeignKeysAndIndexes } from "./foreign-key-materialization-48P2V8on.mjs";
25
+ import { n as validateIndexTypes, t as CodecTraitsLookup } from "./index-type-validation-fGGwAHWc.mjs";
26
+ import { t as REFERENTIAL_ACTION_SQL } from "./referential-action-sql-B2vKoUK6.mjs";
27
+ import { n as resolveStorageTable, t as ResolvedStorageTable } from "./resolve-storage-table-DCqtmnSU.mjs";
28
+ import { C as validateModelStorageReferences, D as validateStorage, E as validateSqlStorageConsistency, O as validateStorageSemantics, S as validateModel, T as validateSqlContractFully, _ as createSqlContractSchema, a as ContractEnumSchema, b as resolveSqlToOneRelationStorage, c as ForeignKeySourceSchema, d as SqlToOneRelationStorage, f as StorageTableSchema, g as createNamespaceEntrySchema, h as checkSqlDefaultText, i as ColumnDefaultSchema, k as valueObjectStorageTypeMissingMessage, l as IndexSchema, m as ValidateSqlContractFullyOptions, n as ColumnDefaultFunctionSchema, o as ForeignKeyReferenceSchema, p as StorageValueSetSchema, r as ColumnDefaultLiteralSchema, s as ForeignKeySchema, t as CheckConstraintSchema, u as ReferentialActionSchema, v as createSqlStorageSchema, w as validateRelationJoinFields, x as validateExecutionDefaultsTargetMappedColumns, y as reservedSqlDefaultText } from "./validators-FJs8HvFr.mjs";
29
+ import { n as deriveValueSetFromEntity, r as providesValueSetDerivation, t as SqlValueSetDerivingEntityTypeOutput } from "./value-set-derivation-hook-3E437jPU.mjs";
30
+ export { type AggregateOperationTypes, type AggregateResultType, type AggregateTypesBase, type AggregateTypesFromDescriptors, type AggregateTypesOf, type ApplyQueryOperationTypes, type AuthoredCheckInput, type AuthoredIndexInput, type AuthoredIndexMethod, type AuthoredStorageTypeInstance, CODEC_INSTANCE_KIND, CheckConstraint, type CheckConstraintInput, CheckConstraintSchema, CodecTraitsLookup, type CodecTypesOf, ColumnDefaultFunctionSchema, ColumnDefaultLiteralSchema, ColumnDefaultSchema, type ColumnTypesFromStorage, ContractEnumSchema, type ContractWithTypeMaps, DEFAULT_FK_CONSTRAINT, DEFAULT_FK_INDEX, type EntityHandleLoweringInput, type ExtractAggregateTypes, type ExtractCodecTypes, type ExtractFieldInputTypes, type ExtractFieldOutputTypes, type ExtractQueryOperationTypes, type ExtractStorageColumnInputTypes, type ExtractStorageColumnTypes, type ExtractTypeMapsFromContract, FOREIGN_KEY_INDEX_UNRESOLVED, type FieldInputTypesOf, type FieldOutputTypesOf, ForeignKey, type ForeignKeyAuthoringInput, type ForeignKeyIndex, type ForeignKeyInput, type ForeignKeyOptions, ForeignKeyReference, type ForeignKeyReferenceInput, ForeignKeyReferenceSchema, ForeignKeySchema, ForeignKeySourceSchema, type HasExecutionCreateDefault, Index, type IndexCandidate, type IndexInput, IndexSchema, type IndexTypeBuilder, type IndexTypeEntry, type IndexTypeMap, type IndexTypeRegistration, type IndexTypeRegistry, type IsOptionalCreateColumn, type LoweredPackEntity, type MaterializedTableConstraints, type NamespacedFieldTypeMap, type NamespacedStorageColumnTypeMap, type PackEntityHandle, PrimaryKey, type PrimaryKeyInput, type QueryOperationReturn, type QueryOperationSelfSpec, type QueryOperationTypeEntry, type QueryOperationTypesBase, type QueryOperationTypesFunction, type QueryOperationTypesOf, REFERENTIAL_ACTION_SQL, type ReferentialAction, ReferentialActionSchema, RelationKeys, type RelationNamesOf, type ResolveCodecTypes, type ResolvedEntityHandleRef, type ResolvedPackEntityHandle, type ResolvedPslModelRefs, type ResolvedSqlType, type ResolvedStorageTable, SQL_BUILTIN_KINDS, SQL_EXPRESSION_DATA_TYPE_ID, SQL_EXPRESSION_TAG, SQL_RAW_DATA_TYPE_ID, type Scalars, type SerializedCheckConstraint, type SerializedIndex, type Shape, type ShapeSpec, type SqlAuthoringContributions, type SqlBuiltinKind, type SqlColumnTypeFields, type SqlControlDriverInstance, type SqlDataType, type SqlDataTypeCollision, type SqlDataTypeFacts, type SqlDataTypeSpec, type SqlEntityHandleLoweringContribution, SqlExpression, SqlExpressionRegistration, type SqlModelFieldStorage, type SqlModelStorage, type SqlNamespace, SqlNamespaceBase, type SqlNamespaceEntries, type SqlNamespaceFactory, type SqlNamespaceInput, SqlNode, type SqlPslEntityPlacementOutput, type SqlQueryOperationTypes, type SqlRawTypeParams, type SqlSchemaQualifiedView, type SqlSingleNamespaceAccessors, type SqlSingleNamespaceView, SqlStorage, type SqlStorageInput, type SqlStorageTypeEntry, type SqlToOneRelationStorage, type SqlTypeParams, type SqlTypeText, type SqlValueSetDerivingEntityTypeOutput, StorageColumn, type StorageColumnInput, type StorageColumnInputTypesOf, type StorageColumnMapAt, type StorageColumnTypeAcrossNamespaces, type StorageColumnTypesOf, StorageTable, type StorageTableInput, StorageTableSchema, type StorageTypeInstance, type StorageTypeInstanceInput, StorageValueSet, type StorageValueSetInput, StorageValueSetSchema, type TypeMaps, type TypeMapsPhantomKey, UniqueConstraint, type UniqueConstraintInput, ValidateSqlContractFullyOptions, accessMethodOf, applyFkDefaults, assertNothingCastsFromSqlExpression, buildSqlSchemaQualifiedView, buildSqlSingleNamespaceView, checkConstraintInputFromSerialized, checkRawTypeText, checkSqlDefaultText, col, composeSqlEntityKinds, createIndexTypeRegistry, createNamespaceEntrySchema, createSqlContractSchema, createSqlStorageSchema, declaredBackingObjectName, declaredIndexesServeForeignKey, defaultForeignKeyIndex, defineIndexTypes, deriveValueSetFromEntity, derivedBackingIndexIsRedundant, escapePslString, exactNameBodyWarning, findSqlDataTypeCollision, fk, index, indexInputFromSerialized, indexTypeRegistryOf, isAuthoredIndexInput, isMaterializedSqlNamespace, isSqlAuthoringContributions, isSqlDataType, isSqlExpression, isStorageTypeInstance, isStorageValueSet, leadingBackingObjectName, lowerAuthoredCheck, lowerAuthoredIndex, materializeForeignKeysAndIndexes, model, nameIsCatalogText, nonEmptyTypeParams, pk, printSqlExpressionLiteral, providesEntityHandleLowering, providesPslEntityPlacement, providesValueSetDerivation, readSqlExpression, renderSqlCatalogText, renderSqlTypeName, rendersIndexBody, requireSqlExpression, reservedSqlDefaultText, resolveReportedSqlType, resolveSqlToOneRelationStorage, resolveStorageTable, resolveWrittenSqlTypes, sameSqlColumnType, sql, sqlBaseName, sqlCodecColumnLength, sqlColumnLength, sqlContractCanonicalizationHooks, sqlDataType, sqlDataTypeOfCodec, sqlExpressionAuthoringEntry, sqlExpressionDataType, sqlExpressionRegistration, sqlRawDataType, sqlStorageType, sqlStorageTypeId, sqlStorageTypeOfCodec, sqlTextFromStored, sqlTextsReadBack, storedSqlText, table, tableEntityKind, toStorageTypeInstance, unique, unquotedSqlBaseName, unquotedSqlBaseNameOfCodec, validateExecutionDefaultsTargetMappedColumns, validateIndexTypes, validateModel, validateModelStorageReferences, validateRelationJoinFields, validateSqlContractFully, validateSqlStorageConsistency, validateSqlTypeParams, validateStorage, validateStorageSemantics, valueObjectStorageTypeMissingMessage, valueSetEntityKind };
package/dist/contract.mjs CHANGED
@@ -1,18 +1,23 @@
1
- import { n as lowerAuthoredIndex, t as exactNameBodyWarning } from "./index-naming-DREt6js7-CRH27yUv.mjs";
2
- import { t as lowerAuthoredCheck } from "./authored-check-naming-Hf9990DV.mjs";
3
- import { t as sqlContractCanonicalizationHooks } from "./canonicalization-hooks-dmXkOR4a.mjs";
4
- import { n as buildSqlSchemaQualifiedView, r as buildSqlSingleNamespaceView, t as SQL_BUILTIN_KINDS } from "./contract-view-BMR5IWk4.mjs";
5
- import { t as providesEntityHandleLowering } from "./entity-handle-lowering-hook-DwLIKNiS.mjs";
6
- import { a as PrimaryKey, c as StorageTable, i as Index, l as UniqueConstraint, n as ForeignKey, o as SqlNode, r as ForeignKeyReference, s as StorageColumn, t as CheckConstraint } from "./storage-table-ZzbR-xzQ-BRoTQE_2.mjs";
7
- import { i as isStorageValueSet, n as checkConstraintInputFromSerialized, r as indexInputFromSerialized, t as StorageValueSet } from "./serialized-index-nBTwanKy-_ddEK4tk.mjs";
8
- import { a as ForeignKeyReferenceSchema, c as IndexSchema, d as StorageValueSetSchema, f as composeSqlEntityKinds, i as ColumnDefaultSchema, l as ReferentialActionSchema, m as valueSetEntityKind, n as ColumnDefaultFunctionSchema, o as ForeignKeySchema, p as tableEntityKind, r as ColumnDefaultLiteralSchema, s as ForeignKeySourceSchema, t as CheckConstraintSchema, u as StorageTableSchema } from "./entity-kinds-D7vwoN_T-CCBwFJy0.mjs";
9
- import { a as pk, i as model, n as fk, o as table, r as index, s as unique, t as col } from "./factories-SVor5xIT.mjs";
10
- import { n as isBackedByColumnKeys, r as materializeForeignKeysAndIndexes, t as backingIndexColumnKeys } from "./foreign-key-materialization-Cu7-7LHl.mjs";
11
- import { t as validateIndexTypes } from "./index-type-validation-COH4d78M.mjs";
12
- import { n as defineIndexTypes, t as createIndexTypeRegistry } from "./index-types-DJQ_xwaE.mjs";
13
- import { t as REFERENTIAL_ACTION_SQL } from "./referential-action-sql-DSqkrySN.mjs";
14
- import { t as resolveStorageTable } from "./resolve-storage-table-DZsfnzeW.mjs";
15
- import { a as SqlStorage, c as isSqlAuthoringContributions, i as SqlNamespaceBase, l as isStorageTypeInstance, n as DEFAULT_FK_CONSTRAINT, o as applyFkDefaults, r as DEFAULT_FK_INDEX, s as isMaterializedSqlNamespace, t as CODEC_INSTANCE_KIND, u as toStorageTypeInstance } from "./types-CUsJrvEl.mjs";
16
- import { a as validateModel, c as validateSqlStorageConsistency, i as createSqlStorageSchema, l as validateStorage, n as createNamespaceEntrySchema, o as validateModelStorageReferences, r as createSqlContractSchema, s as validateSqlContractFully, t as ContractEnumSchema, u as validateStorageSemantics } from "./validators-CrWD6bSP.mjs";
17
- import { n as providesValueSetDerivation, t as deriveValueSetFromEntity } from "./value-set-derivation-hook-Di9JZ0X7.mjs";
18
- export { CODEC_INSTANCE_KIND, CheckConstraint, CheckConstraintSchema, ColumnDefaultFunctionSchema, ColumnDefaultLiteralSchema, ColumnDefaultSchema, ContractEnumSchema, DEFAULT_FK_CONSTRAINT, DEFAULT_FK_INDEX, ForeignKey, ForeignKeyReference, ForeignKeyReferenceSchema, ForeignKeySchema, ForeignKeySourceSchema, Index, IndexSchema, PrimaryKey, REFERENTIAL_ACTION_SQL, ReferentialActionSchema, SQL_BUILTIN_KINDS, SqlNamespaceBase, SqlNode, SqlStorage, StorageColumn, StorageTable, StorageTableSchema, StorageValueSet, StorageValueSetSchema, UniqueConstraint, applyFkDefaults, backingIndexColumnKeys, buildSqlSchemaQualifiedView, buildSqlSingleNamespaceView, checkConstraintInputFromSerialized, col, composeSqlEntityKinds, createIndexTypeRegistry, createNamespaceEntrySchema, createSqlContractSchema, createSqlStorageSchema, defineIndexTypes, deriveValueSetFromEntity, exactNameBodyWarning, fk, index, indexInputFromSerialized, isBackedByColumnKeys, isMaterializedSqlNamespace, isSqlAuthoringContributions, isStorageTypeInstance, isStorageValueSet, lowerAuthoredCheck, lowerAuthoredIndex, materializeForeignKeysAndIndexes, model, pk, providesEntityHandleLowering, providesValueSetDerivation, resolveStorageTable, sqlContractCanonicalizationHooks, table, tableEntityKind, toStorageTypeInstance, unique, validateIndexTypes, validateModel, validateModelStorageReferences, validateSqlContractFully, validateSqlStorageConsistency, validateStorage, validateStorageSemantics, valueSetEntityKind };
1
+ import { a as rendersIndexBody, i as indexTypeRegistryOf, n as createIndexTypeRegistry, r as defineIndexTypes, t as accessMethodOf } from "./index-types-pC_5vADQ-BOOBi14R.mjs";
2
+ import { n as isAuthoredIndexInput, r as lowerAuthoredIndex, t as exactNameBodyWarning } from "./index-naming-BOcJT1B3-mG8Fd6KN.mjs";
3
+ import { t as lowerAuthoredCheck } from "./authored-check-naming-BHGJhjqn.mjs";
4
+ import { t as sqlContractCanonicalizationHooks } from "./canonicalization-hooks-Ce1v_TDl.mjs";
5
+ import { n as buildSqlSchemaQualifiedView, r as buildSqlSingleNamespaceView, t as SQL_BUILTIN_KINDS } from "./contract-view-DqpzeYeE.mjs";
6
+ import { _ as unquotedSqlBaseName, a as renderSqlTypeName, c as sameSqlColumnType, d as sqlColumnLength, f as sqlDataType, g as sqlStorageTypeOfCodec, h as sqlStorageTypeId, i as renderSqlCatalogText, l as sqlBaseName, m as sqlStorageType, n as isSqlDataType, o as resolveReportedSqlType, p as sqlDataTypeOfCodec, r as nameIsCatalogText, s as resolveWrittenSqlTypes, t as findSqlDataTypeCollision, u as sqlCodecColumnLength, v as unquotedSqlBaseNameOfCodec, y as validateSqlTypeParams } from "./sql-data-type-D7M-YTTY-D2vRqDxn.mjs";
7
+ import { n as checkRawTypeText, r as sqlRawDataType, t as SQL_RAW_DATA_TYPE_ID } from "./data-type-BFSpaotu.mjs";
8
+ import { t as escapePslString } from "./data-type-support-BhSoPUFj.mjs";
9
+ import { n as providesPslEntityPlacement, t as providesEntityHandleLowering } from "./entity-handle-lowering-hook-BJZSlVVF.mjs";
10
+ import { a as PrimaryKey, c as StorageTable, i as Index, l as UniqueConstraint, n as ForeignKey, o as SqlNode, r as ForeignKeyReference, s as StorageColumn, t as CheckConstraint } from "./storage-table-DDvN83mw-DkbBFmK9.mjs";
11
+ import { i as isStorageValueSet, n as checkConstraintInputFromSerialized, r as indexInputFromSerialized, t as StorageValueSet } from "./serialized-index-DjCCnXB1-DMA7BtO2.mjs";
12
+ import { a as ForeignKeyReferenceSchema, c as IndexSchema, d as StorageValueSetSchema, f as composeSqlEntityKinds, i as ColumnDefaultSchema, l as ReferentialActionSchema, m as valueSetEntityKind, n as ColumnDefaultFunctionSchema, o as ForeignKeySchema, p as tableEntityKind, r as ColumnDefaultLiteralSchema, s as ForeignKeySourceSchema, t as CheckConstraintSchema, u as StorageTableSchema } from "./entity-kinds-JR5SAm5h-DOH6VUtL.mjs";
13
+ import { a as pk, i as model, n as fk, o as table, r as index, s as unique, t as col } from "./factories-Crobuxwn.mjs";
14
+ import { i as leadingBackingObjectName, t as derivedBackingIndexIsRedundant } from "./index-equivalence-DswCiq5l-CGsyPP9B.mjs";
15
+ import { a as materializeForeignKeysAndIndexes, i as defaultForeignKeyIndex, n as declaredBackingObjectName, r as declaredIndexesServeForeignKey, t as FOREIGN_KEY_INDEX_UNRESOLVED } from "./foreign-key-materialization-BM59w_Xg.mjs";
16
+ import { t as validateIndexTypes } from "./index-type-validation-DJEMmmw0.mjs";
17
+ import { t as REFERENTIAL_ACTION_SQL } from "./referential-action-sql-BLzCtTi8.mjs";
18
+ import { t as resolveStorageTable } from "./resolve-storage-table-BHLQsOza.mjs";
19
+ import { a as isSqlExpression, c as requireSqlExpression, d as sqlExpressionDataType, f as sqlExpressionRegistration, h as storedSqlText, i as assertNothingCastsFromSqlExpression, l as sql, m as sqlTextsReadBack, n as SQL_EXPRESSION_TAG, o as printSqlExpressionLiteral, p as sqlTextFromStored, r as SqlExpression, s as readSqlExpression, t as SQL_EXPRESSION_DATA_TYPE_ID, u as sqlExpressionAuthoringEntry } from "./sql-expression-CKgKznXS.mjs";
20
+ import { a as SqlNamespaceBase, c as isMaterializedSqlNamespace, d as nonEmptyTypeParams, f as toStorageTypeInstance, i as RelationKeys, l as isSqlAuthoringContributions, n as DEFAULT_FK_CONSTRAINT, o as SqlStorage, r as DEFAULT_FK_INDEX, s as applyFkDefaults, t as CODEC_INSTANCE_KIND, u as isStorageTypeInstance } from "./types-CTdSkl0s.mjs";
21
+ import { a as createSqlStorageSchema, c as validateExecutionDefaultsTargetMappedColumns, d as validateRelationJoinFields, f as validateSqlContractFully, g as valueObjectStorageTypeMissingMessage, h as validateStorageSemantics, i as createSqlContractSchema, l as validateModel, m as validateStorage, n as checkSqlDefaultText, o as reservedSqlDefaultText, p as validateSqlStorageConsistency, r as createNamespaceEntrySchema, s as resolveSqlToOneRelationStorage, t as ContractEnumSchema, u as validateModelStorageReferences } from "./validators-BwA7ttZM.mjs";
22
+ import { n as providesValueSetDerivation, t as deriveValueSetFromEntity } from "./value-set-derivation-hook-HVaxhALD.mjs";
23
+ export { CODEC_INSTANCE_KIND, CheckConstraint, CheckConstraintSchema, ColumnDefaultFunctionSchema, ColumnDefaultLiteralSchema, ColumnDefaultSchema, ContractEnumSchema, DEFAULT_FK_CONSTRAINT, DEFAULT_FK_INDEX, FOREIGN_KEY_INDEX_UNRESOLVED, ForeignKey, ForeignKeyReference, ForeignKeyReferenceSchema, ForeignKeySchema, ForeignKeySourceSchema, Index, IndexSchema, PrimaryKey, REFERENTIAL_ACTION_SQL, ReferentialActionSchema, RelationKeys, SQL_BUILTIN_KINDS, SQL_EXPRESSION_DATA_TYPE_ID, SQL_EXPRESSION_TAG, SQL_RAW_DATA_TYPE_ID, SqlExpression, SqlNamespaceBase, SqlNode, SqlStorage, StorageColumn, StorageTable, StorageTableSchema, StorageValueSet, StorageValueSetSchema, UniqueConstraint, accessMethodOf, applyFkDefaults, assertNothingCastsFromSqlExpression, buildSqlSchemaQualifiedView, buildSqlSingleNamespaceView, checkConstraintInputFromSerialized, checkRawTypeText, checkSqlDefaultText, col, composeSqlEntityKinds, createIndexTypeRegistry, createNamespaceEntrySchema, createSqlContractSchema, createSqlStorageSchema, declaredBackingObjectName, declaredIndexesServeForeignKey, defaultForeignKeyIndex, defineIndexTypes, deriveValueSetFromEntity, derivedBackingIndexIsRedundant, escapePslString, exactNameBodyWarning, findSqlDataTypeCollision, fk, index, indexInputFromSerialized, indexTypeRegistryOf, isAuthoredIndexInput, isMaterializedSqlNamespace, isSqlAuthoringContributions, isSqlDataType, isSqlExpression, isStorageTypeInstance, isStorageValueSet, leadingBackingObjectName, lowerAuthoredCheck, lowerAuthoredIndex, materializeForeignKeysAndIndexes, model, nameIsCatalogText, nonEmptyTypeParams, pk, printSqlExpressionLiteral, providesEntityHandleLowering, providesPslEntityPlacement, providesValueSetDerivation, readSqlExpression, renderSqlCatalogText, renderSqlTypeName, rendersIndexBody, requireSqlExpression, reservedSqlDefaultText, resolveReportedSqlType, resolveSqlToOneRelationStorage, resolveStorageTable, resolveWrittenSqlTypes, sameSqlColumnType, sql, sqlBaseName, sqlCodecColumnLength, sqlColumnLength, sqlContractCanonicalizationHooks, sqlDataType, sqlDataTypeOfCodec, sqlExpressionAuthoringEntry, sqlExpressionDataType, sqlExpressionRegistration, sqlRawDataType, sqlStorageType, sqlStorageTypeId, sqlStorageTypeOfCodec, sqlTextFromStored, sqlTextsReadBack, storedSqlText, table, tableEntityKind, toStorageTypeInstance, unique, unquotedSqlBaseName, unquotedSqlBaseNameOfCodec, validateExecutionDefaultsTargetMappedColumns, validateIndexTypes, validateModel, validateModelStorageReferences, validateRelationJoinFields, validateSqlContractFully, validateSqlStorageConsistency, validateSqlTypeParams, validateStorage, validateStorageSemantics, valueObjectStorageTypeMissingMessage, valueSetEntityKind };
@@ -1,2 +1,2 @@
1
- import { n as lowerAuthoredCheck, t as AuthoredCheckInput } from "./authored-check-naming-BWBe-PVE.mjs";
1
+ import { n as lowerAuthoredCheck, t as AuthoredCheckInput } from "./authored-check-naming-D-o196ry.mjs";
2
2
  export { type AuthoredCheckInput, lowerAuthoredCheck };
@@ -1,2 +1,2 @@
1
- import { t as lowerAuthoredCheck } from "./authored-check-naming-Hf9990DV.mjs";
1
+ import { t as lowerAuthoredCheck } from "./authored-check-naming-BHGJhjqn.mjs";
2
2
  export { lowerAuthoredCheck };
@@ -1,2 +1,2 @@
1
- import { t as sqlContractCanonicalizationHooks } from "./canonicalization-hooks-CYnW_sGn.mjs";
1
+ import { t as sqlContractCanonicalizationHooks } from "./canonicalization-hooks-DyapQ0my.mjs";
2
2
  export { sqlContractCanonicalizationHooks };
@@ -1,2 +1,2 @@
1
- import { t as sqlContractCanonicalizationHooks } from "./canonicalization-hooks-dmXkOR4a.mjs";
1
+ import { t as sqlContractCanonicalizationHooks } from "./canonicalization-hooks-Ce1v_TDl.mjs";
2
2
  export { sqlContractCanonicalizationHooks };
@@ -1,2 +1,2 @@
1
- import { a as SqlSingleNamespaceView, i as SqlSingleNamespaceAccessors, n as SqlBuiltinKind, o as buildSqlSchemaQualifiedView, r as SqlSchemaQualifiedView, s as buildSqlSingleNamespaceView, t as SQL_BUILTIN_KINDS } from "./contract-view-CPHxoAEX.mjs";
1
+ import { a as SqlSingleNamespaceView, i as SqlSingleNamespaceAccessors, n as SqlBuiltinKind, o as buildSqlSchemaQualifiedView, r as SqlSchemaQualifiedView, s as buildSqlSingleNamespaceView, t as SQL_BUILTIN_KINDS } from "./contract-view-DuB35or0.mjs";
2
2
  export { SQL_BUILTIN_KINDS, type SqlBuiltinKind, type SqlSchemaQualifiedView, type SqlSingleNamespaceAccessors, type SqlSingleNamespaceView, buildSqlSchemaQualifiedView, buildSqlSingleNamespaceView };
@@ -1,2 +1,2 @@
1
- import { n as buildSqlSchemaQualifiedView, r as buildSqlSingleNamespaceView, t as SQL_BUILTIN_KINDS } from "./contract-view-BMR5IWk4.mjs";
1
+ import { n as buildSqlSchemaQualifiedView, r as buildSqlSingleNamespaceView, t as SQL_BUILTIN_KINDS } from "./contract-view-DqpzeYeE.mjs";
2
2
  export { SQL_BUILTIN_KINDS, buildSqlSchemaQualifiedView, buildSqlSingleNamespaceView };
@@ -0,0 +1,2 @@
1
+ import { t as escapePslString } from "./data-type-support-CXpA0ex-.mjs";
2
+ export { escapePslString };
@@ -0,0 +1,2 @@
1
+ import { t as escapePslString } from "./data-type-support-BhSoPUFj.mjs";
2
+ export { escapePslString };
@@ -0,0 +1,2 @@
1
+ import { A as unquotedSqlBaseNameOfCodec, C as sqlDataType, D as sqlStorageTypeId, E as sqlStorageType, O as sqlStorageTypeOfCodec, S as sqlColumnLength, T as sqlRawDataType, _ as resolveReportedSqlType, a as SqlDataTypeCollision, b as sqlBaseName, c as SqlRawTypeParams, d as checkRawTypeText, f as findSqlDataTypeCollision, g as renderSqlTypeName, h as renderSqlCatalogText, i as SqlDataType, j as validateSqlTypeParams, k as unquotedSqlBaseName, l as SqlTypeParams, m as nameIsCatalogText, n as SQL_RAW_DATA_TYPE_ID, o as SqlDataTypeFacts, p as isSqlDataType, r as SqlColumnTypeFields, s as SqlDataTypeSpec, t as ResolvedSqlType, u as SqlTypeText, v as resolveWrittenSqlTypes, w as sqlDataTypeOfCodec, x as sqlCodecColumnLength, y as sameSqlColumnType } from "./data-type-DJIvKQHf.mjs";
2
+ export { type ResolvedSqlType, SQL_RAW_DATA_TYPE_ID, type SqlColumnTypeFields, type SqlDataType, type SqlDataTypeCollision, type SqlDataTypeFacts, type SqlDataTypeSpec, type SqlRawTypeParams, type SqlTypeParams, type SqlTypeText, checkRawTypeText, findSqlDataTypeCollision, isSqlDataType, nameIsCatalogText, renderSqlCatalogText, renderSqlTypeName, resolveReportedSqlType, resolveWrittenSqlTypes, sameSqlColumnType, sqlBaseName, sqlCodecColumnLength, sqlColumnLength, sqlDataType, sqlDataTypeOfCodec, sqlRawDataType, sqlStorageType, sqlStorageTypeId, sqlStorageTypeOfCodec, unquotedSqlBaseName, unquotedSqlBaseNameOfCodec, validateSqlTypeParams };