@prisma/orm-target-postgres 8.0.0-rc.21-dev.11 → 8.0.0-rc.21-dev.12

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 (195) hide show
  1. package/dist/{adapter-CGBZvb_8.d.mts → adapter-BdL6nOY0.d.mts} +15 -4
  2. package/dist/{adapter-CGBZvb_8.d.mts.map → adapter-BdL6nOY0.d.mts.map} +1 -1
  3. package/dist/{adapter-B84yJpi7-8wwdWq5R.mjs → adapter-t3IEEEbY-BKJyNGtz.mjs} +6 -6
  4. package/dist/{adapter-B84yJpi7-8wwdWq5R.mjs.map → adapter-t3IEEEbY-BKJyNGtz.mjs.map} +1 -1
  5. package/dist/adapter.d.mts +5 -5
  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 +2 -2
  12. package/dist/adapter__control.mjs +4 -4
  13. package/dist/adapter__control.mjs.map +1 -1
  14. package/dist/adapter__runtime.mjs +4 -4
  15. package/dist/adapter__runtime.mjs.map +1 -1
  16. package/dist/adapter__sql-renderer.mjs +1 -1
  17. package/dist/adapter__types.d.mts +2 -2
  18. package/dist/{aggregates-xBA2jH0c.mjs → aggregates-BNste-08.mjs} +9 -3
  19. package/dist/aggregates-BNste-08.mjs.map +1 -0
  20. package/dist/{aggregates-D3Gq0n_e.d.mts → aggregates-CCEULCRK.d.mts} +14 -3
  21. package/dist/{aggregates-D3Gq0n_e.d.mts.map → aggregates-CCEULCRK.d.mts.map} +1 -1
  22. package/dist/{authoring-Bm8PD9ls-clXbYDiN.mjs → authoring-D7EAP1iG-DlpkOeVt.mjs} +25 -7
  23. package/dist/authoring-D7EAP1iG-DlpkOeVt.mjs.map +1 -0
  24. package/dist/{autoincrement-widths-DkD24r-C-D4O96GJZ.mjs → autoincrement-widths-Cy5o21bQ-DKg9UXXV.mjs} +3 -3
  25. package/dist/{autoincrement-widths-DkD24r-C-D4O96GJZ.mjs.map → autoincrement-widths-Cy5o21bQ-DKg9UXXV.mjs.map} +1 -1
  26. package/dist/{check-expressions-C_lM7sSK-Dtv6p3hg.mjs → check-expressions-DL9WtMO5-CUcbN2JG.mjs} +3 -3
  27. package/dist/{check-expressions-C_lM7sSK-Dtv6p3hg.mjs.map → check-expressions-DL9WtMO5-CUcbN2JG.mjs.map} +1 -1
  28. package/dist/{codec-ids-D0wjQdEW-EypD_iZj.mjs → codec-ids-2htdtS66-CJPMZv1t.mjs} +6 -3
  29. package/dist/codec-ids-2htdtS66-CJPMZv1t.mjs.map +1 -0
  30. package/dist/{codec-ids-CNEv5CTR-g_wnSmnu.d.mts → codec-ids-5MgmfzkI-C5V1rph6.d.mts} +6 -3
  31. package/dist/{codec-ids-CNEv5CTR-g_wnSmnu.d.mts.map → codec-ids-5MgmfzkI-C5V1rph6.d.mts.map} +1 -1
  32. package/dist/codec-ids-JTQCwgBI.d.mts +1 -0
  33. package/dist/{codec-registry-DVjibYBY-BeOUp5fk.mjs → codec-registry-D-bD-lFp-BCSmwfrE.mjs} +4 -4
  34. package/dist/{codec-registry-DVjibYBY-BeOUp5fk.mjs.map → codec-registry-D-bD-lFp-BCSmwfrE.mjs.map} +1 -1
  35. package/dist/{codec-type-map-DSuWVp-n-Cp4c9JWN.d.mts → codec-type-map-C_5OBkHw-DZ0UDSJr.d.mts} +6 -3
  36. package/dist/{codec-type-map-DSuWVp-n-Cp4c9JWN.d.mts.map → codec-type-map-C_5OBkHw-DZ0UDSJr.d.mts.map} +1 -1
  37. package/dist/codec-types-FPJG3oQH.d.mts +2 -0
  38. package/dist/{codec-types-xBRj9sIm-atN8rfl1.d.mts → codec-types-xyW4TiJD-CRDK7QcS.d.mts} +4 -4
  39. package/dist/{codec-types-xBRj9sIm-atN8rfl1.d.mts.map → codec-types-xyW4TiJD-CRDK7QcS.d.mts.map} +1 -1
  40. package/dist/{codecs-qCAX5T6T-sg3NIKfN.d.mts → codecs-3AVVZDao-C0sUjmuO.d.mts} +58 -4
  41. package/dist/{codecs-qCAX5T6T-sg3NIKfN.d.mts.map → codecs-3AVVZDao-C0sUjmuO.d.mts.map} +1 -1
  42. package/dist/{codecs-DCtBjmAW.d.mts → codecs-BZ74mlUI.d.mts} +2 -2
  43. package/dist/{codecs-DCtBjmAW.d.mts.map → codecs-BZ74mlUI.d.mts.map} +1 -1
  44. package/dist/{codecs-BqCmavY8-CC-ZbbTA.mjs → codecs-BtalD4yQ-BVQxal3w.mjs} +137 -6
  45. package/dist/codecs-BtalD4yQ-BVQxal3w.mjs.map +1 -0
  46. package/dist/{column-types-DtpCrZt4.d.mts → column-types-0CjA9Eri.d.mts} +3 -3
  47. package/dist/{column-types-DtpCrZt4.d.mts.map → column-types-0CjA9Eri.d.mts.map} +1 -1
  48. package/dist/{column-types-DW38xCZG.mjs → column-types-B11Mxo9V.mjs} +2 -2
  49. package/dist/{column-types-DW38xCZG.mjs.map → column-types-B11Mxo9V.mjs.map} +1 -1
  50. package/dist/{contract-contributions-rxCSM_1W-d9oohAzB.mjs → contract-contributions-CbLCF8jV-BOZHg83r.mjs} +11 -11
  51. package/dist/{contract-contributions-rxCSM_1W-d9oohAzB.mjs.map → contract-contributions-CbLCF8jV-BOZHg83r.mjs.map} +1 -1
  52. package/dist/{contract-free-BrY8qnvY.mjs → contract-free-DtJ1gJxN.mjs} +4 -4
  53. package/dist/{contract-free-BrY8qnvY.mjs.map → contract-free-DtJ1gJxN.mjs.map} +1 -1
  54. package/dist/{control-s1_5W_8t.d.mts → control-B4I64eEl.d.mts} +49 -1
  55. package/dist/control-B4I64eEl.d.mts.map +1 -0
  56. package/dist/{control-CCetIiFG.d.mts → control-DKpIWFg_.d.mts} +2 -2
  57. package/dist/{control-CCetIiFG.d.mts.map → control-DKpIWFg_.d.mts.map} +1 -1
  58. package/dist/{control-policy-BncmQ6LO-B8SXRfP_.mjs → control-policy-DZzwyc3L-_Bf4iEaW.mjs} +9 -9
  59. package/dist/{control-policy-BncmQ6LO-B8SXRfP_.mjs.map → control-policy-DZzwyc3L-_Bf4iEaW.mjs.map} +1 -1
  60. package/dist/{data-type-entries-ZHPz2h_f-CNUmPGgf.mjs → data-type-entries-Df5SOplt-DHEaXqF0.mjs} +3 -3
  61. package/dist/data-type-entries-Df5SOplt-DHEaXqF0.mjs.map +1 -0
  62. package/dist/{data-types--7V9yY1G.d.mts → data-types-Ct7TIZq3.d.mts} +11 -2
  63. package/dist/{data-types--7V9yY1G.d.mts.map → data-types-Ct7TIZq3.d.mts.map} +1 -1
  64. package/dist/{data-types-DklKHVmp-Bl-nwUa-.mjs → data-types-DHpMs3mz-BllVpLs5.mjs} +83 -5
  65. package/dist/{data-types-DklKHVmp-Bl-nwUa-.mjs.map → data-types-DHpMs3mz-BllVpLs5.mjs.map} +1 -1
  66. package/dist/{date-time-now-generators-Cc4PvFeB-XQWJz_4f.mjs → date-time-now-generators-CEqbD2GP-B95xid7h.mjs} +8 -5
  67. package/dist/date-time-now-generators-CEqbD2GP-B95xid7h.mjs.map +1 -0
  68. package/dist/{ddl-LpR9foVX-YBmyKx74.mjs → ddl-URS0VlHr--s2jpN6c.mjs} +4 -4
  69. package/dist/{ddl-LpR9foVX-YBmyKx74.mjs.map → ddl-URS0VlHr--s2jpN6c.mjs.map} +1 -1
  70. package/dist/{descriptor-meta-C2YuDfV8-B_u19j25.mjs → descriptor-meta-BPjw5dIw-DSlWgzbV.mjs} +4 -4
  71. package/dist/{descriptor-meta-C2YuDfV8-B_u19j25.mjs.map → descriptor-meta-BPjw5dIw-DSlWgzbV.mjs.map} +1 -1
  72. package/dist/{descriptor-meta-C2F_xt0P-D7gfqNS0.mjs → descriptor-meta-DokyxrzY-D2S-BLI0.mjs} +11 -11
  73. package/dist/{descriptor-meta-C2F_xt0P-D7gfqNS0.mjs.map → descriptor-meta-DokyxrzY-D2S-BLI0.mjs.map} +1 -1
  74. package/dist/{diff-database-schema-CcR7BN-A-BuftnIR2.mjs → diff-database-schema-DrOE5ahI-BfrNtMDu.mjs} +9 -9
  75. package/dist/{diff-database-schema-CcR7BN-A-BuftnIR2.mjs.map → diff-database-schema-DrOE5ahI-BfrNtMDu.mjs.map} +1 -1
  76. package/dist/{errors-CaVvV9Mj.d.mts → errors-BmsTgN1e.d.mts} +2 -2
  77. package/dist/{errors-CaVvV9Mj.d.mts.map → errors-BmsTgN1e.d.mts.map} +1 -1
  78. package/dist/{errors-DG6xgXgr-Cb1XcPcb.mjs → errors-DpdPXR_L-DailcY-X.mjs} +14 -3
  79. package/dist/{errors-DG6xgXgr-Cb1XcPcb.mjs.map → errors-DpdPXR_L-DailcY-X.mjs.map} +1 -1
  80. package/dist/{full-text-k_9J-JPd.d.mts → full-text-B1-jMF4Z.d.mts} +3 -3
  81. package/dist/{full-text-k_9J-JPd.d.mts.map → full-text-B1-jMF4Z.d.mts.map} +1 -1
  82. package/dist/{full-text-7szWl7EC.mjs → full-text-B9mXDcsJ.mjs} +3 -3
  83. package/dist/{full-text-7szWl7EC.mjs.map → full-text-B9mXDcsJ.mjs.map} +1 -1
  84. package/dist/{full-text-collection-method-DvmPrdZL-B1FlBM0E.d.mts → full-text-collection-method-BRDY-2p_-ihxqGzh-.d.mts} +4 -4
  85. package/dist/full-text-collection-method-BRDY-2p_-ihxqGzh-.d.mts.map +1 -0
  86. package/dist/{full-text-index-definition-BRNRSgZK-l_2TBarg.mjs → full-text-index-definition-MfjtL-x7-ImaTAFMs.mjs} +3 -3
  87. package/dist/{full-text-index-definition-BRNRSgZK-l_2TBarg.mjs.map → full-text-index-definition-MfjtL-x7-ImaTAFMs.mjs.map} +1 -1
  88. package/dist/{full-text-parsers-Dd5DOdBA-BTeOSzUj.mjs → full-text-parsers-DIfNR9AQ-tVmTju-Y.mjs} +5 -5
  89. package/dist/{full-text-parsers-Dd5DOdBA-BTeOSzUj.mjs.map → full-text-parsers-DIfNR9AQ-tVmTju-Y.mjs.map} +1 -1
  90. package/dist/{full-text-search-document-DWzECXD--BqrLGXsX.mjs → full-text-search-document-Ceg9d2K0-DJ4MklAU.mjs} +5 -5
  91. package/dist/{full-text-search-document-DWzECXD--BqrLGXsX.mjs.map → full-text-search-document-Ceg9d2K0-DJ4MklAU.mjs.map} +1 -1
  92. package/dist/{index-types-5g7gXoWK-CBvkTIbr.mjs → index-types-B5sQ5Vw0-DfXKO9-v.mjs} +3 -3
  93. package/dist/{index-types-5g7gXoWK-CBvkTIbr.mjs.map → index-types-B5sQ5Vw0-DfXKO9-v.mjs.map} +1 -1
  94. package/dist/{infer-psl-contract-CT9H9Xnw-l2pNPAyO.mjs → infer-psl-contract-Du026CJo-sRmqBsId.mjs} +9 -9
  95. package/dist/{infer-psl-contract-CT9H9Xnw-l2pNPAyO.mjs.map → infer-psl-contract-Du026CJo-sRmqBsId.mjs.map} +1 -1
  96. package/dist/migration-Be_iuIpn.mjs.map +1 -1
  97. package/dist/{native-type-normalizer-DgHcQkwl.mjs → native-type-normalizer-CY4mkU_2.mjs} +2 -2
  98. package/dist/{native-type-normalizer-DgHcQkwl.mjs.map → native-type-normalizer-CY4mkU_2.mjs.map} +1 -1
  99. package/dist/{op-factory-call-BRaCqnFh-avSVdAgI.mjs → op-factory-call-DsQATX-o-BHcqPXrs.mjs} +8 -8
  100. package/dist/{op-factory-call-BRaCqnFh-avSVdAgI.mjs.map → op-factory-call-DsQATX-o-BHcqPXrs.mjs.map} +1 -1
  101. package/dist/operation-types-DExfW5kG.d.mts +1 -0
  102. package/dist/{operation-types-DfWYI0Cn-fXs3p9mN.d.mts → operation-types-DxFsD0qF-Cu43r84y.d.mts} +4 -4
  103. package/dist/{operation-types-DfWYI0Cn-fXs3p9mN.d.mts.map → operation-types-DxFsD0qF-Cu43r84y.d.mts.map} +1 -1
  104. package/dist/{pack-BBK-zf0s.d.mts → pack-CjVhjxir.d.mts} +30 -5
  105. package/dist/{pack-BBK-zf0s.d.mts.map → pack-CjVhjxir.d.mts.map} +1 -1
  106. package/dist/{planner-BsLpyYHC-IEpACcdS.mjs → planner-CNoNH9bo-3g7WX476.mjs} +10 -10
  107. package/dist/{planner-BsLpyYHC-IEpACcdS.mjs.map → planner-CNoNH9bo-3g7WX476.mjs.map} +1 -1
  108. package/dist/{planner-ddl-builders-Dmr6ph8i-5FWxE6Wu.mjs → planner-ddl-builders-C_7XNgLd-Ddc_tlvW.mjs} +3 -3
  109. package/dist/{planner-ddl-builders-Dmr6ph8i-5FWxE6Wu.mjs.map → planner-ddl-builders-C_7XNgLd-Ddc_tlvW.mjs.map} +1 -1
  110. package/dist/{planner-identity-values-BwYhwYeo-CaSwyXgC.mjs → planner-identity-values-CfyHM25P-DYnKZgOb.mjs} +5 -3
  111. package/dist/planner-identity-values-CfyHM25P-DYnKZgOb.mjs.map +1 -0
  112. package/dist/{planner-produced-postgres-migration-CU7D_5IE-Cv-o4-Hh.mjs → planner-produced-postgres-migration-DnAk6KxF-Vj31eyEf.mjs} +4 -4
  113. package/dist/{planner-produced-postgres-migration-CU7D_5IE-Cv-o4-Hh.mjs.map → planner-produced-postgres-migration-DnAk6KxF-Vj31eyEf.mjs.map} +1 -1
  114. package/dist/{planner-sql-checks-DOGD6v7y-BWkRMsXt.mjs → planner-sql-checks-CvI80tt0-B5bKCucD.mjs} +5 -5
  115. package/dist/{planner-sql-checks-DOGD6v7y-BWkRMsXt.mjs.map → planner-sql-checks-CvI80tt0-B5bKCucD.mjs.map} +1 -1
  116. package/dist/{postgres-codec-traits-BhLP9ipO-D5kVsAxr.mjs → postgres-codec-traits-CAzQDLh0-BiKmrtXk.mjs} +3 -3
  117. package/dist/{postgres-codec-traits-BhLP9ipO-D5kVsAxr.mjs.map → postgres-codec-traits-CAzQDLh0-BiKmrtXk.mjs.map} +1 -1
  118. package/dist/{postgres-contract-view-DBmVHV5m-DDZR3cBh.mjs → postgres-contract-view-CRy_3BMc-60fosJRZ.mjs} +9 -9
  119. package/dist/{postgres-contract-view-DBmVHV5m-DDZR3cBh.mjs.map → postgres-contract-view-CRy_3BMc-60fosJRZ.mjs.map} +1 -1
  120. package/dist/{postgres-migration-DrLpuKus-DOU9Rbkb.mjs → postgres-migration-CSU_fUlQ-C5TNpgq4.mjs} +11 -11
  121. package/dist/{postgres-migration-DrLpuKus-DOU9Rbkb.mjs.map → postgres-migration-CSU_fUlQ-C5TNpgq4.mjs.map} +1 -1
  122. package/dist/{postgres-schema-CEGf780E-cyGo2Sii.mjs → postgres-schema-osNZNX0D-BpKJDg4M.mjs} +5 -5
  123. package/dist/{postgres-schema-CEGf780E-cyGo2Sii.mjs.map → postgres-schema-osNZNX0D-BpKJDg4M.mjs.map} +1 -1
  124. package/dist/{prisma7-binding-BvvPWMwt.mjs → prisma7-binding-CPcA6N3v.mjs} +16 -11
  125. package/dist/prisma7-binding-CPcA6N3v.mjs.map +1 -0
  126. package/dist/{prisma7-binding-8sNmqdF6.d.mts → prisma7-binding-DiHnmsNq.d.mts} +30 -5
  127. package/dist/{prisma7-binding-8sNmqdF6.d.mts.map → prisma7-binding-DiHnmsNq.d.mts.map} +1 -1
  128. package/dist/{render-ops-CbRkpwwx-C6wSWcTl.mjs → render-ops-Cj7mog0v-DPzODjA0.mjs} +4 -4
  129. package/dist/{render-ops-CbRkpwwx-C6wSWcTl.mjs.map → render-ops-Cj7mog0v-DPzODjA0.mjs.map} +1 -1
  130. package/dist/{resolve-ddl-schema-BhOYD95_-DhUQYNLi.mjs → resolve-ddl-schema-uDXEVepU-COWNfVPC.mjs} +3 -3
  131. package/dist/{resolve-ddl-schema-BhOYD95_-DhUQYNLi.mjs.map → resolve-ddl-schema-uDXEVepU-COWNfVPC.mjs.map} +1 -1
  132. package/dist/{runtime-BbPgK4gH.d.mts → runtime-DMle_B4T.d.mts} +2 -2
  133. package/dist/{runtime-BbPgK4gH.d.mts.map → runtime-DMle_B4T.d.mts.map} +1 -1
  134. package/dist/{sql-renderer-BdWJPa5F-B8cdiqmK.mjs → sql-renderer-DrSed-6w-Ckp99B2a.mjs} +13 -5
  135. package/dist/sql-renderer-DrSed-6w-Ckp99B2a.mjs.map +1 -0
  136. package/dist/{sql-utils-ylvfJ1RJ-03xGdSLI.mjs → sql-utils-VXrIh8dJ-DVxo_Ygp.mjs} +3 -3
  137. package/dist/{sql-utils-ylvfJ1RJ-03xGdSLI.mjs.map → sql-utils-VXrIh8dJ-DVxo_Ygp.mjs.map} +1 -1
  138. package/dist/target.d.mts +18 -18
  139. package/dist/target.mjs +34 -34
  140. package/dist/target__aggregates.d.mts +1 -1
  141. package/dist/target__aggregates.mjs +1 -1
  142. package/dist/target__codec-ids.d.mts +3 -3
  143. package/dist/target__codec-ids.mjs +2 -2
  144. package/dist/target__codec-types.d.mts +3 -3
  145. package/dist/target__codecs.d.mts +3 -3
  146. package/dist/target__codecs.mjs +3 -3
  147. package/dist/target__contract-free.mjs +3 -3
  148. package/dist/target__control.d.mts +1 -1
  149. package/dist/target__control.mjs +17 -17
  150. package/dist/target__control.mjs.map +1 -1
  151. package/dist/target__data-types.d.mts +2 -2
  152. package/dist/target__data-types.mjs +3 -3
  153. package/dist/target__diff-database-schema.mjs +1 -1
  154. package/dist/target__errors.d.mts +1 -1
  155. package/dist/target__errors.mjs +1 -1
  156. package/dist/target__full-text-index-authoring.mjs +2 -2
  157. package/dist/target__full-text.d.mts +3 -3
  158. package/dist/target__full-text.mjs +2 -2
  159. package/dist/target__issue-planner.mjs +1 -1
  160. package/dist/target__migration.mjs +2 -2
  161. package/dist/target__native-type-normalizer.mjs +1 -1
  162. package/dist/target__op-factory-call.mjs +1 -1
  163. package/dist/target__operation-types.d.mts +2 -2
  164. package/dist/target__pack.d.mts +2 -2
  165. package/dist/target__pack.mjs +1 -1
  166. package/dist/target__planner-ddl-builders.mjs +1 -1
  167. package/dist/target__planner-identity-values.mjs +1 -1
  168. package/dist/target__planner-produced-postgres-migration.mjs +1 -1
  169. package/dist/target__planner-sql-checks.mjs +1 -1
  170. package/dist/target__planner.mjs +2 -2
  171. package/dist/target__prisma7-binding.d.mts +1 -1
  172. package/dist/target__prisma7-binding.mjs +1 -1
  173. package/dist/target__render-ops.mjs +1 -1
  174. package/dist/target__runtime.d.mts +2 -2
  175. package/dist/target__runtime.mjs +8 -8
  176. package/dist/target__runtime.mjs.map +1 -1
  177. package/dist/target__schema-ir-annotations.mjs +1 -1
  178. package/dist/target__sql-utils.mjs +3 -3
  179. package/dist/target__types.mjs +2 -2
  180. package/dist/{types-CuFeRfUn.d.mts → types-DNbQLBpx.d.mts} +1 -1
  181. package/package.json +9 -9
  182. package/dist/aggregates-xBA2jH0c.mjs.map +0 -1
  183. package/dist/authoring-Bm8PD9ls-clXbYDiN.mjs.map +0 -1
  184. package/dist/codec-ids-Bt6JuEam.d.mts +0 -1
  185. package/dist/codec-ids-D0wjQdEW-EypD_iZj.mjs.map +0 -1
  186. package/dist/codec-types-BioRVnRb.d.mts +0 -2
  187. package/dist/codecs-BqCmavY8-CC-ZbbTA.mjs.map +0 -1
  188. package/dist/control-s1_5W_8t.d.mts.map +0 -1
  189. package/dist/data-type-entries-ZHPz2h_f-CNUmPGgf.mjs.map +0 -1
  190. package/dist/date-time-now-generators-Cc4PvFeB-XQWJz_4f.mjs.map +0 -1
  191. package/dist/full-text-collection-method-DvmPrdZL-B1FlBM0E.d.mts.map +0 -1
  192. package/dist/operation-types-ByVoHU_s.d.mts +0 -1
  193. package/dist/planner-identity-values-BwYhwYeo-CaSwyXgC.mjs.map +0 -1
  194. package/dist/prisma7-binding-BvvPWMwt.mjs.map +0 -1
  195. package/dist/sql-renderer-BdWJPa5F-B8cdiqmK.mjs.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"authoring-D7EAP1iG-DlpkOeVt.mjs","names":[],"sources":["../../../../3-targets/postgres/1-target/dist/authoring-D7EAP1iG.mjs"],"sourcesContent":["import { A as PG_TIMESTAMP_INSTANT_CODEC_ID, E as PG_TIMESTAMPTZ_DATE_CODEC_ID, _ as PG_INTERVAL_STRING_CODEC_ID, k as PG_TIMESTAMP_DATE_CODEC_ID, s as PG_ENUM_CODEC_ID } from \"./codec-ids-2htdtS66.mjs\";\nimport { u as postgresError } from \"./errors-DpdPXR_L.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-MfjtL-x7.mjs\";\nimport { t as postgresCodecTraitsOf } from \"./postgres-codec-traits-CAzQDLh0.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-osNZNX0D.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 { ifDefined } from \"@internal/utils/defined\";\nimport { sqlTargetTypeConstructors } from \"@internal/family-sql/pack\";\nimport { 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 { generatedIdColumnAliases } from \"@internal/sql-contract/generated-id-column-aliases\";\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\";\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\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\tTimestampTemporal: {\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\tTimestamptzTemporal: {\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\tTimeTemporal: {\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 and represented as ISO 8601 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/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\tDateTemporal: {\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 ISO 8601 text rather than Temporal.PlainDate.\",\n\t\toutput: { codecId: \"pg/date-string@1\" }\n\t},\n\tTimestampString: {\n\t\tkind: \"typeConstructor\",\n\t\tdocumentation: \"A timestamp without a time zone represented as ISO 8601 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\tinferred: true,\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\tTimestampJsDate: {\n\t\tkind: \"typeConstructor\",\n\t\tinferred: true,\n\t\tdocumentation: \"A date and time stored as PostgreSQL timestamp and represented as a JavaScript Date, read and written as UTC.\",\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_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\tTimestampInstant: {\n\t\tkind: \"typeConstructor\",\n\t\tdocumentation: \"A date and time stored as PostgreSQL timestamp and represented as Temporal.Instant, read and written as UTC.\",\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_INSTANT_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\tdocumentation: \"A timestamp with time zone represented as ISO 8601 text, the instant in UTC.\",\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 ISO 8601 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\tXml: {\n\t\tkind: \"typeConstructor\",\n\t\tinferred: true,\n\t\tdocumentation: \"An XML document or content fragment stored as PostgreSQL xml.\",\n\t\toutput: { codecId: \"pg/xml@1\" }\n\t},\n\tOid: {\n\t\tkind: \"typeConstructor\",\n\t\tinferred: true,\n\t\tdocumentation: \"An object identifier: an unsigned 32-bit integer stored as PostgreSQL oid and represented as a JavaScript number.\",\n\t\toutput: { codecId: \"pg/oid@1\" }\n\t},\n\tMoney: {\n\t\tkind: \"typeConstructor\",\n\t\tinferred: true,\n\t\tdocumentation: \"A currency amount in cents stored as PostgreSQL money and represented as decimal text with two fraction digits, such as \\\"-1234.56\\\".\",\n\t\toutput: { codecId: \"pg/money@1\" }\n\t},\n\tIntervalParts: {\n\t\tkind: \"typeConstructor\",\n\t\tdocumentation: \"A span of time stored as PostgreSQL interval and represented as { months, days, micros }, 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\tIntervalString: {\n\t\tkind: \"typeConstructor\",\n\t\tinferred: true,\n\t\tdocumentation: \"A span of time stored as PostgreSQL interval and represented as an ISO 8601 duration such as P1Y2M, 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_STRING_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};\nconst precision = {\n\tkind: \"value\",\n\tdataType: PG_SIZE_TYPE,\n\tname: \"precision\",\n\toptional: true\n};\n/**\n* The convenience date and time types. Each is a type choice: its `as` and `storage` arguments choose the explicit type it becomes, and `precision` is passed on to that type. ADR 279.\n*/\nconst postgresConvenienceDateTimeTypes = {\n\tDateTime: {\n\t\tkind: \"typeChoice\",\n\t\tdocumentation: \"A moment in time. `as` is what the application reads: jsDate (a JavaScript Date), temporal (Temporal.Instant) or string. `storage` is timestamptz or timestamp, a timestamp read and written as UTC.\",\n\t\targs: [\n\t\t\t{\n\t\t\t\tkind: \"option\",\n\t\t\t\tname: \"as\",\n\t\t\t\tvalues: [\n\t\t\t\t\t\"jsDate\",\n\t\t\t\t\t\"temporal\",\n\t\t\t\t\t\"string\"\n\t\t\t\t],\n\t\t\t\tdefault: \"jsDate\",\n\t\t\t\toptional: true\n\t\t\t},\n\t\t\t{\n\t\t\t\tkind: \"option\",\n\t\t\t\tname: \"storage\",\n\t\t\t\tvalues: [\"timestamptz\", \"timestamp\"],\n\t\t\t\tdefault: \"timestamptz\",\n\t\t\t\toptional: true\n\t\t\t},\n\t\t\tprecision\n\t\t],\n\t\tchoices: [\n\t\t\t{\n\t\t\t\twhen: {\n\t\t\t\t\tas: \"jsDate\",\n\t\t\t\t\tstorage: \"timestamptz\"\n\t\t\t\t},\n\t\t\t\ttype: \"TimestamptzJsDate\",\n\t\t\t\tdefaults: { precision: 3 }\n\t\t\t},\n\t\t\t{\n\t\t\t\twhen: {\n\t\t\t\t\tas: \"temporal\",\n\t\t\t\t\tstorage: \"timestamptz\"\n\t\t\t\t},\n\t\t\t\ttype: \"TimestamptzTemporal\"\n\t\t\t},\n\t\t\t{\n\t\t\t\twhen: {\n\t\t\t\t\tas: \"string\",\n\t\t\t\t\tstorage: \"timestamptz\"\n\t\t\t\t},\n\t\t\t\ttype: \"TimestamptzString\"\n\t\t\t},\n\t\t\t{\n\t\t\t\twhen: {\n\t\t\t\t\tas: \"jsDate\",\n\t\t\t\t\tstorage: \"timestamp\"\n\t\t\t\t},\n\t\t\t\ttype: \"TimestampJsDate\",\n\t\t\t\tdefaults: { precision: 3 }\n\t\t\t},\n\t\t\t{\n\t\t\t\twhen: {\n\t\t\t\t\tas: \"temporal\",\n\t\t\t\t\tstorage: \"timestamp\"\n\t\t\t\t},\n\t\t\t\ttype: \"TimestampInstant\"\n\t\t\t},\n\t\t\t{\n\t\t\t\twhen: {\n\t\t\t\t\tas: \"string\",\n\t\t\t\t\tstorage: \"timestamp\"\n\t\t\t\t},\n\t\t\t\ttype: \"TimestampString\"\n\t\t\t}\n\t\t]\n\t},\n\tDate: {\n\t\tkind: \"typeChoice\",\n\t\tdocumentation: \"A calendar date. `as` is what the application reads: string, such as \\\"2024-02-29\\\", or temporal (Temporal.PlainDate).\",\n\t\targs: [{\n\t\t\tkind: \"option\",\n\t\t\tname: \"as\",\n\t\t\tvalues: [\"string\", \"temporal\"],\n\t\t\tdefault: \"string\",\n\t\t\toptional: true\n\t\t}, {\n\t\t\tkind: \"option\",\n\t\t\tname: \"storage\",\n\t\t\tvalues: [\"date\"],\n\t\t\tdefault: \"date\",\n\t\t\toptional: true\n\t\t}],\n\t\tchoices: [{\n\t\t\twhen: {\n\t\t\t\tas: \"string\",\n\t\t\t\tstorage: \"date\"\n\t\t\t},\n\t\t\ttype: \"DateString\"\n\t\t}, {\n\t\t\twhen: {\n\t\t\t\tas: \"temporal\",\n\t\t\t\tstorage: \"date\"\n\t\t\t},\n\t\t\ttype: \"DateTemporal\"\n\t\t}]\n\t},\n\tTime: {\n\t\tkind: \"typeChoice\",\n\t\tdocumentation: \"A time of day. `as` is what the application reads: string, such as \\\"09:30:00\\\", or temporal (Temporal.PlainTime). `storage` is time, or timetz with as: string.\",\n\t\targs: [\n\t\t\t{\n\t\t\t\tkind: \"option\",\n\t\t\t\tname: \"as\",\n\t\t\t\tvalues: [\"string\", \"temporal\"],\n\t\t\t\tdefault: \"string\",\n\t\t\t\toptional: true\n\t\t\t},\n\t\t\t{\n\t\t\t\tkind: \"option\",\n\t\t\t\tname: \"storage\",\n\t\t\t\tvalues: [\"time\", \"timetz\"],\n\t\t\t\tdefault: \"time\",\n\t\t\t\toptional: true\n\t\t\t},\n\t\t\tprecision\n\t\t],\n\t\tchoices: [\n\t\t\t{\n\t\t\t\twhen: {\n\t\t\t\t\tas: \"string\",\n\t\t\t\t\tstorage: \"time\"\n\t\t\t\t},\n\t\t\t\ttype: \"TimeString\"\n\t\t\t},\n\t\t\t{\n\t\t\t\twhen: {\n\t\t\t\t\tas: \"temporal\",\n\t\t\t\t\tstorage: \"time\"\n\t\t\t\t},\n\t\t\t\ttype: \"TimeTemporal\"\n\t\t\t},\n\t\t\t{\n\t\t\t\twhen: {\n\t\t\t\t\tas: \"string\",\n\t\t\t\t\tstorage: \"timetz\"\n\t\t\t\t},\n\t\t\t\ttype: \"Timetz\"\n\t\t\t}\n\t\t]\n\t},\n\tDuration: {\n\t\tkind: \"typeChoice\",\n\t\tdocumentation: \"A length of time. `as` is what the application reads: string, an ISO 8601 duration such as \\\"P1M\\\", or parts, the object { months, days, micros }.\",\n\t\targs: [\n\t\t\t{\n\t\t\t\tkind: \"option\",\n\t\t\t\tname: \"as\",\n\t\t\t\tvalues: [\"string\", \"parts\"],\n\t\t\t\tdefault: \"string\",\n\t\t\t\toptional: true\n\t\t\t},\n\t\t\t{\n\t\t\t\tkind: \"option\",\n\t\t\t\tname: \"storage\",\n\t\t\t\tvalues: [\"interval\"],\n\t\t\t\tdefault: \"interval\",\n\t\t\t\toptional: true\n\t\t\t},\n\t\t\tprecision\n\t\t],\n\t\tchoices: [{\n\t\t\twhen: {\n\t\t\t\tas: \"string\",\n\t\t\t\tstorage: \"interval\"\n\t\t\t},\n\t\t\ttype: \"IntervalString\"\n\t\t}, {\n\t\t\twhen: {\n\t\t\t\tas: \"parts\",\n\t\t\t\tstorage: \"interval\"\n\t\t\t},\n\t\t\ttype: \"IntervalParts\"\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...postgresNativeAuthoringTypes,\n\t...postgresScalarAuthoringTypes,\n\t...postgresConvenienceDateTimeTypes\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\t...generatedIdColumnAliases,\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/**\n* The created-at and updated-at aliases, on the type bare `DateTime` becomes: a `timestamptz(3)` column read as a JavaScript `Date` (ADR 279).\n*/\n/* @__NO_SIDE_EFFECTS__ */\nfunction postgresTemporalTypeAliases() {\n\treturn temporalTypeAliases({\n\t\tcodecId: PG_TIMESTAMPTZ_DATE_CODEC_ID,\n\t\ttypeParams: { precision: 3 }\n\t}, \"a JavaScript Date\");\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};\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)), { allowEmpty: false })),\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};\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 { postgresAuthoringTypes as a, postgresScalarAndNativeTypeConstructors as c, postgresAuthoringPslBlockDescriptors as i, postgresScalarAuthoringTypes as l, postgresAuthoringEntityTypes as n, postgresLowerEntityHandles as o, postgresAuthoringModelAttributes as r, postgresNativeAuthoringTypes as s, POLICY_BLOCK_KEYWORDS as t };\n\n//# sourceMappingURL=authoring-D7EAP1iG.mjs.map"],"mappings":";;;;;;;;;;;;;;;;;;;;AAoBA,MAAM,eAAe;;;;;;;;AAQrB,MAAM,+BAA+B;CACpC,QAAQ;EACP,MAAM;EACN,UAAU;EACV,eAAe;EACf,QAAQ,EAAE,SAAS,YAAY;CAChC;CACA,SAAS;EACR,MAAM;EACN,UAAU;EACV,eAAe;EACf,QAAQ,EAAE,SAAS,YAAY;CAChC;CACA,KAAK;EACJ,MAAM;EACN,UAAU;EACV,eAAe;EACf,QAAQ,EAAE,SAAS,YAAY;CAChC;CACA,QAAQ;EACP,MAAM;EACN,UAAU;EACV,eAAe;EACf,QAAQ,EAAE,SAAS,YAAY;CAChC;CACA,OAAO;EACN,MAAM;EACN,UAAU;EACV,eAAe;EACf,QAAQ,EAAE,SAAS,cAAc;CAClC;CACA,SAAS;EACR,MAAM;EACN,eAAe;EACf,QAAQ,EAAE,SAAS,eAAe;CACnC;CACA,MAAM;EACL,MAAM;EACN,UAAU;EACV,eAAe;EACf,QAAQ,EAAE,SAAS,YAAY;CAChC;CACA,OAAO;EACN,MAAM;EACN,UAAU;EACV,eAAe;EACf,QAAQ,EAAE,SAAS,aAAa;CACjC;CACA,OAAO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AW,OAAO,YAAY,CAAC;GAC1F,CAAC;EACF,CAAC;CACF;CACA,KAAK,MAAM,EAAE,YAAY,YAAY,YAAY,OAAO,GAAG,KAAK,KAAK;EACpE,aAAa,WAAW;EACxB,YAAY;EACZ,KAAK,WAAW;EAChB;CACD,CAAC;CACD,KAAK,MAAM,CAAC,MAAM,WAAW,OAAO,KAAK,KAAK;EAC7C,aAAa;EACb,YAAY;EACZ,KAAK;EACL;CACD,CAAC;CACD,OAAO;AACR"}
@@ -1,5 +1,5 @@
1
- import { E as pgInt8, T as pgInt4, w as pgInt2 } from "./data-types-DklKHVmp-Bl-nwUa-.mjs";
2
- //#region ../../../3-targets/postgres/1-target/dist/autoincrement-widths-DkD24r-C.mjs
1
+ import { D as pgInt4, E as pgInt2, O as pgInt8 } from "./data-types-DHpMs3mz-BllVpLs5.mjs";
2
+ //#region ../../../3-targets/postgres/1-target/dist/autoincrement-widths-Cy5o21bQ.mjs
3
3
  const SMALL = {
4
4
  serialType: "SMALLSERIAL",
5
5
  sequenceType: "smallint",
@@ -55,4 +55,4 @@ function hasAutoincrementDefault(column) {
55
55
  //#endregion
56
56
  export { hasAutoincrementDefault as i, autoincrementWidthOfDataType as n, autoincrementWidthOfPseudoType as r, autoincrementWidth as t };
57
57
 
58
- //# sourceMappingURL=autoincrement-widths-DkD24r-C-D4O96GJZ.mjs.map
58
+ //# sourceMappingURL=autoincrement-widths-Cy5o21bQ-DKg9UXXV.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"autoincrement-widths-DkD24r-C-D4O96GJZ.mjs","names":[],"sources":["../../../../3-targets/postgres/1-target/dist/autoincrement-widths-DkD24r-C.mjs"],"sourcesContent":["import { _ as pgInt8, g as pgInt4, h as pgInt2 } from \"./data-types-DklKHVmp.mjs\";\n//#region src/core/migrations/autoincrement-widths.ts\nconst SMALL = {\n\tserialType: \"SMALLSERIAL\",\n\tsequenceType: \"smallint\",\n\tmaxValue: \"32767\"\n};\nconst REGULAR = {\n\tserialType: \"SERIAL\",\n\tsequenceType: \"integer\",\n\tmaxValue: \"2147483647\"\n};\nconst BIG = {\n\tserialType: \"BIGSERIAL\",\n\tsequenceType: \"bigint\",\n\tmaxValue: \"9223372036854775807\"\n};\nconst WIDTH_BY_COLUMN_TYPE = /* @__PURE__ */ new Map([\n\t[\"int2\", SMALL],\n\t[\"smallint\", SMALL],\n\t[\"int4\", REGULAR],\n\t[\"integer\", REGULAR],\n\t[\"int8\", BIG],\n\t[\"bigint\", BIG]\n]);\n/** The autoincrement width of a column of `columnType`; `undefined` for a column that is not a scalar smallint, integer or bigint. */\nfunction autoincrementWidth(columnType) {\n\treturn WIDTH_BY_COLUMN_TYPE.get(columnType.toLowerCase());\n}\nconst WIDTH_BY_PSEUDO_TYPE = /* @__PURE__ */ new Map([\n\t[\"smallserial\", SMALL],\n\t[\"serial2\", SMALL],\n\t[\"serial\", REGULAR],\n\t[\"serial4\", REGULAR],\n\t[\"bigserial\", BIG],\n\t[\"serial8\", BIG]\n]);\n/** The autoincrement width of a column written with a SERIAL pseudo-type, such as `SERIAL` or `bigserial`; `undefined` for any other type. Postgres stores the column as the width's `sequenceType`. */\nfunction autoincrementWidthOfPseudoType(columnType) {\n\treturn WIDTH_BY_PSEUDO_TYPE.get(columnType.trim().toLowerCase());\n}\nconst WIDTH_BY_DATA_TYPE = /* @__PURE__ */ new Map([\n\t[pgInt2.id, SMALL],\n\t[pgInt4.id, REGULAR],\n\t[pgInt8.id, BIG]\n]);\n/** The autoincrement width of a column whose data type is `dataTypeId`; `undefined` unless it is `pg/int2`, `pg/int4` or `pg/int8`. */\nfunction autoincrementWidthOfDataType(dataTypeId) {\n\treturn WIDTH_BY_DATA_TYPE.get(dataTypeId);\n}\n/** Whether a schema column takes its values from a sequence: a SERIAL column's `nextval(...)` default and an identity column both read as `autoincrement()`. */\nfunction hasAutoincrementDefault(column) {\n\treturn column.resolvedDefault?.kind === \"function\" && column.resolvedDefault.expression === \"autoincrement()\";\n}\n//#endregion\nexport { hasAutoincrementDefault as i, autoincrementWidthOfDataType as n, autoincrementWidthOfPseudoType as r, autoincrementWidth as t };\n\n//# sourceMappingURL=autoincrement-widths-DkD24r-C.mjs.map"],"mappings":";;AAEA,MAAM,QAAQ;CACb,YAAY;CACZ,cAAc;CACd,UAAU;AACX;AACA,MAAM,UAAU;CACf,YAAY;CACZ,cAAc;CACd,UAAU;AACX;AACA,MAAM,MAAM;CACX,YAAY;CACZ,cAAc;CACd,UAAU;AACX;AACA,MAAM,uCAAuC,IAAI,IAAI;CACpD,CAAC,QAAQ,KAAK;CACd,CAAC,YAAY,KAAK;CAClB,CAAC,QAAQ,OAAO;CAChB,CAAC,WAAW,OAAO;CACnB,CAAC,QAAQ,GAAG;CACZ,CAAC,UAAU,GAAG;AACf,CAAC;;AAED,SAAS,mBAAmB,YAAY;CACvC,OAAO,qBAAqB,IAAI,WAAW,YAAY,CAAC;AACzD;AACA,MAAM,uCAAuC,IAAI,IAAI;CACpD,CAAC,eAAe,KAAK;CACrB,CAAC,WAAW,KAAK;CACjB,CAAC,UAAU,OAAO;CAClB,CAAC,WAAW,OAAO;CACnB,CAAC,aAAa,GAAG;CACjB,CAAC,WAAW,GAAG;AAChB,CAAC;;AAED,SAAS,+BAA+B,YAAY;CACnD,OAAO,qBAAqB,IAAI,WAAW,KAAK,CAAC,CAAC,YAAY,CAAC;AAChE;AACA,MAAM,qCAAqC,IAAI,IAAI;CAClD,CAAC,OAAO,IAAI,KAAK;CACjB,CAAC,OAAO,IAAI,OAAO;CACnB,CAAC,OAAO,IAAI,GAAG;AAChB,CAAC;;AAED,SAAS,6BAA6B,YAAY;CACjD,OAAO,mBAAmB,IAAI,UAAU;AACzC;;AAEA,SAAS,wBAAwB,QAAQ;CACxC,OAAO,OAAO,iBAAiB,SAAS,cAAc,OAAO,gBAAgB,eAAe;AAC7F"}
1
+ {"version":3,"file":"autoincrement-widths-Cy5o21bQ-DKg9UXXV.mjs","names":[],"sources":["../../../../3-targets/postgres/1-target/dist/autoincrement-widths-Cy5o21bQ.mjs"],"sourcesContent":["import { _ as pgInt2, v as pgInt4, y as pgInt8 } from \"./data-types-DHpMs3mz.mjs\";\n//#region src/core/migrations/autoincrement-widths.ts\nconst SMALL = {\n\tserialType: \"SMALLSERIAL\",\n\tsequenceType: \"smallint\",\n\tmaxValue: \"32767\"\n};\nconst REGULAR = {\n\tserialType: \"SERIAL\",\n\tsequenceType: \"integer\",\n\tmaxValue: \"2147483647\"\n};\nconst BIG = {\n\tserialType: \"BIGSERIAL\",\n\tsequenceType: \"bigint\",\n\tmaxValue: \"9223372036854775807\"\n};\nconst WIDTH_BY_COLUMN_TYPE = /* @__PURE__ */ new Map([\n\t[\"int2\", SMALL],\n\t[\"smallint\", SMALL],\n\t[\"int4\", REGULAR],\n\t[\"integer\", REGULAR],\n\t[\"int8\", BIG],\n\t[\"bigint\", BIG]\n]);\n/** The autoincrement width of a column of `columnType`; `undefined` for a column that is not a scalar smallint, integer or bigint. */\nfunction autoincrementWidth(columnType) {\n\treturn WIDTH_BY_COLUMN_TYPE.get(columnType.toLowerCase());\n}\nconst WIDTH_BY_PSEUDO_TYPE = /* @__PURE__ */ new Map([\n\t[\"smallserial\", SMALL],\n\t[\"serial2\", SMALL],\n\t[\"serial\", REGULAR],\n\t[\"serial4\", REGULAR],\n\t[\"bigserial\", BIG],\n\t[\"serial8\", BIG]\n]);\n/** The autoincrement width of a column written with a SERIAL pseudo-type, such as `SERIAL` or `bigserial`; `undefined` for any other type. Postgres stores the column as the width's `sequenceType`. */\nfunction autoincrementWidthOfPseudoType(columnType) {\n\treturn WIDTH_BY_PSEUDO_TYPE.get(columnType.trim().toLowerCase());\n}\nconst WIDTH_BY_DATA_TYPE = /* @__PURE__ */ new Map([\n\t[pgInt2.id, SMALL],\n\t[pgInt4.id, REGULAR],\n\t[pgInt8.id, BIG]\n]);\n/** The autoincrement width of a column whose data type is `dataTypeId`; `undefined` unless it is `pg/int2`, `pg/int4` or `pg/int8`. */\nfunction autoincrementWidthOfDataType(dataTypeId) {\n\treturn WIDTH_BY_DATA_TYPE.get(dataTypeId);\n}\n/** Whether a schema column takes its values from a sequence: a SERIAL column's `nextval(...)` default and an identity column both read as `autoincrement()`. */\nfunction hasAutoincrementDefault(column) {\n\treturn column.resolvedDefault?.kind === \"function\" && column.resolvedDefault.expression === \"autoincrement()\";\n}\n//#endregion\nexport { hasAutoincrementDefault as i, autoincrementWidthOfDataType as n, autoincrementWidthOfPseudoType as r, autoincrementWidth as t };\n\n//# sourceMappingURL=autoincrement-widths-Cy5o21bQ.mjs.map"],"mappings":";;AAEA,MAAM,QAAQ;CACb,YAAY;CACZ,cAAc;CACd,UAAU;AACX;AACA,MAAM,UAAU;CACf,YAAY;CACZ,cAAc;CACd,UAAU;AACX;AACA,MAAM,MAAM;CACX,YAAY;CACZ,cAAc;CACd,UAAU;AACX;AACA,MAAM,uCAAuC,IAAI,IAAI;CACpD,CAAC,QAAQ,KAAK;CACd,CAAC,YAAY,KAAK;CAClB,CAAC,QAAQ,OAAO;CAChB,CAAC,WAAW,OAAO;CACnB,CAAC,QAAQ,GAAG;CACZ,CAAC,UAAU,GAAG;AACf,CAAC;;AAED,SAAS,mBAAmB,YAAY;CACvC,OAAO,qBAAqB,IAAI,WAAW,YAAY,CAAC;AACzD;AACA,MAAM,uCAAuC,IAAI,IAAI;CACpD,CAAC,eAAe,KAAK;CACrB,CAAC,WAAW,KAAK;CACjB,CAAC,UAAU,OAAO;CAClB,CAAC,WAAW,OAAO;CACnB,CAAC,aAAa,GAAG;CACjB,CAAC,WAAW,GAAG;AAChB,CAAC;;AAED,SAAS,+BAA+B,YAAY;CACnD,OAAO,qBAAqB,IAAI,WAAW,KAAK,CAAC,CAAC,YAAY,CAAC;AAChE;AACA,MAAM,qCAAqC,IAAI,IAAI;CAClD,CAAC,OAAO,IAAI,KAAK;CACjB,CAAC,OAAO,IAAI,OAAO;CACnB,CAAC,OAAO,IAAI,GAAG;AAChB,CAAC;;AAED,SAAS,6BAA6B,YAAY;CACjD,OAAO,mBAAmB,IAAI,UAAU;AACzC;;AAEA,SAAS,wBAAwB,QAAQ;CACxC,OAAO,OAAO,iBAAiB,SAAS,cAAc,OAAO,gBAAgB,eAAe;AAC7F"}
@@ -1,6 +1,6 @@
1
- import { a as quoteIdentifier, n as escapeLiteral } from "./sql-utils-ylvfJ1RJ-03xGdSLI.mjs";
1
+ import { a as quoteIdentifier, n as escapeLiteral } from "./sql-utils-VXrIh8dJ-DVxo_Ygp.mjs";
2
2
  import { invariant } from "@prisma/orm-framework/utils/assertions";
3
- //#region ../../../3-targets/postgres/1-target/dist/check-expressions-C_lM7sSK.mjs
3
+ //#region ../../../3-targets/postgres/1-target/dist/check-expressions-DL9WtMO5.mjs
4
4
  /**
5
5
  * Renders the checks a Postgres column needs, as opaque predicate text.
6
6
  *
@@ -115,4 +115,4 @@ function arrayLiteral(values) {
115
115
  //#endregion
116
116
  export { postgresRenderCheckExpressions as t };
117
117
 
118
- //# sourceMappingURL=check-expressions-C_lM7sSK-Dtv6p3hg.mjs.map
118
+ //# sourceMappingURL=check-expressions-DL9WtMO5-CUcbN2JG.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"check-expressions-C_lM7sSK-Dtv6p3hg.mjs","names":[],"sources":["../../../../3-targets/postgres/1-target/dist/check-expressions-C_lM7sSK.mjs"],"sourcesContent":["import { a as quoteIdentifier, n as escapeLiteral } from \"./sql-utils-ylvfJ1RJ.mjs\";\nimport { invariant } from \"@internal/utils/assertions\";\n//#region src/core/check-expressions.ts\n/**\n* Renders the checks a Postgres column needs, as opaque predicate text.\n*\n* A domain enum has no type-level enforcement, so membership is a\n* predicate: `IN` for a scalar, and `<@` containment for an array — an array\n* column cannot use `IN` at all (`operator does not exist: text[] = text`).\n* Array membership strips NULL elements first, leaving element nullability to\n* the separate element-non-null check emitted for semantically strict lists.\n*\n* Both forms compare members in the column's own type: the `IN` list and\n* the `<@` array literal are untyped, so Postgres reads each member as the\n* column (or element) type. A cast to `text` would compare the type's text\n* output instead, which for `inet` always carries the prefix length.\n*/\nfunction postgresRenderCheckExpressions(input) {\n\tconst candidates = [];\n\tconst column = quoteIdentifier(input.columnName);\n\tconst isMany = input.many !== false;\n\tconst elementNullable = input.many !== false && input.many.elementNullable;\n\tif (input.memberValues !== void 0) {\n\t\tinvariant(input.memberValues.length > 0, `check for \"${input.tableName}\".\"${input.columnName}\": empty member set; both authoring surfaces reject a member-less enum before rendering`);\n\t\tfor (const value of input.memberValues) invariant(typeof value === \"string\" || Number.isFinite(value), `check for \"${input.tableName}\".\"${input.columnName}\": non-finite numeric member`);\n\t\tcandidates.push({\n\t\t\tkind: \"membership\",\n\t\t\tcolumnName: input.columnName,\n\t\t\texpression: isMany ? `array_remove(${column}, NULL) <@ '${escapeLiteral(arrayLiteral(input.memberValues))}'` : `${column} IN (${input.memberValues.map(sqlLiteral).join(\", \")})`\n\t\t});\n\t}\n\tif (isMany && !elementNullable) candidates.push({\n\t\tkind: \"elementNotNull\",\n\t\tcolumnName: input.columnName,\n\t\texpression: `array_position(${column}, NULL) IS NULL`\n\t});\n\tif (input.valueObject !== void 0) candidates.push({\n\t\tkind: \"shape\",\n\t\tcolumnName: input.columnName,\n\t\texpression: valueObjectCheck(column, input.valueObject)\n\t});\n\treturn candidates;\n}\n/**\n* One strict `jsonpath` predicate over the whole column value. Strict mode keeps a comparison from unwrapping an array, and `IS TRUE` makes a predicate that evaluates to unknown fail the check, as a CHECK would otherwise pass on NULL. Member values are read through `keyvalue()`, so an absent member is never an error.\n*/\nfunction valueObjectCheck(column, columnValueObject) {\n\tconst field = {\n\t\tnullable: columnValueObject.nullable,\n\t\tmany: columnValueObject.many,\n\t\ttype: {\n\t\t\tkind: \"valueObject\",\n\t\t\tvalueObject: columnValueObject.valueObject\n\t\t}\n\t};\n\tconst predicate = fieldPredicate(field, \"$\");\n\tinvariant(predicate !== void 0, \"a column that holds a value object always has a predicate\");\n\tconst match = (path) => `jsonb_path_match(${column}, '${escapeLiteral(`strict ${path}`)}') IS TRUE`;\n\treturn field.nullable ? `${column} IS NULL OR ${match(`$.type() == \"null\" || (${predicate})`)}` : match(predicate);\n}\n/** What the value at `path` must satisfy, or `undefined` when any value is accepted. */\nfunction fieldPredicate(field, path) {\n\tif (field.many === false) return valuePredicate(field.type, path);\n\tconst element = valuePredicate(field.type, \"@\");\n\tconst { elementNullable } = field.many;\n\tconst invalidElement = element === void 0 ? elementNullable ? void 0 : \"@.type() == \\\"null\\\"\" : elementNullable ? `!(@.type() == \"null\" || (${element}))` : `!((${element}))`;\n\tconst isArray = `${path}.type() == \"array\"`;\n\treturn invalidElement === void 0 ? isArray : `${isArray} && !exists(${path}[*] ? (${invalidElement}))`;\n}\n/** A member of any JSON type accepts every value, JSON `null` included; a member of any other JSON type is of that type, so never JSON `null`. */\nfunction valuePredicate(type, path) {\n\tswitch (type.kind) {\n\t\tcase \"valueObject\": return objectPredicate(type.valueObject, path);\n\t\tcase \"anyObject\": return `${path}.type() == \"object\"`;\n\t\tcase \"scalar\":\n\t\t\tif (type.values !== void 0) return valueSetPredicate(type.values, path);\n\t\t\treturn type.jsonType === \"any\" ? void 0 : `${path}.type() == \"${type.jsonType}\"`;\n\t}\n}\nfunction valueSetPredicate(values, path) {\n\tconst alternatives = (jsonType, members) => `${path}.type() == \"${jsonType}\" && (${members.map((value) => `${path} == ${jsonPathLiteral(value)}`).join(\" || \")})`;\n\tconst strings = values.filter((value) => typeof value === \"string\");\n\tconst numbers = values.filter((value) => typeof value === \"number\");\n\tinvariant(values.length > 0, \"a value set restricting a value object member has no values\");\n\tif (numbers.length === 0) return alternatives(\"string\", strings);\n\tif (strings.length === 0) return alternatives(\"number\", numbers);\n\treturn `(${alternatives(\"string\", strings)}) || (${alternatives(\"number\", numbers)})`;\n}\nfunction objectPredicate(valueObject, path) {\n\tconst names = Object.keys(valueObject.fields).sort();\n\tconst members = names.flatMap((name) => {\n\t\tconst field = valueObject.fields[name];\n\t\tinvariant(field !== void 0, `value object member \"${name}\" is missing`);\n\t\tconst isMember = `@.key == ${jsonPathLiteral(name)}`;\n\t\tconst predicate = fieldPredicate(field, \"@.value\");\n\t\tif (!field.nullable) return [predicate === void 0 ? `exists(${path}.keyvalue() ? (${isMember}))` : `exists(${path}.keyvalue() ? (${isMember} && (${predicate})))`];\n\t\treturn predicate === void 0 ? [] : [`!exists(${path}.keyvalue() ? (${isMember} && !(@.value.type() == \"null\" || (${predicate}))))`];\n\t});\n\tconst otherKey = names.length === 0 ? `!exists(${path}.keyvalue())` : `!exists(${path}.keyvalue() ? (${names.map((name) => `@.key != ${jsonPathLiteral(name)}`).join(\" && \")}))`;\n\treturn [\n\t\t`${path}.type() == \"object\"`,\n\t\t...members,\n\t\totherKey\n\t].join(\" && \");\n}\nfunction jsonPathLiteral(value) {\n\treturn typeof value === \"string\" ? JSON.stringify(value) : String(value);\n}\nfunction sqlLiteral(value) {\n\treturn typeof value === \"string\" ? `'${escapeLiteral(value)}'` : String(value);\n}\nfunction arrayLiteral(values) {\n\treturn `{${values.map((value) => typeof value === \"string\" ? `\"${value.replace(/[\"\\\\]/g, \"\\\\$&\")}\"` : String(value)).join(\",\")}}`;\n}\n//#endregion\nexport { postgresRenderCheckExpressions as t };\n\n//# sourceMappingURL=check-expressions-C_lM7sSK.mjs.map"],"mappings":";;;;;;;;;;;;;;;;;AAiBA,SAAS,+BAA+B,OAAO;CAC9C,MAAM,aAAa,CAAC;CACpB,MAAM,SAAS,gBAAgB,MAAM,UAAU;CAC/C,MAAM,SAAS,MAAM,SAAS;CAC9B,MAAM,kBAAkB,MAAM,SAAS,SAAS,MAAM,KAAK;CAC3D,IAAI,MAAM,iBAAiB,KAAK,GAAG;EAClC,UAAU,MAAM,aAAa,SAAS,GAAG,cAAc,MAAM,UAAU,KAAK,MAAM,WAAW,wFAAwF;EACrL,KAAK,MAAM,SAAS,MAAM,cAAc,UAAU,OAAO,UAAU,YAAY,OAAO,SAAS,KAAK,GAAG,cAAc,MAAM,UAAU,KAAK,MAAM,WAAW,6BAA6B;EACxL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AM,UAAU,KAAK,iBAAiB,SAAS,OAAO,UAAU,IAAI;EACjK,OAAO,cAAc,KAAK,IAAI,CAAC,IAAI,CAAC,WAAW,KAAK,iBAAiB,SAAS,qCAAqC,UAAU,KAAK;CACnI,CAAC;CACD,MAAM,WAAW,MAAM,WAAW,IAAI,WAAW,KAAK,gBAAgB,WAAW,KAAK,iBAAiB,MAAM,KAAK,SAAS,YAAY,gBAAgB,IAAI,GAAG,CAAC,CAAC,KAAK,MAAM,EAAE;CAC7K,OAAO;EACN,GAAG,KAAK;EACR,GAAG;EACH;CACD,CAAC,CAAC,KAAK,MAAM;AACd;AACA,SAAS,gBAAgB,OAAO;CAC/B,OAAO,OAAO,UAAU,WAAW,KAAK,UAAU,KAAK,IAAI,OAAO,KAAK;AACxE;AACA,SAAS,WAAW,OAAO;CAC1B,OAAO,OAAO,UAAU,WAAW,IAAI,cAAc,KAAK,EAAE,KAAK,OAAO,KAAK;AAC9E;AACA,SAAS,aAAa,QAAQ;CAC7B,OAAO,IAAI,OAAO,KAAK,UAAU,OAAO,UAAU,WAAW,IAAI,MAAM,QAAQ,UAAU,MAAM,EAAE,KAAK,OAAO,KAAK,CAAC,CAAC,CAAC,KAAK,GAAG,EAAE;AAChI"}
1
+ {"version":3,"file":"check-expressions-DL9WtMO5-CUcbN2JG.mjs","names":[],"sources":["../../../../3-targets/postgres/1-target/dist/check-expressions-DL9WtMO5.mjs"],"sourcesContent":["import { a as quoteIdentifier, n as escapeLiteral } from \"./sql-utils-VXrIh8dJ.mjs\";\nimport { invariant } from \"@internal/utils/assertions\";\n//#region src/core/check-expressions.ts\n/**\n* Renders the checks a Postgres column needs, as opaque predicate text.\n*\n* A domain enum has no type-level enforcement, so membership is a\n* predicate: `IN` for a scalar, and `<@` containment for an array — an array\n* column cannot use `IN` at all (`operator does not exist: text[] = text`).\n* Array membership strips NULL elements first, leaving element nullability to\n* the separate element-non-null check emitted for semantically strict lists.\n*\n* Both forms compare members in the column's own type: the `IN` list and\n* the `<@` array literal are untyped, so Postgres reads each member as the\n* column (or element) type. A cast to `text` would compare the type's text\n* output instead, which for `inet` always carries the prefix length.\n*/\nfunction postgresRenderCheckExpressions(input) {\n\tconst candidates = [];\n\tconst column = quoteIdentifier(input.columnName);\n\tconst isMany = input.many !== false;\n\tconst elementNullable = input.many !== false && input.many.elementNullable;\n\tif (input.memberValues !== void 0) {\n\t\tinvariant(input.memberValues.length > 0, `check for \"${input.tableName}\".\"${input.columnName}\": empty member set; both authoring surfaces reject a member-less enum before rendering`);\n\t\tfor (const value of input.memberValues) invariant(typeof value === \"string\" || Number.isFinite(value), `check for \"${input.tableName}\".\"${input.columnName}\": non-finite numeric member`);\n\t\tcandidates.push({\n\t\t\tkind: \"membership\",\n\t\t\tcolumnName: input.columnName,\n\t\t\texpression: isMany ? `array_remove(${column}, NULL) <@ '${escapeLiteral(arrayLiteral(input.memberValues))}'` : `${column} IN (${input.memberValues.map(sqlLiteral).join(\", \")})`\n\t\t});\n\t}\n\tif (isMany && !elementNullable) candidates.push({\n\t\tkind: \"elementNotNull\",\n\t\tcolumnName: input.columnName,\n\t\texpression: `array_position(${column}, NULL) IS NULL`\n\t});\n\tif (input.valueObject !== void 0) candidates.push({\n\t\tkind: \"shape\",\n\t\tcolumnName: input.columnName,\n\t\texpression: valueObjectCheck(column, input.valueObject)\n\t});\n\treturn candidates;\n}\n/**\n* One strict `jsonpath` predicate over the whole column value. Strict mode keeps a comparison from unwrapping an array, and `IS TRUE` makes a predicate that evaluates to unknown fail the check, as a CHECK would otherwise pass on NULL. Member values are read through `keyvalue()`, so an absent member is never an error.\n*/\nfunction valueObjectCheck(column, columnValueObject) {\n\tconst field = {\n\t\tnullable: columnValueObject.nullable,\n\t\tmany: columnValueObject.many,\n\t\ttype: {\n\t\t\tkind: \"valueObject\",\n\t\t\tvalueObject: columnValueObject.valueObject\n\t\t}\n\t};\n\tconst predicate = fieldPredicate(field, \"$\");\n\tinvariant(predicate !== void 0, \"a column that holds a value object always has a predicate\");\n\tconst match = (path) => `jsonb_path_match(${column}, '${escapeLiteral(`strict ${path}`)}') IS TRUE`;\n\treturn field.nullable ? `${column} IS NULL OR ${match(`$.type() == \"null\" || (${predicate})`)}` : match(predicate);\n}\n/** What the value at `path` must satisfy, or `undefined` when any value is accepted. */\nfunction fieldPredicate(field, path) {\n\tif (field.many === false) return valuePredicate(field.type, path);\n\tconst element = valuePredicate(field.type, \"@\");\n\tconst { elementNullable } = field.many;\n\tconst invalidElement = element === void 0 ? elementNullable ? void 0 : \"@.type() == \\\"null\\\"\" : elementNullable ? `!(@.type() == \"null\" || (${element}))` : `!((${element}))`;\n\tconst isArray = `${path}.type() == \"array\"`;\n\treturn invalidElement === void 0 ? isArray : `${isArray} && !exists(${path}[*] ? (${invalidElement}))`;\n}\n/** A member of any JSON type accepts every value, JSON `null` included; a member of any other JSON type is of that type, so never JSON `null`. */\nfunction valuePredicate(type, path) {\n\tswitch (type.kind) {\n\t\tcase \"valueObject\": return objectPredicate(type.valueObject, path);\n\t\tcase \"anyObject\": return `${path}.type() == \"object\"`;\n\t\tcase \"scalar\":\n\t\t\tif (type.values !== void 0) return valueSetPredicate(type.values, path);\n\t\t\treturn type.jsonType === \"any\" ? void 0 : `${path}.type() == \"${type.jsonType}\"`;\n\t}\n}\nfunction valueSetPredicate(values, path) {\n\tconst alternatives = (jsonType, members) => `${path}.type() == \"${jsonType}\" && (${members.map((value) => `${path} == ${jsonPathLiteral(value)}`).join(\" || \")})`;\n\tconst strings = values.filter((value) => typeof value === \"string\");\n\tconst numbers = values.filter((value) => typeof value === \"number\");\n\tinvariant(values.length > 0, \"a value set restricting a value object member has no values\");\n\tif (numbers.length === 0) return alternatives(\"string\", strings);\n\tif (strings.length === 0) return alternatives(\"number\", numbers);\n\treturn `(${alternatives(\"string\", strings)}) || (${alternatives(\"number\", numbers)})`;\n}\nfunction objectPredicate(valueObject, path) {\n\tconst names = Object.keys(valueObject.fields).sort();\n\tconst members = names.flatMap((name) => {\n\t\tconst field = valueObject.fields[name];\n\t\tinvariant(field !== void 0, `value object member \"${name}\" is missing`);\n\t\tconst isMember = `@.key == ${jsonPathLiteral(name)}`;\n\t\tconst predicate = fieldPredicate(field, \"@.value\");\n\t\tif (!field.nullable) return [predicate === void 0 ? `exists(${path}.keyvalue() ? (${isMember}))` : `exists(${path}.keyvalue() ? (${isMember} && (${predicate})))`];\n\t\treturn predicate === void 0 ? [] : [`!exists(${path}.keyvalue() ? (${isMember} && !(@.value.type() == \"null\" || (${predicate}))))`];\n\t});\n\tconst otherKey = names.length === 0 ? `!exists(${path}.keyvalue())` : `!exists(${path}.keyvalue() ? (${names.map((name) => `@.key != ${jsonPathLiteral(name)}`).join(\" && \")}))`;\n\treturn [\n\t\t`${path}.type() == \"object\"`,\n\t\t...members,\n\t\totherKey\n\t].join(\" && \");\n}\nfunction jsonPathLiteral(value) {\n\treturn typeof value === \"string\" ? JSON.stringify(value) : String(value);\n}\nfunction sqlLiteral(value) {\n\treturn typeof value === \"string\" ? `'${escapeLiteral(value)}'` : String(value);\n}\nfunction arrayLiteral(values) {\n\treturn `{${values.map((value) => typeof value === \"string\" ? `\"${value.replace(/[\"\\\\]/g, \"\\\\$&\")}\"` : String(value)).join(\",\")}}`;\n}\n//#endregion\nexport { postgresRenderCheckExpressions as t };\n\n//# sourceMappingURL=check-expressions-DL9WtMO5.mjs.map"],"mappings":";;;;;;;;;;;;;;;;;AAiBA,SAAS,+BAA+B,OAAO;CAC9C,MAAM,aAAa,CAAC;CACpB,MAAM,SAAS,gBAAgB,MAAM,UAAU;CAC/C,MAAM,SAAS,MAAM,SAAS;CAC9B,MAAM,kBAAkB,MAAM,SAAS,SAAS,MAAM,KAAK;CAC3D,IAAI,MAAM,iBAAiB,KAAK,GAAG;EAClC,UAAU,MAAM,aAAa,SAAS,GAAG,cAAc,MAAM,UAAU,KAAK,MAAM,WAAW,wFAAwF;EACrL,KAAK,MAAM,SAAS,MAAM,cAAc,UAAU,OAAO,UAAU,YAAY,OAAO,SAAS,KA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OAAO,CAAC,cAAc,KAAK,IAAI,UAAU,KAAK,iBAAiB,SAAS,MAAM,UAAU,KAAK,iBAAiB,SAAS,OAAO,UAAU,IAAI;EACjK,OAAO,cAAc,KAAK,IAAI,CAAC,IAAI,CAAC,WAAW,KAAK,iBAAiB,SAAS,qCAAqC,UAAU,KAAK;CACnI,CAAC;CACD,MAAM,WAAW,MAAM,WAAW,IAAI,WAAW,KAAK,gBAAgB,WAAW,KAAK,iBAAiB,MAAM,KAAK,SAAS,YAAY,gBAAgB,IAAI,GAAG,CAAC,CAAC,KAAK,MAAM,EAAE;CAC7K,OAAO;EACN,GAAG,KAAK;EACR,GAAG;EACH;CACD,CAAC,CAAC,KAAK,MAAM;AACd;AACA,SAAS,gBAAgB,OAAO;CAC/B,OAAO,OAAO,UAAU,WAAW,KAAK,UAAU,KAAK,IAAI,OAAO,KAAK;AACxE;AACA,SAAS,WAAW,OAAO;CAC1B,OAAO,OAAO,UAAU,WAAW,IAAI,cAAc,KAAK,EAAE,KAAK,OAAO,KAAK;AAC9E;AACA,SAAS,aAAa,QAAQ;CAC7B,OAAO,IAAI,OAAO,KAAK,UAAU,OAAO,UAAU,WAAW,IAAI,MAAM,QAAQ,UAAU,MAAM,EAAE,KAAK,OAAO,KAAK,CAAC,CAAC,CAAC,KAAK,GAAG,EAAE;AAChI"}
@@ -1,5 +1,5 @@
1
1
  import { SQL_CHAR_CODEC_ID, SQL_FLOAT_CODEC_ID, SQL_INT_CODEC_ID, SQL_RAW_CODEC_ID, SQL_TEXT_CODEC_ID, SQL_VARCHAR_CODEC_ID } from "@prisma/orm-family-sql/relational-core/ast";
2
- //#region ../../../3-targets/postgres/1-target/dist/codec-ids-D0wjQdEW.mjs
2
+ //#region ../../../3-targets/postgres/1-target/dist/codec-ids-2htdtS66.mjs
3
3
  const PG_TEXT_CODEC_ID = "pg/text@1";
4
4
  const PG_TEXT_ARRAY_CODEC_ID = "pg/text-array@1";
5
5
  const PG_ENUM_CODEC_ID = "pg/enum@1";
@@ -38,7 +38,10 @@ const PG_BYTEA_CODEC_ID = "pg/bytea@1";
38
38
  const PG_UUID_CODEC_ID = "pg/uuid@1";
39
39
  const PG_INET_CODEC_ID = "pg/inet@1";
40
40
  const PG_TSQUERY_CODEC_ID = "pg/tsquery@1";
41
+ const PG_XML_CODEC_ID = "pg/xml@1";
42
+ const PG_OID_CODEC_ID = "pg/oid@1";
43
+ const PG_MONEY_CODEC_ID = "pg/money@1";
41
44
  //#endregion
42
- export { PG_TIMESTAMP_TEMPORAL_CODEC_ID as A, SQL_FLOAT_CODEC_ID as B, PG_TEXT_CODEC_ID as C, PG_TIMESTAMP_DATE_CODEC_ID as D, PG_TIMESTAMPTZ_TEMPORAL_CODEC_ID as E, PG_UNBOUNDED_INT_CODEC_ID as F, SQL_RAW_CODEC_ID as H, PG_UUID_CODEC_ID as I, PG_VARBIT_CODEC_ID as L, PG_TIME_STRING_CODEC_ID as M, PG_TIME_TEMPORAL_CODEC_ID as N, PG_TIMESTAMP_INSTANT_CODEC_ID as O, PG_TSQUERY_CODEC_ID as P, PG_VARCHAR_CODEC_ID as R, PG_TEXT_ARRAY_CODEC_ID as S, PG_TIMESTAMPTZ_STRING_CODEC_ID as T, SQL_TEXT_CODEC_ID as U, SQL_INT_CODEC_ID as V, SQL_VARCHAR_CODEC_ID as W, PG_INTERVAL_STRING_CODEC_ID as _, PG_DATE_STRING_CODEC_ID as a, PG_JSON_CODEC_ID as b, PG_FLOAT4_CODEC_ID as c, PG_INET_CODEC_ID as d, PG_INT2_CODEC_ID as f, PG_INTERVAL_CODEC_ID as g, PG_INT8_NUMBER_CODEC_ID as h, PG_CHAR_CODEC_ID as i, PG_TIMETZ_CODEC_ID as j, PG_TIMESTAMP_STRING_CODEC_ID as k, PG_FLOAT8_CODEC_ID as l, PG_INT8_CODEC_ID as m, PG_BOOL_CODEC_ID as n, PG_DATE_TEMPORAL_CODEC_ID as o, PG_INT4_CODEC_ID as p, PG_BYTEA_CODEC_ID as r, PG_ENUM_CODEC_ID as s, PG_BIT_CODEC_ID as t, PG_FLOAT_CODEC_ID as u, PG_INT_CODEC_ID as v, PG_TIMESTAMPTZ_DATE_CODEC_ID as w, PG_NUMERIC_CODEC_ID as x, PG_JSONB_CODEC_ID as y, SQL_CHAR_CODEC_ID as z };
45
+ export { PG_TIMESTAMP_INSTANT_CODEC_ID as A, PG_VARCHAR_CODEC_ID as B, PG_OID_CODEC_ID as C, PG_TIMESTAMPTZ_STRING_CODEC_ID as D, PG_TIMESTAMPTZ_DATE_CODEC_ID as E, PG_TIME_TEMPORAL_CODEC_ID as F, SQL_RAW_CODEC_ID as G, SQL_CHAR_CODEC_ID as H, PG_TSQUERY_CODEC_ID as I, SQL_TEXT_CODEC_ID as K, PG_UNBOUNDED_INT_CODEC_ID as L, PG_TIMESTAMP_TEMPORAL_CODEC_ID as M, PG_TIMETZ_CODEC_ID as N, PG_TIMESTAMPTZ_TEMPORAL_CODEC_ID as O, PG_TIME_STRING_CODEC_ID as P, PG_UUID_CODEC_ID as R, PG_NUMERIC_CODEC_ID as S, PG_TEXT_CODEC_ID as T, SQL_FLOAT_CODEC_ID as U, PG_XML_CODEC_ID as V, SQL_INT_CODEC_ID as W, PG_INTERVAL_STRING_CODEC_ID as _, PG_DATE_STRING_CODEC_ID as a, PG_JSON_CODEC_ID as b, PG_FLOAT4_CODEC_ID as c, PG_INET_CODEC_ID as d, PG_INT2_CODEC_ID as f, PG_INTERVAL_CODEC_ID as g, PG_INT8_NUMBER_CODEC_ID as h, PG_CHAR_CODEC_ID as i, PG_TIMESTAMP_STRING_CODEC_ID as j, PG_TIMESTAMP_DATE_CODEC_ID as k, PG_FLOAT8_CODEC_ID as l, PG_INT8_CODEC_ID as m, PG_BOOL_CODEC_ID as n, PG_DATE_TEMPORAL_CODEC_ID as o, PG_INT4_CODEC_ID as p, SQL_VARCHAR_CODEC_ID as q, PG_BYTEA_CODEC_ID as r, PG_ENUM_CODEC_ID as s, PG_BIT_CODEC_ID as t, PG_FLOAT_CODEC_ID as u, PG_INT_CODEC_ID as v, PG_TEXT_ARRAY_CODEC_ID as w, PG_MONEY_CODEC_ID as x, PG_JSONB_CODEC_ID as y, PG_VARBIT_CODEC_ID as z };
43
46
 
44
- //# sourceMappingURL=codec-ids-D0wjQdEW-EypD_iZj.mjs.map
47
+ //# sourceMappingURL=codec-ids-2htdtS66-CJPMZv1t.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"codec-ids-2htdtS66-CJPMZv1t.mjs","names":[],"sources":["../../../../3-targets/postgres/1-target/dist/codec-ids-2htdtS66.mjs"],"sourcesContent":["import { SQL_CHAR_CODEC_ID, SQL_FLOAT_CODEC_ID, SQL_INT_CODEC_ID, SQL_RAW_CODEC_ID, SQL_TEXT_CODEC_ID, SQL_VARCHAR_CODEC_ID } from \"@internal/sql-relational-core/ast\";\n//#region src/core/codec-ids.ts\nconst PG_TEXT_CODEC_ID = \"pg/text@1\";\nconst PG_TEXT_ARRAY_CODEC_ID = \"pg/text-array@1\";\nconst PG_ENUM_CODEC_ID = \"pg/enum@1\";\nconst PG_CHAR_CODEC_ID = \"pg/char@1\";\nconst PG_VARCHAR_CODEC_ID = \"pg/varchar@1\";\nconst PG_INT_CODEC_ID = \"pg/int@1\";\nconst PG_INT2_CODEC_ID = \"pg/int2@1\";\nconst PG_INT4_CODEC_ID = \"pg/int4@1\";\nconst PG_INT8_CODEC_ID = \"pg/int8@1\";\nconst PG_INT8_NUMBER_CODEC_ID = \"pg/int8number@1\";\nconst PG_FLOAT_CODEC_ID = \"pg/float@1\";\nconst PG_FLOAT4_CODEC_ID = \"pg/float4@1\";\nconst PG_FLOAT8_CODEC_ID = \"pg/float8@1\";\nconst PG_NUMERIC_CODEC_ID = \"pg/numeric@1\";\nconst PG_UNBOUNDED_INT_CODEC_ID = \"pg/unboundedint@1\";\nconst PG_BOOL_CODEC_ID = \"pg/bool@1\";\nconst PG_BIT_CODEC_ID = \"pg/bit@1\";\nconst PG_VARBIT_CODEC_ID = \"pg/varbit@1\";\nconst PG_DATE_TEMPORAL_CODEC_ID = \"pg/date-temporal@1\";\nconst PG_TIMESTAMP_TEMPORAL_CODEC_ID = \"pg/timestamp-temporal@1\";\nconst PG_TIMESTAMPTZ_TEMPORAL_CODEC_ID = \"pg/timestamptz-temporal@1\";\nconst PG_TIME_TEMPORAL_CODEC_ID = \"pg/time-temporal@1\";\nconst PG_DATE_STRING_CODEC_ID = \"pg/date-string@1\";\nconst PG_TIMESTAMP_STRING_CODEC_ID = \"pg/timestamp-string@1\";\nconst PG_TIMESTAMPTZ_STRING_CODEC_ID = \"pg/timestamptz-string@1\";\nconst PG_TIMESTAMPTZ_DATE_CODEC_ID = \"pg/timestamptz-date@1\";\nconst PG_TIMESTAMP_DATE_CODEC_ID = \"pg/timestamp-date@1\";\nconst PG_TIMESTAMP_INSTANT_CODEC_ID = \"pg/timestamp-instant@1\";\nconst PG_TIME_STRING_CODEC_ID = \"pg/time-string@1\";\nconst PG_TIMETZ_CODEC_ID = \"pg/timetz@1\";\nconst PG_INTERVAL_CODEC_ID = \"pg/interval@1\";\nconst PG_INTERVAL_STRING_CODEC_ID = \"pg/interval-string@1\";\nconst PG_JSON_CODEC_ID = \"pg/json@1\";\nconst PG_JSONB_CODEC_ID = \"pg/jsonb@1\";\nconst PG_BYTEA_CODEC_ID = \"pg/bytea@1\";\nconst PG_UUID_CODEC_ID = \"pg/uuid@1\";\nconst PG_INET_CODEC_ID = \"pg/inet@1\";\nconst PG_TSQUERY_CODEC_ID = \"pg/tsquery@1\";\nconst PG_XML_CODEC_ID = \"pg/xml@1\";\nconst PG_OID_CODEC_ID = \"pg/oid@1\";\nconst PG_MONEY_CODEC_ID = \"pg/money@1\";\n//#endregion\nexport { PG_TIMESTAMP_INSTANT_CODEC_ID as A, PG_VARCHAR_CODEC_ID as B, PG_OID_CODEC_ID as C, PG_TIMESTAMPTZ_STRING_CODEC_ID as D, PG_TIMESTAMPTZ_DATE_CODEC_ID as E, PG_TIME_TEMPORAL_CODEC_ID as F, SQL_RAW_CODEC_ID as G, SQL_CHAR_CODEC_ID as H, PG_TSQUERY_CODEC_ID as I, SQL_TEXT_CODEC_ID as K, PG_UNBOUNDED_INT_CODEC_ID as L, PG_TIMESTAMP_TEMPORAL_CODEC_ID as M, PG_TIMETZ_CODEC_ID as N, PG_TIMESTAMPTZ_TEMPORAL_CODEC_ID as O, PG_TIME_STRING_CODEC_ID as P, PG_UUID_CODEC_ID as R, PG_NUMERIC_CODEC_ID as S, PG_TEXT_CODEC_ID as T, SQL_FLOAT_CODEC_ID as U, PG_XML_CODEC_ID as V, SQL_INT_CODEC_ID as W, PG_INTERVAL_STRING_CODEC_ID as _, PG_DATE_STRING_CODEC_ID as a, PG_JSON_CODEC_ID as b, PG_FLOAT4_CODEC_ID as c, PG_INET_CODEC_ID as d, PG_INT2_CODEC_ID as f, PG_INTERVAL_CODEC_ID as g, PG_INT8_NUMBER_CODEC_ID as h, PG_CHAR_CODEC_ID as i, PG_TIMESTAMP_STRING_CODEC_ID as j, PG_TIMESTAMP_DATE_CODEC_ID as k, PG_FLOAT8_CODEC_ID as l, PG_INT8_CODEC_ID as m, PG_BOOL_CODEC_ID as n, PG_DATE_TEMPORAL_CODEC_ID as o, PG_INT4_CODEC_ID as p, SQL_VARCHAR_CODEC_ID as q, PG_BYTEA_CODEC_ID as r, PG_ENUM_CODEC_ID as s, PG_BIT_CODEC_ID as t, PG_FLOAT_CODEC_ID as u, PG_INT_CODEC_ID as v, PG_TEXT_ARRAY_CODEC_ID as w, PG_MONEY_CODEC_ID as x, PG_JSONB_CODEC_ID as y, PG_VARBIT_CODEC_ID as z };\n\n//# sourceMappingURL=codec-ids-2htdtS66.mjs.map"],"mappings":";;AAEA,MAAM,mBAAmB;AACzB,MAAM,yBAAyB;AAC/B,MAAM,mBAAmB;AACzB,MAAM,mBAAmB;AACzB,MAAM,sBAAsB;AAC5B,MAAM,kBAAkB;AACxB,MAAM,mBAAmB;AACzB,MAAM,mBAAmB;AACzB,MAAM,mBAAmB;AACzB,MAAM,0BAA0B;AAChC,MAAM,oBAAoB;AAC1B,MAAM,qBAAqB;AAC3B,MAAM,qBAAqB;AAC3B,MAAM,sBAAsB;AAC5B,MAAM,4BAA4B;AAClC,MAAM,mBAAmB;AACzB,MAAM,kBAAkB;AACxB,MAAM,qBAAqB;AAC3B,MAAM,4BAA4B;AAClC,MAAM,iCAAiC;AACvC,MAAM,mCAAmC;AACzC,MAAM,4BAA4B;AAClC,MAAM,0BAA0B;AAChC,MAAM,+BAA+B;AACrC,MAAM,iCAAiC;AACvC,MAAM,+BAA+B;AACrC,MAAM,6BAA6B;AACnC,MAAM,gCAAgC;AACtC,MAAM,0BAA0B;AAChC,MAAM,qBAAqB;AAC3B,MAAM,uBAAuB;AAC7B,MAAM,8BAA8B;AACpC,MAAM,mBAAmB;AACzB,MAAM,oBAAoB;AAC1B,MAAM,oBAAoB;AAC1B,MAAM,mBAAmB;AACzB,MAAM,mBAAmB;AACzB,MAAM,sBAAsB;AAC5B,MAAM,kBAAkB;AACxB,MAAM,kBAAkB;AACxB,MAAM,oBAAoB"}
@@ -1,5 +1,5 @@
1
1
  import { SQL_CHAR_CODEC_ID, SQL_FLOAT_CODEC_ID, SQL_INT_CODEC_ID, SQL_RAW_CODEC_ID, SQL_TEXT_CODEC_ID, SQL_VARCHAR_CODEC_ID } from "@prisma/orm-family-sql/relational-core/ast";
2
- //#region ../../../3-targets/postgres/1-target/dist/codec-ids-CNEv5CTR.d.mts
2
+ //#region ../../../3-targets/postgres/1-target/dist/codec-ids-5MgmfzkI.d.mts
3
3
  //#region src/core/codec-ids.d.ts
4
4
  declare const PG_TEXT_CODEC_ID: "pg/text@1";
5
5
  declare const PG_TEXT_ARRAY_CODEC_ID: "pg/text-array@1";
@@ -39,6 +39,9 @@ declare const PG_BYTEA_CODEC_ID: "pg/bytea@1";
39
39
  declare const PG_UUID_CODEC_ID: "pg/uuid@1";
40
40
  declare const PG_INET_CODEC_ID: "pg/inet@1";
41
41
  declare const PG_TSQUERY_CODEC_ID: "pg/tsquery@1";
42
+ declare const PG_XML_CODEC_ID: "pg/xml@1";
43
+ declare const PG_OID_CODEC_ID: "pg/oid@1";
44
+ declare const PG_MONEY_CODEC_ID: "pg/money@1";
42
45
  //#endregion
43
- export { PG_TIMESTAMP_TEMPORAL_CODEC_ID as A, SQL_FLOAT_CODEC_ID as B, PG_TEXT_CODEC_ID as C, PG_TIMESTAMP_DATE_CODEC_ID as D, PG_TIMESTAMPTZ_TEMPORAL_CODEC_ID as E, PG_UNBOUNDED_INT_CODEC_ID as F, SQL_RAW_CODEC_ID as H, PG_UUID_CODEC_ID as I, PG_VARBIT_CODEC_ID as L, PG_TIME_STRING_CODEC_ID as M, PG_TIME_TEMPORAL_CODEC_ID as N, PG_TIMESTAMP_INSTANT_CODEC_ID as O, PG_TSQUERY_CODEC_ID as P, PG_VARCHAR_CODEC_ID as R, PG_TEXT_ARRAY_CODEC_ID as S, PG_TIMESTAMPTZ_STRING_CODEC_ID as T, SQL_TEXT_CODEC_ID as U, SQL_INT_CODEC_ID as V, SQL_VARCHAR_CODEC_ID as W, PG_INTERVAL_STRING_CODEC_ID as _, PG_DATE_STRING_CODEC_ID as a, PG_JSON_CODEC_ID as b, PG_FLOAT4_CODEC_ID as c, PG_INET_CODEC_ID as d, PG_INT2_CODEC_ID as f, PG_INTERVAL_CODEC_ID as g, PG_INT8_NUMBER_CODEC_ID as h, PG_CHAR_CODEC_ID as i, PG_TIMETZ_CODEC_ID as j, PG_TIMESTAMP_STRING_CODEC_ID as k, PG_FLOAT8_CODEC_ID as l, PG_INT8_CODEC_ID as m, PG_BOOL_CODEC_ID as n, PG_DATE_TEMPORAL_CODEC_ID as o, PG_INT4_CODEC_ID as p, PG_BYTEA_CODEC_ID as r, PG_ENUM_CODEC_ID as s, PG_BIT_CODEC_ID as t, PG_FLOAT_CODEC_ID as u, PG_INT_CODEC_ID as v, PG_TIMESTAMPTZ_DATE_CODEC_ID as w, PG_NUMERIC_CODEC_ID as x, PG_JSONB_CODEC_ID as y, SQL_CHAR_CODEC_ID as z };
44
- //# sourceMappingURL=codec-ids-CNEv5CTR-g_wnSmnu.d.mts.map
46
+ export { PG_TIMESTAMP_INSTANT_CODEC_ID as A, PG_VARCHAR_CODEC_ID as B, PG_OID_CODEC_ID as C, PG_TIMESTAMPTZ_STRING_CODEC_ID as D, PG_TIMESTAMPTZ_DATE_CODEC_ID as E, PG_TIME_TEMPORAL_CODEC_ID as F, SQL_RAW_CODEC_ID as G, SQL_CHAR_CODEC_ID as H, PG_TSQUERY_CODEC_ID as I, SQL_TEXT_CODEC_ID as K, PG_UNBOUNDED_INT_CODEC_ID as L, PG_TIMESTAMP_TEMPORAL_CODEC_ID as M, PG_TIMETZ_CODEC_ID as N, PG_TIMESTAMPTZ_TEMPORAL_CODEC_ID as O, PG_TIME_STRING_CODEC_ID as P, PG_UUID_CODEC_ID as R, PG_NUMERIC_CODEC_ID as S, PG_TEXT_CODEC_ID as T, SQL_FLOAT_CODEC_ID as U, PG_XML_CODEC_ID as V, SQL_INT_CODEC_ID as W, PG_INTERVAL_STRING_CODEC_ID as _, PG_DATE_STRING_CODEC_ID as a, PG_JSON_CODEC_ID as b, PG_FLOAT4_CODEC_ID as c, PG_INET_CODEC_ID as d, PG_INT2_CODEC_ID as f, PG_INTERVAL_CODEC_ID as g, PG_INT8_NUMBER_CODEC_ID as h, PG_CHAR_CODEC_ID as i, PG_TIMESTAMP_STRING_CODEC_ID as j, PG_TIMESTAMP_DATE_CODEC_ID as k, PG_FLOAT8_CODEC_ID as l, PG_INT8_CODEC_ID as m, PG_BOOL_CODEC_ID as n, PG_DATE_TEMPORAL_CODEC_ID as o, PG_INT4_CODEC_ID as p, SQL_VARCHAR_CODEC_ID as q, PG_BYTEA_CODEC_ID as r, PG_ENUM_CODEC_ID as s, PG_BIT_CODEC_ID as t, PG_FLOAT_CODEC_ID as u, PG_INT_CODEC_ID as v, PG_TEXT_ARRAY_CODEC_ID as w, PG_MONEY_CODEC_ID as x, PG_JSONB_CODEC_ID as y, PG_VARBIT_CODEC_ID as z };
47
+ //# sourceMappingURL=codec-ids-5MgmfzkI-C5V1rph6.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"codec-ids-CNEv5CTR-g_wnSmnu.d.mts","names":[],"sources":["../../../../3-targets/postgres/1-target/dist/codec-ids-CNEv5CTR.d.mts"],"mappings":";;;cAEc;cACA;cACA;cACA;cACA;cACA;cACA;cACA;cACA;cACA;cACA;cACA;cACA;cACA;cACA;cACA;cACA;cACA;cACA;cACA;cACA;cACA;cACA;cACA;cACA;cACA;cACA;cACA;cACA;cACA;cACA;cACA;cACA;cACA;cACA;cACA;cACA;cACA"}
1
+ {"version":3,"file":"codec-ids-5MgmfzkI-C5V1rph6.d.mts","names":[],"sources":["../../../../3-targets/postgres/1-target/dist/codec-ids-5MgmfzkI.d.mts"],"mappings":";;;cAEc;cACA;cACA;cACA;cACA;cACA;cACA;cACA;cACA;cACA;cACA;cACA;cACA;cACA;cACA;cACA;cACA;cACA;cACA;cACA;cACA;cACA;cACA;cACA;cACA;cACA;cACA;cACA;cACA;cACA;cACA;cACA;cACA;cACA;cACA;cACA;cACA;cACA;cACA;cACA;cACA"}
@@ -0,0 +1 @@
1
+ import "./codec-ids-5MgmfzkI-C5V1rph6.mjs";
@@ -1,10 +1,10 @@
1
1
  import { n as buildPostgresCodecDescriptorRegistry } from "./codec-descriptor-DBeD0UlS-BfvrE-KZ.mjs";
2
- import { i as createPostgresBuiltinDataTypeLookup } from "./data-types-DklKHVmp-Bl-nwUa-.mjs";
3
- import { s as codecDescriptors } from "./codecs-BqCmavY8-CC-ZbbTA.mjs";
2
+ import { i as createPostgresBuiltinDataTypeLookup } from "./data-types-DHpMs3mz-BllVpLs5.mjs";
3
+ import { s as codecDescriptors } from "./codecs-BtalD4yQ-BVQxal3w.mjs";
4
4
  import { structuredError } from "@prisma/orm-framework/utils/structured-error";
5
5
  import { extractCodecLookup } from "@prisma/orm-framework/components/control";
6
6
  import { buildCodecDescriptorRegistry } from "@prisma/orm-family-sql/relational-core/codec-descriptor-registry";
7
- //#region ../../../3-targets/postgres/1-target/dist/codec-registry-DVjibYBY.mjs
7
+ //#region ../../../3-targets/postgres/1-target/dist/codec-registry-D-bD-lFp.mjs
8
8
  /**
9
9
  * Registry of every codec descriptor shipped by `@internal/target-postgres`.
10
10
  *
@@ -58,4 +58,4 @@ function createPostgresBuiltinCodecLookup() {
58
58
  //#endregion
59
59
  export { postgresCodecDescriptorRegistry as a, createPostgresCodecRegistryWithBuiltins as i, assemblePostgresCodecRegistryWithBuiltins as n, postgresCodecRegistry as o, createPostgresBuiltinCodecLookup as r, assemblePostgresCodecRegistry as t };
60
60
 
61
- //# sourceMappingURL=codec-registry-DVjibYBY-BeOUp5fk.mjs.map
61
+ //# sourceMappingURL=codec-registry-D-bD-lFp-BCSmwfrE.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"codec-registry-DVjibYBY-BeOUp5fk.mjs","names":[],"sources":["../../../../3-targets/postgres/1-target/dist/codec-registry-DVjibYBY.mjs"],"sourcesContent":["import { t as createPostgresBuiltinDataTypeLookup } from \"./data-types-DklKHVmp.mjs\";\nimport { n as buildPostgresCodecDescriptorRegistry } from \"./codec-descriptor-DBeD0UlS.mjs\";\nimport { t as codecDescriptors } from \"./codecs-BqCmavY8.mjs\";\nimport { structuredError } from \"@internal/utils/structured-error\";\nimport { extractCodecLookup } from \"@internal/framework-components/control\";\nimport { buildCodecDescriptorRegistry } from \"@internal/sql-relational-core/codec-descriptor-registry\";\n//#region src/core/registry.ts\n/**\n* Registry of every codec descriptor shipped by `@internal/target-postgres`.\n*\n* Public consumer surface for the postgres codec set: the postgres adapter and any other consumer that needs to enumerate or look up a postgres codec by id consumes this rather than the raw descriptor array. See ADR 208.\n*/\nconst postgresCodecRegistry = buildCodecDescriptorRegistry(codecDescriptors);\nconst postgresCodecDescriptorRegistry = buildPostgresCodecDescriptorRegistry(codecDescriptors);\n//#endregion\n//#region src/core/codec-registry.ts\n/**\n* A registry of `descriptors`, refusing a codec whose data type `dataTypeLookup` does not have: the\n* SQL renderer writes a parameter's cast from the data type its codec represents.\n*/\nfunction buildPostgresCodecRegistry(descriptors, dataTypeLookup) {\n\tconst descriptorRegistry = buildPostgresCodecDescriptorRegistry(descriptors);\n\tconst validatedDescriptors = Array.from(descriptorRegistry.values());\n\tfor (const descriptor of validatedDescriptors) if (!dataTypeLookup.has(descriptor.dataType)) throw structuredError(\"CONTRACT.DATA_TYPE_UNREGISTERED\", `Codec \"${descriptor.codecId}\" represents data type \"${descriptor.dataType}\", which no component registers.`, {\n\t\twhy: \"A parameter of this codec is written with a cast named by its data type.\",\n\t\tfix: \"Pass the data type beside the codec: in `dataTypes` of createPostgresAdapter, or in the `dataTypes` of the extension that contributes the codec.\",\n\t\tmeta: {\n\t\t\tcodecId: descriptor.codecId,\n\t\t\tdataType: descriptor.dataType\n\t\t}\n\t});\n\tconst registry = {\n\t\t...extractCodecLookup([{\n\t\t\tid: \"postgres-codecs\",\n\t\t\ttypes: { codecTypes: { codecDescriptors: validatedDescriptors } }\n\t\t}]),\n\t\tdescriptorFor: (codecId) => descriptorRegistry.descriptorFor(codecId),\n\t\tvalues: () => descriptorRegistry.values()\n\t};\n\treturn Object.freeze(registry);\n}\nfunction assemblePostgresCodecRegistry(components, dataTypeLookup) {\n\treturn buildPostgresCodecRegistry(components.flatMap((component) => component.types?.codecTypes?.codecDescriptors ?? []), dataTypeLookup);\n}\nfunction assemblePostgresCodecRegistryWithBuiltins(extensions, dataTypeLookup) {\n\treturn buildPostgresCodecRegistry([...postgresCodecDescriptorRegistry.values(), ...extensions.flatMap((extension) => extension.types?.codecTypes?.codecDescriptors ?? [])], dataTypeLookup);\n}\n/** A registry of the built-in codecs and `codecDescriptors`, whose data types `dataTypeLookup` has. */\nfunction createPostgresCodecRegistryWithBuiltins(codecDescriptors = [], dataTypeLookup = createPostgresBuiltinDataTypeLookup()) {\n\treturn buildPostgresCodecRegistry([...postgresCodecDescriptorRegistry.values(), ...codecDescriptors], dataTypeLookup);\n}\n/**\n* Build a coherent PostgreSQL codec registry populated with built-in descriptors only.\n*\n* The returned registry supports both ordinary codec materialization and PostgreSQL target behavior. Stack-composed paths build the same combined registry from their complete ordered descriptor contributions.\n*/\nfunction createPostgresBuiltinCodecLookup() {\n\treturn createPostgresCodecRegistryWithBuiltins();\n}\n//#endregion\nexport { postgresCodecDescriptorRegistry as a, createPostgresCodecRegistryWithBuiltins as i, assemblePostgresCodecRegistryWithBuiltins as n, postgresCodecRegistry as o, createPostgresBuiltinCodecLookup as r, assemblePostgresCodecRegistry as t };\n\n//# sourceMappingURL=codec-registry-DVjibYBY.mjs.map"],"mappings":";;;;;;;;;;;;AAYA,MAAM,wBAAwB,6BAA6B,gBAAgB;AAC3E,MAAM,kCAAkC,qCAAqC,gBAAgB;;;;;AAO7F,SAAS,2BAA2B,aAAa,gBAAgB;CAChE,MAAM,qBAAqB,qCAAqC,WAAW;CAC3E,MAAM,uBAAuB,MAAM,KAAK,mBAAmB,OAAO,CAAC;CACnE,KAAK,MAAM,cAAc,sBAAsB,IAAI,CAAC,eAAe,IAAI,WAAW,QAAQ,GAAG,MAAM,gBAAgB,mCAAmC,UAAU,WAAW,QAAQ,0BAA0B,WAAW,SAAS,mCAAmC;EACnQ,KAAK;EACL,KAAK;EACL,MAAM;GACL,SAAS,WAAW;GACpB,UAAU,WAAW;EACtB;CACD,CAAC;CACD,MAAM,WAAW;EAChB,GAAG,mBAAmB,CAAC;GACtB,IAAI;GACJ,OAAO,EAAE,YAAY,EAAE,kBAAkB,qBAAqB,EAAE;EACjE,CAAC,CAAC;EACF,gBAAgB,YAAY,mBAAmB,cAAc,OAAO;EACpE,cAAc,mBAAmB,OAAO;CACzC;CACA,OAAO,OAAO,OAAO,QAAQ;AAC9B;AACA,SAAS,8BAA8B,YAAY,gBAAgB;CAClE,OAAO,2BAA2B,WAAW,SAAS,cAAc,UAAU,OAAO,YAAY,oBAAoB,CAAC,CAAC,GAAG,cAAc;AACzI;AACA,SAAS,0CAA0C,YAAY,gBAAgB;CAC9E,OAAO,2BAA2B,CAAC,GAAG,gCAAgC,OAAO,GAAG,GAAG,WAAW,SAAS,cAAc,UAAU,OAAO,YAAY,oBAAoB,CAAC,CAAC,CAAC,GAAG,cAAc;AAC3L;;AAEA,SAAS,wCAAwC,mBAAmB,CAAC,GAAG,iBAAiB,oCAAoC,GAAG;CAC/H,OAAO,2BAA2B,CAAC,GAAG,gCAAgC,OAAO,GAAG,GAAG,gBAAgB,GAAG,cAAc;AACrH;;;;;;AAMA,SAAS,mCAAmC;CAC3C,OAAO,wCAAwC;AAChD"}
1
+ {"version":3,"file":"codec-registry-D-bD-lFp-BCSmwfrE.mjs","names":[],"sources":["../../../../3-targets/postgres/1-target/dist/codec-registry-D-bD-lFp.mjs"],"sourcesContent":["import { t as createPostgresBuiltinDataTypeLookup } from \"./data-types-DHpMs3mz.mjs\";\nimport { n as buildPostgresCodecDescriptorRegistry } from \"./codec-descriptor-DBeD0UlS.mjs\";\nimport { t as codecDescriptors } from \"./codecs-BtalD4yQ.mjs\";\nimport { structuredError } from \"@internal/utils/structured-error\";\nimport { extractCodecLookup } from \"@internal/framework-components/control\";\nimport { buildCodecDescriptorRegistry } from \"@internal/sql-relational-core/codec-descriptor-registry\";\n//#region src/core/registry.ts\n/**\n* Registry of every codec descriptor shipped by `@internal/target-postgres`.\n*\n* Public consumer surface for the postgres codec set: the postgres adapter and any other consumer that needs to enumerate or look up a postgres codec by id consumes this rather than the raw descriptor array. See ADR 208.\n*/\nconst postgresCodecRegistry = buildCodecDescriptorRegistry(codecDescriptors);\nconst postgresCodecDescriptorRegistry = buildPostgresCodecDescriptorRegistry(codecDescriptors);\n//#endregion\n//#region src/core/codec-registry.ts\n/**\n* A registry of `descriptors`, refusing a codec whose data type `dataTypeLookup` does not have: the\n* SQL renderer writes a parameter's cast from the data type its codec represents.\n*/\nfunction buildPostgresCodecRegistry(descriptors, dataTypeLookup) {\n\tconst descriptorRegistry = buildPostgresCodecDescriptorRegistry(descriptors);\n\tconst validatedDescriptors = Array.from(descriptorRegistry.values());\n\tfor (const descriptor of validatedDescriptors) if (!dataTypeLookup.has(descriptor.dataType)) throw structuredError(\"CONTRACT.DATA_TYPE_UNREGISTERED\", `Codec \"${descriptor.codecId}\" represents data type \"${descriptor.dataType}\", which no component registers.`, {\n\t\twhy: \"A parameter of this codec is written with a cast named by its data type.\",\n\t\tfix: \"Pass the data type beside the codec: in `dataTypes` of createPostgresAdapter, or in the `dataTypes` of the extension that contributes the codec.\",\n\t\tmeta: {\n\t\t\tcodecId: descriptor.codecId,\n\t\t\tdataType: descriptor.dataType\n\t\t}\n\t});\n\tconst registry = {\n\t\t...extractCodecLookup([{\n\t\t\tid: \"postgres-codecs\",\n\t\t\ttypes: { codecTypes: { codecDescriptors: validatedDescriptors } }\n\t\t}]),\n\t\tdescriptorFor: (codecId) => descriptorRegistry.descriptorFor(codecId),\n\t\tvalues: () => descriptorRegistry.values()\n\t};\n\treturn Object.freeze(registry);\n}\nfunction assemblePostgresCodecRegistry(components, dataTypeLookup) {\n\treturn buildPostgresCodecRegistry(components.flatMap((component) => component.types?.codecTypes?.codecDescriptors ?? []), dataTypeLookup);\n}\nfunction assemblePostgresCodecRegistryWithBuiltins(extensions, dataTypeLookup) {\n\treturn buildPostgresCodecRegistry([...postgresCodecDescriptorRegistry.values(), ...extensions.flatMap((extension) => extension.types?.codecTypes?.codecDescriptors ?? [])], dataTypeLookup);\n}\n/** A registry of the built-in codecs and `codecDescriptors`, whose data types `dataTypeLookup` has. */\nfunction createPostgresCodecRegistryWithBuiltins(codecDescriptors = [], dataTypeLookup = createPostgresBuiltinDataTypeLookup()) {\n\treturn buildPostgresCodecRegistry([...postgresCodecDescriptorRegistry.values(), ...codecDescriptors], dataTypeLookup);\n}\n/**\n* Build a coherent PostgreSQL codec registry populated with built-in descriptors only.\n*\n* The returned registry supports both ordinary codec materialization and PostgreSQL target behavior. Stack-composed paths build the same combined registry from their complete ordered descriptor contributions.\n*/\nfunction createPostgresBuiltinCodecLookup() {\n\treturn createPostgresCodecRegistryWithBuiltins();\n}\n//#endregion\nexport { postgresCodecDescriptorRegistry as a, createPostgresCodecRegistryWithBuiltins as i, assemblePostgresCodecRegistryWithBuiltins as n, postgresCodecRegistry as o, createPostgresBuiltinCodecLookup as r, assemblePostgresCodecRegistry as t };\n\n//# sourceMappingURL=codec-registry-D-bD-lFp.mjs.map"],"mappings":";;;;;;;;;;;;AAYA,MAAM,wBAAwB,6BAA6B,gBAAgB;AAC3E,MAAM,kCAAkC,qCAAqC,gBAAgB;;;;;AAO7F,SAAS,2BAA2B,aAAa,gBAAgB;CAChE,MAAM,qBAAqB,qCAAqC,WAAW;CAC3E,MAAM,uBAAuB,MAAM,KAAK,mBAAmB,OAAO,CAAC;CACnE,KAAK,MAAM,cAAc,sBAAsB,IAAI,CAAC,eAAe,IAAI,WAAW,QAAQ,GAAG,MAAM,gBAAgB,mCAAmC,UAAU,WAAW,QAAQ,0BAA0B,WAAW,SAAS,mCAAmC;EACnQ,KAAK;EACL,KAAK;EACL,MAAM;GACL,SAAS,WAAW;GACpB,UAAU,WAAW;EACtB;CACD,CAAC;CACD,MAAM,WAAW;EAChB,GAAG,mBAAmB,CAAC;GACtB,IAAI;GACJ,OAAO,EAAE,YAAY,EAAE,kBAAkB,qBAAqB,EAAE;EACjE,CAAC,CAAC;EACF,gBAAgB,YAAY,mBAAmB,cAAc,OAAO;EACpE,cAAc,mBAAmB,OAAO;CACzC;CACA,OAAO,OAAO,OAAO,QAAQ;AAC9B;AACA,SAAS,8BAA8B,YAAY,gBAAgB;CAClE,OAAO,2BAA2B,WAAW,SAAS,cAAc,UAAU,OAAO,YAAY,oBAAoB,CAAC,CAAC,GAAG,cAAc;AACzI;AACA,SAAS,0CAA0C,YAAY,gBAAgB;CAC9E,OAAO,2BAA2B,CAAC,GAAG,gCAAgC,OAAO,GAAG,GAAG,WAAW,SAAS,cAAc,UAAU,OAAO,YAAY,oBAAoB,CAAC,CAAC,CAAC,GAAG,cAAc;AAC3L;;AAEA,SAAS,wCAAwC,mBAAmB,CAAC,GAAG,iBAAiB,oCAAoC,GAAG;CAC/H,OAAO,2BAA2B,CAAC,GAAG,gCAAgC,OAAO,GAAG,GAAG,gBAAgB,GAAG,cAAc;AACrH;;;;;;AAMA,SAAS,mCAAmC;CAC3C,OAAO,wCAAwC;AAChD"}
@@ -1,7 +1,7 @@
1
1
  import { t as AdaptedPostgresCodecDescriptor } from "./codec-descriptor-nXA2rkO1-DyArG-p2.mjs";
2
- import { A as PgTimestampDateDescriptor, B as PgUnboundedIntDescriptor, C as PgJsonDescriptor, D as PgTimeStringDescriptor, E as PgTextDescriptor, F as PgTimestamptzDateDescriptor, H as PgVarbitDescriptor, I as PgTimestamptzStringDescriptor, L as PgTimestamptzTemporalDescriptor, M as PgTimestampStringDescriptor, N as PgTimestampTemporalDescriptor, O as PgTimeTemporalDescriptor, R as PgTimetzDescriptor, S as PgIntervalStringDescriptor, T as PgNumericDescriptor, U as PgVarcharDescriptor, V as PgUuidDescriptor, _ as PgInt8NumberDescriptor, a as PgDateStringDescriptor, b as PgIntervalDescriptor, c as PgEnumDescriptor, d as PgFloat8Descriptor, f as PgFloatDescriptor, g as PgInt8Descriptor, h as PgInt4Descriptor, i as PgCharDescriptor, j as PgTimestampInstantDescriptor, m as PgInt2Descriptor, n as PgBoolDescriptor, o as PgDateTemporalDescriptor, p as PgInetDescriptor, r as PgByteaDescriptor, t as PgBitDescriptor, u as PgFloat4Descriptor, v as PgIntDescriptor, w as PgJsonbDescriptor, z as PgTsqueryDescriptor } from "./codecs-qCAX5T6T-sg3NIKfN.mjs";
2
+ import { A as PgTimeTemporalDescriptor, B as PgTimetzDescriptor, C as PgJsonDescriptor, D as PgOidDescriptor, E as PgNumericDescriptor, F as PgTimestampTemporalDescriptor, G as PgVarcharDescriptor, H as PgUnboundedIntDescriptor, K as PgXmlDescriptor, L as PgTimestamptzDateDescriptor, M as PgTimestampDateDescriptor, N as PgTimestampInstantDescriptor, O as PgTextDescriptor, P as PgTimestampStringDescriptor, R as PgTimestamptzStringDescriptor, S as PgIntervalStringDescriptor, T as PgMoneyDescriptor, U as PgUuidDescriptor, V as PgTsqueryDescriptor, W as PgVarbitDescriptor, _ as PgInt8NumberDescriptor, a as PgDateStringDescriptor, b as PgIntervalDescriptor, c as PgEnumDescriptor, d as PgFloat8Descriptor, f as PgFloatDescriptor, g as PgInt8Descriptor, h as PgInt4Descriptor, i as PgCharDescriptor, k as PgTimeStringDescriptor, m as PgInt2Descriptor, n as PgBoolDescriptor, o as PgDateTemporalDescriptor, p as PgInetDescriptor, r as PgByteaDescriptor, t as PgBitDescriptor, u as PgFloat4Descriptor, v as PgIntDescriptor, w as PgJsonbDescriptor, z as PgTimestamptzTemporalDescriptor } from "./codecs-3AVVZDao-C0sUjmuO.mjs";
3
3
  import { ExtractCodecTypes } from "@prisma/orm-family-sql/relational-core/ast";
4
- //#region ../../../3-targets/postgres/1-target/dist/codec-type-map-DSuWVp-n.d.mts
4
+ //#region ../../../3-targets/postgres/1-target/dist/codec-type-map-C_5OBkHw.d.mts
5
5
  //#region src/core/codec-type-map.d.ts
6
6
  declare const codecDescriptorMap: {
7
7
  readonly char: AdaptedPostgresCodecDescriptor<import("@prisma/orm-family-sql/relational-core/ast").SqlCharDescriptor>;
@@ -38,6 +38,9 @@ declare const codecDescriptorMap: {
38
38
  readonly bool: PgBoolDescriptor;
39
39
  readonly bit: PgBitDescriptor;
40
40
  readonly 'bit varying': PgVarbitDescriptor;
41
+ readonly xml: PgXmlDescriptor;
42
+ readonly oid: PgOidDescriptor;
43
+ readonly money: PgMoneyDescriptor;
41
44
  readonly bytea: PgByteaDescriptor;
42
45
  readonly uuid: PgUuidDescriptor;
43
46
  readonly inet: PgInetDescriptor;
@@ -53,4 +56,4 @@ type CodecDescriptorMap = typeof codecDescriptorMap;
53
56
  type ExtractedCodecTypes = ExtractCodecTypes<CodecDescriptorMap>;
54
57
  //#endregion
55
58
  export { Resolve as n, ExtractedCodecTypes as t };
56
- //# sourceMappingURL=codec-type-map-DSuWVp-n-Cp4c9JWN.d.mts.map
59
+ //# sourceMappingURL=codec-type-map-C_5OBkHw-DZ0UDSJr.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"codec-type-map-DSuWVp-n-Cp4c9JWN.d.mts","names":[],"sources":["../../../../3-targets/postgres/1-target/dist/codec-type-map-DSuWVp-n.d.mts"],"mappings":";;;;;cAIc;WACH,MAAM,2EAA2E;WACjF,SAAS,2EAA2E;WACpF,KAAK,2EAA2E;WAChF,OAAO,2EAA2E;WAClF,YAAY,2EAA2E;WACvF,MAAM;WACN,MAAM;WACN,WAAW;WACX,qBAAqB;WACrB,SAAS;WACT,oBAAoB;WACpB,MAAM;WACN,MAAM;WACN,MAAM;WACN,YAAY;WACZ,QAAQ;WACR,QAAQ;WACR,SAAS;WACT,cAAc;WACd,iBAAiB;WACjB,sBAAsB;WACtB,wBAAwB;WACxB,iBAAiB;WACjB,eAAe;WACf,oBAAoB;WACpB,sBAAsB;WACtB,oBAAoB;WACpB,kBAAkB;WAClB,qBAAqB;WACrB,eAAe;WACf,QAAQ;WACR,MAAM;WACN,KAAK;WACL,eAAe;WACf,OAAO;WACP,MAAM;WACN,MAAM;WACN,UAAU;WACV,mBAAmB;WACnB,MAAM;WACN,OAAO;WACP,SAAS;WACT,KAAK,2EAA2E;;KAEtF,QAAQ,iBAAiB,WAAW,gBAAgB,WAAW,EAAE,KAAK,EAAE,GAAG;KAC3E,4BAA4B;KAC5B,sBAAsB,kBAAkB"}
1
+ {"version":3,"file":"codec-type-map-C_5OBkHw-DZ0UDSJr.d.mts","names":[],"sources":["../../../../3-targets/postgres/1-target/dist/codec-type-map-C_5OBkHw.d.mts"],"mappings":";;;;;cAIc;WACH,MAAM,2EAA2E;WACjF,SAAS,2EAA2E;WACpF,KAAK,2EAA2E;WAChF,OAAO,2EAA2E;WAClF,YAAY,2EAA2E;WACvF,MAAM;WACN,MAAM;WACN,WAAW;WACX,qBAAqB;WACrB,SAAS;WACT,oBAAoB;WACpB,MAAM;WACN,MAAM;WACN,MAAM;WACN,YAAY;WACZ,QAAQ;WACR,QAAQ;WACR,SAAS;WACT,cAAc;WACd,iBAAiB;WACjB,sBAAsB;WACtB,wBAAwB;WACxB,iBAAiB;WACjB,eAAe;WACf,oBAAoB;WACpB,sBAAsB;WACtB,oBAAoB;WACpB,kBAAkB;WAClB,qBAAqB;WACrB,eAAe;WACf,QAAQ;WACR,MAAM;WACN,KAAK;WACL,eAAe;WACf,KAAK;WACL,KAAK;WACL,OAAO;WACP,OAAO;WACP,MAAM;WACN,MAAM;WACN,UAAU;WACV,mBAAmB;WACnB,MAAM;WACN,OAAO;WACP,SAAS;WACT,KAAK,2EAA2E;;KAEtF,QAAQ,iBAAiB,WAAW,gBAAgB,WAAW,EAAE,KAAK,EAAE,GAAG;KAC3E,4BAA4B;KAC5B,sBAAsB,kBAAkB"}
@@ -0,0 +1,2 @@
1
+ import "./codecs-3AVVZDao-C0sUjmuO.mjs";
2
+ import "./codec-types-xyW4TiJD-CRDK7QcS.mjs";
@@ -1,7 +1,7 @@
1
- import "./codecs-qCAX5T6T-sg3NIKfN.mjs";
2
- import { n as Resolve, t as ExtractedCodecTypes } from "./codec-type-map-DSuWVp-n-Cp4c9JWN.mjs";
1
+ import "./codecs-3AVVZDao-C0sUjmuO.mjs";
2
+ import { n as Resolve, t as ExtractedCodecTypes } from "./codec-type-map-C_5OBkHw-DZ0UDSJr.mjs";
3
3
  import { JsonValue as JsonValue$1, ParameterizedOutputTypesFunction } from "@prisma/orm-framework/contract/types";
4
- //#region ../../../3-targets/postgres/1-target/dist/codec-types-xBRj9sIm.d.mts
4
+ //#region ../../../3-targets/postgres/1-target/dist/codec-types-xyW4TiJD.d.mts
5
5
  //#region src/exports/codec-types.d.ts
6
6
  type CodecTypes = Resolve<ExtractedCodecTypes>;
7
7
  type Branded<T, Shape extends Record<string, unknown>> = T & { readonly [K in keyof Shape]: Shape[K]; };
@@ -68,4 +68,4 @@ interface ParameterizedOutputTypesForTypeParams extends ParameterizedOutputTypes
68
68
  }
69
69
  //#endregion
70
70
  export { Numeric as a, TimestampString as c, VarBit as d, Varchar as f, JsonValue$1 as i, TimestamptzString as l, Char as n, ParameterizedOutputTypesForTypeParams as o, CodecTypes as r, TimeString as s, Bit as t, Timetz as u };
71
- //# sourceMappingURL=codec-types-xBRj9sIm-atN8rfl1.d.mts.map
71
+ //# sourceMappingURL=codec-types-xyW4TiJD-CRDK7QcS.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"codec-types-xBRj9sIm-atN8rfl1.d.mts","names":[],"sources":["../../../../3-targets/postgres/1-target/dist/codec-types-xBRj9sIm.d.mts"],"mappings":";;;;;KAIK,aAAa,QAAQ;KACrB,QAAQ,GAAG,cAAc,2BAA2B,gBAAgB,WAAW,QAAQ,MAAM;KAC7F,cAAc,cAAc,2BAA2B,gBAAgB;KACvE,KAAK,oBAAoB;EAC5B,cAAc;;KAEX,QAAQ,oBAAoB;EAC/B,iBAAiB;;KAEd,QAAQ,kBAAkB,4CAA4C;EACzE,oBAAoB;EACpB,gBAAgB;;KAEb,IAAI,oBAAoB;EAC3B,aAAa;;KAEV,OAAO,oBAAoB;EAC9B,gBAAgB;;KAEb,OAAO,4CAA4C;EACtD,mBAAmB;;KAEhB,gBAAgB,4CAA4C;EAC/D,4BAA4B;;KAEzB,kBAAkB,4CAA4C;EACjE,8BAA8B;;KAE3B,WAAW,4CAA4C;EAC1D,uBAAuB;;KAEpB,YAAY,cAAc;WACpB,cAAc;IACrB;KACC,eAAe,cAAc;WACvB,iBAAiB;IACxB;KACC,cAAc,cAAc;WACtB,iBAAiB;IACxB;WACO,aAAa;IACpB,QAAQ,GAAG,KAAK,QAAQ;KACvB,aAAa,YAAY,WAAW,YAAY,uCAAuC;KACvF,cAAc;WACR,gBAAgB,cAAc;WAC9B,aAAa,aAAa,YAAY,KAAK,YAAY;WACvD,cAAc,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YAAY;WACxD,gBAAgB,aAAa,YAAY,QAAQ,YAAY;WAC7D,iBAAiB,aAAa,YAAY,QAAQ,YAAY;WAC9D,YAAY,aAAa,YAAY,IAAI,YAAY;WACrD,eAAe,aAAa,YAAY,OAAO,YAAY;WAC3D,eAAe,OAAO,eAAe;WACrC,oBAAoB,WAAW,eAAe;WAC9C,yBAAyB,gBAAgB,eAAe;WACxD,2BAA2B,kBAAkB,eAAe;WAC5D,yBAAyB;;;;;UAK1B,8CAA8C;WAC7C,aAAa"}
@@ -1,10 +1,10 @@
1
1
  import { r as PostgresCodecDescriptor } from "./codec-descriptor-nXA2rkO1-DyArG-p2.mjs";
2
- import { A as PG_TIMESTAMP_TEMPORAL_CODEC_ID, C as PG_TEXT_CODEC_ID, D as PG_TIMESTAMP_DATE_CODEC_ID, E as PG_TIMESTAMPTZ_TEMPORAL_CODEC_ID, F as PG_UNBOUNDED_INT_CODEC_ID, I as PG_UUID_CODEC_ID, L as PG_VARBIT_CODEC_ID, M as PG_TIME_STRING_CODEC_ID, N as PG_TIME_TEMPORAL_CODEC_ID, O as PG_TIMESTAMP_INSTANT_CODEC_ID, P as PG_TSQUERY_CODEC_ID, T as PG_TIMESTAMPTZ_STRING_CODEC_ID, _ as PG_INTERVAL_STRING_CODEC_ID, a as PG_DATE_STRING_CODEC_ID, b as PG_JSON_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, j as PG_TIMETZ_CODEC_ID, k as PG_TIMESTAMP_STRING_CODEC_ID, l as PG_FLOAT8_CODEC_ID, m as PG_INT8_CODEC_ID, n as PG_BOOL_CODEC_ID, o as PG_DATE_TEMPORAL_CODEC_ID, p as PG_INT4_CODEC_ID, r as PG_BYTEA_CODEC_ID, s as PG_ENUM_CODEC_ID, t as PG_BIT_CODEC_ID, w as PG_TIMESTAMPTZ_DATE_CODEC_ID, x as PG_NUMERIC_CODEC_ID, y as PG_JSONB_CODEC_ID } from "./codec-ids-CNEv5CTR-g_wnSmnu.mjs";
2
+ import { A as PG_TIMESTAMP_INSTANT_CODEC_ID, C as PG_OID_CODEC_ID, D as PG_TIMESTAMPTZ_STRING_CODEC_ID, E as PG_TIMESTAMPTZ_DATE_CODEC_ID, F as PG_TIME_TEMPORAL_CODEC_ID, I as PG_TSQUERY_CODEC_ID, L as PG_UNBOUNDED_INT_CODEC_ID, M as PG_TIMESTAMP_TEMPORAL_CODEC_ID, N as PG_TIMETZ_CODEC_ID, O as PG_TIMESTAMPTZ_TEMPORAL_CODEC_ID, P as PG_TIME_STRING_CODEC_ID, R as PG_UUID_CODEC_ID, S as PG_NUMERIC_CODEC_ID, T as PG_TEXT_CODEC_ID, V as PG_XML_CODEC_ID, _ as PG_INTERVAL_STRING_CODEC_ID, a as PG_DATE_STRING_CODEC_ID, b as PG_JSON_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, j as PG_TIMESTAMP_STRING_CODEC_ID, k as PG_TIMESTAMP_DATE_CODEC_ID, l as PG_FLOAT8_CODEC_ID, m as PG_INT8_CODEC_ID, n as PG_BOOL_CODEC_ID, o as PG_DATE_TEMPORAL_CODEC_ID, p as PG_INT4_CODEC_ID, r as PG_BYTEA_CODEC_ID, s as PG_ENUM_CODEC_ID, t as PG_BIT_CODEC_ID, x as PG_MONEY_CODEC_ID, y as PG_JSONB_CODEC_ID, z as PG_VARBIT_CODEC_ID } from "./codec-ids-5MgmfzkI-C5V1rph6.mjs";
3
3
  import { ProjectionExpr, SqlCharCodec, SqlFloatCodec, SqlIntCodec, SqlVarcharCodec } from "@prisma/orm-family-sql/relational-core/ast";
4
4
  import { CodecCallContext, CodecImpl, CodecInstanceContext, DataTypeValue } from "@prisma/orm-framework/components/codec";
5
5
  import { JsonValue } from "@prisma/orm-framework/contract/types";
6
6
  import { Temporal } from "temporal-spec";
7
- //#region ../../../3-targets/postgres/1-target/dist/codecs-qCAX5T6T.d.mts
7
+ //#region ../../../3-targets/postgres/1-target/dist/codecs-3AVVZDao.d.mts
8
8
  //#region src/core/data-type-values.d.ts
9
9
  /**
10
10
  * The application value of a `pg/interval@1` column.
@@ -616,6 +616,60 @@ declare class PgVarbitDescriptor extends PostgresCodecDescriptor<LengthParams> {
616
616
  factory(params: LengthParams): (ctx: CodecInstanceContext) => PgVarbitCodec;
617
617
  }
618
618
  declare const pgVarbitColumn: (params?: LengthParams) => import("@prisma/orm-framework/components/codec").ColumnSpec<PgVarbitCodec, LengthParams>;
619
+ declare class PgXmlCodec extends CodecImpl<typeof PG_XML_CODEC_ID, readonly [], string, string> {
620
+ toWire(value: string, _ctx: CodecCallContext): Promise<string>;
621
+ fromWire(wire: string, _ctx: CodecCallContext): Promise<string>;
622
+ fromDataTypeValue(value: DataTypeValue<string>): string;
623
+ toDataTypeValue(input: string): DataTypeValue;
624
+ }
625
+ declare class PgXmlDescriptor extends PostgresCodecDescriptor<void> {
626
+ readonly jsonType: "string";
627
+ protected jsonProjection(expression: ProjectionExpr): ProjectionExpr;
628
+ readonly dataType: import("@prisma/orm-framework/components/codec").DataTypeId;
629
+ readonly codecId: "pg/xml@1";
630
+ readonly traits: readonly [];
631
+ readonly enumRefusal = "The xml type has no equality operator, so no CHECK can compare a value with the members. No enum can use an xml codec; use a text enum instead.";
632
+ readonly paramsSchema: undefined;
633
+ factory(): (ctx: CodecInstanceContext) => PgXmlCodec;
634
+ }
635
+ declare const pgXmlColumn: () => import("@prisma/orm-framework/components/codec").ColumnSpec<PgXmlCodec, undefined>;
636
+ declare class PgOidCodec extends CodecImpl<typeof PG_OID_CODEC_ID, readonly ['equality', 'order'], string | number, number> {
637
+ toWire(value: number, _ctx: CodecCallContext): Promise<number>;
638
+ fromWire(wire: string | number, _ctx: CodecCallContext): Promise<number>;
639
+ fromDataTypeValue(value: DataTypeValue<number>): number;
640
+ toDataTypeValue(input: number): DataTypeValue;
641
+ }
642
+ declare class PgOidDescriptor extends PostgresCodecDescriptor<void> {
643
+ readonly jsonType: "number";
644
+ protected jsonProjection(expression: ProjectionExpr): ProjectionExpr;
645
+ readonly dataType: import("@prisma/orm-framework/components/codec").DataTypeId;
646
+ readonly codecId: "pg/oid@1";
647
+ readonly traits: readonly ["equality", "order"];
648
+ readonly paramsSchema: undefined;
649
+ renderValueLiteral(value: JsonValue): string | undefined;
650
+ factory(): (ctx: CodecInstanceContext) => PgOidCodec;
651
+ }
652
+ declare const pgOidColumn: () => import("@prisma/orm-framework/components/codec").ColumnSpec<PgOidCodec, undefined>;
653
+ declare class PgMoneyCodec extends CodecImpl<typeof PG_MONEY_CODEC_ID, readonly ['equality', 'order'], string, string> {
654
+ toWire(value: string, _ctx: CodecCallContext): Promise<string>;
655
+ fromWire(wire: string, _ctx: CodecCallContext): Promise<string>;
656
+ fromDataTypeValue(value: DataTypeValue<string>): string;
657
+ toDataTypeValue(input: string): DataTypeValue;
658
+ }
659
+ /**
660
+ * A `money` column. The application value is decimal text with two fraction digits, as `pg/numeric@1` gives a decimal: `"12.50"`, `"-1234.56"`. PostgreSQL prints money in the session's `lc_monetary`, which the PostgreSQL target sets to C on every connection, so a row and an included row both read `$1,234.56`.
661
+ */
662
+ declare class PgMoneyDescriptor extends PostgresCodecDescriptor<void> {
663
+ readonly jsonType: "string";
664
+ protected jsonProjection(expression: ProjectionExpr): ProjectionExpr;
665
+ readonly dataType: import("@prisma/orm-framework/components/codec").DataTypeId;
666
+ readonly codecId: "pg/money@1";
667
+ readonly traits: readonly ["equality", "order"];
668
+ readonly paramsSchema: undefined;
669
+ renderValueLiteral(value: JsonValue): string | undefined;
670
+ factory(): (ctx: CodecInstanceContext) => PgMoneyCodec;
671
+ }
672
+ declare const pgMoneyColumn: () => import("@prisma/orm-framework/components/codec").ColumnSpec<PgMoneyCodec, undefined>;
619
673
  declare class PgByteaCodec extends CodecImpl<typeof PG_BYTEA_CODEC_ID, readonly ['equality'], Uint8Array, Uint8Array> {
620
674
  toWire(value: Uint8Array, _ctx: CodecCallContext): Promise<Uint8Array>;
621
675
  fromWire(wire: Uint8Array | string, _ctx: CodecCallContext): Promise<Uint8Array>;
@@ -822,5 +876,5 @@ declare class PgFloatDescriptor extends PostgresCodecDescriptor<void> {
822
876
  }
823
877
  declare const pgFloatColumn: () => import("@prisma/orm-framework/components/codec").ColumnSpec<PgFloatCodec, undefined>;
824
878
  //#endregion
825
- export { pgInt2Column as $, PgTimestampDateDescriptor as A, PgUnboundedIntDescriptor as B, PgJsonDescriptor as C, PgTimeStringDescriptor as D, PgTextDescriptor as E, PgTimestamptzDateDescriptor as F, pgBitColumn as G, PgVarbitDescriptor as H, PgTimestamptzStringDescriptor as I, pgEnumDescriptor as J, pgBoolColumn as K, PgTimestamptzTemporalDescriptor as L, PgTimestampStringDescriptor as M, PgTimestampTemporalDescriptor as N, PgTimeTemporalDescriptor as O, PgTimestamptzDateCodec as P, pgInetColumn as Q, PgTimetzDescriptor as R, PgIntervalStringDescriptor as S, PgNumericDescriptor as T, PgVarcharDescriptor as U, PgUuidDescriptor as V, isPgEnumParams as W, pgFloat8Column as X, pgFloat4Column as Y, pgFloatColumn as Z, PgInt8NumberDescriptor as _, pgUuidColumn as _t, PgDateStringDescriptor as a, pgIntervalStringColumn as at, PgIntervalDescriptor as b, postgresQualifyColumnType as bt, PgEnumDescriptor as c, pgJsonbColumn as ct, PgFloat8Descriptor as d, pgTimestampDateColumn as dt, pgInt4Column as et, PgFloatDescriptor as f, pgTimestampDateDescriptor as ft, PgInt8Descriptor as g, pgUnboundedIntColumn as gt, PgInt4Descriptor as h, pgTimetzColumn as ht, PgCharDescriptor as i, pgIntervalColumn as it, PgTimestampInstantDescriptor as j, PgTimestampDateCodec as k, PgEnumParams as l, pgNumericColumn as lt, PgInt2Descriptor as m, pgTimestamptzDateDescriptor as mt, PgBoolDescriptor as n, pgInt8NumberColumn as nt, PgDateTemporalDescriptor as o, pgIntervalStringDescriptor as ot, PgInetDescriptor as p, pgTimestamptzDateColumn as pt, pgCharColumn as q, PgByteaDescriptor as r, pgIntColumn as rt, PgEnumCodec as s, pgJsonColumn as st, PgBitDescriptor as t, pgInt8Column as tt, PgFloat4Descriptor as u, pgTextColumn as ut, PgIntDescriptor as v, pgVarbitColumn as vt, PgJsonbDescriptor as w, PgIntervalStringCodec as x, PgInterval as y, pgVarcharColumn as yt, PgTsqueryDescriptor as z };
826
- //# sourceMappingURL=codecs-qCAX5T6T-sg3NIKfN.d.mts.map
879
+ export { pgFloat8Column as $, PgTimeTemporalDescriptor as A, PgTimetzDescriptor as B, PgJsonDescriptor as C, pgVarbitColumn as Ct, PgOidDescriptor as D, PgNumericDescriptor as E, postgresQualifyColumnType as Et, PgTimestampTemporalDescriptor as F, PgVarcharDescriptor as G, PgUnboundedIntDescriptor as H, PgTimestamptzDateCodec as I, pgBitColumn as J, PgXmlDescriptor as K, PgTimestamptzDateDescriptor as L, PgTimestampDateDescriptor as M, PgTimestampInstantDescriptor as N, PgTextDescriptor as O, PgTimestampStringDescriptor as P, pgFloat4Column as Q, PgTimestamptzStringDescriptor as R, PgIntervalStringDescriptor as S, pgUuidColumn as St, PgMoneyDescriptor as T, pgXmlColumn as Tt, PgUuidDescriptor as U, PgTsqueryDescriptor as V, PgVarbitDescriptor as W, pgCharColumn as X, pgBoolColumn as Y, pgEnumDescriptor as Z, PgInt8NumberDescriptor as _, pgTimestampDateDescriptor as _t, PgDateStringDescriptor as a, pgInt8NumberColumn as at, PgIntervalDescriptor as b, pgTimetzColumn as bt, PgEnumDescriptor as c, pgIntervalStringColumn as ct, PgFloat8Descriptor as d, pgJsonbColumn as dt, pgFloatColumn as et, PgFloatDescriptor as f, pgMoneyColumn as ft, PgInt8Descriptor as g, pgTimestampDateColumn as gt, PgInt4Descriptor as h, pgTextColumn as ht, PgCharDescriptor as i, pgInt8Column as it, PgTimestampDateCodec as j, PgTimeStringDescriptor as k, PgEnumParams as l, pgIntervalStringDescriptor as lt, PgInt2Descriptor as m, pgOidColumn as mt, PgBoolDescriptor as n, pgInt2Column as nt, PgDateTemporalDescriptor as o, pgIntColumn as ot, PgInetDescriptor as p, pgNumericColumn as pt, isPgEnumParams as q, PgByteaDescriptor as r, pgInt4Column as rt, PgEnumCodec as s, pgIntervalColumn as st, PgBitDescriptor as t, pgInetColumn as tt, PgFloat4Descriptor as u, pgJsonColumn as ut, PgIntDescriptor as v, pgTimestamptzDateColumn as vt, PgJsonbDescriptor as w, pgVarcharColumn as wt, PgIntervalStringCodec as x, pgUnboundedIntColumn as xt, PgInterval as y, pgTimestamptzDateDescriptor as yt, PgTimestamptzTemporalDescriptor as z };
880
+ //# sourceMappingURL=codecs-3AVVZDao-C0sUjmuO.d.mts.map