@prisma/orm-target-postgres 8.0.0-rc.19-dev.9 → 8.0.0-rc.19-dev.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (486) hide show
  1. package/dist/{adapter-CVkrJLWQ.d.mts → adapter-5qylEP__.d.mts} +7 -7
  2. package/dist/adapter-5qylEP__.d.mts.map +1 -0
  3. package/dist/{adapter-svGTIjA2-CtHa7kMs.mjs → adapter-svGTIjA2-1p-Iw8D2.mjs} +6 -6
  4. package/dist/adapter-svGTIjA2-1p-Iw8D2.mjs.map +1 -0
  5. package/dist/adapter.d.mts +10 -10
  6. package/dist/adapter.mjs +6 -6
  7. package/dist/adapter__adapter.d.mts +1 -1
  8. package/dist/adapter__adapter.mjs +2 -2
  9. package/dist/adapter__column-types.d.mts +1 -1
  10. package/dist/adapter__column-types.mjs +1 -1
  11. package/dist/adapter__control.d.mts +3 -3
  12. package/dist/adapter__control.mjs +5 -5
  13. package/dist/adapter__control.mjs.map +1 -1
  14. package/dist/adapter__runtime.d.mts +1 -1
  15. package/dist/adapter__runtime.mjs +5 -5
  16. package/dist/adapter__runtime.mjs.map +1 -1
  17. package/dist/adapter__sql-renderer.d.mts +1 -1
  18. package/dist/adapter__sql-renderer.mjs +1 -1
  19. package/dist/adapter__types.d.mts +4 -4
  20. package/dist/{aggregates-BjiTuckw.d.mts → aggregates-CEqqEg8k.d.mts} +2 -2
  21. package/dist/aggregates-CEqqEg8k.d.mts.map +1 -0
  22. package/dist/{aggregates-C7KEByGU.mjs → aggregates-Dw-lAutX.mjs} +3 -3
  23. package/dist/aggregates-Dw-lAutX.mjs.map +1 -0
  24. package/dist/{authoring-DWd5pnnV-g81c_ETF.d.mts → authoring-DWd5pnnV-BBX7P1wT.d.mts} +4 -4
  25. package/dist/authoring-DWd5pnnV-BBX7P1wT.d.mts.map +1 -0
  26. package/dist/{authoring-SbdvmVJh-CgZp23qA.mjs → authoring-SbdvmVJh-nQ7YliD_.mjs} +10 -10
  27. package/dist/authoring-SbdvmVJh-nQ7YliD_.mjs.map +1 -0
  28. package/dist/{autoincrement-widths-DonNJgfS-A-hWa3rO.mjs → autoincrement-widths-DonNJgfS-CCvZ4u1W.mjs} +3 -3
  29. package/dist/autoincrement-widths-DonNJgfS-CCvZ4u1W.mjs.map +1 -0
  30. package/dist/{canonicalize-B-xvDOdd-Cnht2N4h.d.mts → canonicalize-B-xvDOdd-G3yUeKj4.d.mts} +2 -2
  31. package/dist/canonicalize-B-xvDOdd-G3yUeKj4.d.mts.map +1 -0
  32. package/dist/{canonicalize-RdxoUHao-DK_M6HU-.mjs → canonicalize-RdxoUHao-FTTkizfe.mjs} +2 -2
  33. package/dist/canonicalize-RdxoUHao-FTTkizfe.mjs.map +1 -0
  34. package/dist/{check-expressions-7uCCP01t-WtUqfqkP.mjs → check-expressions-7uCCP01t-DtX2Vak9.mjs} +3 -3
  35. package/dist/check-expressions-7uCCP01t-DtX2Vak9.mjs.map +1 -0
  36. package/dist/{check-expressions-CtTzM58x-CsWFEeul.d.mts → check-expressions-CtTzM58x-LloO-5Vf.d.mts} +2 -2
  37. package/dist/check-expressions-CtTzM58x-LloO-5Vf.d.mts.map +1 -0
  38. package/dist/{codec-descriptor-DoR-cTFZ-DKTk9Oxm.mjs → codec-descriptor-DoR-cTFZ-BlG5Gj-X.mjs} +2 -2
  39. package/dist/codec-descriptor-DoR-cTFZ-BlG5Gj-X.mjs.map +1 -0
  40. package/dist/codec-descriptor-Fb3UoQGb.d.mts +1 -0
  41. package/dist/{codec-descriptor-d1ByNBEk-ClDTxfu9.d.mts → codec-descriptor-d1ByNBEk-DhrtS_5y.d.mts} +2 -2
  42. package/dist/codec-descriptor-d1ByNBEk-DhrtS_5y.d.mts.map +1 -0
  43. package/dist/{codec-ids-BMhEpFwv-BLIC4g3Y.mjs → codec-ids-BMhEpFwv-B8Zh0s_Q.mjs} +2 -2
  44. package/dist/codec-ids-BMhEpFwv-B8Zh0s_Q.mjs.map +1 -0
  45. package/dist/{codec-ids-C6II64Wy-CCU5G6CU.d.mts → codec-ids-C6II64Wy-CPYTqDTT.d.mts} +2 -2
  46. package/dist/codec-ids-C6II64Wy-CPYTqDTT.d.mts.map +1 -0
  47. package/dist/codec-ids-CcB5uBNf.d.mts +1 -0
  48. package/dist/{codec-registry-D7XslgPe-Gg6TMpPg.mjs → codec-registry-D7XslgPe-DTZnVB8W.mjs} +5 -5
  49. package/dist/codec-registry-D7XslgPe-DTZnVB8W.mjs.map +1 -0
  50. package/dist/{codec-type-map-Fj5xCgwT-DwIK_DR3.d.mts → codec-type-map-Fj5xCgwT-BeCXgfuR.d.mts} +4 -4
  51. package/dist/codec-type-map-Fj5xCgwT-BeCXgfuR.d.mts.map +1 -0
  52. package/dist/codec-types-BBACckHa.d.mts +2 -0
  53. package/dist/{codec-types-Ct_4iTVc-4VoGpl4J.d.mts → codec-types-Ct_4iTVc-3tFJcIBo.d.mts} +4 -4
  54. package/dist/codec-types-Ct_4iTVc-3tFJcIBo.d.mts.map +1 -0
  55. package/dist/{codecs-CADK7dCR-Cku8S_Im.d.mts → codecs-CADK7dCR-C8WToYQb.d.mts} +4 -4
  56. package/dist/codecs-CADK7dCR-C8WToYQb.d.mts.map +1 -0
  57. package/dist/{codecs-CRl9-i_r-CTWJYxL0.mjs → codecs-CRl9-i_r-Co-bgYl3.mjs} +7 -7
  58. package/dist/codecs-CRl9-i_r-Co-bgYl3.mjs.map +1 -0
  59. package/dist/{codecs-DEMQ3cMm.d.mts → codecs-CoEpEqjM.d.mts} +4 -4
  60. package/dist/codecs-CoEpEqjM.d.mts.map +1 -0
  61. package/dist/{column-types-CI9_dRcU.mjs → column-types-B4zsV-u3.mjs} +3 -3
  62. package/dist/column-types-B4zsV-u3.mjs.map +1 -0
  63. package/dist/{column-types-KP17SDia.d.mts → column-types-Bs2V0j8T.d.mts} +4 -4
  64. package/dist/column-types-Bs2V0j8T.d.mts.map +1 -0
  65. package/dist/{contract-contributions-Xz2FpyfI-CZW0_mEj.mjs → contract-contributions-Xz2FpyfI-CeQZqHKf.mjs} +16 -16
  66. package/dist/contract-contributions-Xz2FpyfI-CeQZqHKf.mjs.map +1 -0
  67. package/dist/{contract-free-DCPNGs2e.d.mts → contract-free-B6-wuc6M.d.mts} +4 -4
  68. package/dist/contract-free-B6-wuc6M.d.mts.map +1 -0
  69. package/dist/{contract-free-2xXXmS01.mjs → contract-free-o7olebm9.mjs} +5 -5
  70. package/dist/contract-free-o7olebm9.mjs.map +1 -0
  71. package/dist/{control-Cu-SPW3N.d.mts → control--HupSPoV.d.mts} +4 -4
  72. package/dist/control--HupSPoV.d.mts.map +1 -0
  73. package/dist/{control-BaUpALVp.d.mts → control-CQEjh4P7.d.mts} +2 -2
  74. package/dist/control-CQEjh4P7.d.mts.map +1 -0
  75. package/dist/{control-Dqf8WaSU.d.mts → control-D4cTcpcJ.d.mts} +7 -7
  76. package/dist/control-D4cTcpcJ.d.mts.map +1 -0
  77. package/dist/{control-C4-UbYOH.mjs → control-DZQwENIP.mjs} +3 -3
  78. package/dist/control-DZQwENIP.mjs.map +1 -0
  79. package/dist/{control-policy-DzFOPk9n-BmAgBCQb.mjs → control-policy-DtU5u9Dm-44r_OF94.mjs} +12 -12
  80. package/dist/control-policy-DtU5u9Dm-44r_OF94.mjs.map +1 -0
  81. package/dist/{data-transform-h9agBu_c-B5dsDs8G.mjs → data-transform-h9agBu_c-RlC5A7aY.mjs} +3 -3
  82. package/dist/data-transform-h9agBu_c-RlC5A7aY.mjs.map +1 -0
  83. package/dist/{data-transform-nGy9rz87-CEOXAj91.d.mts → data-transform-nGy9rz87-CE3DGlgn.d.mts} +3 -3
  84. package/dist/data-transform-nGy9rz87-CE3DGlgn.d.mts.map +1 -0
  85. package/dist/data-transform-nqkqNIb8.d.mts +1 -0
  86. package/dist/{data-type-entries-gQW3-KSb-uOS_mZiH.mjs → data-type-entries-gQW3-KSb-BIl8vgus.mjs} +3 -3
  87. package/dist/data-type-entries-gQW3-KSb-BIl8vgus.mjs.map +1 -0
  88. package/dist/{data-types-BbFUwMKs.d.mts → data-types--7V9yY1G.d.mts} +2 -2
  89. package/dist/data-types--7V9yY1G.d.mts.map +1 -0
  90. package/dist/{data-types-Chx0mjTP-Dy6isAwB.mjs → data-types-Chx0mjTP-DczU4S9b.mjs} +4 -4
  91. package/dist/data-types-Chx0mjTP-DczU4S9b.mjs.map +1 -0
  92. package/dist/{date-time-now-generators-CMkXVbMG-CYwplAuf.d.mts → date-time-now-generators-CMkXVbMG-C-GjhReE.d.mts} +2 -2
  93. package/dist/date-time-now-generators-CMkXVbMG-C-GjhReE.d.mts.map +1 -0
  94. package/dist/{ddl-B7Rqlz6D-BcwCMSB7.mjs → ddl-B7Rqlz6D-B7dRDgYb.mjs} +5 -5
  95. package/dist/ddl-B7Rqlz6D-B7dRDgYb.mjs.map +1 -0
  96. package/dist/ddl-B8nQZTWN.d.mts +1 -0
  97. package/dist/{default-constraint-names-CtcRXhV8-nz3ff6b8.mjs → default-constraint-names-Cz9Yoeim-sUzOGvIm.mjs} +3 -3
  98. package/dist/default-constraint-names-Cz9Yoeim-sUzOGvIm.mjs.map +1 -0
  99. package/dist/{default-normalizer-BqK6XxdC-BAgxt9FF.mjs → default-normalizer-BqK6XxdC-2OUb2ybG.mjs} +2 -2
  100. package/dist/default-normalizer-BqK6XxdC-2OUb2ybG.mjs.map +1 -0
  101. package/dist/{default-normalizer-P-u2VRBf.d.mts → default-normalizer-DO-cH75Q.d.mts} +2 -2
  102. package/dist/default-normalizer-DO-cH75Q.d.mts.map +1 -0
  103. package/dist/{descriptor-meta-BkD3nXF_-NNc0jaU9.mjs → descriptor-meta-BkD3nXF_-CZaNqC6r.mjs} +4 -4
  104. package/dist/descriptor-meta-BkD3nXF_-CZaNqC6r.mjs.map +1 -0
  105. package/dist/{descriptor-meta-DBH6aAIM-Cm1rNZaF.mjs → descriptor-meta-DBH6aAIM-C9xA44Ax.mjs} +12 -12
  106. package/dist/descriptor-meta-DBH6aAIM-C9xA44Ax.mjs.map +1 -0
  107. package/dist/{descriptor-meta-runtime-Dft1L7eE-CUaKX_mx.mjs → descriptor-meta-runtime-Dft1L7eE-D8vpOz_Z.mjs} +3 -3
  108. package/dist/descriptor-meta-runtime-Dft1L7eE-D8vpOz_Z.mjs.map +1 -0
  109. package/dist/{diff-database-schema-DPZdkysF.d.mts → diff-database-schema-BxzhZaVN.d.mts} +4 -4
  110. package/dist/diff-database-schema-BxzhZaVN.d.mts.map +1 -0
  111. package/dist/{diff-database-schema-B1NfYBTr-DPdFDCpE.mjs → diff-database-schema-DAEzWtzU-DoyVgKqh.mjs} +12 -12
  112. package/dist/diff-database-schema-DAEzWtzU-DoyVgKqh.mjs.map +1 -0
  113. package/dist/driver.d.mts +2 -2
  114. package/dist/driver.mjs +2 -2
  115. package/dist/driver__control.d.mts +1 -1
  116. package/dist/driver__control.mjs +1 -1
  117. package/dist/driver__runtime.d.mts +1 -1
  118. package/dist/driver__runtime.mjs +1 -1
  119. package/dist/{errors-BrhQYgdL-D_lIrddD.mjs → errors-BrhQYgdL-IvZHPjwL.mjs} +2 -2
  120. package/dist/errors-BrhQYgdL-IvZHPjwL.mjs.map +1 -0
  121. package/dist/{errors-BP-2V2_C.d.mts → errors-D3Mj-x0o.d.mts} +2 -2
  122. package/dist/errors-D3Mj-x0o.d.mts.map +1 -0
  123. package/dist/{full-text-8PmilGkW.mjs → full-text-BYg7EVX2.mjs} +4 -4
  124. package/dist/full-text-BYg7EVX2.mjs.map +1 -0
  125. package/dist/{full-text-r2wMygYZ.d.mts → full-text-SDbfxrE_.d.mts} +4 -4
  126. package/dist/full-text-SDbfxrE_.d.mts.map +1 -0
  127. package/dist/{full-text-collection-method-BFd2u2cs-DcN_Vf7f.d.mts → full-text-collection-method-BFd2u2cs-Ba3OiWM3.d.mts} +5 -5
  128. package/dist/full-text-collection-method-BFd2u2cs-Ba3OiWM3.d.mts.map +1 -0
  129. package/dist/{full-text-index-authoring-Ca6bWXyG.d.mts → full-text-index-authoring-CN1L9C1k.d.mts} +2 -2
  130. package/dist/full-text-index-authoring-CN1L9C1k.d.mts.map +1 -0
  131. package/dist/{full-text-index-definition-BPxQQBuC-BrpDsuJu.mjs → full-text-index-definition-BPxQQBuC-VLyQ1kEL.mjs} +3 -3
  132. package/dist/full-text-index-definition-BPxQQBuC-VLyQ1kEL.mjs.map +1 -0
  133. package/dist/{full-text-index-definition-D5iBWLss-FifKlctQ.d.mts → full-text-index-definition-D5iBWLss-BEpqiucV.d.mts} +2 -2
  134. package/dist/full-text-index-definition-D5iBWLss-BEpqiucV.d.mts.map +1 -0
  135. package/dist/{full-text-parsers-CFFxiOrp-BmiwdZ21.mjs → full-text-parsers-CFFxiOrp-CrZ7VI1m.mjs} +5 -5
  136. package/dist/full-text-parsers-CFFxiOrp-CrZ7VI1m.mjs.map +1 -0
  137. package/dist/{full-text-search-document-Doy5TF7c-DezgYsP-.mjs → full-text-search-document-Doy5TF7c-aMWM_1KB.mjs} +5 -5
  138. package/dist/full-text-search-document-Doy5TF7c-aMWM_1KB.mjs.map +1 -0
  139. package/dist/{index-types-BihjrAAq-ktkeKE97.mjs → index-types-BihjrAAq-C2VnfAyF.mjs} +3 -3
  140. package/dist/index-types-BihjrAAq-C2VnfAyF.mjs.map +1 -0
  141. package/dist/{indexes-BYf6nXVv-DznOOzlT.d.mts → indexes-BYf6nXVv-BXwLw7fO.d.mts} +5 -5
  142. package/dist/indexes-BYf6nXVv-BXwLw7fO.d.mts.map +1 -0
  143. package/dist/{infer-psl-contract-BSSHcuRi-DryV3wqN.mjs → infer-psl-contract-BSSHcuRi-ChdFSviw.mjs} +10 -10
  144. package/dist/infer-psl-contract-BSSHcuRi-ChdFSviw.mjs.map +1 -0
  145. package/dist/{issue-planner--zt__-Kk.d.mts → issue-planner-D-On52xP.d.mts} +5 -5
  146. package/dist/issue-planner-D-On52xP.d.mts.map +1 -0
  147. package/dist/{list-decoder-BcrLExnx-hTa7qY7a.d.mts → list-decoder-BcrLExnx-DlCwavhu.d.mts} +2 -2
  148. package/dist/list-decoder-BcrLExnx-DlCwavhu.d.mts.map +1 -0
  149. package/dist/{marker-lock-BGBqXaQ4.d.mts → marker-lock-BviIbusV.d.mts} +2 -2
  150. package/dist/marker-lock-BviIbusV.d.mts.map +1 -0
  151. package/dist/{marker-lock-DFc1Tfv5-QMJSzMIa.mjs → marker-lock-DFc1Tfv5-BkBKBRE3.mjs} +2 -2
  152. package/dist/marker-lock-DFc1Tfv5-BkBKBRE3.mjs.map +1 -0
  153. package/dist/{migration-CbOh59ZJ.mjs → migration-Be_iuIpn.mjs} +2 -2
  154. package/dist/migration-Be_iuIpn.mjs.map +1 -0
  155. package/dist/{migration-7VvUEoYO.d.mts → migration-D4lMmLVj.d.mts} +5 -5
  156. package/dist/migration-D4lMmLVj.d.mts.map +1 -0
  157. package/dist/{namespace-ids-xtp_ZY86-Cpp8PTxD.mjs → namespace-ids-xtp_ZY86-Cxc0dBbO.mjs} +2 -2
  158. package/dist/namespace-ids-xtp_ZY86-Cxc0dBbO.mjs.map +1 -0
  159. package/dist/{native-type-normalizer-DFE5L3YY.d.mts → native-type-normalizer-BaGa9eeb.d.mts} +2 -2
  160. package/dist/native-type-normalizer-BaGa9eeb.d.mts.map +1 -0
  161. package/dist/{native-type-normalizer-B7ZQZOCb.mjs → native-type-normalizer-Cn-RGt_E.mjs} +3 -3
  162. package/dist/native-type-normalizer-Cn-RGt_E.mjs.map +1 -0
  163. package/dist/{nodes-G8VTh4PM-D5t0nLdZ.mjs → nodes-G8VTh4PM-DNvIhHag.mjs} +2 -2
  164. package/dist/nodes-G8VTh4PM-DNvIhHag.mjs.map +1 -0
  165. package/dist/{nodes-s0Oe37jT-DY3kMSce.d.mts → nodes-s0Oe37jT-Cw3BU2gL.d.mts} +3 -3
  166. package/dist/nodes-s0Oe37jT-Cw3BU2gL.d.mts.map +1 -0
  167. package/dist/op-factory-call-CRaVUOb_.d.mts +1 -0
  168. package/dist/{op-factory-call-ClvHxHDs-CeVV_tro.mjs → op-factory-call-gGX-mZu--0QUG5xH4.mjs} +11 -11
  169. package/dist/op-factory-call-gGX-mZu--0QUG5xH4.mjs.map +1 -0
  170. package/dist/{op-factory-call-nLHvNx0O-CGQ3bNN5.d.mts → op-factory-call-nLHvNx0O-BTBhGbOF.d.mts} +9 -9
  171. package/dist/op-factory-call-nLHvNx0O-BTBhGbOF.d.mts.map +1 -0
  172. package/dist/{operation-types--Wa_cv45-jn5HQ8yt.d.mts → operation-types--Wa_cv45-RoRnL1Dn.d.mts} +5 -5
  173. package/dist/operation-types--Wa_cv45-RoRnL1Dn.d.mts.map +1 -0
  174. package/dist/operation-types-OXILTAOX.d.mts +1 -0
  175. package/dist/{pack-BLeBhGWE.d.mts → pack-HNfA3R_n.d.mts} +10 -10
  176. package/dist/pack-HNfA3R_n.d.mts.map +1 -0
  177. package/dist/{planner-CNG8pGm7.d.mts → planner-AD3Dt57t.d.mts} +5 -5
  178. package/dist/planner-AD3Dt57t.d.mts.map +1 -0
  179. package/dist/{planner-CvVTpZSI-Dkpd9l81.mjs → planner-VuR6URu3-CCUT2Osx.mjs} +14 -14
  180. package/dist/planner-VuR6URu3-CCUT2Osx.mjs.map +1 -0
  181. package/dist/{planner-ddl-builders-BvK8Reg3.d.mts → planner-ddl-builders-CPM3y7cQ.d.mts} +2 -2
  182. package/dist/planner-ddl-builders-CPM3y7cQ.d.mts.map +1 -0
  183. package/dist/{planner-ddl-builders-cYnH52gC-DaVKo24n.mjs → planner-ddl-builders-cYnH52gC-BWifb_M6.mjs} +3 -3
  184. package/dist/planner-ddl-builders-cYnH52gC-BWifb_M6.mjs.map +1 -0
  185. package/dist/{planner-identity-values-lke8kYOC.d.mts → planner-identity-values-Dsq989Lh.d.mts} +2 -2
  186. package/dist/planner-identity-values-Dsq989Lh.d.mts.map +1 -0
  187. package/dist/{planner-identity-values-QstrMJ2U-Cb8Fdh_W.mjs → planner-identity-values-QstrMJ2U-CcpaRVPY.mjs} +3 -3
  188. package/dist/planner-identity-values-QstrMJ2U-CcpaRVPY.mjs.map +1 -0
  189. package/dist/planner-produced-postgres-migration-BBUwtjA_.d.mts +1 -0
  190. package/dist/{planner-produced-postgres-migration-CGnbXiL_-Clhk4Jqj.mjs → planner-produced-postgres-migration-BZclL_xO-uflxtYuP.mjs} +5 -5
  191. package/dist/planner-produced-postgres-migration-BZclL_xO-uflxtYuP.mjs.map +1 -0
  192. package/dist/{planner-produced-postgres-migration-DyIXJ3MR-CvH0IEvz.d.mts → planner-produced-postgres-migration-DyIXJ3MR-DHO5wn_X.d.mts} +4 -4
  193. package/dist/planner-produced-postgres-migration-DyIXJ3MR-DHO5wn_X.d.mts.map +1 -0
  194. package/dist/{planner-schema-lookup-CdgWer9s.mjs → planner-schema-lookup-BbUY9oVy.mjs} +2 -2
  195. package/dist/planner-schema-lookup-BbUY9oVy.mjs.map +1 -0
  196. package/dist/{planner-schema-lookup-C4DHAddq.d.mts → planner-schema-lookup-ceCNOGFf.d.mts} +2 -2
  197. package/dist/planner-schema-lookup-ceCNOGFf.d.mts.map +1 -0
  198. package/dist/{planner-sql-checks-D-K44J19-BgZ15ipJ.mjs → planner-sql-checks-D-K44J19-CzvrqzNB.mjs} +5 -5
  199. package/dist/planner-sql-checks-D-K44J19-CzvrqzNB.mjs.map +1 -0
  200. package/dist/{planner-sql-checks-Ed-WGtge-Clnvg-zp.d.mts → planner-sql-checks-Ed-WGtge-D9ByMrW4.d.mts} +2 -2
  201. package/dist/planner-sql-checks-Ed-WGtge-D9ByMrW4.d.mts.map +1 -0
  202. package/dist/planner-sql-checks-rEjFx_Jv.d.mts +1 -0
  203. package/dist/{planner-target-details-CUEF0s90-COTks5yz.mjs → planner-target-details-CUEF0s90-6g-mOgTI.mjs} +2 -2
  204. package/dist/planner-target-details-CUEF0s90-6g-mOgTI.mjs.map +1 -0
  205. package/dist/{planner-target-details-HkP4RrRO-_xPQVPF0.d.mts → planner-target-details-HkP4RrRO-D6VtK0jY.d.mts} +2 -2
  206. package/dist/planner-target-details-HkP4RrRO-D6VtK0jY.d.mts.map +1 -0
  207. package/dist/{postgres-codec-traits-CnP5Bjxp-C8JED4J1.mjs → postgres-codec-traits-CnP5Bjxp-Dxdgv0TI.mjs} +3 -3
  208. package/dist/postgres-codec-traits-CnP5Bjxp-Dxdgv0TI.mjs.map +1 -0
  209. package/dist/{postgres-contract-view-BFzIDwwN-pJ6gJGOT.d.mts → postgres-contract-view-BFzIDwwN-hL3QLe_b.d.mts} +2 -2
  210. package/dist/postgres-contract-view-BFzIDwwN-hL3QLe_b.d.mts.map +1 -0
  211. package/dist/{postgres-contract-view-BO2elRMz-K6dYYr20.mjs → postgres-contract-view-BO2elRMz-BqMBzJoJ.mjs} +9 -9
  212. package/dist/postgres-contract-view-BO2elRMz-BqMBzJoJ.mjs.map +1 -0
  213. package/dist/{postgres-database-schema-node-Cv8usVNX-BP4GzjSf.d.mts → postgres-database-schema-node-Cv8usVNX-BmvGozi4.d.mts} +3 -3
  214. package/dist/postgres-database-schema-node-Cv8usVNX-BmvGozi4.d.mts.map +1 -0
  215. package/dist/{postgres-migration-gIPIgR1z-CvKPHina.mjs → postgres-migration-BSWmeRLo-CUfVTUf0.mjs} +16 -16
  216. package/dist/postgres-migration-BSWmeRLo-CUfVTUf0.mjs.map +1 -0
  217. package/dist/{postgres-migration-C5deJ3Ne-BBt4uBYb.d.mts → postgres-migration-C5deJ3Ne-C4Jxu-e6.d.mts} +7 -7
  218. package/dist/postgres-migration-C5deJ3Ne-C4Jxu-e6.d.mts.map +1 -0
  219. package/dist/{postgres-native-enum-CdP3b_-R-Cgz9KEKx.mjs → postgres-native-enum-CdP3b_-R-DgG3pi5p.mjs} +2 -2
  220. package/dist/postgres-native-enum-CdP3b_-R-DgG3pi5p.mjs.map +1 -0
  221. package/dist/{postgres-object-name-FPikIvOw-BNs44hTu.mjs → postgres-object-name-FPikIvOw-B8FfJI7z.mjs} +2 -2
  222. package/dist/postgres-object-name-FPikIvOw-B8FfJI7z.mjs.map +1 -0
  223. package/dist/{postgres-rls-policy-CnDxf3z9-C3LIHAIG.d.mts → postgres-rls-policy-CnDxf3z9-BjpVyUnK.d.mts} +2 -2
  224. package/dist/postgres-rls-policy-CnDxf3z9-BjpVyUnK.d.mts.map +1 -0
  225. package/dist/{postgres-role-schema-node-B8Z5i5D--PObwlU2Z.mjs → postgres-role-schema-node-B8Z5i5D--BzOKm4N1.mjs} +3 -3
  226. package/dist/postgres-role-schema-node-B8Z5i5D--BzOKm4N1.mjs.map +1 -0
  227. package/dist/{postgres-schema-C6w1rzOF-bzaF5PIS.mjs → postgres-schema-C6w1rzOF-D1fdwqRx.mjs} +6 -6
  228. package/dist/postgres-schema-C6w1rzOF-D1fdwqRx.mjs.map +1 -0
  229. package/dist/{postgres-schema-Xsjt3RKO-Buv2X8ai.d.mts → postgres-schema-Xsjt3RKO-bis-SVSB.d.mts} +4 -4
  230. package/dist/postgres-schema-Xsjt3RKO-bis-SVSB.d.mts.map +1 -0
  231. package/dist/{postgres-table-schema-node-BBkitBQh-DT1T5VWU.mjs → postgres-table-schema-node-BBkitBQh-Dll8iaZT.mjs} +2 -2
  232. package/dist/postgres-table-schema-node-BBkitBQh-Dll8iaZT.mjs.map +1 -0
  233. package/dist/{prisma7-binding-kYc2Xcxt.d.mts → prisma7-binding-C-we4Znm.d.mts} +11 -11
  234. package/dist/prisma7-binding-C-we4Znm.d.mts.map +1 -0
  235. package/dist/{prisma7-binding-TQ2GIDxX.mjs → prisma7-binding-CVuACrdW.mjs} +10 -10
  236. package/dist/prisma7-binding-CVuACrdW.mjs.map +1 -0
  237. package/dist/{render-ops-DKPk74iS-Cfil02bJ.mjs → render-ops-BgqtCw9Z-T8BPTX85.mjs} +4 -4
  238. package/dist/render-ops-BgqtCw9Z-T8BPTX85.mjs.map +1 -0
  239. package/dist/{render-ops-DPwhZt2W.d.mts → render-ops-Bl84i7ut.d.mts} +3 -3
  240. package/dist/render-ops-Bl84i7ut.d.mts.map +1 -0
  241. package/dist/{render-typescript-6sCFvMBh.d.mts → render-typescript-BysdXYpH.d.mts} +2 -2
  242. package/dist/render-typescript-BysdXYpH.d.mts.map +1 -0
  243. package/dist/{render-typescript-Dqp1Spgn-B128r1qw.mjs → render-typescript-Dqp1Spgn-B4mJhuVr.mjs} +2 -2
  244. package/dist/render-typescript-Dqp1Spgn-B4mJhuVr.mjs.map +1 -0
  245. package/dist/{resolve-ddl-schema-D3VNPMSm-DVuswLch.mjs → resolve-ddl-schema-D3VNPMSm-BuB6NyOI.mjs} +4 -4
  246. package/dist/resolve-ddl-schema-D3VNPMSm-BuB6NyOI.mjs.map +1 -0
  247. package/dist/{runtime-BDq9yVrM.d.mts → runtime-C0VXuM0b.d.mts} +2 -2
  248. package/dist/runtime-C0VXuM0b.d.mts.map +1 -0
  249. package/dist/{runtime-DugW4mig.mjs → runtime-CXfxy5ED.mjs} +3 -3
  250. package/dist/runtime-CXfxy5ED.mjs.map +1 -0
  251. package/dist/{runtime-CQckFo7G.d.mts → runtime-Ci_toEDZ.d.mts} +5 -5
  252. package/dist/runtime-Ci_toEDZ.d.mts.map +1 -0
  253. package/dist/{runtime-XXYjt_3Q.d.mts → runtime-DtjW0GP_.d.mts} +4 -4
  254. package/dist/runtime-DtjW0GP_.d.mts.map +1 -0
  255. package/dist/{schema-ir-annotations-DuuYh0gl.d.mts → schema-ir-annotations-BygaWBiC.d.mts} +2 -2
  256. package/dist/schema-ir-annotations-BygaWBiC.d.mts.map +1 -0
  257. package/dist/{schema-node-kinds-C52Bb1ve-OVH80Tx2.d.mts → schema-node-kinds-C52Bb1ve-DmxQRPPS.d.mts} +2 -2
  258. package/dist/schema-node-kinds-C52Bb1ve-DmxQRPPS.d.mts.map +1 -0
  259. package/dist/{server-text-types-DeNPQpv5-DPxA9uXV.mjs → server-text-types-DeNPQpv5-DqX0h8WF.mjs} +2 -2
  260. package/dist/server-text-types-DeNPQpv5-DqX0h8WF.mjs.map +1 -0
  261. package/dist/{sql-renderer-BdWJPa5F-Q6M1dydc.mjs → sql-renderer-BdWJPa5F-Ct0CPlXc.mjs} +4 -4
  262. package/dist/sql-renderer-BdWJPa5F-Ct0CPlXc.mjs.map +1 -0
  263. package/dist/{sql-renderer-CGc-Ln4u.d.mts → sql-renderer-BiBhge7D.d.mts} +6 -6
  264. package/dist/sql-renderer-BiBhge7D.d.mts.map +1 -0
  265. package/dist/{sql-utils-Bnw3JbWf-zvWDkyrr.mjs → sql-utils-Bnw3JbWf-BN0gcjZB.mjs} +3 -3
  266. package/dist/sql-utils-Bnw3JbWf-BN0gcjZB.mjs.map +1 -0
  267. package/dist/{sql-utils-B7LfCQCB.d.mts → sql-utils-CnnGiZBc.d.mts} +3 -3
  268. package/dist/sql-utils-CnnGiZBc.d.mts.map +1 -0
  269. package/dist/{table-source-ikHOZmhD-DriY1Lcr.d.mts → table-source-ikHOZmhD-vYcblBYv.d.mts} +2 -2
  270. package/dist/table-source-ikHOZmhD-vYcblBYv.d.mts.map +1 -0
  271. package/dist/target.d.mts +60 -60
  272. package/dist/target.mjs +44 -44
  273. package/dist/target__aggregates.d.mts +1 -1
  274. package/dist/target__aggregates.mjs +1 -1
  275. package/dist/target__codec-descriptor.d.mts +2 -2
  276. package/dist/target__codec-descriptor.mjs +1 -1
  277. package/dist/target__codec-ids.d.mts +2 -2
  278. package/dist/target__codec-ids.mjs +1 -1
  279. package/dist/target__codec-types.d.mts +3 -3
  280. package/dist/target__codecs.d.mts +3 -3
  281. package/dist/target__codecs.mjs +2 -2
  282. package/dist/target__contract-free.d.mts +2 -2
  283. package/dist/target__contract-free.mjs +3 -3
  284. package/dist/target__control.d.mts +3 -3
  285. package/dist/target__control.mjs +46 -46
  286. package/dist/target__control.mjs.map +1 -1
  287. package/dist/target__data-transform.d.mts +2 -2
  288. package/dist/target__data-transform.mjs +1 -1
  289. package/dist/target__data-types.d.mts +1 -1
  290. package/dist/target__data-types.mjs +2 -2
  291. package/dist/target__ddl.d.mts +3 -3
  292. package/dist/target__ddl.mjs +1 -1
  293. package/dist/target__default-normalizer.d.mts +1 -1
  294. package/dist/target__default-normalizer.mjs +1 -1
  295. package/dist/target__diff-database-schema.d.mts +1 -1
  296. package/dist/target__diff-database-schema.mjs +1 -1
  297. package/dist/target__errors.d.mts +1 -1
  298. package/dist/target__errors.mjs +1 -1
  299. package/dist/target__full-text-index-authoring.d.mts +2 -2
  300. package/dist/target__full-text-index-authoring.mjs +2 -2
  301. package/dist/target__full-text.d.mts +3 -3
  302. package/dist/target__full-text.mjs +2 -2
  303. package/dist/target__issue-planner.d.mts +1 -1
  304. package/dist/target__issue-planner.mjs +1 -1
  305. package/dist/target__marker-lock.d.mts +1 -1
  306. package/dist/target__marker-lock.mjs +1 -1
  307. package/dist/target__migration.d.mts +3 -3
  308. package/dist/target__migration.mjs +4 -4
  309. package/dist/target__native-type-normalizer.d.mts +1 -1
  310. package/dist/target__native-type-normalizer.mjs +1 -1
  311. package/dist/target__op-factory-call.d.mts +2 -2
  312. package/dist/target__op-factory-call.mjs +1 -1
  313. package/dist/target__operation-types.d.mts +3 -3
  314. package/dist/target__pack.d.mts +2 -2
  315. package/dist/target__pack.mjs +1 -1
  316. package/dist/target__planner-ddl-builders.d.mts +1 -1
  317. package/dist/target__planner-ddl-builders.mjs +1 -1
  318. package/dist/target__planner-identity-values.d.mts +1 -1
  319. package/dist/target__planner-identity-values.mjs +1 -1
  320. package/dist/target__planner-produced-postgres-migration.d.mts +2 -2
  321. package/dist/target__planner-produced-postgres-migration.mjs +1 -1
  322. package/dist/target__planner-schema-lookup.d.mts +1 -1
  323. package/dist/target__planner-schema-lookup.mjs +1 -1
  324. package/dist/target__planner-sql-checks.d.mts +2 -2
  325. package/dist/target__planner-sql-checks.mjs +1 -1
  326. package/dist/target__planner-target-details.d.mts +1 -1
  327. package/dist/target__planner.d.mts +1 -1
  328. package/dist/target__planner.mjs +2 -2
  329. package/dist/target__prisma7-binding.d.mts +1 -1
  330. package/dist/target__prisma7-binding.mjs +1 -1
  331. package/dist/target__render-ops.d.mts +1 -1
  332. package/dist/target__render-ops.mjs +1 -1
  333. package/dist/target__render-typescript.d.mts +1 -1
  334. package/dist/target__render-typescript.mjs +1 -1
  335. package/dist/target__rls-canonicalize.d.mts +1 -1
  336. package/dist/target__rls-canonicalize.mjs +1 -1
  337. package/dist/target__runtime.d.mts +5 -5
  338. package/dist/target__runtime.mjs +10 -10
  339. package/dist/target__runtime.mjs.map +1 -1
  340. package/dist/target__schema-ir-annotations.d.mts +1 -1
  341. package/dist/target__schema-ir-annotations.mjs +1 -1
  342. package/dist/target__sql-utils.d.mts +2 -2
  343. package/dist/target__sql-utils.mjs +3 -3
  344. package/dist/target__types.d.mts +7 -7
  345. package/dist/target__types.mjs +5 -5
  346. package/dist/types-AvjnIUna.d.mts +2 -0
  347. package/dist/{types-D6lgKhE5-Fxmh_bQa.d.mts → types-D6lgKhE5-D1J9YJnd.d.mts} +5 -5
  348. package/dist/types-D6lgKhE5-D1J9YJnd.d.mts.map +1 -0
  349. package/dist/{types-BP1e5MBV.d.mts → types-DOmgp_12.d.mts} +8 -8
  350. package/dist/types-DOmgp_12.d.mts.map +1 -0
  351. package/dist/{types-ue6jkJyF-BQJzjx1P.d.mts → types-ue6jkJyF-D79DmBTl.d.mts} +2 -2
  352. package/dist/types-ue6jkJyF-D79DmBTl.d.mts.map +1 -0
  353. package/package.json +9 -9
  354. package/dist/adapter-CVkrJLWQ.d.mts.map +0 -1
  355. package/dist/adapter-svGTIjA2-CtHa7kMs.mjs.map +0 -1
  356. package/dist/aggregates-BjiTuckw.d.mts.map +0 -1
  357. package/dist/aggregates-C7KEByGU.mjs.map +0 -1
  358. package/dist/authoring-DWd5pnnV-g81c_ETF.d.mts.map +0 -1
  359. package/dist/authoring-SbdvmVJh-CgZp23qA.mjs.map +0 -1
  360. package/dist/autoincrement-widths-DonNJgfS-A-hWa3rO.mjs.map +0 -1
  361. package/dist/canonicalize-B-xvDOdd-Cnht2N4h.d.mts.map +0 -1
  362. package/dist/canonicalize-RdxoUHao-DK_M6HU-.mjs.map +0 -1
  363. package/dist/check-expressions-7uCCP01t-WtUqfqkP.mjs.map +0 -1
  364. package/dist/check-expressions-CtTzM58x-CsWFEeul.d.mts.map +0 -1
  365. package/dist/codec-descriptor-CzyUKm6m.d.mts +0 -1
  366. package/dist/codec-descriptor-DoR-cTFZ-DKTk9Oxm.mjs.map +0 -1
  367. package/dist/codec-descriptor-d1ByNBEk-ClDTxfu9.d.mts.map +0 -1
  368. package/dist/codec-ids-BMhEpFwv-BLIC4g3Y.mjs.map +0 -1
  369. package/dist/codec-ids-C2HurNhZ.d.mts +0 -1
  370. package/dist/codec-ids-C6II64Wy-CCU5G6CU.d.mts.map +0 -1
  371. package/dist/codec-registry-D7XslgPe-Gg6TMpPg.mjs.map +0 -1
  372. package/dist/codec-type-map-Fj5xCgwT-DwIK_DR3.d.mts.map +0 -1
  373. package/dist/codec-types-CVyCyOV-.d.mts +0 -2
  374. package/dist/codec-types-Ct_4iTVc-4VoGpl4J.d.mts.map +0 -1
  375. package/dist/codecs-CADK7dCR-Cku8S_Im.d.mts.map +0 -1
  376. package/dist/codecs-CRl9-i_r-CTWJYxL0.mjs.map +0 -1
  377. package/dist/codecs-DEMQ3cMm.d.mts.map +0 -1
  378. package/dist/column-types-CI9_dRcU.mjs.map +0 -1
  379. package/dist/column-types-KP17SDia.d.mts.map +0 -1
  380. package/dist/contract-contributions-Xz2FpyfI-CZW0_mEj.mjs.map +0 -1
  381. package/dist/contract-free-2xXXmS01.mjs.map +0 -1
  382. package/dist/contract-free-DCPNGs2e.d.mts.map +0 -1
  383. package/dist/control-BaUpALVp.d.mts.map +0 -1
  384. package/dist/control-C4-UbYOH.mjs.map +0 -1
  385. package/dist/control-Cu-SPW3N.d.mts.map +0 -1
  386. package/dist/control-Dqf8WaSU.d.mts.map +0 -1
  387. package/dist/control-policy-DzFOPk9n-BmAgBCQb.mjs.map +0 -1
  388. package/dist/data-transform-C-3UJ3hC.d.mts +0 -1
  389. package/dist/data-transform-h9agBu_c-B5dsDs8G.mjs.map +0 -1
  390. package/dist/data-transform-nGy9rz87-CEOXAj91.d.mts.map +0 -1
  391. package/dist/data-type-entries-gQW3-KSb-uOS_mZiH.mjs.map +0 -1
  392. package/dist/data-types-BbFUwMKs.d.mts.map +0 -1
  393. package/dist/data-types-Chx0mjTP-Dy6isAwB.mjs.map +0 -1
  394. package/dist/date-time-now-generators-CMkXVbMG-CYwplAuf.d.mts.map +0 -1
  395. package/dist/ddl-B7Rqlz6D-BcwCMSB7.mjs.map +0 -1
  396. package/dist/ddl-DC1--N63.d.mts +0 -1
  397. package/dist/default-constraint-names-CtcRXhV8-nz3ff6b8.mjs.map +0 -1
  398. package/dist/default-normalizer-BqK6XxdC-BAgxt9FF.mjs.map +0 -1
  399. package/dist/default-normalizer-P-u2VRBf.d.mts.map +0 -1
  400. package/dist/descriptor-meta-BkD3nXF_-NNc0jaU9.mjs.map +0 -1
  401. package/dist/descriptor-meta-DBH6aAIM-Cm1rNZaF.mjs.map +0 -1
  402. package/dist/descriptor-meta-runtime-Dft1L7eE-CUaKX_mx.mjs.map +0 -1
  403. package/dist/diff-database-schema-B1NfYBTr-DPdFDCpE.mjs.map +0 -1
  404. package/dist/diff-database-schema-DPZdkysF.d.mts.map +0 -1
  405. package/dist/errors-BP-2V2_C.d.mts.map +0 -1
  406. package/dist/errors-BrhQYgdL-D_lIrddD.mjs.map +0 -1
  407. package/dist/full-text-8PmilGkW.mjs.map +0 -1
  408. package/dist/full-text-collection-method-BFd2u2cs-DcN_Vf7f.d.mts.map +0 -1
  409. package/dist/full-text-index-authoring-Ca6bWXyG.d.mts.map +0 -1
  410. package/dist/full-text-index-definition-BPxQQBuC-BrpDsuJu.mjs.map +0 -1
  411. package/dist/full-text-index-definition-D5iBWLss-FifKlctQ.d.mts.map +0 -1
  412. package/dist/full-text-parsers-CFFxiOrp-BmiwdZ21.mjs.map +0 -1
  413. package/dist/full-text-r2wMygYZ.d.mts.map +0 -1
  414. package/dist/full-text-search-document-Doy5TF7c-DezgYsP-.mjs.map +0 -1
  415. package/dist/index-types-BihjrAAq-ktkeKE97.mjs.map +0 -1
  416. package/dist/indexes-BYf6nXVv-DznOOzlT.d.mts.map +0 -1
  417. package/dist/infer-psl-contract-BSSHcuRi-DryV3wqN.mjs.map +0 -1
  418. package/dist/issue-planner--zt__-Kk.d.mts.map +0 -1
  419. package/dist/list-decoder-BcrLExnx-hTa7qY7a.d.mts.map +0 -1
  420. package/dist/marker-lock-BGBqXaQ4.d.mts.map +0 -1
  421. package/dist/marker-lock-DFc1Tfv5-QMJSzMIa.mjs.map +0 -1
  422. package/dist/migration-7VvUEoYO.d.mts.map +0 -1
  423. package/dist/migration-CbOh59ZJ.mjs.map +0 -1
  424. package/dist/namespace-ids-xtp_ZY86-Cpp8PTxD.mjs.map +0 -1
  425. package/dist/native-type-normalizer-B7ZQZOCb.mjs.map +0 -1
  426. package/dist/native-type-normalizer-DFE5L3YY.d.mts.map +0 -1
  427. package/dist/nodes-G8VTh4PM-D5t0nLdZ.mjs.map +0 -1
  428. package/dist/nodes-s0Oe37jT-DY3kMSce.d.mts.map +0 -1
  429. package/dist/op-factory-call-C2r4PNO_.d.mts +0 -1
  430. package/dist/op-factory-call-ClvHxHDs-CeVV_tro.mjs.map +0 -1
  431. package/dist/op-factory-call-nLHvNx0O-CGQ3bNN5.d.mts.map +0 -1
  432. package/dist/operation-types--Wa_cv45-jn5HQ8yt.d.mts.map +0 -1
  433. package/dist/operation-types-BcOviE0b.d.mts +0 -1
  434. package/dist/pack-BLeBhGWE.d.mts.map +0 -1
  435. package/dist/planner-CNG8pGm7.d.mts.map +0 -1
  436. package/dist/planner-CvVTpZSI-Dkpd9l81.mjs.map +0 -1
  437. package/dist/planner-ddl-builders-BvK8Reg3.d.mts.map +0 -1
  438. package/dist/planner-ddl-builders-cYnH52gC-DaVKo24n.mjs.map +0 -1
  439. package/dist/planner-identity-values-QstrMJ2U-Cb8Fdh_W.mjs.map +0 -1
  440. package/dist/planner-identity-values-lke8kYOC.d.mts.map +0 -1
  441. package/dist/planner-produced-postgres-migration-CGnbXiL_-Clhk4Jqj.mjs.map +0 -1
  442. package/dist/planner-produced-postgres-migration-DEfRhvVl.d.mts +0 -1
  443. package/dist/planner-produced-postgres-migration-DyIXJ3MR-CvH0IEvz.d.mts.map +0 -1
  444. package/dist/planner-schema-lookup-C4DHAddq.d.mts.map +0 -1
  445. package/dist/planner-schema-lookup-CdgWer9s.mjs.map +0 -1
  446. package/dist/planner-sql-checks-D-K44J19-BgZ15ipJ.mjs.map +0 -1
  447. package/dist/planner-sql-checks-Ed-WGtge-Clnvg-zp.d.mts.map +0 -1
  448. package/dist/planner-sql-checks-K_EFdkCw.d.mts +0 -1
  449. package/dist/planner-target-details-CUEF0s90-COTks5yz.mjs.map +0 -1
  450. package/dist/planner-target-details-HkP4RrRO-_xPQVPF0.d.mts.map +0 -1
  451. package/dist/postgres-codec-traits-CnP5Bjxp-C8JED4J1.mjs.map +0 -1
  452. package/dist/postgres-contract-view-BFzIDwwN-pJ6gJGOT.d.mts.map +0 -1
  453. package/dist/postgres-contract-view-BO2elRMz-K6dYYr20.mjs.map +0 -1
  454. package/dist/postgres-database-schema-node-Cv8usVNX-BP4GzjSf.d.mts.map +0 -1
  455. package/dist/postgres-migration-C5deJ3Ne-BBt4uBYb.d.mts.map +0 -1
  456. package/dist/postgres-migration-gIPIgR1z-CvKPHina.mjs.map +0 -1
  457. package/dist/postgres-native-enum-CdP3b_-R-Cgz9KEKx.mjs.map +0 -1
  458. package/dist/postgres-object-name-FPikIvOw-BNs44hTu.mjs.map +0 -1
  459. package/dist/postgres-rls-policy-CnDxf3z9-C3LIHAIG.d.mts.map +0 -1
  460. package/dist/postgres-role-schema-node-B8Z5i5D--PObwlU2Z.mjs.map +0 -1
  461. package/dist/postgres-schema-C6w1rzOF-bzaF5PIS.mjs.map +0 -1
  462. package/dist/postgres-schema-Xsjt3RKO-Buv2X8ai.d.mts.map +0 -1
  463. package/dist/postgres-table-schema-node-BBkitBQh-DT1T5VWU.mjs.map +0 -1
  464. package/dist/prisma7-binding-TQ2GIDxX.mjs.map +0 -1
  465. package/dist/prisma7-binding-kYc2Xcxt.d.mts.map +0 -1
  466. package/dist/render-ops-DKPk74iS-Cfil02bJ.mjs.map +0 -1
  467. package/dist/render-ops-DPwhZt2W.d.mts.map +0 -1
  468. package/dist/render-typescript-6sCFvMBh.d.mts.map +0 -1
  469. package/dist/render-typescript-Dqp1Spgn-B128r1qw.mjs.map +0 -1
  470. package/dist/resolve-ddl-schema-D3VNPMSm-DVuswLch.mjs.map +0 -1
  471. package/dist/runtime-BDq9yVrM.d.mts.map +0 -1
  472. package/dist/runtime-CQckFo7G.d.mts.map +0 -1
  473. package/dist/runtime-DugW4mig.mjs.map +0 -1
  474. package/dist/runtime-XXYjt_3Q.d.mts.map +0 -1
  475. package/dist/schema-ir-annotations-DuuYh0gl.d.mts.map +0 -1
  476. package/dist/schema-node-kinds-C52Bb1ve-OVH80Tx2.d.mts.map +0 -1
  477. package/dist/server-text-types-DeNPQpv5-DPxA9uXV.mjs.map +0 -1
  478. package/dist/sql-renderer-BdWJPa5F-Q6M1dydc.mjs.map +0 -1
  479. package/dist/sql-renderer-CGc-Ln4u.d.mts.map +0 -1
  480. package/dist/sql-utils-B7LfCQCB.d.mts.map +0 -1
  481. package/dist/sql-utils-Bnw3JbWf-zvWDkyrr.mjs.map +0 -1
  482. package/dist/table-source-ikHOZmhD-DriY1Lcr.d.mts.map +0 -1
  483. package/dist/types-BP1e5MBV.d.mts.map +0 -1
  484. package/dist/types-D6lgKhE5-Fxmh_bQa.d.mts.map +0 -1
  485. package/dist/types-DwVVpdFJ.d.mts +0 -2
  486. package/dist/types-ue6jkJyF-BQJzjx1P.d.mts.map +0 -1
@@ -1,12 +1,12 @@
1
- import { t as PostgresContract } from "./postgres-schema-Xsjt3RKO-Buv2X8ai.mjs";
2
- import { c as PostgresLoweredStatement, s as PostgresAdapterOptions } from "./types-D6lgKhE5-Fxmh_bQa.mjs";
3
- import { t as PostgresCodecRegistry } from "./codecs-DEMQ3cMm.mjs";
4
- import { b as PostgresDdlNode } from "./nodes-s0Oe37jT-DY3kMSce.mjs";
5
- import "./ddl-DC1--N63.mjs";
1
+ import { t as PostgresContract } from "./postgres-schema-Xsjt3RKO-bis-SVSB.mjs";
2
+ import { c as PostgresLoweredStatement, s as PostgresAdapterOptions } from "./types-D6lgKhE5-D1J9YJnd.mjs";
3
+ import { t as PostgresCodecRegistry } from "./codecs-CoEpEqjM.mjs";
4
+ import { b as PostgresDdlNode } from "./nodes-s0Oe37jT-Cw3BU2gL.mjs";
5
+ import "./ddl-B8nQZTWN.mjs";
6
6
  import { Adapter, AdapterProfile, AnyQueryAst, LowererContext } from "@prisma/orm-family-sql/relational-core/ast";
7
7
  import { DataType, DataTypeLookup } from "@prisma/orm-framework/components/codec";
8
8
  import { RawCodecInferer } from "@prisma/orm-family-sql/relational-core/expression";
9
- //#region ../../../3-targets/6-adapters/postgres/dist/adapter.d.mts
9
+ //#region ../../../3-targets/postgres/2-adapter/dist/adapter.d.mts
10
10
  //#region src/core/adapter.d.ts
11
11
  declare class PostgresAdapterImpl implements Adapter<AnyQueryAst, PostgresContract, PostgresLoweredStatement> {
12
12
  readonly familyId: "sql";
@@ -400,4 +400,4 @@ declare const postgresAdapterContractContributions: {
400
400
  };
401
401
  //#endregion
402
402
  export { postgresRawCodecInferer as i, postgresAdapterCapabilities as n, postgresAdapterContractContributions as r, createPostgresAdapter as t };
403
- //# sourceMappingURL=adapter-CVkrJLWQ.d.mts.map
403
+ //# sourceMappingURL=adapter-5qylEP__.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"adapter-5qylEP__.d.mts","names":[],"sources":["../../../../3-targets/postgres/2-adapter/dist/adapter.d.mts"],"mappings":";;;;;;;;;;cAOc,+BAA+B,QAAQ,aAAa,kBAAkB;WACzE;WACA;WACA,SAAS;mBACD;mBACA;EACjB,YAAY,eAAe,uBAAuB,gBAAgB,gBAAgB,4BAA4B,YAAY;EAC1H,MAAM,KAAK,cAAc,iBAAiB,SAAS,eAAe,oBAAoB;;;;;;;cAO1E,yBAAyB;iBACtB,sBAAsB,UAAU,yBAAyB,SAAS;;;cAGrE,6BAA6B;WAChC;aACE;aACA;aACA;aACA;aACA;aACA;aACA;aACA;;WAEF;aACE;aACA;aACA;aACA;aACA;aACA;aACA;aACA;aACA;aACA;aACA;aACA;aACA;;;;;;;;cAQC;WACH,cAAc;aACZ;eACE;eACA;eACA;eACA;eACA;eACA;eACA;eACA;;aAEF;eACE;eACA;eACA;eACA;eACA;eACA;eACA;eACA;eACA;eACA;eACA;eACA;eACA;;;WAGJ;aACE;eACE;eACA;iBACE;;eAEF;iBACE;iBACA;;eAEF;eACA;;eAEA;eACA;iBACE;;eAEF;iBACE;iBACA;;eAEF;eACA;eACA,6EAA6E;;eAE7E;eACA;iBACE;iBACA;;eAEF;iBACE;iBACA;;eAEF;;eAEA,6EAA6E;eAC7E;eACA;iBACE;iBACA;;eAEF;iBACE;iBACA;;eAEF;;eAEA,6EAA6E;eAC7E;eACA;iBACE;iBACA;;eAEF;iBACE;iBACA;;eAEF;;eAEA,6EAA6E;eAC7E;eACA;iBACE;iBACA;;eAEF;iBACE;iBACA;;eAEF;;eAEA;eACA;iBACE;iBACA;;eAEF;iBACE;iBACA;;eAEF;;eAEA;eACA;iBACE;iBACA;;eAEF;iBACE;iBACA;;eAEF;;eAEA;eACA;iBACE;iBACA;;eAEF;iBACE;iBACA;;eAEF;;eAEA;eACA;iBACE;iBACA;;eAEF;iBACE;iBACA;;eAEF;;eAEA;eACA;iBACE;iBACA;;eAEF;iBACE;iBACA;;eAEF;;eAEA;eACA;iBACE;iBACA;;eAEF;iBACE;iBACA;;eAEF;;eAEA;eACA;iBACE;iBACA;;eAEF;iBACE;iBACA;;eAEF;;eAEA,6EAA6E;eAC7E;eACA;iBACE;iBACA;;eAEF;iBACE;iBACA;;eAEF;;eAEA,6EAA6E;eAC7E;eACA;iBACE;iBACA;;eAEF;iBACE;iBACA;;eAEF;;eAEA;eACA;iBACE;iBACA;;eAEF;iBACE;iBACA;;eAEF;;eAEA;eACA;iBACE;iBACA;;eAEF;iBACE;iBACA;;eAEF;;eAEA;eACA;iBACE;iBACA;;eAEF;iBACE;iBACA;;eAEF;;eAEA;eACA;iBACE;iBACA;;eAEF;iBACE;iBACA;;eAEF;;eAEA;eACA;iBACE;iBACA;;eAEF;iBACE;iBACA;;eAEF;;eAEA;eACA;iBACE;iBACA;;eAEF;iBACE;;eAEF;;eAEA;eACA;iBACE;iBACA;;eAEF;iBACE;;eAEF;;eAEA;eACA;iBACE;iBACA;;eAEF;iBACE;iBACA;;eAEF;;eAEA;eACA;iBACE;iBACA;;eAEF;iBACE;;eAEF;;eAEA;eACA;iBACE;iBACA;;eAEF;iBACE;;eAEF;;eAEA;eACA;iBACE;iBACA;;eAEF;iBACE;;eAEF;;eAEA;eACA;iBACE;iBACA;;eAEF;iBACE;iBACA;;eAEF;;eAEA;eACA;iBACE;iBACA;;eAEF;iBACE;;eAEF"}
@@ -1,11 +1,11 @@
1
- import { Y as postgresDataTypes } from "./data-types-Chx0mjTP-Dy6isAwB.mjs";
2
- import { i as createPostgresCodecRegistryWithBuiltins } from "./codec-registry-D7XslgPe-Gg6TMpPg.mjs";
3
- import { n as renderLoweredSql, t as adapterError } from "./sql-renderer-BdWJPa5F-Q6M1dydc.mjs";
4
- import { n as postgresAdapterCapabilities, t as PostgresControlAdapter } from "./contract-contributions-Xz2FpyfI-CZW0_mEj.mjs";
1
+ import { Y as postgresDataTypes } from "./data-types-Chx0mjTP-DczU4S9b.mjs";
2
+ import { i as createPostgresCodecRegistryWithBuiltins } from "./codec-registry-D7XslgPe-DTZnVB8W.mjs";
3
+ import { n as renderLoweredSql, t as adapterError } from "./sql-renderer-BdWJPa5F-Ct0CPlXc.mjs";
4
+ import { n as postgresAdapterCapabilities, t as PostgresControlAdapter } from "./contract-contributions-Xz2FpyfI-CeQZqHKf.mjs";
5
5
  import { isDdlNode } from "@prisma/orm-family-sql/relational-core/ast";
6
6
  import { assembleDataTypes } from "@prisma/orm-framework/components/codec";
7
7
  import { APP_SPACE_ID } from "@prisma/orm-framework/components/control";
8
- //#region ../../../3-targets/6-adapters/postgres/dist/adapter-svGTIjA2.mjs
8
+ //#region ../../../3-targets/postgres/2-adapter/dist/adapter-svGTIjA2.mjs
9
9
  var PostgresAdapterImpl = class {
10
10
  familyId = "sql";
11
11
  targetId = "postgres";
@@ -86,4 +86,4 @@ function createPostgresAdapterWithCodecRegistry(codecRegistry, dataTypeLookup, d
86
86
  //#endregion
87
87
  export { createPostgresAdapterWithCodecRegistry as n, postgresRawCodecInferer as r, createPostgresAdapter as t };
88
88
 
89
- //# sourceMappingURL=adapter-svGTIjA2-CtHa7kMs.mjs.map
89
+ //# sourceMappingURL=adapter-svGTIjA2-1p-Iw8D2.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"adapter-svGTIjA2-1p-Iw8D2.mjs","names":[],"sources":["../../../../3-targets/postgres/2-adapter/dist/adapter-svGTIjA2.mjs"],"sourcesContent":["import { n as adapterError, t as renderLoweredSql } from \"./sql-renderer-BdWJPa5F.mjs\";\nimport { n as PostgresControlAdapter, r as postgresAdapterCapabilities } from \"./contract-contributions-Xz2FpyfI.mjs\";\nimport { assembleDataTypes } from \"@internal/framework-components/codec\";\nimport { APP_SPACE_ID } from \"@internal/framework-components/control\";\nimport { isDdlNode } from \"@internal/sql-relational-core/ast\";\nimport { createPostgresCodecRegistryWithBuiltins } from \"@internal/target-postgres/codecs\";\nimport { postgresDataTypes } from \"@internal/target-postgres/data-types\";\n//#region src/core/adapter.ts\nvar PostgresAdapterImpl = class {\n\tfamilyId = \"sql\";\n\ttargetId = \"postgres\";\n\tprofile;\n\tcodecRegistry;\n\tdataTypeLookup;\n\tconstructor(codecRegistry, dataTypeLookup, declaredDataTypes, profileId) {\n\t\tthis.codecRegistry = codecRegistry;\n\t\tthis.dataTypeLookup = dataTypeLookup;\n\t\tconst controlAdapter = new PostgresControlAdapter(codecRegistry, dataTypeLookup, declaredDataTypes);\n\t\tthis.profile = Object.freeze({\n\t\t\tid: profileId ?? \"postgres/default@1\",\n\t\t\ttarget: \"postgres\",\n\t\t\tcapabilities: postgresAdapterCapabilities,\n\t\t\treadMarker: (queryable) => controlAdapter.readMarkerDiscriminated({\n\t\t\t\tfamilyId: \"sql\",\n\t\t\t\ttargetId: \"postgres\",\n\t\t\t\tquery: async (sql, params) => {\n\t\t\t\t\tconst rows = [];\n\t\t\t\t\tfor await (const row of queryable.query({\n\t\t\t\t\t\tsql,\n\t\t\t\t\t\t...params === void 0 ? {} : { params }\n\t\t\t\t\t})) rows.push(row);\n\t\t\t\t\treturn { rows };\n\t\t\t\t},\n\t\t\t\tclose: async () => {}\n\t\t\t}, APP_SPACE_ID)\n\t\t});\n\t}\n\tlower(ast, context) {\n\t\tif (isDdlNode(ast)) throw adapterError(\"RUNTIME.DDL_UNSUPPORTED\", \"lower() does not lower DDL on the runtime adapter — DDL lowering is a control-plane concern handled by the control adapter.\", { meta: { surface: \"runtime-adapter\" } });\n\t\treturn renderLoweredSql(ast, context.contract, this.codecRegistry, this.dataTypeLookup, postgresAdapterCapabilities);\n\t}\n};\nconst INT4_MIN = -2147483648;\nconst INT4_MAX = 2147483647;\n/**\n* The codec a bare JS number is bound through.\n*\n* An integer picks the narrowest column type that holds it: `int4` while it\n* fits the signed 32-bit range, `int8` (number-valued) up to the safe-integer\n* limit. Past that limit a JS number is no longer an exact integer, so it\n* binds as `float8` rather than pretending to a precision it does not have.\n*/\nfunction inferNumberCodecId(value) {\n\tif (!Number.isSafeInteger(value)) return \"pg/float8@1\";\n\treturn value >= INT4_MIN && value <= INT4_MAX ? \"pg/int4@1\" : \"pg/int8number@1\";\n}\n/**\n* Codec-id lookup for bare-literal interpolations used by `fns.raw` on a postgres client. Contributed as the descriptor's static `rawCodecInferer` slot.\n*\n* The ids are versioned because that is how the codec registry keys them: lowering resolves an interpolated value's codec by exact id through `descriptorFor`.\n*/\nconst postgresRawCodecInferer = { inferCodec(value) {\n\tswitch (typeof value) {\n\t\tcase \"number\": return inferNumberCodecId(value);\n\t\tcase \"bigint\": return \"pg/int8@1\";\n\t\tcase \"string\": return \"pg/text@1\";\n\t\tcase \"boolean\": return \"pg/bool@1\";\n\t\tcase \"object\": if (value instanceof Uint8Array) return \"pg/bytea@1\";\n\t}\n\tthrow adapterError(\"RUNTIME.RAW_SQL_UNSUPPORTED_INTERPOLATION\", \"unsupported JS value type for raw-SQL interpolation: wrap this value in `param(...)` with an explicit codec\", { meta: { valueType: typeof value } });\n} };\nfunction createPostgresAdapter(options) {\n\tconst dataTypes = assembleDataTypes([{\n\t\tid: \"postgres\",\n\t\tdataTypes: postgresDataTypes\n\t}, {\n\t\tid: \"createPostgresAdapter\",\n\t\tdataTypes: options?.dataTypes ?? []\n\t}]);\n\tconst codecRegistry = createPostgresCodecRegistryWithBuiltins(options?.codecDescriptors, dataTypes.lookup);\n\treturn Object.freeze(new PostgresAdapterImpl(codecRegistry, dataTypes.lookup, dataTypes.declared.map(({ type }) => type), options?.profileId));\n}\nfunction createPostgresAdapterWithCodecRegistry(codecRegistry, dataTypeLookup, declaredDataTypes) {\n\treturn Object.freeze(new PostgresAdapterImpl(codecRegistry, dataTypeLookup, declaredDataTypes));\n}\n//#endregion\nexport { createPostgresAdapterWithCodecRegistry as n, postgresRawCodecInferer as r, createPostgresAdapter as t };\n\n//# sourceMappingURL=adapter-svGTIjA2.mjs.map"],"mappings":";;;;;;;;AAQA,IAAI,sBAAsB,MAAM;CAC/B,WAAW;CACX,WAAW;CACX;CACA;CACA;CACA,YAAY,eAAe,gBAAgB,mBAAmB,WAAW;EACxE,KAAK,gBAAgB;EACrB,KAAK,iBAAiB;EACtB,MAAM,iBAAiB,IAAI,uBAAuB,eAAe,gBAAgB,iBAAiB;EAClG,KAAK,UAAU,OAAO,OAAO;GAC5B,IAAI,aAAa;GACjB,QAAQ;GACR,cAAc;GACd,aAAa,cAAc,eAAe,wBAAwB;IACjE,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AAoB,eAAe,UAAU,QAAQ,UAAU,SAAS,KAAK,EAAE,WAAW,IAAI,GAAG,SAAS,SAAS,CAAC;AAC9I;AACA,SAAS,uCAAuC,eAAe,gBAAgB,mBAAmB;CACjG,OAAO,OAAO,OAAO,IAAI,oBAAoB,eAAe,gBAAgB,iBAAiB,CAAC;AAC/F"}
@@ -1,11 +1,11 @@
1
- import { t as PostgresContract } from "./postgres-schema-Xsjt3RKO-Buv2X8ai.mjs";
2
- import { a as OrderClause, c as PostgresLoweredStatement, d as StorageTable, i as Expr, l as SelectAst, n as ColumnRef, o as ParamRef, r as Direction, s as PostgresAdapterOptions, t as BinaryExpr, u as StorageColumn } from "./types-D6lgKhE5-Fxmh_bQa.mjs";
3
- import { a as createPostgresCodecRegistryWithBuiltins, i as createPostgresBuiltinCodecLookup, t as PostgresCodecRegistry } from "./codecs-DEMQ3cMm.mjs";
4
- import { i as postgresRawCodecInferer, n as postgresAdapterCapabilities, r as postgresAdapterContractContributions, t as createPostgresAdapter } from "./adapter-CVkrJLWQ.mjs";
5
- import { C as timestamptzStringColumn, D as varcharColumn, E as varbitColumn, S as timestamptzJsDateColumn, T as timetzColumn, _ as textColumn, a as dateStringColumn, b as timestampStringColumn, c as float8Column, d as int8Column, f as intervalColumn, g as rawColumn, h as numericColumn, i as charColumn, l as int2Column, m as jsonbColumn, n as boolColumn, o as dateTemporalColumn, p as jsonColumn, r as byteaColumn, s as float4Column, t as bitColumn, u as int4Column, v as timeStringColumn, w as timestamptzTemporalColumn, x as timestampTemporalColumn, y as timeTemporalColumn } from "./column-types-KP17SDia.mjs";
6
- import { n as qualifyName, r as quoteIdentifier, t as escapeLiteral } from "./sql-utils-B7LfCQCB.mjs";
7
- import { t as PostgresControlAdapter } from "./control-Dqf8WaSU.mjs";
8
- import { t as SqlRuntimeAdapter } from "./runtime-XXYjt_3Q.mjs";
9
- import { t as renderLoweredSql } from "./sql-renderer-CGc-Ln4u.mjs";
10
- import "./types-DwVVpdFJ.mjs";
1
+ import { t as PostgresContract } from "./postgres-schema-Xsjt3RKO-bis-SVSB.mjs";
2
+ import { a as OrderClause, c as PostgresLoweredStatement, d as StorageTable, i as Expr, l as SelectAst, n as ColumnRef, o as ParamRef, r as Direction, s as PostgresAdapterOptions, t as BinaryExpr, u as StorageColumn } from "./types-D6lgKhE5-D1J9YJnd.mjs";
3
+ import { a as createPostgresCodecRegistryWithBuiltins, i as createPostgresBuiltinCodecLookup, t as PostgresCodecRegistry } from "./codecs-CoEpEqjM.mjs";
4
+ import { i as postgresRawCodecInferer, n as postgresAdapterCapabilities, r as postgresAdapterContractContributions, t as createPostgresAdapter } from "./adapter-5qylEP__.mjs";
5
+ import { C as timestamptzStringColumn, D as varcharColumn, E as varbitColumn, S as timestamptzJsDateColumn, T as timetzColumn, _ as textColumn, a as dateStringColumn, b as timestampStringColumn, c as float8Column, d as int8Column, f as intervalColumn, g as rawColumn, h as numericColumn, i as charColumn, l as int2Column, m as jsonbColumn, n as boolColumn, o as dateTemporalColumn, p as jsonColumn, r as byteaColumn, s as float4Column, t as bitColumn, u as int4Column, v as timeStringColumn, w as timestamptzTemporalColumn, x as timestampTemporalColumn, y as timeTemporalColumn } from "./column-types-Bs2V0j8T.mjs";
6
+ import { n as qualifyName, r as quoteIdentifier, t as escapeLiteral } from "./sql-utils-CnnGiZBc.mjs";
7
+ import { t as PostgresControlAdapter } from "./control-D4cTcpcJ.mjs";
8
+ import { t as SqlRuntimeAdapter } from "./runtime-DtjW0GP_.mjs";
9
+ import { t as renderLoweredSql } from "./sql-renderer-BiBhge7D.mjs";
10
+ import "./types-AvjnIUna.mjs";
11
11
  export { type BinaryExpr, type ColumnRef, type Direction, type Expr, type OrderClause, type ParamRef, type PostgresAdapterOptions, type PostgresCodecRegistry, type PostgresContract, PostgresControlAdapter, type PostgresLoweredStatement, type SelectAst, SqlRuntimeAdapter, type StorageColumn, type StorageTable, bitColumn, boolColumn, byteaColumn, charColumn, createPostgresAdapter, createPostgresBuiltinCodecLookup, createPostgresCodecRegistryWithBuiltins, dateStringColumn, dateTemporalColumn, escapeLiteral, float4Column, float8Column, int2Column, int4Column, int8Column, intervalColumn, jsonColumn, jsonbColumn, numericColumn, postgresAdapterCapabilities, postgresAdapterContractContributions, postgresRawCodecInferer, qualifyName, quoteIdentifier, rawColumn, renderLoweredSql, textColumn, timeStringColumn, timeTemporalColumn, timestampStringColumn, timestampTemporalColumn, timestamptzJsDateColumn, timestamptzStringColumn, timestamptzTemporalColumn, timetzColumn, varbitColumn, varcharColumn };
package/dist/adapter.mjs CHANGED
@@ -1,7 +1,7 @@
1
- import { i as quoteIdentifier, n as escapeLiteral, r as qualifyName } from "./sql-utils-Bnw3JbWf-zvWDkyrr.mjs";
2
- import { i as createPostgresCodecRegistryWithBuiltins, r as createPostgresBuiltinCodecLookup } from "./codec-registry-D7XslgPe-Gg6TMpPg.mjs";
3
- import { n as renderLoweredSql } from "./sql-renderer-BdWJPa5F-Q6M1dydc.mjs";
4
- import { n as postgresAdapterCapabilities, r as postgresAdapterContractContributions, t as PostgresControlAdapter } from "./contract-contributions-Xz2FpyfI-CZW0_mEj.mjs";
5
- import { r as postgresRawCodecInferer, t as createPostgresAdapter } from "./adapter-svGTIjA2-CtHa7kMs.mjs";
6
- import { C as timestamptzStringColumn, D as varcharColumn, E as varbitColumn, S as timestamptzJsDateColumn, T as timetzColumn, _ as textColumn, a as dateStringColumn, b as timestampStringColumn, c as float8Column, d as int8Column, f as intervalColumn, g as rawColumn, h as numericColumn, i as charColumn, l as int2Column, m as jsonbColumn, n as boolColumn, o as dateTemporalColumn, p as jsonColumn, r as byteaColumn, s as float4Column, t as bitColumn, u as int4Column, v as timeStringColumn, w as timestamptzTemporalColumn, x as timestampTemporalColumn, y as timeTemporalColumn } from "./column-types-CI9_dRcU.mjs";
1
+ import { i as quoteIdentifier, n as escapeLiteral, r as qualifyName } from "./sql-utils-Bnw3JbWf-BN0gcjZB.mjs";
2
+ import { i as createPostgresCodecRegistryWithBuiltins, r as createPostgresBuiltinCodecLookup } from "./codec-registry-D7XslgPe-DTZnVB8W.mjs";
3
+ import { n as renderLoweredSql } from "./sql-renderer-BdWJPa5F-Ct0CPlXc.mjs";
4
+ import { n as postgresAdapterCapabilities, r as postgresAdapterContractContributions, t as PostgresControlAdapter } from "./contract-contributions-Xz2FpyfI-CeQZqHKf.mjs";
5
+ import { r as postgresRawCodecInferer, t as createPostgresAdapter } from "./adapter-svGTIjA2-1p-Iw8D2.mjs";
6
+ import { C as timestamptzStringColumn, D as varcharColumn, E as varbitColumn, S as timestamptzJsDateColumn, T as timetzColumn, _ as textColumn, a as dateStringColumn, b as timestampStringColumn, c as float8Column, d as int8Column, f as intervalColumn, g as rawColumn, h as numericColumn, i as charColumn, l as int2Column, m as jsonbColumn, n as boolColumn, o as dateTemporalColumn, p as jsonColumn, r as byteaColumn, s as float4Column, t as bitColumn, u as int4Column, v as timeStringColumn, w as timestamptzTemporalColumn, x as timestampTemporalColumn, y as timeTemporalColumn } from "./column-types-B4zsV-u3.mjs";
7
7
  export { PostgresControlAdapter, bitColumn, boolColumn, byteaColumn, charColumn, createPostgresAdapter, createPostgresBuiltinCodecLookup, createPostgresCodecRegistryWithBuiltins, dateStringColumn, dateTemporalColumn, escapeLiteral, float4Column, float8Column, int2Column, int4Column, int8Column, intervalColumn, jsonColumn, jsonbColumn, numericColumn, postgresAdapterCapabilities, postgresAdapterContractContributions, postgresRawCodecInferer, qualifyName, quoteIdentifier, rawColumn, renderLoweredSql, textColumn, timeStringColumn, timeTemporalColumn, timestampStringColumn, timestampTemporalColumn, timestamptzJsDateColumn, timestamptzStringColumn, timestamptzTemporalColumn, timetzColumn, varbitColumn, varcharColumn };
@@ -1,2 +1,2 @@
1
- import { i as postgresRawCodecInferer, n as postgresAdapterCapabilities, r as postgresAdapterContractContributions, t as createPostgresAdapter } from "./adapter-CVkrJLWQ.mjs";
1
+ import { i as postgresRawCodecInferer, n as postgresAdapterCapabilities, r as postgresAdapterContractContributions, t as createPostgresAdapter } from "./adapter-5qylEP__.mjs";
2
2
  export { createPostgresAdapter, postgresAdapterCapabilities, postgresAdapterContractContributions, postgresRawCodecInferer };
@@ -1,3 +1,3 @@
1
- import { n as postgresAdapterCapabilities, r as postgresAdapterContractContributions } from "./contract-contributions-Xz2FpyfI-CZW0_mEj.mjs";
2
- import { r as postgresRawCodecInferer, t as createPostgresAdapter } from "./adapter-svGTIjA2-CtHa7kMs.mjs";
1
+ import { n as postgresAdapterCapabilities, r as postgresAdapterContractContributions } from "./contract-contributions-Xz2FpyfI-CeQZqHKf.mjs";
2
+ import { r as postgresRawCodecInferer, t as createPostgresAdapter } from "./adapter-svGTIjA2-1p-Iw8D2.mjs";
3
3
  export { createPostgresAdapter, postgresAdapterCapabilities, postgresAdapterContractContributions, postgresRawCodecInferer };
@@ -1,2 +1,2 @@
1
- import { C as timestamptzStringColumn, D as varcharColumn, E as varbitColumn, S as timestamptzJsDateColumn, T as timetzColumn, _ as textColumn, a as dateStringColumn, b as timestampStringColumn, c as float8Column, d as int8Column, f as intervalColumn, g as rawColumn, h as numericColumn, i as charColumn, l as int2Column, m as jsonbColumn, n as boolColumn, o as dateTemporalColumn, p as jsonColumn, r as byteaColumn, s as float4Column, t as bitColumn, u as int4Column, v as timeStringColumn, w as timestamptzTemporalColumn, x as timestampTemporalColumn, y as timeTemporalColumn } from "./column-types-KP17SDia.mjs";
1
+ import { C as timestamptzStringColumn, D as varcharColumn, E as varbitColumn, S as timestamptzJsDateColumn, T as timetzColumn, _ as textColumn, a as dateStringColumn, b as timestampStringColumn, c as float8Column, d as int8Column, f as intervalColumn, g as rawColumn, h as numericColumn, i as charColumn, l as int2Column, m as jsonbColumn, n as boolColumn, o as dateTemporalColumn, p as jsonColumn, r as byteaColumn, s as float4Column, t as bitColumn, u as int4Column, v as timeStringColumn, w as timestamptzTemporalColumn, x as timestampTemporalColumn, y as timeTemporalColumn } from "./column-types-Bs2V0j8T.mjs";
2
2
  export { bitColumn, boolColumn, byteaColumn, charColumn, dateStringColumn, dateTemporalColumn, float4Column, float8Column, int2Column, int4Column, int8Column, intervalColumn, jsonColumn, jsonbColumn, numericColumn, rawColumn, textColumn, timeStringColumn, timeTemporalColumn, timestampStringColumn, timestampTemporalColumn, timestamptzJsDateColumn, timestamptzStringColumn, timestamptzTemporalColumn, timetzColumn, varbitColumn, varcharColumn };
@@ -1,2 +1,2 @@
1
- import { C as timestamptzStringColumn, D as varcharColumn, E as varbitColumn, S as timestamptzJsDateColumn, T as timetzColumn, _ as textColumn, a as dateStringColumn, b as timestampStringColumn, c as float8Column, d as int8Column, f as intervalColumn, g as rawColumn, h as numericColumn, i as charColumn, l as int2Column, m as jsonbColumn, n as boolColumn, o as dateTemporalColumn, p as jsonColumn, r as byteaColumn, s as float4Column, t as bitColumn, u as int4Column, v as timeStringColumn, w as timestamptzTemporalColumn, x as timestampTemporalColumn, y as timeTemporalColumn } from "./column-types-CI9_dRcU.mjs";
1
+ import { C as timestamptzStringColumn, D as varcharColumn, E as varbitColumn, S as timestamptzJsDateColumn, T as timetzColumn, _ as textColumn, a as dateStringColumn, b as timestampStringColumn, c as float8Column, d as int8Column, f as intervalColumn, g as rawColumn, h as numericColumn, i as charColumn, l as int2Column, m as jsonbColumn, n as boolColumn, o as dateTemporalColumn, p as jsonColumn, r as byteaColumn, s as float4Column, t as bitColumn, u as int4Column, v as timeStringColumn, w as timestamptzTemporalColumn, x as timestampTemporalColumn, y as timeTemporalColumn } from "./column-types-B4zsV-u3.mjs";
2
2
  export { bitColumn, boolColumn, byteaColumn, charColumn, dateStringColumn, dateTemporalColumn, float4Column, float8Column, int2Column, int4Column, int8Column, intervalColumn, jsonColumn, jsonbColumn, numericColumn, rawColumn, textColumn, timeStringColumn, timeTemporalColumn, timestampStringColumn, timestampTemporalColumn, timestamptzJsDateColumn, timestamptzStringColumn, timestamptzTemporalColumn, timetzColumn, varbitColumn, varcharColumn };
@@ -1,4 +1,4 @@
1
- import { a as createPostgresCodecRegistryWithBuiltins, i as createPostgresBuiltinCodecLookup } from "./codecs-DEMQ3cMm.mjs";
2
- import { n as qualifyName, r as quoteIdentifier, t as escapeLiteral } from "./sql-utils-B7LfCQCB.mjs";
3
- import { n as postgresAdapterDescriptor, t as PostgresControlAdapter } from "./control-Dqf8WaSU.mjs";
1
+ import { a as createPostgresCodecRegistryWithBuiltins, i as createPostgresBuiltinCodecLookup } from "./codecs-CoEpEqjM.mjs";
2
+ import { n as qualifyName, r as quoteIdentifier, t as escapeLiteral } from "./sql-utils-CnnGiZBc.mjs";
3
+ import { n as postgresAdapterDescriptor, t as PostgresControlAdapter } from "./control-D4cTcpcJ.mjs";
4
4
  export { PostgresControlAdapter, createPostgresBuiltinCodecLookup, createPostgresCodecRegistryWithBuiltins, postgresAdapterDescriptor as default, escapeLiteral, qualifyName, quoteIdentifier };
@@ -1,9 +1,9 @@
1
- import { i as quoteIdentifier, n as escapeLiteral, r as qualifyName } from "./sql-utils-Bnw3JbWf-zvWDkyrr.mjs";
2
- import { i as createPostgresCodecRegistryWithBuiltins, r as createPostgresBuiltinCodecLookup, t as assemblePostgresCodecRegistry } from "./codec-registry-D7XslgPe-Gg6TMpPg.mjs";
3
- import { t as PostgresControlAdapter } from "./contract-contributions-Xz2FpyfI-CZW0_mEj.mjs";
4
- import { t as postgresAdapterDescriptorMeta } from "./descriptor-meta-BkD3nXF_-NNc0jaU9.mjs";
1
+ import { i as quoteIdentifier, n as escapeLiteral, r as qualifyName } from "./sql-utils-Bnw3JbWf-BN0gcjZB.mjs";
2
+ import { i as createPostgresCodecRegistryWithBuiltins, r as createPostgresBuiltinCodecLookup, t as assemblePostgresCodecRegistry } from "./codec-registry-D7XslgPe-DTZnVB8W.mjs";
3
+ import { t as PostgresControlAdapter } from "./contract-contributions-Xz2FpyfI-CeQZqHKf.mjs";
4
+ import { t as postgresAdapterDescriptorMeta } from "./descriptor-meta-BkD3nXF_-CZaNqC6r.mjs";
5
5
  import { sqlDefaultFunctions } from "@prisma/orm-family-sql/family/control";
6
- //#region ../../../3-targets/6-adapters/postgres/dist/control.mjs
6
+ //#region ../../../3-targets/postgres/2-adapter/dist/control.mjs
7
7
  const postgresDefaultFunctionRegistryEntries = Object.entries(sqlDefaultFunctions());
8
8
  function createPostgresDefaultFunctionRegistry() {
9
9
  return new Map(postgresDefaultFunctionRegistryEntries);
@@ -1 +1 @@
1
- {"version":3,"file":"adapter__control.mjs","names":[],"sources":["../../../../3-targets/6-adapters/postgres/dist/control.mjs"],"sourcesContent":["import { n as PostgresControlAdapter } from \"./contract-contributions-Xz2FpyfI.mjs\";\nimport { t as postgresAdapterDescriptorMeta } from \"./descriptor-meta-BkD3nXF_.mjs\";\nimport { assemblePostgresCodecRegistry, createPostgresBuiltinCodecLookup, createPostgresCodecRegistryWithBuiltins } from \"@internal/target-postgres/codecs\";\nimport { sqlDefaultFunctions } from \"@internal/family-sql/control\";\nimport { escapeLiteral, qualifyName, quoteIdentifier } from \"@internal/target-postgres/sql-utils\";\n//#region src/core/control-mutation-defaults.ts\nconst postgresDefaultFunctionRegistryEntries = Object.entries(sqlDefaultFunctions());\nfunction createPostgresDefaultFunctionRegistry() {\n\treturn new Map(postgresDefaultFunctionRegistryEntries);\n}\n//#endregion\n//#region src/exports/control.ts\nconst postgresAdapterDescriptor = {\n\t...postgresAdapterDescriptorMeta,\n\tauthoring: { valueObjectStorageType: \"Jsonb\" },\n\tcontrolMutationDefaults: {\n\t\tdefaultFunctionRegistry: createPostgresDefaultFunctionRegistry(),\n\t\tgeneratorDescriptors: []\n\t},\n\tcreate(stack) {\n\t\treturn new PostgresControlAdapter(assemblePostgresCodecRegistry([\n\t\t\tstack.target,\n\t\t\t...stack.adapter === void 0 ? [] : [stack.adapter],\n\t\t\t...stack.extensions\n\t\t], stack.dataTypes.lookup), stack.dataTypes.lookup, stack.declaredDataTypes.map(({ type }) => type));\n\t}\n};\n//#endregion\nexport { PostgresControlAdapter, createPostgresBuiltinCodecLookup, createPostgresCodecRegistryWithBuiltins, postgresAdapterDescriptor as default, escapeLiteral, qualifyName, quoteIdentifier };\n\n//# sourceMappingURL=control.mjs.map"],"mappings":";;;;;;AAMA,MAAM,yCAAyC,OAAO,QAAQ,oBAAoB,CAAC;AACnF,SAAS,wCAAwC;CAChD,OAAO,IAAI,IAAI,sCAAsC;AACtD;AAGA,MAAM,4BAA4B;CACjC,GAAG;CACH,WAAW,EAAE,wBAAwB,QAAQ;CAC7C,yBAAyB;EACxB,yBAAyB,sCAAsC;EAC/D,sBAAsB,CAAC;CACxB;CACA,OAAO,OAAO;EACb,OAAO,IAAI,uBAAuB,8BAA8B;GAC/D,MAAM;GACN,GAAG,MAAM,YAAY,KAAK,IAAI,CAAC,IAAI,CAAC,MAAM,OAAO;GACjD,GAAG,MAAM;EACV,GAAG,MAAM,UAAU,MAAM,GAAG,MAAM,UAAU,QAAQ,MAAM,kBAAkB,KAAK,EAAE,WAAW,IAAI,CAAC;CACpG;AACD"}
1
+ {"version":3,"file":"adapter__control.mjs","names":[],"sources":["../../../../3-targets/postgres/2-adapter/dist/control.mjs"],"sourcesContent":["import { n as PostgresControlAdapter } from \"./contract-contributions-Xz2FpyfI.mjs\";\nimport { t as postgresAdapterDescriptorMeta } from \"./descriptor-meta-BkD3nXF_.mjs\";\nimport { assemblePostgresCodecRegistry, createPostgresBuiltinCodecLookup, createPostgresCodecRegistryWithBuiltins } from \"@internal/target-postgres/codecs\";\nimport { sqlDefaultFunctions } from \"@internal/family-sql/control\";\nimport { escapeLiteral, qualifyName, quoteIdentifier } from \"@internal/target-postgres/sql-utils\";\n//#region src/core/migrations/control-mutation-defaults.ts\nconst postgresDefaultFunctionRegistryEntries = Object.entries(sqlDefaultFunctions());\nfunction createPostgresDefaultFunctionRegistry() {\n\treturn new Map(postgresDefaultFunctionRegistryEntries);\n}\n//#endregion\n//#region src/exports/control.ts\nconst postgresAdapterDescriptor = {\n\t...postgresAdapterDescriptorMeta,\n\tauthoring: { valueObjectStorageType: \"Jsonb\" },\n\tcontrolMutationDefaults: {\n\t\tdefaultFunctionRegistry: createPostgresDefaultFunctionRegistry(),\n\t\tgeneratorDescriptors: []\n\t},\n\tcreate(stack) {\n\t\treturn new PostgresControlAdapter(assemblePostgresCodecRegistry([\n\t\t\tstack.target,\n\t\t\t...stack.adapter === void 0 ? [] : [stack.adapter],\n\t\t\t...stack.extensions\n\t\t], stack.dataTypes.lookup), stack.dataTypes.lookup, stack.declaredDataTypes.map(({ type }) => type));\n\t}\n};\n//#endregion\nexport { PostgresControlAdapter, createPostgresBuiltinCodecLookup, createPostgresCodecRegistryWithBuiltins, postgresAdapterDescriptor as default, escapeLiteral, qualifyName, quoteIdentifier };\n\n//# sourceMappingURL=control.mjs.map"],"mappings":";;;;;;AAMA,MAAM,yCAAyC,OAAO,QAAQ,oBAAoB,CAAC;AACnF,SAAS,wCAAwC;CAChD,OAAO,IAAI,IAAI,sCAAsC;AACtD;AAGA,MAAM,4BAA4B;CACjC,GAAG;CACH,WAAW,EAAE,wBAAwB,QAAQ;CAC7C,yBAAyB;EACxB,yBAAyB,sCAAsC;EAC/D,sBAAsB,CAAC;CACxB;CACA,OAAO,OAAO;EACb,OAAO,IAAI,uBAAuB,8BAA8B;GAC/D,MAAM;GACN,GAAG,MAAM,YAAY,KAAK,IAAI,CAAC,IAAI,CAAC,MAAM,OAAO;GACjD,GAAG,MAAM;EACV,GAAG,MAAM,UAAU,MAAM,GAAG,MAAM,UAAU,QAAQ,MAAM,kBAAkB,KAAK,EAAE,WAAW,IAAI,CAAC;CACpG;AACD"}
@@ -1,2 +1,2 @@
1
- import { n as postgresRuntimeAdapterDescriptor, t as SqlRuntimeAdapter } from "./runtime-XXYjt_3Q.mjs";
1
+ import { n as postgresRuntimeAdapterDescriptor, t as SqlRuntimeAdapter } from "./runtime-DtjW0GP_.mjs";
2
2
  export { SqlRuntimeAdapter, postgresRuntimeAdapterDescriptor as default };
@@ -1,12 +1,12 @@
1
- import { o as postgresCodecRegistry, t as assemblePostgresCodecRegistry } from "./codec-registry-D7XslgPe-Gg6TMpPg.mjs";
2
- import { d as postgresNowGenerators } from "./authoring-SbdvmVJh-CgZp23qA.mjs";
3
- import { n as createPostgresAdapterWithCodecRegistry, r as postgresRawCodecInferer } from "./adapter-svGTIjA2-CtHa7kMs.mjs";
4
- import { t as postgresAdapterDescriptorMeta } from "./descriptor-meta-BkD3nXF_-NNc0jaU9.mjs";
1
+ import { o as postgresCodecRegistry, t as assemblePostgresCodecRegistry } from "./codec-registry-D7XslgPe-DTZnVB8W.mjs";
2
+ import { d as postgresNowGenerators } from "./authoring-SbdvmVJh-nQ7YliD_.mjs";
3
+ import { n as createPostgresAdapterWithCodecRegistry, r as postgresRawCodecInferer } from "./adapter-svGTIjA2-1p-Iw8D2.mjs";
4
+ import { t as postgresAdapterDescriptorMeta } from "./descriptor-meta-BkD3nXF_-CZaNqC6r.mjs";
5
5
  import { assembleDataTypes } from "@prisma/orm-framework/components/codec";
6
6
  import { timestampNowRuntimeGenerator } from "@prisma/orm-family-sql/family/runtime";
7
7
  import { builtinGeneratorIds } from "@prisma/orm-framework/ids";
8
8
  import { generateId } from "@prisma/orm-framework/ids/runtime";
9
- //#region ../../../3-targets/6-adapters/postgres/dist/runtime.mjs
9
+ //#region ../../../3-targets/postgres/2-adapter/dist/runtime.mjs
10
10
  function createPostgresMutationDefaultGenerators() {
11
11
  return [
12
12
  ...builtinGeneratorIds.map((id) => ({
@@ -1 +1 @@
1
- {"version":3,"file":"adapter__runtime.mjs","names":[],"sources":["../../../../3-targets/6-adapters/postgres/dist/runtime.mjs"],"sourcesContent":["import { n as createPostgresAdapterWithCodecRegistry, r as postgresRawCodecInferer } from \"./adapter-svGTIjA2.mjs\";\nimport { t as postgresAdapterDescriptorMeta } from \"./descriptor-meta-BkD3nXF_.mjs\";\nimport { assembleDataTypes } from \"@internal/framework-components/codec\";\nimport { assemblePostgresCodecRegistry, postgresCodecRegistry } from \"@internal/target-postgres/codecs\";\nimport { timestampNowRuntimeGenerator } from \"@internal/family-sql/runtime\";\nimport { builtinGeneratorIds } from \"@internal/ids\";\nimport { generateId } from \"@internal/ids/runtime\";\nimport { postgresNowGenerators } from \"@internal/target-postgres/runtime\";\n//#region src/exports/runtime.ts\nfunction createPostgresMutationDefaultGenerators() {\n\treturn [\n\t\t...builtinGeneratorIds.map((id) => ({\n\t\t\tid,\n\t\t\tgenerate: (params) => {\n\t\t\t\treturn generateId(params ? {\n\t\t\t\t\tid,\n\t\t\t\t\tparams\n\t\t\t\t} : { id });\n\t\t\t},\n\t\t\tstability: \"field\"\n\t\t})),\n\t\ttimestampNowRuntimeGenerator(),\n\t\t...postgresNowGenerators.map(({ id, generate }) => ({\n\t\t\tid,\n\t\t\tgenerate,\n\t\t\tstability: \"query\"\n\t\t}))\n\t];\n}\nconst postgresRuntimeAdapterDescriptor = {\n\t...postgresAdapterDescriptorMeta,\n\tcodecs: () => Array.from(postgresCodecRegistry.values()),\n\tmutationDefaultGenerators: createPostgresMutationDefaultGenerators,\n\trawCodecInferer: postgresRawCodecInferer,\n\tcreate(stack) {\n\t\tconst components = [\n\t\t\tstack.target,\n\t\t\tstack.adapter,\n\t\t\t...stack.extensions\n\t\t];\n\t\tconst dataTypes = assembleDataTypes(components);\n\t\treturn createPostgresAdapterWithCodecRegistry(assemblePostgresCodecRegistry(components, dataTypes.lookup), dataTypes.lookup, dataTypes.declared.map(({ type }) => type));\n\t}\n};\n//#endregion\nexport { postgresRuntimeAdapterDescriptor as default };\n\n//# sourceMappingURL=runtime.mjs.map"],"mappings":";;;;;;;;;AASA,SAAS,0CAA0C;CAClD,OAAO;EACN,GAAG,oBAAoB,KAAK,QAAQ;GACnC;GACA,WAAW,WAAW;IACrB,OAAO,WAAW,SAAS;KAC1B;KACA;IACD,IAAI,EAAE,GAAG,CAAC;GACX;GACA,WAAW;EACZ,EAAE;EACF,6BAA6B;EAC7B,GAAG,sBAAsB,KAAK,EAAE,IAAI,gBAAgB;GACnD;GACA;GACA,WAAW;EACZ,EAAE;CACH;AACD;AACA,MAAM,mCAAmC;CACxC,GAAG;CACH,cAAc,MAAM,KAAK,sBAAsB,OAAO,CAAC;CACvD,2BAA2B;CAC3B,iBAAiB;CACjB,OAAO,OAAO;EACb,MAAM,aAAa;GAClB,MAAM;GACN,MAAM;GACN,GAAG,MAAM;EACV;EACA,MAAM,YAAY,kBAAkB,UAAU;EAC9C,OAAO,uCAAuC,8BAA8B,YAAY,UAAU,MAAM,GAAG,UAAU,QAAQ,UAAU,SAAS,KAAK,EAAE,WAAW,IAAI,CAAC;CACxK;AACD"}
1
+ {"version":3,"file":"adapter__runtime.mjs","names":[],"sources":["../../../../3-targets/postgres/2-adapter/dist/runtime.mjs"],"sourcesContent":["import { n as createPostgresAdapterWithCodecRegistry, r as postgresRawCodecInferer } from \"./adapter-svGTIjA2.mjs\";\nimport { t as postgresAdapterDescriptorMeta } from \"./descriptor-meta-BkD3nXF_.mjs\";\nimport { assembleDataTypes } from \"@internal/framework-components/codec\";\nimport { assemblePostgresCodecRegistry, postgresCodecRegistry } from \"@internal/target-postgres/codecs\";\nimport { timestampNowRuntimeGenerator } from \"@internal/family-sql/runtime\";\nimport { builtinGeneratorIds } from \"@internal/ids\";\nimport { generateId } from \"@internal/ids/runtime\";\nimport { postgresNowGenerators } from \"@internal/target-postgres/runtime\";\n//#region src/exports/runtime.ts\nfunction createPostgresMutationDefaultGenerators() {\n\treturn [\n\t\t...builtinGeneratorIds.map((id) => ({\n\t\t\tid,\n\t\t\tgenerate: (params) => {\n\t\t\t\treturn generateId(params ? {\n\t\t\t\t\tid,\n\t\t\t\t\tparams\n\t\t\t\t} : { id });\n\t\t\t},\n\t\t\tstability: \"field\"\n\t\t})),\n\t\ttimestampNowRuntimeGenerator(),\n\t\t...postgresNowGenerators.map(({ id, generate }) => ({\n\t\t\tid,\n\t\t\tgenerate,\n\t\t\tstability: \"query\"\n\t\t}))\n\t];\n}\nconst postgresRuntimeAdapterDescriptor = {\n\t...postgresAdapterDescriptorMeta,\n\tcodecs: () => Array.from(postgresCodecRegistry.values()),\n\tmutationDefaultGenerators: createPostgresMutationDefaultGenerators,\n\trawCodecInferer: postgresRawCodecInferer,\n\tcreate(stack) {\n\t\tconst components = [\n\t\t\tstack.target,\n\t\t\tstack.adapter,\n\t\t\t...stack.extensions\n\t\t];\n\t\tconst dataTypes = assembleDataTypes(components);\n\t\treturn createPostgresAdapterWithCodecRegistry(assemblePostgresCodecRegistry(components, dataTypes.lookup), dataTypes.lookup, dataTypes.declared.map(({ type }) => type));\n\t}\n};\n//#endregion\nexport { postgresRuntimeAdapterDescriptor as default };\n\n//# sourceMappingURL=runtime.mjs.map"],"mappings":";;;;;;;;;AASA,SAAS,0CAA0C;CAClD,OAAO;EACN,GAAG,oBAAoB,KAAK,QAAQ;GACnC;GACA,WAAW,WAAW;IACrB,OAAO,WAAW,SAAS;KAC1B;KACA;IACD,IAAI,EAAE,GAAG,CAAC;GACX;GACA,WAAW;EACZ,EAAE;EACF,6BAA6B;EAC7B,GAAG,sBAAsB,KAAK,EAAE,IAAI,gBAAgB;GACnD;GACA;GACA,WAAW;EACZ,EAAE;CACH;AACD;AACA,MAAM,mCAAmC;CACxC,GAAG;CACH,cAAc,MAAM,KAAK,sBAAsB,OAAO,CAAC;CACvD,2BAA2B;CAC3B,iBAAiB;CACjB,OAAO,OAAO;EACb,MAAM,aAAa;GAClB,MAAM;GACN,MAAM;GACN,GAAG,MAAM;EACV;EACA,MAAM,YAAY,kBAAkB,UAAU;EAC9C,OAAO,uCAAuC,8BAA8B,YAAY,UAAU,MAAM,GAAG,UAAU,QAAQ,UAAU,SAAS,KAAK,EAAE,WAAW,IAAI,CAAC;CACxK;AACD"}
@@ -1,2 +1,2 @@
1
- import { t as renderLoweredSql } from "./sql-renderer-CGc-Ln4u.mjs";
1
+ import { t as renderLoweredSql } from "./sql-renderer-BiBhge7D.mjs";
2
2
  export { renderLoweredSql };
@@ -1,2 +1,2 @@
1
- import { n as renderLoweredSql } from "./sql-renderer-BdWJPa5F-Q6M1dydc.mjs";
1
+ import { n as renderLoweredSql } from "./sql-renderer-BdWJPa5F-Ct0CPlXc.mjs";
2
2
  export { renderLoweredSql };
@@ -1,5 +1,5 @@
1
- import { t as PostgresContract } from "./postgres-schema-Xsjt3RKO-Buv2X8ai.mjs";
2
- import { a as OrderClause, c as PostgresLoweredStatement, d as StorageTable, i as Expr, l as SelectAst, n as ColumnRef, o as ParamRef, r as Direction, s as PostgresAdapterOptions, t as BinaryExpr, u as StorageColumn } from "./types-D6lgKhE5-Fxmh_bQa.mjs";
3
- import { t as PostgresCodecRegistry } from "./codecs-DEMQ3cMm.mjs";
4
- import "./types-DwVVpdFJ.mjs";
1
+ import { t as PostgresContract } from "./postgres-schema-Xsjt3RKO-bis-SVSB.mjs";
2
+ import { a as OrderClause, c as PostgresLoweredStatement, d as StorageTable, i as Expr, l as SelectAst, n as ColumnRef, o as ParamRef, r as Direction, s as PostgresAdapterOptions, t as BinaryExpr, u as StorageColumn } from "./types-D6lgKhE5-D1J9YJnd.mjs";
3
+ import { t as PostgresCodecRegistry } from "./codecs-CoEpEqjM.mjs";
4
+ import "./types-AvjnIUna.mjs";
5
5
  export type { BinaryExpr, ColumnRef, Direction, Expr, OrderClause, ParamRef, PostgresAdapterOptions, PostgresCodecRegistry, PostgresContract, PostgresLoweredStatement, SelectAst, StorageColumn, StorageTable };
@@ -1,5 +1,5 @@
1
1
  import { SqlAggregateLowering } from "@prisma/orm-family-sql/relational-core/aggregate-descriptor-registry";
2
- //#region ../../../3-targets/3-targets/postgres/dist/aggregates.d.mts
2
+ //#region ../../../3-targets/postgres/1-target/dist/aggregates.d.mts
3
3
  //#region src/core/aggregates.d.ts
4
4
  /**
5
5
  * Every aggregate overload the PostgreSQL target contributes. The adapter lists these on `types.aggregateDescriptors`, from where emission derives result types and the runtime builds its resolution registry.
@@ -315,4 +315,4 @@ declare const postgresAggregateDescriptors: readonly [{
315
315
  })[]];
316
316
  //#endregion
317
317
  export { postgresAggregateDescriptors as t };
318
- //# sourceMappingURL=aggregates-BjiTuckw.d.mts.map
318
+ //# sourceMappingURL=aggregates-CEqqEg8k.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"aggregates-CEqqEg8k.d.mts","names":[],"sources":["../../../../3-targets/postgres/1-target/dist/aggregates.d.mts"],"mappings":";;;;;;cAKc;WACH;WACA;aACE;;WAEF;aACE;aACA;;WAEF;WACA;;WAEA;WACA;aACE;;WAEF;aACE;aACA;;WAEF;WACA;WACA,OAAO;;WAEP;WACA;aACE;aACA;;WAEF;aACE;aACA;;WAEF;;WAEA,OAAO;WACP;WACA;aACE;aACA;;WAEF;aACE;aACA;;WAEF;;WAEA,OAAO;WACP;WACA;aACE;aACA;;WAEF;aACE;aACA;;WAEF;;WAEA,OAAO;WACP;WACA;aACE;aACA;;WAEF;aACE;aACA;;WAEF;;WAEA;WACA;aACE;aACA;;WAEF;aACE;aACA;;WAEF;;WAEA;WACA;aACE;aACA;;WAEF;aACE;aACA;;WAEF;;WAEA;WACA;aACE;aACA;;WAEF;aACE;aACA;;WAEF;;WAEA;WACA;aACE;aACA;;WAEF;aACE;aACA;;WAEF;;WAEA;WACA;aACE;aACA;;WAEF;aACE;aACA;;WAEF;;WAEA;WACA;aACE;aACA;;WAEF;aACE;aACA;;WAEF;;WAEA;WACA;aACE;aACA;;WAEF;aACE;aACA;;WAEF;;WAEA,OAAO;WACP;WACA;aACE;aACA;;WAEF;aACE;aACA;;WAEF;;WAEA,OAAO;WACP;WACA;aACE;aACA;;WAEF;aACE;aACA;;WAEF;;WAEA;WACA;aACE;aACA;;WAEF;aACE;aACA;;WAEF;;WAEA;WACA;aACE;aACA;;WAEF;aACE;aACA;;WAEF;;WAEA;WACA;aACE;aACA;;WAEF;aACE;aACA;;WAEF;;WAEA;WACA;aACE;aACA;;WAEF;aACE;aACA;;WAEF;;WAEA;WACA;aACE;aACA;;WAEF;aACE;aACA;;WAEF;;WAEA;WACA;aACE;aACA;;WAEF;aACE;;WAEF;;WAEA;WACA;aACE;aACA;;WAEF;aACE;;WAEF;;WAEA;WACA;aACE;aACA;;WAEF;aACE;aACA;;WAEF;;WAEA;WACA;aACE;aACA;;WAEF;aACE;;WAEF;;WAEA;WACA;aACE;aACA;;WAEF;aACE;;WAEF;;WAEA;WACA;aACE;aACA;;WAEF;aACE;;WAEF;;WAEA;WACA;aACE;aACA;;WAEF;aACE;aACA;;WAEF;;WAEA;WACA;aACE;aACA;;WAEF;aACE;;WAEF"}
@@ -1,6 +1,6 @@
1
- import { A as PG_TIME_TEMPORAL_CODEC_ID, C as PG_TIMESTAMPTZ_DATE_CODEC_ID, D as PG_TIMESTAMP_TEMPORAL_CODEC_ID, E as PG_TIMESTAMP_STRING_CODEC_ID, F as PG_VARCHAR_CODEC_ID, L as SQL_FLOAT_CODEC_ID, M as PG_UNBOUNDED_INT_CODEC_ID, O as PG_TIMETZ_CODEC_ID, R as SQL_INT_CODEC_ID, S as PG_TEXT_CODEC_ID, T as PG_TIMESTAMPTZ_TEMPORAL_CODEC_ID, V as SQL_VARCHAR_CODEC_ID, _ as PG_INT_CODEC_ID, a as PG_DATE_STRING_CODEC_ID, b as PG_NUMERIC_CODEC_ID, c as PG_FLOAT4_CODEC_ID, d as PG_INET_CODEC_ID, f as PG_INT2_CODEC_ID, g as PG_INTERVAL_CODEC_ID, h as PG_INT8_NUMBER_CODEC_ID, k as PG_TIME_STRING_CODEC_ID, l as PG_FLOAT8_CODEC_ID, m as PG_INT8_CODEC_ID, o as PG_DATE_TEMPORAL_CODEC_ID, p as PG_INT4_CODEC_ID, s as PG_ENUM_CODEC_ID, u as PG_FLOAT_CODEC_ID, w as PG_TIMESTAMPTZ_STRING_CODEC_ID, x as PG_TEXT_ARRAY_CODEC_ID } from "./codec-ids-BMhEpFwv-BLIC4g3Y.mjs";
1
+ import { A as PG_TIME_TEMPORAL_CODEC_ID, C as PG_TIMESTAMPTZ_DATE_CODEC_ID, D as PG_TIMESTAMP_TEMPORAL_CODEC_ID, E as PG_TIMESTAMP_STRING_CODEC_ID, F as PG_VARCHAR_CODEC_ID, L as SQL_FLOAT_CODEC_ID, M as PG_UNBOUNDED_INT_CODEC_ID, O as PG_TIMETZ_CODEC_ID, R as SQL_INT_CODEC_ID, S as PG_TEXT_CODEC_ID, T as PG_TIMESTAMPTZ_TEMPORAL_CODEC_ID, V as SQL_VARCHAR_CODEC_ID, _ as PG_INT_CODEC_ID, a as PG_DATE_STRING_CODEC_ID, b as PG_NUMERIC_CODEC_ID, c as PG_FLOAT4_CODEC_ID, d as PG_INET_CODEC_ID, f as PG_INT2_CODEC_ID, g as PG_INTERVAL_CODEC_ID, h as PG_INT8_NUMBER_CODEC_ID, k as PG_TIME_STRING_CODEC_ID, l as PG_FLOAT8_CODEC_ID, m as PG_INT8_CODEC_ID, o as PG_DATE_TEMPORAL_CODEC_ID, p as PG_INT4_CODEC_ID, s as PG_ENUM_CODEC_ID, u as PG_FLOAT_CODEC_ID, w as PG_TIMESTAMPTZ_STRING_CODEC_ID, x as PG_TEXT_ARRAY_CODEC_ID } from "./codec-ids-BMhEpFwv-B8Zh0s_Q.mjs";
2
2
  import { AggregateExpr, CastExpr } from "@prisma/orm-family-sql/relational-core/ast";
3
- //#region ../../../3-targets/3-targets/postgres/dist/aggregates.mjs
3
+ //#region ../../../3-targets/postgres/1-target/dist/aggregates.mjs
4
4
  /**
5
5
  * An aggregate whose result is one of the input values, so it carries the input's codec — type parameters included, since a `numeric(10,3)` minimum is still a `numeric(10,3)`.
6
6
  */
@@ -194,4 +194,4 @@ const postgresAggregateDescriptors = [
194
194
  //#endregion
195
195
  export { postgresAggregateDescriptors as t };
196
196
 
197
- //# sourceMappingURL=aggregates-C7KEByGU.mjs.map
197
+ //# sourceMappingURL=aggregates-Dw-lAutX.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"aggregates-Dw-lAutX.mjs","names":[],"sources":["../../../../3-targets/postgres/1-target/dist/aggregates.mjs"],"sourcesContent":["import { A as PG_TIME_TEMPORAL_CODEC_ID, C as PG_TIMESTAMPTZ_DATE_CODEC_ID, D as PG_TIMESTAMP_TEMPORAL_CODEC_ID, E as PG_TIMESTAMP_STRING_CODEC_ID, F as PG_VARCHAR_CODEC_ID, L as SQL_FLOAT_CODEC_ID, M as PG_UNBOUNDED_INT_CODEC_ID, O as PG_TIMETZ_CODEC_ID, R as SQL_INT_CODEC_ID, S as PG_TEXT_CODEC_ID, T as PG_TIMESTAMPTZ_TEMPORAL_CODEC_ID, V as SQL_VARCHAR_CODEC_ID, _ as PG_INT_CODEC_ID, a as PG_DATE_STRING_CODEC_ID, b as PG_NUMERIC_CODEC_ID, c as PG_FLOAT4_CODEC_ID, d as PG_INET_CODEC_ID, f as PG_INT2_CODEC_ID, g as PG_INTERVAL_CODEC_ID, h as PG_INT8_NUMBER_CODEC_ID, k as PG_TIME_STRING_CODEC_ID, l as PG_FLOAT8_CODEC_ID, m as PG_INT8_CODEC_ID, o as PG_DATE_TEMPORAL_CODEC_ID, p as PG_INT4_CODEC_ID, s as PG_ENUM_CODEC_ID, u as PG_FLOAT_CODEC_ID, w as PG_TIMESTAMPTZ_STRING_CODEC_ID, x as PG_TEXT_ARRAY_CODEC_ID } from \"./codec-ids-BMhEpFwv.mjs\";\nimport { AggregateExpr, CastExpr } from \"@internal/sql-relational-core/ast\";\n//#region src/core/aggregates.ts\n/**\n* An aggregate whose result is one of the input values, so it carries the input's codec — type parameters included, since a `numeric(10,3)` minimum is still a `numeric(10,3)`.\n*/\nconst preservesInput = (operation, input) => ({\n\toperation,\n\tinput,\n\toutput: { kind: \"self\" },\n\tnullable: true\n});\n/**\n* An aggregate whose result is a new value. It names its result codec without type parameters: a sum leaves the input's width behind (a `numeric(10,3)` column sums to an unconstrained `numeric`), so carrying the input's parameters into the result would understate the range.\n*/\nconst produces = (operation, input, codecId) => ({\n\toperation,\n\tinput,\n\toutput: {\n\t\tkind: \"codec\",\n\t\tcodecId\n\t},\n\tnullable: true\n});\n/** The same, for an operation that builds its own expression. */\nconst producesVia = (operation, input, codecId, lower) => ({\n\t...produces(operation, input, codecId),\n\tlower\n});\n/** The SQL aggregate a lossless variant computes with. `sumBigInt` is a `sum` read exactly, `countBigInt` a `count`, `avgDecimal` an `avg`: the variants differ in how the result is read, never in what the database computes. */\nconst computedWith = (fn) => ({ expr }) => new AggregateExpr(fn, expr);\n/** `avg` over an integer column, rounded once. PostgreSQL computes the exact `numeric` mean and the cast turns that one value into the `double precision` the result codec reads; casting the input instead would round every value before it was accumulated. */\nconst avgCastToFloat8 = ({ expr }) => CastExpr.as(new AggregateExpr(\"avg\", expr), \"float8\");\n/** Integer codecs whose `sum` widens to `bigint` — every built-in integer bar the 64-bit ones, whose sum goes to `numeric` instead. */\nconst SUM_WIDENS_TO_INT8 = [\n\tPG_INT2_CODEC_ID,\n\tPG_INT4_CODEC_ID,\n\tPG_INT_CODEC_ID,\n\tSQL_INT_CODEC_ID\n];\n/** The 64-bit integer codecs: PostgreSQL computes their `sum` as a `numeric`, a total free to leave the range an `int8` holds. */\nconst SUM_WIDENS_TO_NUMERIC = [PG_INT8_CODEC_ID, PG_INT8_NUMBER_CODEC_ID];\n/** The integer codecs a `sum` reads back as a `number`: every fixed-width one, whatever its own application type. */\nconst FIXED_WIDTH_INTEGER_CODECS = [...SUM_WIDENS_TO_INT8, ...SUM_WIDENS_TO_NUMERIC];\n/** Every built-in integer codec, the unbounded one included: `avg` over any of them is a `numeric` mean. */\nconst INTEGER_CODECS = [...FIXED_WIDTH_INTEGER_CODECS, PG_UNBOUNDED_INT_CODEC_ID];\n/** Codecs over `double precision`, whose `sum` and `avg` stay there. */\nconst DOUBLE_PRECISION_CODECS = [\n\tPG_FLOAT8_CODEC_ID,\n\tPG_FLOAT_CODEC_ID,\n\tSQL_FLOAT_CODEC_ID\n];\n/**\n* Codecs whose `min`/`max` returns the input type and whose traits do not already say so: the temporal types, `inet`, `text[]`, and native enums advertise `order` or `equality`, which `uuid`, `bit`, `bit varying`, `bool`, `bytea`, `json`, and `jsonb` also advertise while having no `min`/`max` at all. An exact overload per supported codec is therefore the only honest shape — a trait fallback over `order` would claim the unsupported ones too.\n*/\nconst MIN_MAX_PRESERVING_CODECS = [\n\tPG_ENUM_CODEC_ID,\n\tPG_TIMETZ_CODEC_ID,\n\tPG_INTERVAL_CODEC_ID,\n\tPG_INET_CODEC_ID,\n\tPG_TEXT_ARRAY_CODEC_ID,\n\tPG_DATE_STRING_CODEC_ID,\n\tPG_TIMESTAMP_STRING_CODEC_ID,\n\tPG_TIMESTAMPTZ_STRING_CODEC_ID,\n\tPG_TIMESTAMPTZ_DATE_CODEC_ID,\n\tPG_TIME_STRING_CODEC_ID,\n\tPG_DATE_TEMPORAL_CODEC_ID,\n\tPG_TIMESTAMP_TEMPORAL_CODEC_ID,\n\tPG_TIMESTAMPTZ_TEMPORAL_CODEC_ID,\n\tPG_TIME_TEMPORAL_CODEC_ID\n];\n/**\n* `min`/`max` over the character types, where the trait rung does hold: every `textual` codec returns its input type — except the two `varchar` codecs, whose result PostgreSQL widens to `text`, and which therefore claim themselves exactly and shadow the fallback.\n*/\nconst MIN_MAX_WIDENS_TO_TEXT = [PG_VARCHAR_CODEC_ID, SQL_VARCHAR_CODEC_ID];\nconst orderingDescriptors = (operation) => [\n\tpreservesInput(operation, {\n\t\tkind: \"trait\",\n\t\ttrait: \"numeric\"\n\t}),\n\tpreservesInput(operation, {\n\t\tkind: \"trait\",\n\t\ttrait: \"textual\"\n\t}),\n\t...MIN_MAX_WIDENS_TO_TEXT.map((codecId) => produces(operation, {\n\t\tkind: \"codec\",\n\t\tcodecId\n\t}, PG_TEXT_CODEC_ID)),\n\t...MIN_MAX_PRESERVING_CODECS.map((codecId) => preservesInput(operation, {\n\t\tkind: \"codec\",\n\t\tcodecId\n\t}))\n];\n/**\n* Every aggregate overload the PostgreSQL target contributes. The adapter lists these on `types.aggregateDescriptors`, from where emission derives result types and the runtime builds its resolution registry.\n*/\nconst postgresAggregateDescriptors = [\n\t{\n\t\toperation: \"count\",\n\t\tinput: { kind: \"any\" },\n\t\toutput: {\n\t\t\tkind: \"codec\",\n\t\t\tcodecId: PG_INT8_NUMBER_CODEC_ID\n\t\t},\n\t\tnullable: false,\n\t\temptyResultWire: \"0\"\n\t},\n\t{\n\t\toperation: \"countBigInt\",\n\t\tinput: { kind: \"any\" },\n\t\toutput: {\n\t\t\tkind: \"codec\",\n\t\t\tcodecId: PG_INT8_CODEC_ID\n\t\t},\n\t\tnullable: false,\n\t\temptyResultWire: \"0\",\n\t\tlower: computedWith(\"count\")\n\t},\n\t...FIXED_WIDTH_INTEGER_CODECS.map((codecId) => produces(\"sum\", {\n\t\tkind: \"codec\",\n\t\tcodecId\n\t}, PG_INT8_NUMBER_CODEC_ID)),\n\t...SUM_WIDENS_TO_INT8.map((codecId) => producesVia(\"sumBigInt\", {\n\t\tkind: \"codec\",\n\t\tcodecId\n\t}, PG_INT8_CODEC_ID, computedWith(\"sum\"))),\n\t...SUM_WIDENS_TO_NUMERIC.map((codecId) => producesVia(\"sumBigInt\", {\n\t\tkind: \"codec\",\n\t\tcodecId\n\t}, PG_UNBOUNDED_INT_CODEC_ID, computedWith(\"sum\"))),\n\tproducesVia(\"sumBigInt\", {\n\t\tkind: \"codec\",\n\t\tcodecId: PG_UNBOUNDED_INT_CODEC_ID\n\t}, PG_UNBOUNDED_INT_CODEC_ID, computedWith(\"sum\")),\n\tproduces(\"sum\", {\n\t\tkind: \"codec\",\n\t\tcodecId: PG_FLOAT4_CODEC_ID\n\t}, PG_FLOAT4_CODEC_ID),\n\t...DOUBLE_PRECISION_CODECS.map((codecId) => produces(\"sum\", {\n\t\tkind: \"codec\",\n\t\tcodecId\n\t}, PG_FLOAT8_CODEC_ID)),\n\tproduces(\"sum\", {\n\t\tkind: \"codec\",\n\t\tcodecId: PG_NUMERIC_CODEC_ID\n\t}, PG_NUMERIC_CODEC_ID),\n\tproduces(\"sum\", {\n\t\tkind: \"codec\",\n\t\tcodecId: PG_UNBOUNDED_INT_CODEC_ID\n\t}, PG_UNBOUNDED_INT_CODEC_ID),\n\tproduces(\"sum\", {\n\t\tkind: \"codec\",\n\t\tcodecId: PG_INTERVAL_CODEC_ID\n\t}, PG_INTERVAL_CODEC_ID),\n\tproduces(\"sum\", {\n\t\tkind: \"codec\",\n\t\tcodecId: PG_TIME_STRING_CODEC_ID\n\t}, PG_INTERVAL_CODEC_ID),\n\tproduces(\"sum\", {\n\t\tkind: \"codec\",\n\t\tcodecId: PG_TIME_TEMPORAL_CODEC_ID\n\t}, PG_INTERVAL_CODEC_ID),\n\t...INTEGER_CODECS.map((codecId) => producesVia(\"avg\", {\n\t\tkind: \"codec\",\n\t\tcodecId\n\t}, PG_FLOAT8_CODEC_ID, avgCastToFloat8)),\n\t...[...INTEGER_CODECS, PG_NUMERIC_CODEC_ID].map((codecId) => producesVia(\"avgDecimal\", {\n\t\tkind: \"codec\",\n\t\tcodecId\n\t}, PG_NUMERIC_CODEC_ID, computedWith(\"avg\"))),\n\t...[PG_FLOAT4_CODEC_ID, ...DOUBLE_PRECISION_CODECS].map((codecId) => produces(\"avg\", {\n\t\tkind: \"codec\",\n\t\tcodecId\n\t}, PG_FLOAT8_CODEC_ID)),\n\tproduces(\"avg\", {\n\t\tkind: \"codec\",\n\t\tcodecId: PG_NUMERIC_CODEC_ID\n\t}, PG_NUMERIC_CODEC_ID),\n\tproduces(\"avg\", {\n\t\tkind: \"codec\",\n\t\tcodecId: PG_INTERVAL_CODEC_ID\n\t}, PG_INTERVAL_CODEC_ID),\n\tproduces(\"avg\", {\n\t\tkind: \"codec\",\n\t\tcodecId: PG_TIME_STRING_CODEC_ID\n\t}, PG_INTERVAL_CODEC_ID),\n\tproduces(\"avg\", {\n\t\tkind: \"codec\",\n\t\tcodecId: PG_TIME_TEMPORAL_CODEC_ID\n\t}, PG_INTERVAL_CODEC_ID),\n\t...orderingDescriptors(\"min\"),\n\t...orderingDescriptors(\"max\")\n];\n//#endregion\nexport { postgresAggregateDescriptors };\n\n//# sourceMappingURL=aggregates.mjs.map"],"mappings":";;;;;;AAMA,MAAM,kBAAkB,WAAW,WAAW;CAC7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AAK,YAAY,SAAS,OAAO;EACpF,MAAM;EACN;CACD,GAAG,kBAAkB,CAAC;CACtB,SAAS,OAAO;EACf,MAAM;EACN,SAAS;CACV,GAAG,mBAAmB;CACtB,SAAS,OAAO;EACf,MAAM;EACN,SAAS;CACV,GAAG,oBAAoB;CACvB,SAAS,OAAO;EACf,MAAM;EACN,SAAS;CACV,GAAG,oBAAoB;CACvB,SAAS,OAAO;EACf,MAAM;EACN,SAAS;CACV,GAAG,oBAAoB;CACvB,GAAG,oBAAoB,KAAK;CAC5B,GAAG,oBAAoB,KAAK;AAC7B"}
@@ -1,9 +1,9 @@
1
- import "./postgres-rls-policy-CnDxf3z9-C3LIHAIG.mjs";
2
- import "./postgres-schema-Xsjt3RKO-Buv2X8ai.mjs";
1
+ import "./postgres-rls-policy-CnDxf3z9-BjpVyUnK.mjs";
2
+ import "./postgres-schema-Xsjt3RKO-bis-SVSB.mjs";
3
3
  import { ParsedPslExtensionBlock } from "@prisma/orm-framework/components/authoring";
4
4
  import { BlockSpecContext, InferBlock, ParsedTypedValue } from "@prisma/orm-framework/psl-parser";
5
5
  import { EntityHandleLoweringInput, LoweredPackEntity, ResolvedPslModelRefs } from "@prisma/orm-family-sql/contract/entity-handle-lowering-hook";
6
- //#region ../../../3-targets/3-targets/postgres/dist/authoring-DWd5pnnV.d.mts
6
+ //#region ../../../3-targets/postgres/1-target/dist/authoring-DWd5pnnV.d.mts
7
7
  //#region src/core/authoring.d.ts
8
8
  declare function policyUsingOnlySpec(ctx: BlockSpecContext): import("@prisma/orm-framework/psl-parser").StructBlockSpec<{
9
9
  readonly target: import("@prisma/orm-framework/psl-parser").ResolvedEntityReference<import("@prisma/orm-framework/psl-parser").ModelSymbol>;
@@ -49,4 +49,4 @@ interface RoleExtensionBlock extends ParsedPslExtensionBlock {
49
49
  declare function postgresLowerEntityHandles(input: EntityHandleLoweringInput): readonly LoweredPackEntity[];
50
50
  //#endregion
51
51
  export { policyUsingOnlySpec as a, roleSpec as c, policyBothPredicatesSpec as i, RoleExtensionBlock as n, policyWithCheckOnlySpec as o, nativeEnumSpec as r, postgresLowerEntityHandles as s, RlsPolicyExtensionBlock as t };
52
- //# sourceMappingURL=authoring-DWd5pnnV-g81c_ETF.d.mts.map
52
+ //# sourceMappingURL=authoring-DWd5pnnV-BBX7P1wT.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"authoring-DWd5pnnV-BBX7P1wT.d.mts","names":[],"sources":["../../../../3-targets/postgres/1-target/dist/authoring-DWd5pnnV.d.mts"],"mappings":";;;;;;;iBAMiB,oBAAoB,KAAK,kDAAkD;WACjF,uCAAuC,uDAAuD;WAC9F,iDAAiD,uDAAuD;WACxG,QAAQ;WACR;;iBAEM,wBAAwB,KAAK,kDAAkD;WACrF,uCAAuC,uDAAuD;WAC9F,iDAAiD,uDAAuD;WACxG,YAAY;WACZ;;iBAEM,yBAAyB,KAAK,kDAAkD;WACtF,uCAAuC,uDAAuD;WAC9F,iDAAiD,uDAAuD;WACxG,QAAQ;WACR,YAAY;WACZ;;KAEN,oBAAoB,WAAW,kBAAkB;UAC5C,gCAAgC,wBAAwB;WACvD;WACA,oBAAoB;;iBAEd,2CAA2C;iBAC3C,iDAAiD,aAAa;;UAErE,2BAA2B;WAC1B;;;;;;;;;;;;;iBAaM,2BAA2B,OAAO,qCAAqC"}
@@ -1,11 +1,11 @@
1
- import { A as PG_TIME_TEMPORAL_CODEC_ID, C as PG_TIMESTAMPTZ_DATE_CODEC_ID, D as PG_TIMESTAMP_TEMPORAL_CODEC_ID, E as PG_TIMESTAMP_STRING_CODEC_ID, O as PG_TIMETZ_CODEC_ID, T as PG_TIMESTAMPTZ_TEMPORAL_CODEC_ID, a as PG_DATE_STRING_CODEC_ID, k as PG_TIME_STRING_CODEC_ID, o as PG_DATE_TEMPORAL_CODEC_ID, s as PG_ENUM_CODEC_ID, w as PG_TIMESTAMPTZ_STRING_CODEC_ID } from "./codec-ids-BMhEpFwv-BLIC4g3Y.mjs";
2
- import { c as postgresError } from "./errors-BrhQYgdL-D_lIrddD.mjs";
3
- import { t as PostgresNativeEnum } from "./postgres-native-enum-CdP3b_-R-Cgz9KEKx.mjs";
4
- import { N as requireTemporal } from "./codecs-CRl9-i_r-CTWJYxL0.mjs";
5
- import { f as weightGroupsOf, i as POSTGRES_TEXT_SEARCH_LANGUAGES, l as fullTextIndexProblems, n as FULL_TEXT_INDEX_TYPE, o as describeFullTextIndexProblem } from "./full-text-index-definition-BPxQQBuC-BrpDsuJu.mjs";
6
- import { a as PostgresRlsPolicySchema, i as PostgresRlsPolicy, n as PostgresRlsEnablement, o as PostgresRole, r as PostgresRlsEnablementSchema, s as PostgresRoleSchema, t as PostgresNativeEnumSchema } from "./postgres-schema-C6w1rzOF-bzaF5PIS.mjs";
7
- import { t as postgresCodecTraitsOf } from "./postgres-codec-traits-CnP5Bjxp-C8JED4J1.mjs";
8
- import { r as computeContentHash } from "./canonicalize-RdxoUHao-DK_M6HU-.mjs";
1
+ import { A as PG_TIME_TEMPORAL_CODEC_ID, C as PG_TIMESTAMPTZ_DATE_CODEC_ID, D as PG_TIMESTAMP_TEMPORAL_CODEC_ID, E as PG_TIMESTAMP_STRING_CODEC_ID, O as PG_TIMETZ_CODEC_ID, T as PG_TIMESTAMPTZ_TEMPORAL_CODEC_ID, a as PG_DATE_STRING_CODEC_ID, k as PG_TIME_STRING_CODEC_ID, o as PG_DATE_TEMPORAL_CODEC_ID, s as PG_ENUM_CODEC_ID, w as PG_TIMESTAMPTZ_STRING_CODEC_ID } from "./codec-ids-BMhEpFwv-B8Zh0s_Q.mjs";
2
+ import { c as postgresError } from "./errors-BrhQYgdL-IvZHPjwL.mjs";
3
+ import { t as PostgresNativeEnum } from "./postgres-native-enum-CdP3b_-R-DgG3pi5p.mjs";
4
+ import { N as requireTemporal } from "./codecs-CRl9-i_r-Co-bgYl3.mjs";
5
+ import { f as weightGroupsOf, i as POSTGRES_TEXT_SEARCH_LANGUAGES, l as fullTextIndexProblems, n as FULL_TEXT_INDEX_TYPE, o as describeFullTextIndexProblem } from "./full-text-index-definition-BPxQQBuC-VLyQ1kEL.mjs";
6
+ import { a as PostgresRlsPolicySchema, i as PostgresRlsPolicy, n as PostgresRlsEnablement, o as PostgresRole, r as PostgresRlsEnablementSchema, s as PostgresRoleSchema, t as PostgresNativeEnumSchema } from "./postgres-schema-C6w1rzOF-D1fdwqRx.mjs";
7
+ import { t as postgresCodecTraitsOf } from "./postgres-codec-traits-CnP5Bjxp-Dxdgv0TI.mjs";
8
+ import { r as computeContentHash } from "./canonicalize-RdxoUHao-FTTkizfe.mjs";
9
9
  import { blindCast } from "@prisma/orm-framework/utils/casts";
10
10
  import { UNBOUND_NAMESPACE_ID } from "@prisma/orm-framework/components/ir";
11
11
  import { assertDefined, invariant } from "@prisma/orm-framework/utils/assertions";
@@ -17,7 +17,7 @@ import { blockAttribute, bool, dataTypeValue, entityRef, fieldRef, identifier, l
17
17
  import { exactNameBodyWarning } from "@prisma/orm-family-sql/contract/index-naming";
18
18
  import { SQL_EXPRESSION_DATA_TYPE_ID, requireSqlExpression, sqlTextFromStored } from "@prisma/orm-family-sql/contract/sql-expression";
19
19
  import { singleGeneratorBinding } from "@prisma/orm-framework/components/components";
20
- //#region ../../../3-targets/3-targets/postgres/dist/authoring-SbdvmVJh.mjs
20
+ //#region ../../../3-targets/postgres/1-target/dist/authoring-SbdvmVJh.mjs
21
21
  /**
22
22
  * The Postgres "now" generators, one per date and time codec except `pg/timestamptz-date@1`, which uses the framework's `timestampNow`. All read the clock through `Date.now()` and write UTC. The time generators round down to their `precision` param. The string generators are named after the codec they serve and write the text PostgreSQL prints in a UTC session, with milliseconds and no trailing zeros in the fraction.
23
23
  */
@@ -1339,4 +1339,4 @@ function postgresLowerEntityHandles(input) {
1339
1339
  //#endregion
1340
1340
  export { postgresAuthoringPslBlockDescriptors as a, postgresNativeAuthoringTypes as c, postgresNowGenerators as d, postgresScalarAndNativeTypeConstructors as f, postgresAuthoringModelAttributes as i, postgresNowGeneratorControlDescriptors as l, postgresAuthoringEntityTypes as n, postgresAuthoringTypes as o, postgresScalarAuthoringTypes as p, postgresAuthoringFieldPresets as r, postgresLowerEntityHandles as s, POLICY_BLOCK_KEYWORDS as t, postgresNowGeneratorFunction as u };
1341
1341
 
1342
- //# sourceMappingURL=authoring-SbdvmVJh-CgZp23qA.mjs.map
1342
+ //# sourceMappingURL=authoring-SbdvmVJh-nQ7YliD_.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"authoring-SbdvmVJh-nQ7YliD_.mjs","names":[],"sources":["../../../../3-targets/postgres/1-target/dist/authoring-SbdvmVJh.mjs"],"sourcesContent":["import { A as PG_TIME_TEMPORAL_CODEC_ID, C as PG_TIMESTAMPTZ_DATE_CODEC_ID, D as PG_TIMESTAMP_TEMPORAL_CODEC_ID, E as PG_TIMESTAMP_STRING_CODEC_ID, O as PG_TIMETZ_CODEC_ID, T as PG_TIMESTAMPTZ_TEMPORAL_CODEC_ID, a as PG_DATE_STRING_CODEC_ID, k as PG_TIME_STRING_CODEC_ID, o as PG_DATE_TEMPORAL_CODEC_ID, s as PG_ENUM_CODEC_ID, w as PG_TIMESTAMPTZ_STRING_CODEC_ID } from \"./codec-ids-BMhEpFwv.mjs\";\nimport { c as postgresError } from \"./errors-BrhQYgdL.mjs\";\nimport { N as requireTemporal } from \"./codecs-CRl9-i_r.mjs\";\nimport { t as PostgresNativeEnum } from \"./postgres-native-enum-CdP3b_-R.mjs\";\nimport { f as weightGroupsOf, l as POSTGRES_TEXT_SEARCH_LANGUAGES, o as fullTextIndexProblems, r as describeFullTextIndexProblem, t as FULL_TEXT_INDEX_TYPE } from \"./full-text-index-definition-BPxQQBuC.mjs\";\nimport { t as postgresCodecTraitsOf } from \"./postgres-codec-traits-CnP5Bjxp.mjs\";\nimport { _ as PostgresRlsPolicy, d as PostgresNativeEnumSchema, f as PostgresRlsEnablementSchema, h as PostgresRole, m as PostgresRoleSchema, p as PostgresRlsPolicySchema, v as PostgresRlsEnablement } from \"./postgres-schema-C6w1rzOF.mjs\";\nimport { r as computeContentHash } from \"./canonicalize-RdxoUHao.mjs\";\nimport { blindCast } from \"@internal/utils/casts\";\nimport { UNBOUND_NAMESPACE_ID } from \"@internal/framework-components/ir\";\nimport { sqlTargetTypeConstructors, temporalCodecPresetWithPrecision, temporalStringAuthoringPresets } from \"@internal/family-sql/pack\";\nimport { TIMESTAMP_NOW_GENERATOR_ID, temporalAuthoringPresets, temporalCodecPreset, temporalTypeAliases } from \"@internal/framework-components/authoring\";\nimport { blockAttribute, bool, dataTypeValue, entityRef, fieldRef, identifier, leafDiagnostic, list, mapBlock, modelAttribute, oneOf, optional, str, structBlock } from \"@internal/psl-parser\";\nimport { exactNameBodyWarning } from \"@internal/sql-contract/index-naming\";\nimport { SQL_EXPRESSION_DATA_TYPE_ID, requireSqlExpression, sqlTextFromStored } from \"@internal/sql-contract/sql-expression\";\nimport { assertWireNamePrefixLength, normalizeSqlBody } from \"@internal/sql-schema-ir/naming\";\nimport { assertDefined, invariant } from \"@internal/utils/assertions\";\nimport { ifDefined } from \"@internal/utils/defined\";\nimport { singleGeneratorBinding } from \"@internal/framework-components/components\";\n//#region src/core/date-time-now-generators.ts\n/**\n* The Postgres \"now\" generators, one per date and time codec except `pg/timestamptz-date@1`, which uses the framework's `timestampNow`. All read the clock through `Date.now()` and write UTC. The time generators round down to their `precision` param. The string generators are named after the codec they serve and write the text PostgreSQL prints in a UTC session, with milliseconds and no trailing zeros in the fraction.\n*/\nconst INSTANT_NOW_GENERATOR_ID = \"instantNow\";\nconst PLAIN_DATE_TIME_NOW_GENERATOR_ID = \"plainDateTimeNow\";\nconst PLAIN_DATE_NOW_GENERATOR_ID = \"plainDateNow\";\nconst PLAIN_TIME_NOW_GENERATOR_ID = \"plainTimeNow\";\nconst TIMESTAMP_STRING_NOW_GENERATOR_ID = \"timestampStringNow\";\nconst TIMESTAMPTZ_STRING_NOW_GENERATOR_ID = \"timestamptzStringNow\";\nconst DATE_STRING_NOW_GENERATOR_ID = \"dateStringNow\";\nconst TIME_STRING_NOW_GENERATOR_ID = \"timeStringNow\";\nconst TIMETZ_NOW_GENERATOR_ID = \"timetzNow\";\nconst UTC_OFFSET = \"+00\";\nconst MAX_TIME_PRECISION = 6;\nfunction fractionDigitsOf(params) {\n\tconst precision = params?.[\"precision\"];\n\treturn typeof precision === \"number\" ? precision : MAX_TIME_PRECISION;\n}\nfunction utcNow(fractionDigits = MAX_TIME_PRECISION) {\n\tconst iso = new Date(Date.now()).toISOString();\n\tconst [wholeSeconds = \"\", fraction = \"\"] = iso.slice(11, -1).split(\".\");\n\tconst kept = fraction.slice(0, fractionDigits).replace(/0+$/, \"\");\n\treturn {\n\t\tdate: iso.slice(0, 10),\n\t\ttime: kept === \"\" ? wholeSeconds : `${wholeSeconds}.${kept}`\n\t};\n}\n/** Rounds down, so PostgreSQL stores the value without rounding it up, which can reach `24:00:00`. */\nfunction truncateTime(time, fractionDigits) {\n\tif (fractionDigits <= 0) return time.round({\n\t\tsmallestUnit: \"second\",\n\t\troundingMode: \"trunc\"\n\t});\n\tconst smallestUnit = fractionDigits <= 3 ? \"millisecond\" : \"microsecond\";\n\tconst unitDigits = fractionDigits <= 3 ? 3 : 6;\n\treturn time.round({\n\t\tsmallestUnit,\n\t\troundingIncrement: 10 ** (unitDigits - Math.min(fractionDigits, unitDigits)),\n\t\troundingMode: \"trunc\"\n\t});\n}\nfunction utcDateTimeNow(generatorId) {\n\treturn requireTemporal({ generatorId }).Instant.fromEpochMilliseconds(Date.now()).toZonedDateTimeISO(\"UTC\");\n}\nfunction instantNow() {\n\treturn requireTemporal({ generatorId: INSTANT_NOW_GENERATOR_ID }).Instant.fromEpochMilliseconds(Date.now());\n}\nfunction plainDateTimeNow() {\n\treturn utcDateTimeNow(PLAIN_DATE_TIME_NOW_GENERATOR_ID).toPlainDateTime();\n}\nfunction plainDateNow() {\n\treturn utcDateTimeNow(PLAIN_DATE_NOW_GENERATOR_ID).toPlainDate();\n}\nfunction plainTimeNow(params) {\n\treturn truncateTime(utcDateTimeNow(PLAIN_TIME_NOW_GENERATOR_ID).toPlainTime(), fractionDigitsOf(params));\n}\nfunction timestampStringNow() {\n\tconst { date, time } = utcNow();\n\treturn `${date} ${time}`;\n}\nfunction timestamptzStringNow() {\n\treturn `${timestampStringNow()}${UTC_OFFSET}`;\n}\nfunction dateStringNow() {\n\treturn utcNow().date;\n}\nfunction timeStringNow(params) {\n\treturn utcNow(fractionDigitsOf(params)).time;\n}\nfunction timetzNow(params) {\n\treturn `${timeStringNow(params)}${UTC_OFFSET}`;\n}\nconst postgresNowGenerators = [\n\t{\n\t\tid: INSTANT_NOW_GENERATOR_ID,\n\t\tgenerate: instantNow\n\t},\n\t{\n\t\tid: PLAIN_DATE_TIME_NOW_GENERATOR_ID,\n\t\tgenerate: plainDateTimeNow\n\t},\n\t{\n\t\tid: PLAIN_DATE_NOW_GENERATOR_ID,\n\t\tgenerate: plainDateNow\n\t},\n\t{\n\t\tid: PLAIN_TIME_NOW_GENERATOR_ID,\n\t\tgenerate: plainTimeNow\n\t},\n\t{\n\t\tid: TIMESTAMP_STRING_NOW_GENERATOR_ID,\n\t\tgenerate: timestampStringNow\n\t},\n\t{\n\t\tid: TIMESTAMPTZ_STRING_NOW_GENERATOR_ID,\n\t\tgenerate: timestamptzStringNow\n\t},\n\t{\n\t\tid: DATE_STRING_NOW_GENERATOR_ID,\n\t\tgenerate: dateStringNow\n\t},\n\t{\n\t\tid: TIME_STRING_NOW_GENERATOR_ID,\n\t\tgenerate: timeStringNow\n\t},\n\t{\n\t\tid: TIMETZ_NOW_GENERATOR_ID,\n\t\tgenerate: timetzNow\n\t}\n];\nfunction postgresNowGeneratorControlDescriptors() {\n\treturn postgresNowGenerators.map(({ id }) => ({ id }));\n}\n//#endregion\n//#region src/core/now-generators.ts\n/** The \"now\" generator for each codec that has one. The `temporal` field presets read it. */\nconst postgresNowGeneratorIds = {\n\t[PG_DATE_TEMPORAL_CODEC_ID]: PLAIN_DATE_NOW_GENERATOR_ID,\n\t[PG_DATE_STRING_CODEC_ID]: DATE_STRING_NOW_GENERATOR_ID,\n\t[PG_TIME_TEMPORAL_CODEC_ID]: PLAIN_TIME_NOW_GENERATOR_ID,\n\t[PG_TIME_STRING_CODEC_ID]: TIME_STRING_NOW_GENERATOR_ID,\n\t[PG_TIMETZ_CODEC_ID]: TIMETZ_NOW_GENERATOR_ID,\n\t[PG_TIMESTAMP_TEMPORAL_CODEC_ID]: PLAIN_DATE_TIME_NOW_GENERATOR_ID,\n\t[PG_TIMESTAMP_STRING_CODEC_ID]: TIMESTAMP_STRING_NOW_GENERATOR_ID,\n\t[PG_TIMESTAMPTZ_TEMPORAL_CODEC_ID]: INSTANT_NOW_GENERATOR_ID,\n\t[PG_TIMESTAMPTZ_STRING_CODEC_ID]: TIMESTAMPTZ_STRING_NOW_GENERATOR_ID,\n\t[PG_TIMESTAMPTZ_DATE_CODEC_ID]: TIMESTAMP_NOW_GENERATOR_ID\n};\nnew Map(Object.entries(postgresNowGeneratorIds));\n/** The codecs whose \"now\" generator takes the column's precision, so that it rounds down where PostgreSQL would round a time up to `24:00:00`. */\nconst postgresNowGeneratorTakesPrecision = {\n\t[PG_TIME_TEMPORAL_CODEC_ID]: true,\n\t[PG_TIME_STRING_CODEC_ID]: true,\n\t[PG_TIMETZ_CODEC_ID]: true\n};\n/** The `now` generator function bound to each Postgres date and time codec, with the column's precision on the three time codecs. */\nconst postgresNowGeneratorFunction = {\n\tname: \"now\",\n\tbindings: Object.entries(postgresNowGeneratorIds).map(([codecId, generatorId]) => singleGeneratorBinding({\n\t\tcodecIds: [codecId],\n\t\tgeneratorId,\n\t\tparamsFromField: (column) => {\n\t\t\tconst precision = column.typeParams?.[\"precision\"];\n\t\t\treturn Object.hasOwn(postgresNowGeneratorTakesPrecision, codecId) && typeof precision === \"number\" ? { precision } : void 0;\n\t\t}\n\t}))\n};\n//#endregion\n//#region src/core/type-constructors.ts\n/** The data type of every size argument on Postgres, such as a length or a precision: a typmod is an `int4`. */\nconst PG_SIZE_TYPE = \"pg/int4\";\n/**\n* The base PSL scalars as zero-arg type constructors in the unified authoring\n* channel. Each names a codec; the column's database type is its data type's.\n*\n* The type position is the only storage decider: a mutation-default generator\n* (`@onCreate(uuid())`) never re-picks a column's storage.\n*/\nconst postgresScalarAuthoringTypes = {\n\tString: {\n\t\tkind: \"typeConstructor\",\n\t\tinferred: true,\n\t\tdocumentation: \"Variable-length text stored as PostgreSQL text.\",\n\t\toutput: { codecId: \"pg/text@1\" }\n\t},\n\tBoolean: {\n\t\tkind: \"typeConstructor\",\n\t\tinferred: true,\n\t\tdocumentation: \"A true or false value stored as PostgreSQL boolean.\",\n\t\toutput: { codecId: \"pg/bool@1\" }\n\t},\n\tInt: {\n\t\tkind: \"typeConstructor\",\n\t\tinferred: true,\n\t\tdocumentation: \"A signed 32-bit integer represented as a JavaScript number.\",\n\t\toutput: { codecId: \"pg/int4@1\" }\n\t},\n\tBigInt: {\n\t\tkind: \"typeConstructor\",\n\t\tinferred: true,\n\t\tdocumentation: \"A signed 64-bit integer represented as a JavaScript bigint.\",\n\t\toutput: { codecId: \"pg/int8@1\" }\n\t},\n\tFloat: {\n\t\tkind: \"typeConstructor\",\n\t\tinferred: true,\n\t\tdocumentation: \"A double-precision floating-point number.\",\n\t\toutput: { codecId: \"pg/float8@1\" }\n\t},\n\tDecimal: {\n\t\tkind: \"typeConstructor\",\n\t\tdocumentation: \"An exact decimal value stored as PostgreSQL numeric.\",\n\t\toutput: { codecId: \"pg/numeric@1\" }\n\t},\n\tDateTime: {\n\t\tkind: \"typeConstructor\",\n\t\tdocumentation: \"An instant stored as PostgreSQL timestamptz and represented as Temporal.Instant.\",\n\t\toutput: { codecId: \"pg/timestamptz-temporal@1\" }\n\t},\n\tJson: {\n\t\tkind: \"typeConstructor\",\n\t\tinferred: true,\n\t\tdocumentation: \"A JSON value stored as PostgreSQL json.\",\n\t\toutput: { codecId: \"pg/json@1\" }\n\t},\n\tJsonb: {\n\t\tkind: \"typeConstructor\",\n\t\tinferred: true,\n\t\tdocumentation: \"A JSON value stored in PostgreSQL binary jsonb format.\",\n\t\toutput: { codecId: \"pg/jsonb@1\" }\n\t},\n\tBytes: {\n\t\tkind: \"typeConstructor\",\n\t\tinferred: true,\n\t\tdocumentation: \"Binary data stored as PostgreSQL bytea.\",\n\t\toutput: { codecId: \"pg/bytea@1\" }\n\t}\n};\nconst postgresNativeAuthoringTypes = {\n\tVarChar: {\n\t\tkind: \"typeConstructor\",\n\t\tinferred: true,\n\t\tdocumentation: \"Variable-length text with an optional maximum character length.\",\n\t\targs: [{\n\t\t\tkind: \"value\",\n\t\t\tdataType: PG_SIZE_TYPE,\n\t\t\tname: \"length\",\n\t\t\toptional: true\n\t\t}],\n\t\toutput: {\n\t\t\tcodecId: \"sql/varchar@1\",\n\t\t\ttypeParams: { length: {\n\t\t\t\tkind: \"arg\",\n\t\t\t\tindex: 0\n\t\t\t} }\n\t\t}\n\t},\n\tChar: {\n\t\tkind: \"typeConstructor\",\n\t\tinferred: true,\n\t\tdocumentation: \"Fixed-length, blank-padded text with an optional character length.\",\n\t\targs: [{\n\t\t\tkind: \"value\",\n\t\t\tdataType: PG_SIZE_TYPE,\n\t\t\tname: \"length\",\n\t\t\toptional: true\n\t\t}],\n\t\toutput: {\n\t\t\tcodecId: \"sql/char@1\",\n\t\t\ttypeParams: { length: {\n\t\t\t\tkind: \"arg\",\n\t\t\t\tindex: 0\n\t\t\t} }\n\t\t}\n\t},\n\tNumeric: {\n\t\tkind: \"typeConstructor\",\n\t\tinferred: true,\n\t\tdocumentation: \"An exact decimal value with optional precision and scale.\",\n\t\targs: [{\n\t\t\tkind: \"value\",\n\t\t\tdataType: PG_SIZE_TYPE,\n\t\t\tname: \"precision\",\n\t\t\toptional: true\n\t\t}, {\n\t\t\tkind: \"value\",\n\t\t\tdataType: PG_SIZE_TYPE,\n\t\t\tname: \"scale\",\n\t\t\toptional: true\n\t\t}],\n\t\toutput: {\n\t\t\tcodecId: \"pg/numeric@1\",\n\t\t\ttypeParams: {\n\t\t\t\tprecision: {\n\t\t\t\t\tkind: \"arg\",\n\t\t\t\t\tindex: 0\n\t\t\t\t},\n\t\t\t\tscale: {\n\t\t\t\t\tkind: \"arg\",\n\t\t\t\t\tindex: 1\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t},\n\tTimestamp: {\n\t\tkind: \"typeConstructor\",\n\t\tdocumentation: \"A date and time without a time zone, represented as Temporal.PlainDateTime.\",\n\t\targs: [{\n\t\t\tkind: \"value\",\n\t\t\tdataType: PG_SIZE_TYPE,\n\t\t\tname: \"precision\",\n\t\t\toptional: true\n\t\t}],\n\t\toutput: {\n\t\t\tcodecId: \"pg/timestamp-temporal@1\",\n\t\t\ttypeParams: { precision: {\n\t\t\t\tkind: \"arg\",\n\t\t\t\tindex: 0\n\t\t\t} }\n\t\t}\n\t},\n\tTimestamptz: {\n\t\tkind: \"typeConstructor\",\n\t\tdocumentation: \"An instant represented as Temporal.Instant, with optional fractional-second precision.\",\n\t\targs: [{\n\t\t\tkind: \"value\",\n\t\t\tdataType: PG_SIZE_TYPE,\n\t\t\tname: \"precision\",\n\t\t\toptional: true\n\t\t}],\n\t\toutput: {\n\t\t\tcodecId: \"pg/timestamptz-temporal@1\",\n\t\t\ttypeParams: { precision: {\n\t\t\t\tkind: \"arg\",\n\t\t\t\tindex: 0\n\t\t\t} }\n\t\t}\n\t},\n\tTime: {\n\t\tkind: \"typeConstructor\",\n\t\tdocumentation: \"A time of day without a time zone, represented as Temporal.PlainTime.\",\n\t\targs: [{\n\t\t\tkind: \"value\",\n\t\t\tdataType: PG_SIZE_TYPE,\n\t\t\tname: \"precision\",\n\t\t\toptional: true\n\t\t}],\n\t\toutput: {\n\t\t\tcodecId: \"pg/time-temporal@1\",\n\t\t\ttypeParams: { precision: {\n\t\t\t\tkind: \"arg\",\n\t\t\t\tindex: 0\n\t\t\t} }\n\t\t}\n\t},\n\tTimetz: {\n\t\tkind: \"typeConstructor\",\n\t\tinferred: true,\n\t\tdocumentation: \"A time of day with a UTC offset stored as PostgreSQL timetz.\",\n\t\targs: [{\n\t\t\tkind: \"value\",\n\t\t\tdataType: PG_SIZE_TYPE,\n\t\t\tname: \"precision\",\n\t\t\toptional: true\n\t\t}],\n\t\toutput: {\n\t\t\tcodecId: \"pg/timetz@1\",\n\t\t\ttypeParams: { precision: {\n\t\t\t\tkind: \"arg\",\n\t\t\t\tindex: 0\n\t\t\t} }\n\t\t}\n\t},\n\tUuid: {\n\t\tkind: \"typeConstructor\",\n\t\tinferred: true,\n\t\tdocumentation: \"A universally unique identifier stored as PostgreSQL uuid.\",\n\t\toutput: { codecId: \"pg/uuid@1\" }\n\t},\n\tInet: {\n\t\tkind: \"typeConstructor\",\n\t\tinferred: true,\n\t\tdocumentation: \"An IPv4 or IPv6 address with an optional subnet mask.\",\n\t\toutput: { codecId: \"pg/inet@1\" }\n\t},\n\tSmallInt: {\n\t\tkind: \"typeConstructor\",\n\t\tinferred: true,\n\t\tdocumentation: \"A signed 16-bit integer represented as a JavaScript number.\",\n\t\toutput: { codecId: \"pg/int2@1\" }\n\t},\n\tReal: {\n\t\tkind: \"typeConstructor\",\n\t\tinferred: true,\n\t\tdocumentation: \"A single-precision floating-point number.\",\n\t\toutput: { codecId: \"pg/float4@1\" }\n\t},\n\tDate: {\n\t\tkind: \"typeConstructor\",\n\t\tdocumentation: \"A calendar date represented as Temporal.PlainDate.\",\n\t\toutput: { codecId: \"pg/date-temporal@1\" }\n\t},\n\tDateString: {\n\t\tkind: \"typeConstructor\",\n\t\tinferred: true,\n\t\tdocumentation: \"A PostgreSQL date represented as database text rather than Temporal.PlainDate.\",\n\t\toutput: { codecId: \"pg/date-string@1\" }\n\t},\n\tTimestampString: {\n\t\tkind: \"typeConstructor\",\n\t\tinferred: true,\n\t\tdocumentation: \"A timestamp without a time zone represented as PostgreSQL text.\",\n\t\targs: [{\n\t\t\tkind: \"value\",\n\t\t\tdataType: PG_SIZE_TYPE,\n\t\t\tname: \"precision\",\n\t\t\toptional: true\n\t\t}],\n\t\toutput: {\n\t\t\tcodecId: \"pg/timestamp-string@1\",\n\t\t\ttypeParams: { precision: {\n\t\t\t\tkind: \"arg\",\n\t\t\t\tindex: 0\n\t\t\t} }\n\t\t}\n\t},\n\tTimestamptzJsDate: {\n\t\tkind: \"typeConstructor\",\n\t\tdocumentation: \"An instant stored as PostgreSQL timestamptz and represented as a JavaScript Date.\",\n\t\targs: [{\n\t\t\tkind: \"value\",\n\t\t\tdataType: PG_SIZE_TYPE,\n\t\t\tname: \"precision\",\n\t\t\toptional: true\n\t\t}],\n\t\toutput: {\n\t\t\tcodecId: PG_TIMESTAMPTZ_DATE_CODEC_ID,\n\t\t\ttypeParams: { precision: {\n\t\t\t\tkind: \"arg\",\n\t\t\t\tindex: 0\n\t\t\t} }\n\t\t}\n\t},\n\tTimestamptzString: {\n\t\tkind: \"typeConstructor\",\n\t\tinferred: true,\n\t\tdocumentation: \"A timestamp with time zone represented as PostgreSQL text.\",\n\t\targs: [{\n\t\t\tkind: \"value\",\n\t\t\tdataType: PG_SIZE_TYPE,\n\t\t\tname: \"precision\",\n\t\t\toptional: true\n\t\t}],\n\t\toutput: {\n\t\t\tcodecId: \"pg/timestamptz-string@1\",\n\t\t\ttypeParams: { precision: {\n\t\t\t\tkind: \"arg\",\n\t\t\t\tindex: 0\n\t\t\t} }\n\t\t}\n\t},\n\tTimeString: {\n\t\tkind: \"typeConstructor\",\n\t\tinferred: true,\n\t\tdocumentation: \"A time of day without a time zone represented as PostgreSQL text.\",\n\t\targs: [{\n\t\t\tkind: \"value\",\n\t\t\tdataType: PG_SIZE_TYPE,\n\t\t\tname: \"precision\",\n\t\t\toptional: true\n\t\t}],\n\t\toutput: {\n\t\t\tcodecId: \"pg/time-string@1\",\n\t\t\ttypeParams: { precision: {\n\t\t\t\tkind: \"arg\",\n\t\t\t\tindex: 0\n\t\t\t} }\n\t\t}\n\t},\n\tBit: {\n\t\tkind: \"typeConstructor\",\n\t\tinferred: true,\n\t\tdocumentation: \"A fixed-length bit string with an optional length in bits.\",\n\t\targs: [{\n\t\t\tkind: \"value\",\n\t\t\tdataType: PG_SIZE_TYPE,\n\t\t\tname: \"length\",\n\t\t\toptional: true\n\t\t}],\n\t\toutput: {\n\t\t\tcodecId: \"pg/bit@1\",\n\t\t\ttypeParams: { length: {\n\t\t\t\tkind: \"arg\",\n\t\t\t\tindex: 0\n\t\t\t} }\n\t\t}\n\t},\n\tVarBit: {\n\t\tkind: \"typeConstructor\",\n\t\tinferred: true,\n\t\tdocumentation: \"A variable-length bit string with an optional maximum length in bits.\",\n\t\targs: [{\n\t\t\tkind: \"value\",\n\t\t\tdataType: PG_SIZE_TYPE,\n\t\t\tname: \"length\",\n\t\t\toptional: true\n\t\t}],\n\t\toutput: {\n\t\t\tcodecId: \"pg/varbit@1\",\n\t\t\ttypeParams: { length: {\n\t\t\t\tkind: \"arg\",\n\t\t\t\tindex: 0\n\t\t\t} }\n\t\t}\n\t},\n\tInterval: {\n\t\tkind: \"typeConstructor\",\n\t\tinferred: true,\n\t\tdocumentation: \"A span of time stored as PostgreSQL interval, with optional fractional-second precision.\",\n\t\targs: [{\n\t\t\tkind: \"value\",\n\t\t\tdataType: PG_SIZE_TYPE,\n\t\t\tname: \"precision\",\n\t\t\toptional: true\n\t\t}],\n\t\toutput: {\n\t\t\tcodecId: \"pg/interval@1\",\n\t\t\ttypeParams: { precision: {\n\t\t\t\tkind: \"arg\",\n\t\t\t\tindex: 0\n\t\t\t} }\n\t\t}\n\t}\n};\n/**\n* The base scalars and native types as type constructors. The target contributes them, so PSL and the TypeScript builder's `type.*` see the same names.\n*/\nconst postgresScalarAndNativeTypeConstructors = {\n\t...postgresScalarAuthoringTypes,\n\t...postgresNativeAuthoringTypes\n};\n//#endregion\n//#region src/core/authoring.ts\nconst PSL_POLICY_INVALID_MAP = \"PSL_POLICY_INVALID_MAP\";\nconst PSL_FULL_TEXT_INDEX_TOO_MANY_GROUPS = \"PSL_FULL_TEXT_INDEX_TOO_MANY_GROUPS\";\nconst PSL_FULL_TEXT_INDEX_EMPTY_GROUP = \"PSL_FULL_TEXT_INDEX_EMPTY_GROUP\";\nconst PSL_FULL_TEXT_INDEX_DUPLICATE_FIELD = \"PSL_FULL_TEXT_INDEX_DUPLICATE_FIELD\";\nconst PSL_FULL_TEXT_INDEX_REQUIRES_NAME = \"PSL_FULL_TEXT_INDEX_REQUIRES_NAME\";\nconst PSL_FULL_TEXT_INDEX_NAME_XOR_MAP = \"PSL_FULL_TEXT_INDEX_NAME_XOR_MAP\";\nconst PSL_FULL_TEXT_INDEX_TEXT_FIELD = \"PSL_FULL_TEXT_INDEX_TEXT_FIELD\";\nconst PSL_NATIVE_ENUM_DUPLICATE_MEMBER_VALUE = \"PSL_NATIVE_ENUM_DUPLICATE_MEMBER_VALUE\";\nconst PSL_NATIVE_ENUM_MISSING_MEMBERS = \"PSL_NATIVE_ENUM_MISSING_MEMBERS\";\nconst PSL_ROLE_BLOCK_OUTSIDE_UNBOUND_NAMESPACE = \"PSL_ROLE_BLOCK_OUTSIDE_UNBOUND_NAMESPACE\";\n/**\n* `pg.enum(<ref>)` registers as an ordinary type constructor whose sole\n* positional argument names a `native_enum` entity instead of carrying a\n* literal value. The interpreter resolves the ref to the `native_enum`\n* entity generically (driven by `entityRefArg`); the `pg/enum@1` codec\n* descriptor's `columnFromEntity` hook (see `codecs.ts`) converts that\n* entity into the column's `typeParams`. The column's type name comes from the\n* `pg/enum` data type, which renders `typeParams.typeName`.\n*/\nconst postgresAuthoringTypes = {\n\t.../* @__PURE__ */ sqlTargetTypeConstructors({ sizeType: PG_SIZE_TYPE }),\n\tBigIntNumber: {\n\t\tkind: \"typeConstructor\",\n\t\tdocumentation: \"A PostgreSQL 64-bit integer represented as a JavaScript number within its safe integer range.\",\n\t\toutput: { codecId: \"pg/int8number@1\" }\n\t},\n\tUnboundedInt: {\n\t\tkind: \"typeConstructor\",\n\t\tdocumentation: \"An arbitrary-precision integer stored as PostgreSQL numeric and represented as bigint.\",\n\t\toutput: { codecId: \"pg/unboundedint@1\" }\n\t},\n\tpg: { enum: {\n\t\tkind: \"typeConstructor\",\n\t\tinferred: true,\n\t\tentityRefArg: {\n\t\t\tindex: 0,\n\t\t\tentityKind: \"native_enum\"\n\t\t},\n\t\toutput: { codecId: PG_ENUM_CODEC_ID }\n\t} },\n\ttemporal: /* @__PURE__ */ postgresTemporalTypeAliases()\n};\n/* @__NO_SIDE_EFFECTS__ */\nfunction postgresTemporalTypeAliases() {\n\tconst temporal = temporalTypeAliases({ codecId: PG_TIMESTAMPTZ_TEMPORAL_CODEC_ID }, \"a Temporal.Instant\");\n\tconst string = temporalTypeAliases({ codecId: PG_TIMESTAMPTZ_STRING_CODEC_ID }, \"a string, the timestamp as Postgres writes it, such as 2024-01-02 03:04:05+00\");\n\tconst jsDate = temporalTypeAliases({ codecId: PG_TIMESTAMPTZ_DATE_CODEC_ID }, \"a JavaScript Date\");\n\treturn {\n\t\t...temporal,\n\t\tCreatedAtString: string.CreatedAt,\n\t\tUpdatedAtString: string.UpdatedAt,\n\t\tCreatedAtJsDate: jsDate.CreatedAt,\n\t\tUpdatedAtJsDate: jsDate.UpdatedAt\n\t};\n}\nconst policyTargetParam = {\n\ttype: entityRef({ kind: \"model\" }),\n\tdocumentation: \"The model protected by this policy; it must declare @@rls.\"\n};\nconst policyRolesParam = {\n\ttype: optional(list(oneOf(entityRef({\n\t\tkind: \"block\",\n\t\tkeyword: \"role\"\n\t}), identifier()))),\n\tdocumentation: \"The database roles to which this policy applies.\"\n};\nfunction policyUsingParam(ctx) {\n\treturn {\n\t\ttype: optional(dataTypeValue(SQL_EXPRESSION_DATA_TYPE_ID, ctx.dataTypes)),\n\t\tdocumentation: \"A SQL predicate controlling which rows this policy permits.\"\n\t};\n}\nfunction policyWithCheckParam(ctx) {\n\treturn {\n\t\ttype: optional(dataTypeValue(SQL_EXPRESSION_DATA_TYPE_ID, ctx.dataTypes)),\n\t\tdocumentation: \"A SQL predicate checking rows being written by this policy.\"\n\t};\n}\nconst policyPermissiveParam = {\n\ttype: optional(bool()),\n\tdocumentation: \"Whether the policy is permissive (combined with OR) rather than restrictive (combined with AND).\"\n};\nfunction policyUsingOnlySpec(ctx) {\n\treturn structBlock({ parameters: {\n\t\ttarget: policyTargetParam,\n\t\troles: policyRolesParam,\n\t\tusing: policyUsingParam(ctx),\n\t\tpermissive: policyPermissiveParam\n\t} });\n}\nfunction policyWithCheckOnlySpec(ctx) {\n\treturn structBlock({ parameters: {\n\t\ttarget: policyTargetParam,\n\t\troles: policyRolesParam,\n\t\twithCheck: policyWithCheckParam(ctx),\n\t\tpermissive: policyPermissiveParam\n\t} });\n}\nfunction policyBothPredicatesSpec(ctx) {\n\treturn structBlock({ parameters: {\n\t\ttarget: policyTargetParam,\n\t\troles: policyRolesParam,\n\t\tusing: policyUsingParam(ctx),\n\t\twithCheck: policyWithCheckParam(ctx),\n\t\tpermissive: policyPermissiveParam\n\t} });\n}\nfunction roleSpec() {\n\treturn structBlock({ parameters: {} });\n}\nfunction nativeEnumSpec() {\n\treturn mapBlock({ value: {\n\t\ttype: str(),\n\t\tdocumentation: \"The member value stored in the database enum type.\"\n\t} });\n}\n/**\n* The block keyword that authors each row-level security operation. The keyword is the operation, so\n* a policy block has no `operation` parameter. The reader looks a block's operation up here, and\n* `contract infer` and `contract print` look up the keyword to write.\n*/\nconst POLICY_BLOCK_KEYWORDS = {\n\tselect: \"policy_select\",\n\tinsert: \"policy_insert\",\n\tupdate: \"policy_update\",\n\tdelete: \"policy_delete\",\n\tall: \"policy_all\"\n};\nfunction isRlsPolicyOperation(value) {\n\treturn Object.hasOwn(POLICY_BLOCK_KEYWORDS, value);\n}\n/** The operation a `policy_<operation>` block keyword authors, or `undefined` for another keyword. */\nfunction policyOperationOfKeyword(keyword) {\n\treturn Object.keys(POLICY_BLOCK_KEYWORDS).filter(isRlsPolicyOperation).find((operation) => POLICY_BLOCK_KEYWORDS[operation] === keyword);\n}\n/**\n* Assembles a {@link PostgresRlsPolicy} from lowered inputs: normalizes the\n* predicates, computes the content-hash wire name, and constructs the frozen\n* entity. The single hash-assembly body shared by the PSL block lowering\n* ({@link lowerRlsPolicyFromBlock}) and the TS entity-handle lowering\n* ({@link postgresLowerEntityHandles}) so the two surfaces cannot drift.\n*/\nfunction buildRlsPolicyEntity(input) {\n\tconst permissive = input.permissive ?? true;\n\tconst wireHash = computeContentHash({\n\t\t...ifDefined(\"using\", input.using !== void 0 ? normalizeSqlBody(input.using) : void 0),\n\t\t...ifDefined(\"withCheck\", input.withCheck !== void 0 ? normalizeSqlBody(input.withCheck) : void 0),\n\t\troles: input.roles,\n\t\toperation: input.operation,\n\t\tpermissive\n\t});\n\treturn new PostgresRlsPolicy({\n\t\tnaming: {\n\t\t\tkind: \"wire\",\n\t\t\tprefix: input.prefix,\n\t\t\thash: wireHash\n\t\t},\n\t\ttableName: input.tableName,\n\t\tnamespaceId: input.namespaceId,\n\t\toperation: input.operation,\n\t\troles: input.roles,\n\t\tusing: input.using,\n\t\twithCheck: input.withCheck,\n\t\tpermissive\n\t});\n}\nfunction lowerRlsPolicyFromBlock(block, ctx) {\n\tconst prefix = block.name;\n\tconst operation = policyOperationOfKeyword(block.keyword) ?? \"select\";\n\tconst target = block.resolvedModelRefs?.[\"target\"];\n\tassertDefined(target, `lowerRlsPolicyFromBlock: policy \"${block.name}\" reached the factory without a projected \\`target\\` coordinate; the interpreter projects checked model references before invoking entity factories.`);\n\tconst roles = block.values.roles === void 0 ? [] : block.values.roles.map((role) => typeof role === \"string\" ? role : role.declaration.name).sort();\n\tconst using = block.values.using === void 0 ? void 0 : sqlTextFromStored(block.values.using.value.value);\n\tconst withCheck = block.values.withCheck === void 0 ? void 0 : sqlTextFromStored(block.values.withCheck.value.value);\n\tconst permissive = block.values.permissive ?? true;\n\tconst mapAttr = block.attributes[\"map\"];\n\tif (mapAttr !== void 0) {\n\t\tconst exactName = mapAttr.args[\"name\"];\n\t\tinvariant(typeof exactName === \"string\", \"@@map on a policy block parses one string argument\");\n\t\tctx.warnings?.push(exactNameBodyWarning(\"policy\", exactName));\n\t\treturn new PostgresRlsPolicy({\n\t\t\tnaming: {\n\t\t\t\tkind: \"exact\",\n\t\t\t\tname: exactName\n\t\t\t},\n\t\t\ttableName: target.tableName,\n\t\t\tnamespaceId: target.namespaceId,\n\t\t\toperation,\n\t\t\troles,\n\t\t\tusing,\n\t\t\twithCheck,\n\t\t\tpermissive\n\t\t});\n\t}\n\treturn buildRlsPolicyEntity({\n\t\tprefix,\n\t\ttableName: target.tableName,\n\t\tnamespaceId: target.namespaceId,\n\t\toperation,\n\t\troles,\n\t\t...ifDefined(\"using\", using),\n\t\t...ifDefined(\"withCheck\", withCheck),\n\t\tpermissive\n\t});\n}\nconst policyEntityTypeOutput = {\n\tfactory: lowerRlsPolicyFromBlock,\n\tpslPlacement: (entity) => ({ namespaceId: entity.namespaceId })\n};\nfunction lowerNativeEnumFromBlock(block, ctx) {\n\tconst sourceId = ctx.sourceId ?? \"unknown\";\n\tconst diagnostics = ctx.diagnostics;\n\tconst mapAttr = block.attributes[\"map\"];\n\tlet typeName = block.name;\n\tif (mapAttr !== void 0) {\n\t\tconst mapped = mapAttr.args[\"name\"];\n\t\tinvariant(typeof mapped === \"string\", \"@@map on a native_enum block parses one string argument\");\n\t\ttypeName = mapped;\n\t}\n\tlet memberError = false;\n\tconst seenValues = /* @__PURE__ */ new Set();\n\tconst members = [];\n\tfor (const [memberName, value] of Object.entries(block.values)) {\n\t\tif (seenValues.has(value)) {\n\t\t\tdiagnostics?.push({\n\t\t\t\tcode: PSL_NATIVE_ENUM_DUPLICATE_MEMBER_VALUE,\n\t\t\t\tmessage: `native_enum \"${block.name}\": duplicate member value \"${value}\"`,\n\t\t\t\tsourceId,\n\t\t\t\tspan: block.parameterSpans[memberName] ?? block.span\n\t\t\t});\n\t\t\tmemberError = true;\n\t\t\tcontinue;\n\t\t}\n\t\tseenValues.add(value);\n\t\tmembers.push(value);\n\t}\n\tif (memberError) return void 0;\n\tif (members.length === 0) {\n\t\tdiagnostics?.push({\n\t\t\tcode: PSL_NATIVE_ENUM_MISSING_MEMBERS,\n\t\t\tmessage: `native_enum \"${block.name}\" must have at least one member`,\n\t\t\tsourceId,\n\t\t\tspan: block.span\n\t\t});\n\t\treturn;\n\t}\n\treturn new PostgresNativeEnum({\n\t\ttypeName,\n\t\tmembers\n\t});\n}\n/**\n* `native_enum`'s entity-type factory output, checked separately from the assembled\n* `postgresAuthoringEntityTypes` map below: `deriveValueSet` is SQL-family surface\n* ({@link SqlValueSetDerivingEntityTypeOutput}), not part of the framework\n* `AuthoringEntityTypeFactoryOutput` shape, so folding it directly into the map's single\n* `satisfies AuthoringEntityTypeNamespace` check would trip an excess-property error. Checking it\n* here against the intersection of both shapes keeps it structurally valid against each without\n* widening the map's own check.\n*/\nconst nativeEnumEntityTypeOutput = {\n\tfactory: lowerNativeEnumFromBlock,\n\tderiveValueSet: (entity) => ({\n\t\tkind: \"valueSet\",\n\t\tvalues: [...entity.members]\n\t})\n};\n/**\n* Lowers a `role <name> {}` block into a {@link PostgresRole}. Roles are\n* cluster-scoped in Postgres, so the block must be declared inside\n* `namespace unbound { … }` — any other lexical namespace (a named schema,\n* or the default bucket top-level declarations resolve to) is a load-time\n* diagnostic. The lowered entity carries the unbound coordinate.\n*/\nfunction lowerRoleFromBlock(block, ctx) {\n\tif (block.namespaceId !== UNBOUND_NAMESPACE_ID) {\n\t\tctx.diagnostics?.push({\n\t\t\tcode: PSL_ROLE_BLOCK_OUTSIDE_UNBOUND_NAMESPACE,\n\t\t\tmessage: `\\`role\\` block \"${block.name}\" must be declared inside \\`namespace unbound { }\\`, not in namespace \"${block.namespaceId}\"`,\n\t\t\tsourceId: ctx.sourceId ?? \"unknown\",\n\t\t\tspan: block.span\n\t\t});\n\t\treturn;\n\t}\n\treturn new PostgresRole({\n\t\tname: block.name,\n\t\tnamespaceId: UNBOUND_NAMESPACE_ID\n\t});\n}\nconst postgresAuthoringEntityTypes = {\n\trole: {\n\t\tkind: \"entity\",\n\t\tdiscriminator: \"role\",\n\t\tvalidatorSchema: PostgresRoleSchema,\n\t\toutput: { factory: lowerRoleFromBlock }\n\t},\n\trls: {\n\t\tkind: \"entity\",\n\t\tdiscriminator: \"rls\",\n\t\tvalidatorSchema: PostgresRlsEnablementSchema,\n\t\toutput: { factory: (input) => new PostgresRlsEnablement(input) }\n\t},\n\tpolicy: {\n\t\tkind: \"entity\",\n\t\tdiscriminator: \"policy\",\n\t\tvalidatorSchema: PostgresRlsPolicySchema,\n\t\toutput: policyEntityTypeOutput\n\t},\n\tnative_enum: {\n\t\tkind: \"entity\",\n\t\tdiscriminator: \"native_enum\",\n\t\tvalidatorSchema: PostgresNativeEnumSchema,\n\t\toutput: nativeEnumEntityTypeOutput\n\t}\n};\n/**\n* Field presets contributed by the Postgres target pack.\n*\n* These mirror the PSL scalar-to-codec mapping used by the Postgres adapter\n* (see `createPostgresPslScalarTypeDescriptors`), so that authoring a field\n* via the TS callback surface (e.g. `field.int()`) and via the PSL scalar\n* surface (e.g. `Int`) lowers to byte-identical contracts.\n*\n* The `uuidNative` / `id.uuidv4Native` / `id.uuidv7Native` presets use the\n* native Postgres `uuid` type (codecId `pg/uuid@1`). For cross-target\n* portability use `uuidString` / `id.uuidv4String` / `id.uuidv7String` from\n* the family pack instead.\n*/\nconst policyRequiresRls = {\n\tparameter: \"target\",\n\tattribute: \"rls\"\n};\nconst policyMapAttribute = blockAttribute(\"map\", {\n\tdocumentation: \"Maps this row-level security policy to its PostgreSQL policy name.\",\n\tpositional: [{\n\t\tkey: \"name\",\n\t\ttype: str(),\n\t\tdocumentation: \"The nonempty PostgreSQL policy name.\"\n\t}],\n\trefine: (parsed, ctx, attributeNode) => parsed.name === \"\" ? [leafDiagnostic(ctx, attributeNode, \"@@map policy name must be a non-empty string\", PSL_POLICY_INVALID_MAP)] : []\n});\nconst policyBlockAttributes = { map: () => policyMapAttribute };\nconst nativeEnumMapAttribute = blockAttribute(\"map\", {\n\tdocumentation: \"Maps this native enum to its PostgreSQL type name.\",\n\tpositional: [{\n\t\tkey: \"name\",\n\t\ttype: str(),\n\t\tdocumentation: \"The PostgreSQL enum type name.\"\n\t}]\n});\nconst postgresAuthoringPslBlockDescriptors = {\n\t[POLICY_BLOCK_KEYWORDS.select]: {\n\t\tkind: \"pslBlock\",\n\t\tkeyword: POLICY_BLOCK_KEYWORDS.select,\n\t\tdocumentation: \"Defines a row-level security policy controlling which rows can be selected.\",\n\t\tdiscriminator: \"policy\",\n\t\tname: { required: true },\n\t\tspec: policyUsingOnlySpec,\n\t\trequiresModelAttribute: policyRequiresRls,\n\t\tattributes: policyBlockAttributes\n\t},\n\t[POLICY_BLOCK_KEYWORDS.delete]: {\n\t\tkind: \"pslBlock\",\n\t\tkeyword: POLICY_BLOCK_KEYWORDS.delete,\n\t\tdocumentation: \"Defines a row-level security policy controlling which rows can be deleted.\",\n\t\tdiscriminator: \"policy\",\n\t\tname: { required: true },\n\t\tspec: policyUsingOnlySpec,\n\t\trequiresModelAttribute: policyRequiresRls,\n\t\tattributes: policyBlockAttributes\n\t},\n\t[POLICY_BLOCK_KEYWORDS.insert]: {\n\t\tkind: \"pslBlock\",\n\t\tkeyword: POLICY_BLOCK_KEYWORDS.insert,\n\t\tdocumentation: \"Defines a row-level security policy checking rows being inserted.\",\n\t\tdiscriminator: \"policy\",\n\t\tname: { required: true },\n\t\tspec: policyWithCheckOnlySpec,\n\t\trequiresModelAttribute: policyRequiresRls,\n\t\tattributes: policyBlockAttributes\n\t},\n\t[POLICY_BLOCK_KEYWORDS.update]: {\n\t\tkind: \"pslBlock\",\n\t\tkeyword: POLICY_BLOCK_KEYWORDS.update,\n\t\tdocumentation: \"Defines a row-level security policy controlling row visibility and checks for updates.\",\n\t\tdiscriminator: \"policy\",\n\t\tname: { required: true },\n\t\tspec: policyBothPredicatesSpec,\n\t\trequiresModelAttribute: policyRequiresRls,\n\t\tattributes: policyBlockAttributes\n\t},\n\t[POLICY_BLOCK_KEYWORDS.all]: {\n\t\tkind: \"pslBlock\",\n\t\tkeyword: POLICY_BLOCK_KEYWORDS.all,\n\t\tdocumentation: \"Defines a row-level security policy applying to all operations.\",\n\t\tdiscriminator: \"policy\",\n\t\tname: { required: true },\n\t\tspec: policyBothPredicatesSpec,\n\t\trequiresModelAttribute: policyRequiresRls,\n\t\tattributes: policyBlockAttributes\n\t},\n\tnative_enum: {\n\t\tkind: \"pslBlock\",\n\t\tkeyword: \"native_enum\",\n\t\tdocumentation: \"Defines a PostgreSQL enum type with named string-valued members.\",\n\t\tdiscriminator: \"native_enum\",\n\t\tname: { required: true },\n\t\tspec: nativeEnumSpec,\n\t\tnameIsStorageName: true,\n\t\tattributes: { map: () => nativeEnumMapAttribute }\n\t},\n\t/**\n\t* PSL block descriptor for `role` (e.g. `role anon {}`). Name-only, no\n\t* parameters and no body content. Declared inside `namespace unbound { }`\n\t* — see {@link lowerRoleFromBlock} for the placement check and the\n\t* coordinate the lowered entity carries.\n\t*/\n\trole: {\n\t\tkind: \"pslBlock\",\n\t\tkeyword: \"role\",\n\t\tdocumentation: \"Declares an existing database role in namespace unbound for use in security policies.\",\n\t\tdiscriminator: \"role\",\n\t\tname: { required: true },\n\t\tspec: roleSpec\n\t}\n};\nconst postgresRlsSpec = modelAttribute(\"rls\", { documentation: \"Enables PostgreSQL row-level security on this model’s table.\" });\nconst postgresRlsSpecFactory = () => postgresRlsSpec;\nconst [firstLanguage, ...remainingLanguages] = POSTGRES_TEXT_SEARCH_LANGUAGES;\nconst fullTextField = fieldRef();\nfunction postgresFullTextIndexSpec(ctx) {\n\treturn modelAttribute(\"fullTextIndex\", {\n\t\tdocumentation: \"Indexes text fields for full-text search. Each item of the list is a weight group, strongest first; a nested list puts several fields in one group. Pass the index from the table's `indexes` to `fullTextMatches` and `fullTextRank` to search the same document.\",\n\t\tpositional: [{\n\t\t\tkey: \"fields\",\n\t\t\ttype: oneOf(fullTextField, list(oneOf(fullTextField, list(fullTextField)), {\n\t\t\t\tallowEmpty: false,\n\t\t\t\tlabel: \"(field name | field name[])[]\"\n\t\t\t})),\n\t\t\tdocumentation: \"The fields to index: one field, or a list of fields and lists of fields. Each top-level item is a weight group, from A down to D.\"\n\t\t}],\n\t\tnamed: {\n\t\t\tlanguage: {\n\t\t\t\ttype: optional(oneOf(str(firstLanguage), ...remainingLanguages.map((language) => str(language)))),\n\t\t\t\tdocumentation: \"The text-search configuration. Defaults to `english`, and must match the language the query operations are given.\"\n\t\t\t},\n\t\t\tname: {\n\t\t\t\ttype: optional(str()),\n\t\t\t\tdocumentation: \"The index name. Mutually exclusive with `map`.\"\n\t\t\t},\n\t\t\tmap: {\n\t\t\t\ttype: optional(str()),\n\t\t\t\tdocumentation: \"The database index name. Mutually exclusive with `name`.\"\n\t\t\t},\n\t\t\twhere: {\n\t\t\t\ttype: optional(dataTypeValue(SQL_EXPRESSION_DATA_TYPE_ID, ctx.dataTypes)),\n\t\t\t\tdocumentation: \"The SQL predicate restricting rows included in a partial index.\"\n\t\t\t}\n\t\t},\n\t\trefine: (value, ctx, attributeNode) => {\n\t\t\tconst diagnostics = fullTextIndexProblems({ weightGroups: weightGroupsOf(value.fields, isFieldName) }).filter(isPslFullTextIndexProblem).map((problem) => leafDiagnostic(ctx, attributeNode, describeFullTextIndexProblem(\"`@@fullTextIndex`\", problem), FULL_TEXT_INDEX_PROBLEM_CODES[problem.kind]));\n\t\t\tif (value.name === void 0 && value.map === void 0) diagnostics.push(leafDiagnostic(ctx, attributeNode, \"`@@fullTextIndex` requires a `name` or `map` argument\", PSL_FULL_TEXT_INDEX_REQUIRES_NAME));\n\t\t\tif (value.name !== void 0 && value.map !== void 0) diagnostics.push(leafDiagnostic(ctx, attributeNode, \"`@@fullTextIndex` takes at most one of `name` and `map`\", PSL_FULL_TEXT_INDEX_NAME_XOR_MAP));\n\t\t\treturn diagnostics;\n\t\t}\n\t});\n}\nfunction isFieldName(value) {\n\treturn typeof value === \"string\";\n}\nfunction isPslFullTextIndexProblem(problem) {\n\treturn problem.kind !== \"unique\" && problem.kind !== \"no-fields\";\n}\nconst FULL_TEXT_INDEX_PROBLEM_CODES = {\n\t\"too-many-groups\": PSL_FULL_TEXT_INDEX_TOO_MANY_GROUPS,\n\t\"empty-group\": PSL_FULL_TEXT_INDEX_EMPTY_GROUP,\n\t\"duplicate-field\": PSL_FULL_TEXT_INDEX_DUPLICATE_FIELD,\n\t\"not-text\": PSL_FULL_TEXT_INDEX_TEXT_FIELD\n};\nconst postgresFullTextIndexSpecFactory = (ctx) => postgresFullTextIndexSpec(ctx);\n/**\n* `@@` model attributes contributed by the Postgres target pack.\n*\n* `@@rls` is argument-less: presence marks the model's table\n* RLS-controlled. It lowers to a {@link PostgresRlsEnablement} marker in\n* the namespace's `entries.rls`, keyed by the model's table name — the\n* marker (never the policy set) is what drives\n* `ENABLE`/`DISABLE ROW LEVEL SECURITY` planning.\n*/\nconst postgresAuthoringModelAttributes = {\n\trls: {\n\t\tkind: \"modelAttribute\",\n\t\tattribute: \"rls\",\n\t\tspec: postgresRlsSpecFactory,\n\t\tlower: (_parsed, ctx) => ({\n\t\t\tkey: ctx.storageName,\n\t\t\tentity: new PostgresRlsEnablement({\n\t\t\t\ttableName: ctx.storageName,\n\t\t\t\tnamespaceId: ctx.namespaceId\n\t\t\t})\n\t\t})\n\t},\n\tfullTextIndex: {\n\t\tkind: \"modelAttribute\",\n\t\tattribute: \"fullTextIndex\",\n\t\tspec: postgresFullTextIndexSpecFactory,\n\t\trepeatable: true,\n\t\tlower: (parsed, ctx) => {\n\t\t\tconst fieldGroups = weightGroupsOf(parsed.fields, isFieldName);\n\t\t\tconst problems = fullTextIndexProblems({\n\t\t\t\tweightGroups: fieldGroups,\n\t\t\t\tcodecs: {\n\t\t\t\t\tcodecIdOf: (fieldName) => ctx.fieldStorageName(fieldName) === void 0 ? void 0 : ctx.fieldCodecId(fieldName),\n\t\t\t\t\ttraitsOf: postgresCodecTraitsOf\n\t\t\t\t}\n\t\t\t}).filter(isPslFullTextIndexProblem);\n\t\t\tfor (const problem of problems) ctx.diagnostics?.push({\n\t\t\t\tcode: FULL_TEXT_INDEX_PROBLEM_CODES[problem.kind],\n\t\t\t\tmessage: describeFullTextIndexProblem(\"`@@fullTextIndex`\", problem, (fieldName) => `${ctx.modelName}.${fieldName}`),\n\t\t\t\tsourceId: ctx.sourceId ?? \"unknown\"\n\t\t\t});\n\t\t\tif (problems.length > 0) return void 0;\n\t\t\tconst weightGroups = fieldGroups.map((group) => group.map((fieldName) => {\n\t\t\t\tconst columnName = ctx.fieldStorageName(fieldName);\n\t\t\t\tassertDefined(columnName, `@@fullTextIndex field \"${fieldName}\" has no storage column`);\n\t\t\t\treturn columnName;\n\t\t\t}));\n\t\t\treturn { index: {\n\t\t\t\tcolumns: weightGroups.flat(),\n\t\t\t\ttype: FULL_TEXT_INDEX_TYPE,\n\t\t\t\toptions: {\n\t\t\t\t\tweightGroups,\n\t\t\t\t\tlanguage: parsed.language ?? \"english\"\n\t\t\t\t},\n\t\t\t\twhere: parsed.where === void 0 ? void 0 : sqlTextFromStored(parsed.where.value.value),\n\t\t\t\tunique: void 0,\n\t\t\t\tname: parsed.name,\n\t\t\t\tmap: parsed.map\n\t\t\t} };\n\t\t}\n\t}\n};\nconst postgresAuthoringFieldPresets = {\n\ttext: {\n\t\tkind: \"fieldPreset\",\n\t\toutput: { codecId: \"pg/text@1\" }\n\t},\n\tint: {\n\t\tkind: \"fieldPreset\",\n\t\toutput: { codecId: \"pg/int4@1\" }\n\t},\n\tbigint: {\n\t\tkind: \"fieldPreset\",\n\t\toutput: { codecId: \"pg/int8@1\" }\n\t},\n\tfloat: {\n\t\tkind: \"fieldPreset\",\n\t\toutput: { codecId: \"pg/float8@1\" }\n\t},\n\tdecimal: {\n\t\tkind: \"fieldPreset\",\n\t\toutput: { codecId: \"pg/numeric@1\" }\n\t},\n\tboolean: {\n\t\tkind: \"fieldPreset\",\n\t\toutput: { codecId: \"pg/bool@1\" }\n\t},\n\tjson: {\n\t\tkind: \"fieldPreset\",\n\t\toutput: { codecId: \"pg/jsonb@1\" }\n\t},\n\tbytes: {\n\t\tkind: \"fieldPreset\",\n\t\toutput: { codecId: \"pg/bytea@1\" }\n\t},\n\tdateTime: {\n\t\tkind: \"fieldPreset\",\n\t\toutput: { codecId: \"pg/timestamptz-temporal@1\" }\n\t},\n\ttemporal: {\n\t\tcreatedAtJsDate: (/* @__PURE__ */ temporalAuthoringPresets({\n\t\t\tcodecId: PG_TIMESTAMPTZ_DATE_CODEC_ID,\n\t\t\tgeneratorId: postgresNowGeneratorIds[PG_TIMESTAMPTZ_DATE_CODEC_ID]\n\t\t})).createdAt,\n\t\tupdatedAtJsDate: (/* @__PURE__ */ temporalAuthoringPresets({\n\t\t\tcodecId: PG_TIMESTAMPTZ_DATE_CODEC_ID,\n\t\t\tgeneratorId: postgresNowGeneratorIds[PG_TIMESTAMPTZ_DATE_CODEC_ID]\n\t\t})).updatedAt,\n\t\ttimestamptzJsDate: /* @__PURE__ */ temporalCodecPresetWithPrecision({\n\t\t\tsizeType: PG_SIZE_TYPE,\n\t\t\tcodecId: PG_TIMESTAMPTZ_DATE_CODEC_ID,\n\t\t\tgeneratorId: postgresNowGeneratorIds[PG_TIMESTAMPTZ_DATE_CODEC_ID]\n\t\t}),\n\t\t.../* @__PURE__ */ temporalAuthoringPresets({\n\t\t\tcodecId: PG_TIMESTAMPTZ_TEMPORAL_CODEC_ID,\n\t\t\tgeneratorId: postgresNowGeneratorIds[PG_TIMESTAMPTZ_TEMPORAL_CODEC_ID]\n\t\t}),\n\t\t.../* @__PURE__ */ temporalStringAuthoringPresets({\n\t\t\tcodecId: PG_TIMESTAMPTZ_STRING_CODEC_ID,\n\t\t\tgeneratorId: postgresNowGeneratorIds[PG_TIMESTAMPTZ_STRING_CODEC_ID]\n\t\t}),\n\t\ttimestamp: /* @__PURE__ */ temporalCodecPresetWithPrecision({\n\t\t\tsizeType: PG_SIZE_TYPE,\n\t\t\tcodecId: PG_TIMESTAMP_TEMPORAL_CODEC_ID,\n\t\t\tgeneratorId: postgresNowGeneratorIds[PG_TIMESTAMP_TEMPORAL_CODEC_ID]\n\t\t}),\n\t\ttimestamptz: /* @__PURE__ */ temporalCodecPresetWithPrecision({\n\t\t\tsizeType: PG_SIZE_TYPE,\n\t\t\tcodecId: PG_TIMESTAMPTZ_TEMPORAL_CODEC_ID,\n\t\t\tgeneratorId: postgresNowGeneratorIds[PG_TIMESTAMPTZ_TEMPORAL_CODEC_ID]\n\t\t}),\n\t\ttimestampString: /* @__PURE__ */ temporalCodecPresetWithPrecision({\n\t\t\tsizeType: PG_SIZE_TYPE,\n\t\t\tcodecId: PG_TIMESTAMP_STRING_CODEC_ID,\n\t\t\tgeneratorId: postgresNowGeneratorIds[PG_TIMESTAMP_STRING_CODEC_ID]\n\t\t}),\n\t\ttimestamptzString: /* @__PURE__ */ temporalCodecPresetWithPrecision({\n\t\t\tsizeType: PG_SIZE_TYPE,\n\t\t\tcodecId: PG_TIMESTAMPTZ_STRING_CODEC_ID,\n\t\t\tgeneratorId: postgresNowGeneratorIds[PG_TIMESTAMPTZ_STRING_CODEC_ID]\n\t\t}),\n\t\tdate: /* @__PURE__ */ temporalCodecPreset({\n\t\t\tcodecId: PG_DATE_TEMPORAL_CODEC_ID,\n\t\t\tgeneratorId: postgresNowGeneratorIds[PG_DATE_TEMPORAL_CODEC_ID]\n\t\t}),\n\t\tdateString: /* @__PURE__ */ temporalCodecPreset({\n\t\t\tcodecId: PG_DATE_STRING_CODEC_ID,\n\t\t\tgeneratorId: postgresNowGeneratorIds[PG_DATE_STRING_CODEC_ID]\n\t\t}),\n\t\ttime: /* @__PURE__ */ temporalCodecPresetWithPrecision({\n\t\t\tsizeType: PG_SIZE_TYPE,\n\t\t\tcodecId: PG_TIME_TEMPORAL_CODEC_ID,\n\t\t\tgeneratorId: postgresNowGeneratorIds[PG_TIME_TEMPORAL_CODEC_ID],\n\t\t\tnowTakesPrecision: postgresNowGeneratorTakesPrecision[PG_TIME_TEMPORAL_CODEC_ID]\n\t\t}),\n\t\ttimeString: /* @__PURE__ */ temporalCodecPresetWithPrecision({\n\t\t\tsizeType: PG_SIZE_TYPE,\n\t\t\tcodecId: PG_TIME_STRING_CODEC_ID,\n\t\t\tgeneratorId: postgresNowGeneratorIds[PG_TIME_STRING_CODEC_ID],\n\t\t\tnowTakesPrecision: postgresNowGeneratorTakesPrecision[PG_TIME_STRING_CODEC_ID]\n\t\t}),\n\t\t/** Produces a string: no Temporal type holds a time of day with an offset. */\n\t\ttimetz: /* @__PURE__ */ temporalCodecPresetWithPrecision({\n\t\t\tsizeType: PG_SIZE_TYPE,\n\t\t\tcodecId: PG_TIMETZ_CODEC_ID,\n\t\t\tgeneratorId: postgresNowGeneratorIds[PG_TIMETZ_CODEC_ID],\n\t\t\tnowTakesPrecision: postgresNowGeneratorTakesPrecision[PG_TIMETZ_CODEC_ID]\n\t\t})\n\t},\n\tuuidNative: {\n\t\tkind: \"fieldPreset\",\n\t\toutput: { codecId: \"pg/uuid@1\" }\n\t},\n\tid: {\n\t\tuuidv4Native: {\n\t\t\tkind: \"fieldPreset\",\n\t\t\toutput: {\n\t\t\t\tcodecId: \"pg/uuid@1\",\n\t\t\t\texecutionDefaults: { onCreate: {\n\t\t\t\t\tkind: \"generator\",\n\t\t\t\t\tid: \"uuidv4\"\n\t\t\t\t} },\n\t\t\t\tid: true\n\t\t\t}\n\t\t},\n\t\tuuidv7Native: {\n\t\t\tkind: \"fieldPreset\",\n\t\t\toutput: {\n\t\t\t\tcodecId: \"pg/uuid@1\",\n\t\t\t\texecutionDefaults: { onCreate: {\n\t\t\t\t\tkind: \"generator\",\n\t\t\t\t\tid: \"uuidv7\"\n\t\t\t\t} },\n\t\t\t\tid: true\n\t\t\t}\n\t\t}\n\t}\n};\nfunction predicateText(predicate, what) {\n\treturn predicate === void 0 ? void 0 : requireSqlExpression(predicate, what).text;\n}\n/**\n* Resolves an entity handle's `target` ref to a table coordinate of this\n* contract, or throws the load-time diagnostic naming the handle: a\n* cross-space target is rejected (you cannot CREATE POLICY on a table\n* another space owns) and an unresolved target names the model.\n*/\nfunction requireLocalTarget(refs, subject) {\n\tconst target = refs[\"target\"];\n\tif (target !== void 0 && target.kind === \"resolved\") return {\n\t\tnamespaceId: target.namespaceId,\n\t\ttableName: target.tableName\n\t};\n\tif (target !== void 0 && target.kind === \"cross-space\") throw postgresError(\"CONTRACT.POLICY_INVALID\", `defineContract: ${subject} targets model \"${target.modelName ?? target.tableName}\", which lives in another contract space. Policies and rlsEnabled entries must target a model declared in this contract.`, { meta: {\n\t\tmodel: target.modelName ?? target.tableName,\n\t\treason: \"cross-space-target\"\n\t} });\n\tthrow postgresError(\"CONTRACT.MODEL_UNKNOWN\", `defineContract: ${subject} targets model \"${target?.modelName ?? \"<anonymous>\"}\", which is not in the contract's models. Add the model to \\`models\\`.`, { meta: { model: target?.modelName ?? \"<anonymous>\" } });\n}\n/**\n* The SQL-family entity-handle batch lowering hook for the Postgres pack\n* (`SqlEntityHandleLoweringContribution`). Receives every `entities` handle\n* whose kind this pack registered — batch, so the cross-entity diagnostics\n* (duplicate prefix, policy without rlsEnabled, duplicate role) can see\n* sibling handles — and lowers them with the same keying and hash assembly\n* as the PSL path: `policy` keyed by prefix (wire name via\n* {@link buildRlsPolicyEntity}), `rls` keyed by table name, `role` keyed by\n* name and filed under the default namespace (roles are declared\n* contract-wide; PSL has no role block to set a precedent).\n*/\nfunction postgresLowerEntityHandles(input) {\n\tconst enablements = /* @__PURE__ */ new Map();\n\tconst roles = /* @__PURE__ */ new Map();\n\tconst policies = [];\n\tconst coordinateKey = (coordinate) => `${coordinate.namespaceId} ${coordinate.tableName}`;\n\tfor (const { handle, refs } of input.handles) switch (handle.entityKind) {\n\t\tcase \"rls\": {\n\t\t\tconst coordinate = requireLocalTarget(refs, \"an rlsEnabled entry\");\n\t\t\tconst key = coordinateKey(coordinate);\n\t\t\tif (!enablements.has(key)) enablements.set(key, {\n\t\t\t\tcoordinate,\n\t\t\t\tentity: new PostgresRlsEnablement({\n\t\t\t\t\ttableName: coordinate.tableName,\n\t\t\t\t\tnamespaceId: coordinate.namespaceId\n\t\t\t\t})\n\t\t\t});\n\t\t\tbreak;\n\t\t}\n\t\tcase \"role\": {\n\t\t\tconst roleHandle = blindCast(handle);\n\t\t\tif (roles.has(roleHandle.name)) throw postgresError(\"CONTRACT.ROLE_INVALID\", `defineContract: role \"${roleHandle.name}\" is declared more than once in the entities list.`, { meta: {\n\t\t\t\trole: roleHandle.name,\n\t\t\t\treason: \"duplicate\"\n\t\t\t} });\n\t\t\troles.set(roleHandle.name, new PostgresRole({\n\t\t\t\tname: roleHandle.name,\n\t\t\t\tnamespaceId: UNBOUND_NAMESPACE_ID\n\t\t\t}));\n\t\t\tbreak;\n\t\t}\n\t\tcase \"policy\": {\n\t\t\tconst policyHandle = blindCast(handle);\n\t\t\tpolicies.push({\n\t\t\t\thandle: policyHandle,\n\t\t\t\trefs\n\t\t\t});\n\t\t\tbreak;\n\t\t}\n\t\tdefault: throw postgresError(\"CONTRACT.ENTITY_KIND_INVALID\", `defineContract: the postgres pack does not lower \"${handle.entityKind}\" handles from the entities list.`, { meta: { entityKind: handle.entityKind } });\n\t}\n\tconst rows = [];\n\tconst seenPrefixes = /* @__PURE__ */ new Set();\n\tfor (const { handle: policy, refs } of policies) {\n\t\tconst prefix = policy.name;\n\t\tassertWireNamePrefixLength(prefix, \"defineContract: policy prefix\");\n\t\tconst coordinate = requireLocalTarget(refs, `policy \"${prefix}\"`);\n\t\tif (!enablements.has(coordinateKey(coordinate))) {\n\t\t\tconst target = refs[\"target\"];\n\t\t\tthrow postgresError(\"CONTRACT.POLICY_INVALID\", `defineContract: policy \"${prefix}\" targets model \"${target?.modelName ?? coordinate.tableName}\", whose table is not RLS-enabled. Add rlsEnabled(<model>) to the entities list.`, { meta: {\n\t\t\t\tprefix,\n\t\t\t\tmodel: target?.modelName ?? coordinate.tableName,\n\t\t\t\treason: \"target-not-rls-enabled\"\n\t\t\t} });\n\t\t}\n\t\tconst prefixKey = `${coordinate.namespaceId} ${prefix}`;\n\t\tif (seenPrefixes.has(prefixKey)) throw postgresError(\"CONTRACT.POLICY_INVALID\", `defineContract: policy prefix \"${prefix}\" is declared more than once in namespace \"${coordinate.namespaceId}\". Policy prefixes must be unique per namespace.`, { meta: {\n\t\t\tprefix,\n\t\t\tnamespaceId: coordinate.namespaceId,\n\t\t\treason: \"duplicate-prefix\"\n\t\t} });\n\t\tseenPrefixes.add(prefixKey);\n\t\tconst roleNames = [...new Set(policy.roles.map((roleHandle) => roleHandle.name))].sort();\n\t\trows.push({\n\t\t\tnamespaceId: coordinate.namespaceId,\n\t\t\tentityKind: \"policy\",\n\t\t\tkey: prefix,\n\t\t\tentity: buildRlsPolicyEntity({\n\t\t\t\tprefix,\n\t\t\t\ttableName: coordinate.tableName,\n\t\t\t\tnamespaceId: coordinate.namespaceId,\n\t\t\t\toperation: policy.operation,\n\t\t\t\troles: roleNames,\n\t\t\t\t...ifDefined(\"using\", predicateText(policy.using, `Policy \"${prefix}\" using`)),\n\t\t\t\t...ifDefined(\"withCheck\", predicateText(policy.withCheck, `Policy \"${prefix}\" withCheck`))\n\t\t\t})\n\t\t});\n\t}\n\tfor (const { coordinate, entity } of enablements.values()) rows.push({\n\t\tnamespaceId: coordinate.namespaceId,\n\t\tentityKind: \"rls\",\n\t\tkey: coordinate.tableName,\n\t\tentity\n\t});\n\tfor (const [name, entity] of roles) rows.push({\n\t\tnamespaceId: UNBOUND_NAMESPACE_ID,\n\t\tentityKind: \"role\",\n\t\tkey: name,\n\t\tentity\n\t});\n\treturn rows;\n}\n//#endregion\nexport { postgresAuthoringPslBlockDescriptors as a, postgresNativeAuthoringTypes as c, postgresNowGeneratorFunction as d, postgresNowGeneratorControlDescriptors as f, postgresAuthoringModelAttributes as i, postgresScalarAndNativeTypeConstructors as l, postgresAuthoringEntityTypes as n, postgresAuthoringTypes as o, postgresNowGenerators as p, postgresAuthoringFieldPresets as r, postgresLowerEntityHandles as s, POLICY_BL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