@prisma/orm-target-postgres 8.0.0-rc.24-dev.27 → 8.0.0-rc.24-dev.29

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 (233) hide show
  1. package/README.md +2 -0
  2. package/dist/{adapter-BQExUKg6.d.mts → adapter-3sYdoTej.d.mts} +2 -2
  3. package/dist/{adapter-BQExUKg6.d.mts.map → adapter-3sYdoTej.d.mts.map} +1 -1
  4. package/dist/{adapter-B2zr93n1-DA67Xn-f.mjs → adapter-VDAs5CMq-OezO60C5.mjs} +6 -6
  5. package/dist/{adapter-B2zr93n1-DA67Xn-f.mjs.map → adapter-VDAs5CMq-OezO60C5.mjs.map} +1 -1
  6. package/dist/adapter.d.mts +5 -5
  7. package/dist/adapter.mjs +5 -5
  8. package/dist/adapter__adapter.d.mts +1 -1
  9. package/dist/adapter__adapter.mjs +2 -2
  10. package/dist/adapter__control.d.mts +3 -3
  11. package/dist/adapter__control.mjs +4 -4
  12. package/dist/adapter__control.mjs.map +1 -1
  13. package/dist/adapter__runtime.mjs +5 -5
  14. package/dist/adapter__runtime.mjs.map +1 -1
  15. package/dist/adapter__sql-renderer.mjs +1 -1
  16. package/dist/adapter__types.d.mts +2 -2
  17. package/dist/{authoring-DPwc7x9U-BZkXpPSH.mjs → authoring-4dCWsSXg-DeIEoQWg.mjs} +7 -7
  18. package/dist/authoring-4dCWsSXg-DeIEoQWg.mjs.map +1 -0
  19. package/dist/{autoincrement-widths-PwZcc5Co-1O2WEMYq.mjs → autoincrement-widths-BZUr8bLa-Dqtjwcf-.mjs} +3 -3
  20. package/dist/{autoincrement-widths-PwZcc5Co-1O2WEMYq.mjs.map → autoincrement-widths-BZUr8bLa-Dqtjwcf-.mjs.map} +1 -1
  21. package/dist/{check-expressions-Ch-A_NJN-BscDa8xT.mjs → check-expressions-cvFP1EFS-CPLt6x-O.mjs} +3 -3
  22. package/dist/{check-expressions-Ch-A_NJN-BscDa8xT.mjs.map → check-expressions-cvFP1EFS-CPLt6x-O.mjs.map} +1 -1
  23. package/dist/{codec-registry-B0LsFn7Z-ej9yKwTq.mjs → codec-registry-FvoD6sJj-ClHgHbyf.mjs} +4 -4
  24. package/dist/{codec-registry-B0LsFn7Z-ej9yKwTq.mjs.map → codec-registry-FvoD6sJj-ClHgHbyf.mjs.map} +1 -1
  25. package/dist/{codec-type-map-C_5OBkHw-DZ0UDSJr.d.mts → codec-type-map-CE_EveiY-S4IH6WPx.d.mts} +3 -3
  26. package/dist/{codec-type-map-C_5OBkHw-DZ0UDSJr.d.mts.map → codec-type-map-CE_EveiY-S4IH6WPx.d.mts.map} +1 -1
  27. package/dist/{codec-types-xyW4TiJD-CRDK7QcS.d.mts → codec-types-B-OBDw_P-CBflZnmD.d.mts} +4 -4
  28. package/dist/{codec-types-xyW4TiJD-CRDK7QcS.d.mts.map → codec-types-B-OBDw_P-CBflZnmD.d.mts.map} +1 -1
  29. package/dist/codec-types-V7HlwAkU.d.mts +2 -0
  30. package/dist/{codecs-Bzj3M0Q3-C2oFSIGs.mjs → codecs-B2C2j2Un-Dc-aGN1s.mjs} +12 -11
  31. package/dist/codecs-B2C2j2Un-Dc-aGN1s.mjs.map +1 -0
  32. package/dist/{codecs-BZ74mlUI.d.mts → codecs-B6fSK4Rr.d.mts} +2 -2
  33. package/dist/{codecs-BZ74mlUI.d.mts.map → codecs-B6fSK4Rr.d.mts.map} +1 -1
  34. package/dist/{codecs-3AVVZDao-C0sUjmuO.d.mts → codecs-BttOxm7v-Bg7ybHIE.d.mts} +3 -3
  35. package/dist/{codecs-3AVVZDao-C0sUjmuO.d.mts.map → codecs-BttOxm7v-Bg7ybHIE.d.mts.map} +1 -1
  36. package/dist/{contract-contributions-Bc0_64Gr-KE0qggZv.mjs → contract-contributions-DG0aJRRu-31YCQkp-.mjs} +54 -39
  37. package/dist/contract-contributions-DG0aJRRu-31YCQkp-.mjs.map +1 -0
  38. package/dist/{contract-free-DiRem1nw.mjs → contract-free-dQ4A6kPg.mjs} +3 -3
  39. package/dist/{contract-free-DiRem1nw.mjs.map → contract-free-dQ4A6kPg.mjs.map} +1 -1
  40. package/dist/{control-B-0_CuJt.d.mts → control-Bbb6l2oc.d.mts} +3 -3
  41. package/dist/{control-B-0_CuJt.d.mts.map → control-Bbb6l2oc.d.mts.map} +1 -1
  42. package/dist/{control-j5GEV5-D.d.mts → control-BhtDvy9Z.d.mts} +2 -2
  43. package/dist/{control-j5GEV5-D.d.mts.map → control-BhtDvy9Z.d.mts.map} +1 -1
  44. package/dist/{control-policy-DKnVhEWD-xuJIvCy9.mjs → control-policy-Crcjg7Vz-39_fO8yR.mjs} +11 -11
  45. package/dist/{control-policy-DKnVhEWD-xuJIvCy9.mjs.map → control-policy-Crcjg7Vz-39_fO8yR.mjs.map} +1 -1
  46. package/dist/{data-transform-2o0tpMs8-DADYIvEZ.d.mts → data-transform-BZ6kzJY4-DZBRydhx.d.mts} +3 -3
  47. package/dist/{data-transform-2o0tpMs8-DADYIvEZ.d.mts.map → data-transform-BZ6kzJY4-DZBRydhx.d.mts.map} +1 -1
  48. package/dist/data-transform-Cg3syfOe.d.mts +1 -0
  49. package/dist/{data-type-entries-CVxsfjF3-Bd0cSfuG.mjs → data-type-entries-CKHtbfmn-DBNF36FF.mjs} +3 -3
  50. package/dist/{data-type-entries-CVxsfjF3-Bd0cSfuG.mjs.map → data-type-entries-CKHtbfmn-DBNF36FF.mjs.map} +1 -1
  51. package/dist/{data-types-DWfwErIu-DF85cgmu.mjs → data-types-DgYRia-g-B_BFlAC3.mjs} +8 -9
  52. package/dist/data-types-DgYRia-g-B_BFlAC3.mjs.map +1 -0
  53. package/dist/{date-time-now-generators-BORO1_nc-BdCe3ppq.mjs → date-time-now-generators-DylEKfQR-CYbXE0y0.mjs} +5 -8
  54. package/dist/date-time-now-generators-DylEKfQR-CYbXE0y0.mjs.map +1 -0
  55. package/dist/{ddl-DCQLfg18-BgWGYC7L.mjs → ddl-Cy_8QS23-D9EVihrI.mjs} +3 -3
  56. package/dist/{ddl-DCQLfg18-BgWGYC7L.mjs.map → ddl-Cy_8QS23-D9EVihrI.mjs.map} +1 -1
  57. package/dist/{descriptor-meta-46EhsECb-C5EGe36u.mjs → descriptor-meta-CakMYWwZ-DSQNCwWB.mjs} +13 -12
  58. package/dist/descriptor-meta-CakMYWwZ-DSQNCwWB.mjs.map +1 -0
  59. package/dist/{descriptor-meta-DUDk-DLN-B_WUfFf7.mjs → descriptor-meta-DwXEu6Ap-qDhyaRK4.mjs} +8 -7
  60. package/dist/descriptor-meta-DwXEu6Ap-qDhyaRK4.mjs.map +1 -0
  61. package/dist/{diff-database-schema-BJKAfPAG-LCJmdiQq.mjs → diff-database-schema-CVmwyjFf-DSWPpd4M.mjs} +10 -10
  62. package/dist/{diff-database-schema-BJKAfPAG-LCJmdiQq.mjs.map → diff-database-schema-CVmwyjFf-DSWPpd4M.mjs.map} +1 -1
  63. package/dist/{diff-database-schema-rhLkiByE.d.mts → diff-database-schema-NiGuGt9b.d.mts} +2 -2
  64. package/dist/{diff-database-schema-rhLkiByE.d.mts.map → diff-database-schema-NiGuGt9b.d.mts.map} +1 -1
  65. package/dist/driver.mjs +1 -1
  66. package/dist/driver__runtime.mjs +1 -1
  67. package/dist/{errors-C4-Dp3gI-B5jY5eJj.mjs → errors-DxWL0CMX-BQe7Wfvt.mjs} +8 -7
  68. package/dist/{errors-C4-Dp3gI-B5jY5eJj.mjs.map → errors-DxWL0CMX-BQe7Wfvt.mjs.map} +1 -1
  69. package/dist/{full-text-oDBhUHI5.mjs → full-text-Bu_qI2ue.mjs} +3 -3
  70. package/dist/{full-text-oDBhUHI5.mjs.map → full-text-Bu_qI2ue.mjs.map} +1 -1
  71. package/dist/{full-text-collection-method-CtUV9NT0-CQuFZ4aH.d.mts → full-text-collection-method-Dc6I12lP-BFkF4drB.d.mts} +4 -4
  72. package/dist/full-text-collection-method-Dc6I12lP-BFkF4drB.d.mts.map +1 -0
  73. package/dist/{full-text-index-definition-DzRCaPjb-0USKN1ZI.mjs → full-text-index-definition-MMcQF3_0-wRCz2FDP.mjs} +3 -3
  74. package/dist/{full-text-index-definition-DzRCaPjb-0USKN1ZI.mjs.map → full-text-index-definition-MMcQF3_0-wRCz2FDP.mjs.map} +1 -1
  75. package/dist/{full-text-DGueFVx9.d.mts → full-text-pZNF76pS.d.mts} +3 -3
  76. package/dist/{full-text-DGueFVx9.d.mts.map → full-text-pZNF76pS.d.mts.map} +1 -1
  77. package/dist/{full-text-parsers-BZV74MUg-TfQ8rvPW.mjs → full-text-parsers-m8GS0pst-C6RPRehL.mjs} +4 -4
  78. package/dist/{full-text-parsers-BZV74MUg-TfQ8rvPW.mjs.map → full-text-parsers-m8GS0pst-C6RPRehL.mjs.map} +1 -1
  79. package/dist/{full-text-search-document-BqqvjJoC-HaoeMaM5.mjs → full-text-search-document-B5VCeQFz-D4hKtj-M.mjs} +5 -5
  80. package/dist/{full-text-search-document-BqqvjJoC-HaoeMaM5.mjs.map → full-text-search-document-B5VCeQFz-D4hKtj-M.mjs.map} +1 -1
  81. package/dist/{index-types-DGrgbAd4-DuGWdvol.mjs → index-types-CiM75RsF-DhmXdi38.mjs} +3 -3
  82. package/dist/{index-types-DGrgbAd4-DuGWdvol.mjs.map → index-types-CiM75RsF-DhmXdi38.mjs.map} +1 -1
  83. package/dist/{indexes-ooG0J-V8-CTm1QvmZ.d.mts → indexes-pfYKpulO-BWj-l1W3.d.mts} +8 -4
  84. package/dist/indexes-pfYKpulO-BWj-l1W3.d.mts.map +1 -0
  85. package/dist/{infer-psl-contract-DqtogWJ8-CUXUG-wF.mjs → infer-psl-contract-DgQutzGt-C1wN72ZC.mjs} +9 -9
  86. package/dist/{infer-psl-contract-DqtogWJ8-CUXUG-wF.mjs.map → infer-psl-contract-DgQutzGt-C1wN72ZC.mjs.map} +1 -1
  87. package/dist/{issue-planner-BlN8mK4E.d.mts → issue-planner-GkMubzHu.d.mts} +7 -6
  88. package/dist/issue-planner-GkMubzHu.d.mts.map +1 -0
  89. package/dist/{migration-CovfYOjm.d.mts → migration-BRcETuO-.d.mts} +4 -4
  90. package/dist/migration-BRcETuO-.d.mts.map +1 -0
  91. package/dist/migration-Be_iuIpn.mjs.map +1 -1
  92. package/dist/{native-type-normalizer-PGvExTgu.mjs → native-type-normalizer-DY__fyaa.mjs} +2 -2
  93. package/dist/{native-type-normalizer-PGvExTgu.mjs.map → native-type-normalizer-DY__fyaa.mjs.map} +1 -1
  94. package/dist/{op-factory-call-CG80t74g-D9tjd13N.d.mts → op-factory-call-Bz6ft8sk-JjpSUMTb.d.mts} +22 -6
  95. package/dist/op-factory-call-Bz6ft8sk-JjpSUMTb.d.mts.map +1 -0
  96. package/dist/op-factory-call-COB28WBr.d.mts +1 -0
  97. package/dist/{op-factory-call-THEIwT0J-DQM3Y94S.mjs → op-factory-call-DvezqqJx-KBDyNT08.mjs} +239 -182
  98. package/dist/op-factory-call-DvezqqJx-KBDyNT08.mjs.map +1 -0
  99. package/dist/operation-types-CaLyyiOR.d.mts +1 -0
  100. package/dist/{operation-types-Cnw0XvnJ-BZax8w1C.d.mts → operation-types-Da5h_iSt-Dqe_QrW_.d.mts} +3 -3
  101. package/dist/{operation-types-Cnw0XvnJ-BZax8w1C.d.mts.map → operation-types-Da5h_iSt-Dqe_QrW_.d.mts.map} +1 -1
  102. package/dist/{pack-ReYuY9t5.d.mts → pack-Cg6Jolu1.d.mts} +5 -6
  103. package/dist/{pack-ReYuY9t5.d.mts.map → pack-Cg6Jolu1.d.mts.map} +1 -1
  104. package/dist/{planner-Bw0tlQWK.d.mts → planner-CTwe5ozf.d.mts} +6 -5
  105. package/dist/{planner-Bw0tlQWK.d.mts.map → planner-CTwe5ozf.d.mts.map} +1 -1
  106. package/dist/{planner-BHH46ndt-Q6-LPhnL.mjs → planner-D2T46plG-BChGUTOA.mjs} +189 -54
  107. package/dist/planner-D2T46plG-BChGUTOA.mjs.map +1 -0
  108. package/dist/{planner-ddl-builders-Ds3Xcsg7-5-bR7xgo.mjs → planner-ddl-builders-Blf3qKKf-BopCSwrT.mjs} +3 -3
  109. package/dist/{planner-ddl-builders-Ds3Xcsg7-5-bR7xgo.mjs.map → planner-ddl-builders-Blf3qKKf-BopCSwrT.mjs.map} +1 -1
  110. package/dist/{planner-identity-values-CQZbvcx0-BpAvjtip.mjs → planner-identity-values-CX3J2pLA-CjCpOnue.mjs} +3 -3
  111. package/dist/{planner-identity-values-CQZbvcx0-BpAvjtip.mjs.map → planner-identity-values-CX3J2pLA-CjCpOnue.mjs.map} +1 -1
  112. package/dist/{planner-produced-postgres-migration-FtUIqqVg-ouPTcZ8X.mjs → planner-produced-postgres-migration-BLKk9Vaz-CsUhcKp1.mjs} +7 -7
  113. package/dist/planner-produced-postgres-migration-BLKk9Vaz-CsUhcKp1.mjs.map +1 -0
  114. package/dist/planner-produced-postgres-migration-CDE9JowN.d.mts +1 -0
  115. package/dist/{planner-produced-postgres-migration-exqzWlvW-DGLu2dQ7.d.mts → planner-produced-postgres-migration-Jizp3q0s-D_Sq7rld.d.mts} +5 -6
  116. package/dist/planner-produced-postgres-migration-Jizp3q0s-D_Sq7rld.d.mts.map +1 -0
  117. package/dist/{planner-sql-checks-BOdYkh9L-hXxekxJX.mjs → planner-sql-checks-CzxowQml-moHPNh20.mjs} +5 -5
  118. package/dist/{planner-sql-checks-BOdYkh9L-hXxekxJX.mjs.map → planner-sql-checks-CzxowQml-moHPNh20.mjs.map} +1 -1
  119. package/dist/{planner-target-details-boDXR2s7-CExrk6rf.d.mts → planner-target-details-DywkQKS4-lZEm-EiF.d.mts} +3 -3
  120. package/dist/planner-target-details-DywkQKS4-lZEm-EiF.d.mts.map +1 -0
  121. package/dist/{postgres-codec-traits-D9YEvK6F-BsKaAhCA.mjs → postgres-codec-traits-YxSb5di3-9F5ofwnG.mjs} +3 -3
  122. package/dist/{postgres-codec-traits-D9YEvK6F-BsKaAhCA.mjs.map → postgres-codec-traits-YxSb5di3-9F5ofwnG.mjs.map} +1 -1
  123. package/dist/{postgres-contract-view-DtsmkyFX-Bas8oQiN.mjs → postgres-contract-view-DhDzWNCN-BA5OpwhY.mjs} +10 -10
  124. package/dist/postgres-contract-view-DhDzWNCN-BA5OpwhY.mjs.map +1 -0
  125. package/dist/{postgres-migration-DEkPcs8x-CLxAKfHm.d.mts → postgres-migration-6nN7HQlZ-Ca0thLBy.d.mts} +5 -5
  126. package/dist/{postgres-migration-DEkPcs8x-CLxAKfHm.d.mts.map → postgres-migration-6nN7HQlZ-Ca0thLBy.d.mts.map} +1 -1
  127. package/dist/{postgres-migration-D5lRerLT-DyYh8UPS.mjs → postgres-migration-DEa-g6j1-CoG3QOV3.mjs} +18 -16
  128. package/dist/postgres-migration-DEa-g6j1-CoG3QOV3.mjs.map +1 -0
  129. package/dist/{postgres-schema-zd_p5Lg2-BdJlG7Cg.mjs → postgres-schema-CIfq1AjC-CGiMjtSX.mjs} +4 -4
  130. package/dist/{postgres-schema-zd_p5Lg2-BdJlG7Cg.mjs.map → postgres-schema-CIfq1AjC-CGiMjtSX.mjs.map} +1 -1
  131. package/dist/{prisma7-binding-BGEW0R_9.mjs → prisma7-binding-BRPindAK.mjs} +7 -7
  132. package/dist/{prisma7-binding-BGEW0R_9.mjs.map → prisma7-binding-BRPindAK.mjs.map} +1 -1
  133. package/dist/{prisma7-binding-DSQpvEBe.d.mts → prisma7-binding-D9BabHMI.d.mts} +5 -6
  134. package/dist/{prisma7-binding-DSQpvEBe.d.mts.map → prisma7-binding-D9BabHMI.d.mts.map} +1 -1
  135. package/dist/{registry-D4AyYsXr-CgiiMuFS.mjs → registry-CWgvB0Fj-Czwmfmzd.mjs} +3 -3
  136. package/dist/{registry-D4AyYsXr-CgiiMuFS.mjs.map → registry-CWgvB0Fj-Czwmfmzd.mjs.map} +1 -1
  137. package/dist/{render-ops-B5Mh0MpJ-Dc_dH1Sk.mjs → render-ops-Bl1R5cz0-CFshOROt.mjs} +4 -4
  138. package/dist/{render-ops-B5Mh0MpJ-Dc_dH1Sk.mjs.map → render-ops-Bl1R5cz0-CFshOROt.mjs.map} +1 -1
  139. package/dist/{render-ops-CEwI8Iyf.d.mts → render-ops-oYwF1MRN.d.mts} +2 -2
  140. package/dist/{render-ops-CEwI8Iyf.d.mts.map → render-ops-oYwF1MRN.d.mts.map} +1 -1
  141. package/dist/{render-typescript-Dqp1Spgn-B4mJhuVr.mjs → render-typescript-B-Igkk6D-CQ-WlBmb.mjs} +9 -24
  142. package/dist/render-typescript-B-Igkk6D-CQ-WlBmb.mjs.map +1 -0
  143. package/dist/{render-typescript-BysdXYpH.d.mts → render-typescript-dgxcyEaj.d.mts} +2 -9
  144. package/dist/render-typescript-dgxcyEaj.d.mts.map +1 -0
  145. package/dist/{resolve-ddl-schema-BwKuzGm--BVgPhp86.mjs → resolve-ddl-schema-C2KTxEX3-D8Jd9Rx1.mjs} +3 -3
  146. package/dist/{resolve-ddl-schema-BwKuzGm--BVgPhp86.mjs.map → resolve-ddl-schema-C2KTxEX3-D8Jd9Rx1.mjs.map} +1 -1
  147. package/dist/{runtime-DPhbi9_3.mjs → runtime-BArZXVRj.mjs} +7 -7
  148. package/dist/{runtime-DPhbi9_3.mjs.map → runtime-BArZXVRj.mjs.map} +1 -1
  149. package/dist/{runtime-BMG3ddkQ.d.mts → runtime-DhK5uy8-.d.mts} +2 -2
  150. package/dist/{runtime-BMG3ddkQ.d.mts.map → runtime-DhK5uy8-.d.mts.map} +1 -1
  151. package/dist/{runtime-Cnam1N0o.mjs → runtime-IkvlhDl7.mjs} +2 -2
  152. package/dist/{runtime-Cnam1N0o.mjs.map → runtime-IkvlhDl7.mjs.map} +1 -1
  153. package/dist/{sql-renderer-Bj41PrUl-Jbs8Ojfr.mjs → sql-renderer-Bj41PrUl-BDN4jKm9.mjs} +3 -3
  154. package/dist/{sql-renderer-Bj41PrUl-Jbs8Ojfr.mjs.map → sql-renderer-Bj41PrUl-BDN4jKm9.mjs.map} +1 -1
  155. package/dist/{sql-utils-Bq4nuPvy.d.mts → sql-utils-CHtt-prW.d.mts} +6 -2
  156. package/dist/{sql-utils-Bq4nuPvy.d.mts.map → sql-utils-CHtt-prW.d.mts.map} +1 -1
  157. package/dist/{sql-utils-CRPhDLp1-wbgQW5TM.mjs → sql-utils-ClKAaUlZ-BdjnkJvV.mjs} +8 -4
  158. package/dist/{sql-utils-CRPhDLp1-wbgQW5TM.mjs.map → sql-utils-ClKAaUlZ-BdjnkJvV.mjs.map} +1 -1
  159. package/dist/target.d.mts +28 -28
  160. package/dist/target.mjs +35 -35
  161. package/dist/target__codec-types.d.mts +3 -3
  162. package/dist/target__codecs.d.mts +2 -2
  163. package/dist/target__codecs.mjs +3 -3
  164. package/dist/target__contract-free.mjs +3 -3
  165. package/dist/target__control.d.mts +1 -1
  166. package/dist/target__control.mjs +24 -16
  167. package/dist/target__control.mjs.map +1 -1
  168. package/dist/target__data-transform.d.mts +2 -2
  169. package/dist/target__data-types.mjs +2 -2
  170. package/dist/target__diff-database-schema.d.mts +1 -1
  171. package/dist/target__diff-database-schema.mjs +1 -1
  172. package/dist/target__errors.mjs +1 -1
  173. package/dist/target__full-text-index-authoring.mjs +2 -2
  174. package/dist/target__full-text.d.mts +3 -3
  175. package/dist/target__full-text.mjs +2 -2
  176. package/dist/target__issue-planner.d.mts +1 -1
  177. package/dist/target__issue-planner.mjs +1 -1
  178. package/dist/target__migration.d.mts +3 -3
  179. package/dist/target__migration.mjs +1 -1
  180. package/dist/target__native-type-normalizer.mjs +1 -1
  181. package/dist/target__op-factory-call.d.mts +3 -3
  182. package/dist/target__op-factory-call.mjs +2 -2
  183. package/dist/target__operation-types.d.mts +2 -2
  184. package/dist/target__pack.d.mts +2 -2
  185. package/dist/target__pack.mjs +1 -1
  186. package/dist/target__planner-ddl-builders.mjs +1 -1
  187. package/dist/target__planner-identity-values.mjs +1 -1
  188. package/dist/target__planner-produced-postgres-migration.d.mts +2 -2
  189. package/dist/target__planner-produced-postgres-migration.mjs +1 -1
  190. package/dist/target__planner-sql-checks.mjs +1 -1
  191. package/dist/target__planner-target-details.d.mts +1 -1
  192. package/dist/target__planner.d.mts +1 -1
  193. package/dist/target__planner.mjs +2 -2
  194. package/dist/target__prisma7-binding.d.mts +1 -1
  195. package/dist/target__prisma7-binding.mjs +1 -1
  196. package/dist/target__render-ops.d.mts +1 -1
  197. package/dist/target__render-ops.mjs +1 -1
  198. package/dist/target__render-typescript.d.mts +1 -1
  199. package/dist/target__render-typescript.mjs +1 -1
  200. package/dist/target__runtime.d.mts +2 -2
  201. package/dist/target__runtime.mjs +4 -4
  202. package/dist/target__schema-ir-annotations.mjs +1 -1
  203. package/dist/target__sql-utils.d.mts +2 -2
  204. package/dist/target__sql-utils.mjs +4 -4
  205. package/dist/target__types.mjs +2 -2
  206. package/dist/{types-B_HaL8V4.d.mts → types-BxgDP3d4.d.mts} +1 -1
  207. package/package.json +12 -12
  208. package/dist/authoring-DPwc7x9U-BZkXpPSH.mjs.map +0 -1
  209. package/dist/codec-types-FPJG3oQH.d.mts +0 -2
  210. package/dist/codecs-Bzj3M0Q3-C2oFSIGs.mjs.map +0 -1
  211. package/dist/contract-contributions-Bc0_64Gr-KE0qggZv.mjs.map +0 -1
  212. package/dist/data-transform-DX9I716A.d.mts +0 -1
  213. package/dist/data-types-DWfwErIu-DF85cgmu.mjs.map +0 -1
  214. package/dist/date-time-now-generators-BORO1_nc-BdCe3ppq.mjs.map +0 -1
  215. package/dist/descriptor-meta-46EhsECb-C5EGe36u.mjs.map +0 -1
  216. package/dist/descriptor-meta-DUDk-DLN-B_WUfFf7.mjs.map +0 -1
  217. package/dist/full-text-collection-method-CtUV9NT0-CQuFZ4aH.d.mts.map +0 -1
  218. package/dist/indexes-ooG0J-V8-CTm1QvmZ.d.mts.map +0 -1
  219. package/dist/issue-planner-BlN8mK4E.d.mts.map +0 -1
  220. package/dist/migration-CovfYOjm.d.mts.map +0 -1
  221. package/dist/op-factory-call-CG80t74g-D9tjd13N.d.mts.map +0 -1
  222. package/dist/op-factory-call-DRapuFEI.d.mts +0 -1
  223. package/dist/op-factory-call-THEIwT0J-DQM3Y94S.mjs.map +0 -1
  224. package/dist/operation-types-D1F7DwdI.d.mts +0 -1
  225. package/dist/planner-BHH46ndt-Q6-LPhnL.mjs.map +0 -1
  226. package/dist/planner-produced-postgres-migration-CulnCxu2.d.mts +0 -1
  227. package/dist/planner-produced-postgres-migration-FtUIqqVg-ouPTcZ8X.mjs.map +0 -1
  228. package/dist/planner-produced-postgres-migration-exqzWlvW-DGLu2dQ7.d.mts.map +0 -1
  229. package/dist/planner-target-details-boDXR2s7-CExrk6rf.d.mts.map +0 -1
  230. package/dist/postgres-contract-view-DtsmkyFX-Bas8oQiN.mjs.map +0 -1
  231. package/dist/postgres-migration-D5lRerLT-DyYh8UPS.mjs.map +0 -1
  232. package/dist/render-typescript-BysdXYpH.d.mts.map +0 -1
  233. package/dist/render-typescript-Dqp1Spgn-B4mJhuVr.mjs.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"data-transform-2o0tpMs8-DADYIvEZ.d.mts","names":[],"sources":["../../../../3-targets/postgres/1-target/dist/data-transform-2o0tpMs8.d.mts"],"mappings":";;;;;;;;UAOU,UAAU;EAClB,SAAS,aAAa;;;;;;KAMnB,6BAA6B,eAAe;;UAEvC;WACC;WACA;WACA;;UAED;;;;;;WAMC;;;;;;;;WAQA,QAAQ;;WAER,KAAK,gCAAgC;;;;;WAKrC,kBAAkB;;iBAEZ,cAAc,kBAAkB,SAAS,aAAa,UAAU,WAAW,cAAc,SAAS,sBAAsB,SAAS,gCAAgC,QAAQ,0BAA0B"}
1
+ {"version":3,"file":"data-transform-BZ6kzJY4-DZBRydhx.d.mts","names":[],"sources":["../../../../3-targets/postgres/1-target/dist/data-transform-BZ6kzJY4.d.mts"],"mappings":";;;;;;;;UAOU,UAAU;EAClB,SAAS,aAAa;;;;;;KAMnB,6BAA6B,eAAe;;UAEvC;WACC;WACA;WACA;;UAED;;;;;;WAMC;;;;;;;;WAQA,QAAQ;;WAER,KAAK,gCAAgC;;;;;WAKrC,kBAAkB;;iBAEZ,cAAc,kBAAkB,SAAS,aAAa,UAAU,WAAW,cAAc,SAAS,sBAAsB,SAAS,gCAAgC,QAAQ,0BAA0B"}
@@ -0,0 +1 @@
1
+ import "./data-transform-BZ6kzJY4-DZBRydhx.mjs";
@@ -1,7 +1,7 @@
1
- import { A as pgJson, D as pgInt8, E as pgInt4, F as pgNumeric, G as pgTimestamptz, H as pgTimeStoredText, J as pgTimetzStoredText, K as pgTimestamptzStoredText, O as pgInterval, T as pgInt2, U as pgTimestamp, V as pgTime, W as pgTimestampStoredText, f as pgBool, h as pgByteaHexText, k as pgIntervalStoredText, m as pgByteaFromHexText, p as pgBytea, q as pgTimetz, v as pgDate, y as pgDateStoredText, z as pgText } from "./data-types-DWfwErIu-DF85cgmu.mjs";
1
+ import { A as pgJson, D as pgInt8, E as pgInt4, F as pgNumeric, G as pgTimestamptz, H as pgTimeStoredText, J as pgTimetzStoredText, K as pgTimestamptzStoredText, O as pgInterval, T as pgInt2, U as pgTimestamp, V as pgTime, W as pgTimestampStoredText, f as pgBool, h as pgByteaHexText, k as pgIntervalStoredText, m as pgByteaFromHexText, p as pgBytea, q as pgTimetz, v as pgDate, y as pgDateStoredText, z as pgText } from "./data-types-DgYRia-g-B_BFlAC3.mjs";
2
2
  import { createNumberClassifier, numeralText, parseJsonText, printJsonText, signedRange } from "@prisma/orm-framework/components/codec";
3
3
  import { structuredError } from "@prisma/orm-framework/utils/structured-error";
4
- //#region ../../../3-targets/postgres/1-target/dist/data-type-entries-CVxsfjF3.mjs
4
+ //#region ../../../3-targets/postgres/1-target/dist/data-type-entries-CKHtbfmn.mjs
5
5
  /**
6
6
  * PostgreSQL's own rule for a written number: a whole number takes the narrowest of `int2`, `int4`
7
7
  * and `int8` that holds it, and anything else — a larger whole number, a number with a fraction, or
@@ -125,4 +125,4 @@ function postgresDataTypeEntries() {
125
125
  //#endregion
126
126
  export { postgresDataTypeEntries as t };
127
127
 
128
- //# sourceMappingURL=data-type-entries-CVxsfjF3-Bd0cSfuG.mjs.map
128
+ //# sourceMappingURL=data-type-entries-CKHtbfmn-DBNF36FF.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"data-type-entries-CVxsfjF3-Bd0cSfuG.mjs","names":[],"sources":["../../../../3-targets/postgres/1-target/dist/data-type-entries-CVxsfjF3.mjs"],"sourcesContent":["import { A as pgText, E as pgNumeric, F as pgTimestampStoredText, I as pgTimestamptz, L as pgTimestamptzStoredText, M as pgTime, N as pgTimeStoredText, P as pgTimestamp, R as pgTimetz, _ as pgInt2, b as pgInterval, d as pgDateStoredText, nt as pgByteaHexText, o as pgBool, rt as pgIntervalStoredText, s as pgBytea, tt as pgByteaFromHexText, u as pgDate, v as pgInt4, x as pgJson, y as pgInt8, z as pgTimetzStoredText } from \"./data-types-DWfwErIu.mjs\";\nimport { createNumberClassifier, numeralText, parseJsonText, printJsonText, signedRange } from \"@internal/framework-components/codec\";\nimport { structuredError } from \"@internal/utils/structured-error\";\n//#region src/core/data-type-entries.ts\n/**\n* PostgreSQL's own rule for a written number: a whole number takes the narrowest of `int2`, `int4`\n* and `int8` that holds it, and anything else — a larger whole number, a number with a fraction, or\n* one of the three words — is a `numeric`.\n*/\nconst classifyPostgresNumber = createNumberClassifier({\n\tintegers: [\n\t\t{\n\t\t\ttype: pgInt2.id,\n\t\t\tform: \"number\",\n\t\t\t...signedRange(16)\n\t\t},\n\t\t{\n\t\t\ttype: pgInt4.id,\n\t\t\tform: \"number\",\n\t\t\t...signedRange(32)\n\t\t},\n\t\t{\n\t\t\ttype: pgInt8.id,\n\t\t\tform: \"text\",\n\t\t\t...signedRange(64)\n\t\t}\n\t],\n\tlargerWhole: {\n\t\ttype: pgNumeric.id,\n\t\tform: \"text\"\n\t},\n\tfraction: {\n\t\ttype: pgNumeric.id,\n\t\tform: \"text\"\n\t},\n\twords: {\n\t\ttype: pgNumeric.id,\n\t\tform: \"text\"\n\t}\n});\nfunction readBoolean(text) {\n\tif (text === \"true\" || text === \"false\") return text === \"true\";\n\tthrow structuredError(\"CONTRACT.CAST_REFUSED\", `\"${text}\" is not a boolean.`, {\n\t\twhy: \"The only text a boolean reads is true or false.\",\n\t\tfix: \"Use true or false.\"\n\t});\n}\n/** A tag whose body is a date or time in ISO 8601 or the text PostgreSQL prints, read into the value its type stores. */\nfunction dateTimeTag(tag, parse, documentation) {\n\treturn {\n\t\twritten: {\n\t\t\tkind: \"tag\",\n\t\t\ttag,\n\t\t\tparse\n\t\t},\n\t\tprint: (value) => String(value),\n\t\tdocumentation\n\t};\n}\n/** The text of a number-shaped stored value: a number written out, or text taken as it stands. */\nfunction printNumber(value) {\n\treturn typeof value === \"number\" ? numeralText(value) : String(value);\n}\nfunction postgresDataTypeEntries() {\n\treturn {\n\t\t[pgText.id]: {\n\t\t\twritten: {\n\t\t\t\tkind: \"plain\",\n\t\t\t\tsyntax: \"string\",\n\t\t\t\tparse: (text) => text\n\t\t\t},\n\t\t\tprint: (value) => String(value),\n\t\t\tdocumentation: \"Text.\"\n\t\t},\n\t\t[pgBool.id]: {\n\t\t\twritten: {\n\t\t\t\tkind: \"plain\",\n\t\t\t\tsyntax: \"boolean\",\n\t\t\t\tparse: readBoolean\n\t\t\t},\n\t\t\tprint: (value) => String(value),\n\t\t\tdocumentation: \"A boolean, written true or false.\"\n\t\t},\n\t\t[pgNumeric.id]: {\n\t\t\twritten: {\n\t\t\t\tkind: \"plain\",\n\t\t\t\tsyntax: \"number\",\n\t\t\t\ttypes: [\n\t\t\t\t\tpgInt2.id,\n\t\t\t\t\tpgInt4.id,\n\t\t\t\t\tpgInt8.id,\n\t\t\t\t\tpgNumeric.id\n\t\t\t\t],\n\t\t\t\tclassify: classifyPostgresNumber\n\t\t\t},\n\t\t\tprint: printNumber,\n\t\t\tdocumentation: \"A number, whose type comes from its own size and precision.\"\n\t\t},\n\t\t[pgJson.id]: {\n\t\t\twritten: {\n\t\t\t\tkind: \"tag\",\n\t\t\t\ttag: \"json\",\n\t\t\t\tparse: parseJsonText\n\t\t\t},\n\t\t\tprint: printJsonText,\n\t\t\tdocumentation: \"Reads the text as a JSON document and stores it as the default value.\"\n\t\t},\n\t\t[pgDate.id]: dateTimeTag(\"date\", pgDateStoredText, \"A date, as in date`2024-01-01`. Reads ISO 8601 and the text PostgreSQL prints, such as 0044-03-15 BC, infinity and -infinity.\"),\n\t\t[pgTime.id]: dateTimeTag(\"time\", pgTimeStoredText, \"A time of day without a UTC offset, as in time`12:34:56`.\"),\n\t\t[pgTimetz.id]: dateTimeTag(\"timetz\", pgTimetzStoredText, \"A time of day with its UTC offset, as in timetz`12:34:56+02:00`.\"),\n\t\t[pgTimestamp.id]: dateTimeTag(\"timestamp\", pgTimestampStoredText, \"A date and time of day without a UTC offset, as in timestamp`2024-01-01 12:34:56`. Reads ISO 8601 and the text PostgreSQL prints, including infinity and -infinity.\"),\n\t\t[pgTimestamptz.id]: dateTimeTag(\"timestamptz\", pgTimestamptzStoredText, \"An instant, as in timestamptz`2024-01-01T00:00:00Z`, stored in UTC. Reads ISO 8601 and the text PostgreSQL prints, including infinity and -infinity.\"),\n\t\t[pgInterval.id]: dateTimeTag(\"interval\", pgIntervalStoredText, \"A duration, as in interval`P1Y2M3DT4H5M6S` or interval`1 year 2 mons`, stored as an ISO 8601 duration.\"),\n\t\t[pgBytea.id]: {\n\t\t\twritten: {\n\t\t\t\tkind: \"tag\",\n\t\t\t\ttag: \"bytea\",\n\t\t\t\tparse: pgByteaFromHexText\n\t\t\t},\n\t\t\tprint: (value) => pgByteaHexText(String(value)),\n\t\t\tdocumentation: \"Bytes, written as the hex text PostgreSQL prints, as in bytea`\\\\x68656c6c6f`.\"\n\t\t}\n\t};\n}\n//#endregion\nexport { postgresDataTypeEntries as t };\n\n//# sourceMappingURL=data-type-entries-CVxsfjF3.mjs.map"],"mappings":";;;;;;;;;AASA,MAAM,yBAAyB,uBAAuB;CACrD,UAAU;EACT;GACC,MAAM,OAAO;GACb,MAAM;GACN,GAAG,YAAY,EAAE;EAClB;EACA;GACC,MAA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YAAY,QAAQ,kBAAkB,2DAA2D;GAC7G,SAAS,KAAK,YAAY,UAAU,oBAAoB,kEAAkE;GAC1H,YAAY,KAAK,YAAY,aAAa,uBAAuB,qKAAqK;GACtO,cAAc,KAAK,YAAY,eAAe,yBAAyB,sJAAsJ;GAC7N,WAAW,KAAK,YAAY,YAAY,sBAAsB,wGAAwG;GACtK,QAAQ,KAAK;GACb,SAAS;IACR,MAAM;IACN,KAAK;IACL,OAAO;GACR;GACA,QAAQ,UAAU,eAAe,OAAO,KAAK,CAAC;GAC9C,eAAe;EAChB;CACD;AACD"}
1
+ {"version":3,"file":"data-type-entries-CKHtbfmn-DBNF36FF.mjs","names":[],"sources":["../../../../3-targets/postgres/1-target/dist/data-type-entries-CKHtbfmn.mjs"],"sourcesContent":["import { A as pgText, E as pgNumeric, F as pgTimestampStoredText, I as pgTimestamptz, L as pgTimestamptzStoredText, M as pgTime, N as pgTimeStoredText, P as pgTimestamp, R as pgTimetz, _ as pgInt2, b as pgInterval, d as pgDateStoredText, nt as pgByteaHexText, o as pgBool, rt as pgIntervalStoredText, s as pgBytea, tt as pgByteaFromHexText, u as pgDate, v as pgInt4, x as pgJson, y as pgInt8, z as pgTimetzStoredText } from \"./data-types-DgYRia-g.mjs\";\nimport { createNumberClassifier, numeralText, parseJsonText, printJsonText, signedRange } from \"@internal/framework-components/codec\";\nimport { structuredError } from \"@internal/utils/structured-error\";\n//#region src/core/data-type-entries.ts\n/**\n* PostgreSQL's own rule for a written number: a whole number takes the narrowest of `int2`, `int4`\n* and `int8` that holds it, and anything else — a larger whole number, a number with a fraction, or\n* one of the three words — is a `numeric`.\n*/\nconst classifyPostgresNumber = createNumberClassifier({\n\tintegers: [\n\t\t{\n\t\t\ttype: pgInt2.id,\n\t\t\tform: \"number\",\n\t\t\t...signedRange(16)\n\t\t},\n\t\t{\n\t\t\ttype: pgInt4.id,\n\t\t\tform: \"number\",\n\t\t\t...signedRange(32)\n\t\t},\n\t\t{\n\t\t\ttype: pgInt8.id,\n\t\t\tform: \"text\",\n\t\t\t...signedRange(64)\n\t\t}\n\t],\n\tlargerWhole: {\n\t\ttype: pgNumeric.id,\n\t\tform: \"text\"\n\t},\n\tfraction: {\n\t\ttype: pgNumeric.id,\n\t\tform: \"text\"\n\t},\n\twords: {\n\t\ttype: pgNumeric.id,\n\t\tform: \"text\"\n\t}\n});\nfunction readBoolean(text) {\n\tif (text === \"true\" || text === \"false\") return text === \"true\";\n\tthrow structuredError(\"CONTRACT.CAST_REFUSED\", `\"${text}\" is not a boolean.`, {\n\t\twhy: \"The only text a boolean reads is true or false.\",\n\t\tfix: \"Use true or false.\"\n\t});\n}\n/** A tag whose body is a date or time in ISO 8601 or the text PostgreSQL prints, read into the value its type stores. */\nfunction dateTimeTag(tag, parse, documentation) {\n\treturn {\n\t\twritten: {\n\t\t\tkind: \"tag\",\n\t\t\ttag,\n\t\t\tparse\n\t\t},\n\t\tprint: (value) => String(value),\n\t\tdocumentation\n\t};\n}\n/** The text of a number-shaped stored value: a number written out, or text taken as it stands. */\nfunction printNumber(value) {\n\treturn typeof value === \"number\" ? numeralText(value) : String(value);\n}\nfunction postgresDataTypeEntries() {\n\treturn {\n\t\t[pgText.id]: {\n\t\t\twritten: {\n\t\t\t\tkind: \"plain\",\n\t\t\t\tsyntax: \"string\",\n\t\t\t\tparse: (text) => text\n\t\t\t},\n\t\t\tprint: (value) => String(value),\n\t\t\tdocumentation: \"Text.\"\n\t\t},\n\t\t[pgBool.id]: {\n\t\t\twritten: {\n\t\t\t\tkind: \"plain\",\n\t\t\t\tsyntax: \"boolean\",\n\t\t\t\tparse: readBoolean\n\t\t\t},\n\t\t\tprint: (value) => String(value),\n\t\t\tdocumentation: \"A boolean, written true or false.\"\n\t\t},\n\t\t[pgNumeric.id]: {\n\t\t\twritten: {\n\t\t\t\tkind: \"plain\",\n\t\t\t\tsyntax: \"number\",\n\t\t\t\ttypes: [\n\t\t\t\t\tpgInt2.id,\n\t\t\t\t\tpgInt4.id,\n\t\t\t\t\tpgInt8.id,\n\t\t\t\t\tpgNumeric.id\n\t\t\t\t],\n\t\t\t\tclassify: classifyPostgresNumber\n\t\t\t},\n\t\t\tprint: printNumber,\n\t\t\tdocumentation: \"A number, whose type comes from its own size and precision.\"\n\t\t},\n\t\t[pgJson.id]: {\n\t\t\twritten: {\n\t\t\t\tkind: \"tag\",\n\t\t\t\ttag: \"json\",\n\t\t\t\tparse: parseJsonText\n\t\t\t},\n\t\t\tprint: printJsonText,\n\t\t\tdocumentation: \"Reads the text as a JSON document and stores it as the default value.\"\n\t\t},\n\t\t[pgDate.id]: dateTimeTag(\"date\", pgDateStoredText, \"A date, as in date`2024-01-01`. Reads ISO 8601 and the text PostgreSQL prints, such as 0044-03-15 BC, infinity and -infinity.\"),\n\t\t[pgTime.id]: dateTimeTag(\"time\", pgTimeStoredText, \"A time of day without a UTC offset, as in time`12:34:56`.\"),\n\t\t[pgTimetz.id]: dateTimeTag(\"timetz\", pgTimetzStoredText, \"A time of day with its UTC offset, as in timetz`12:34:56+02:00`.\"),\n\t\t[pgTimestamp.id]: dateTimeTag(\"timestamp\", pgTimestampStoredText, \"A date and time of day without a UTC offset, as in timestamp`2024-01-01 12:34:56`. Reads ISO 8601 and the text PostgreSQL prints, including infinity and -infinity.\"),\n\t\t[pgTimestamptz.id]: dateTimeTag(\"timestamptz\", pgTimestamptzStoredText, \"An instant, as in timestamptz`2024-01-01T00:00:00Z`, stored in UTC. Reads ISO 8601 and the text PostgreSQL prints, including infinity and -infinity.\"),\n\t\t[pgInterval.id]: dateTimeTag(\"interval\", pgIntervalStoredText, \"A duration, as in interval`P1Y2M3DT4H5M6S` or interval`1 year 2 mons`, stored as an ISO 8601 duration.\"),\n\t\t[pgBytea.id]: {\n\t\t\twritten: {\n\t\t\t\tkind: \"tag\",\n\t\t\t\ttag: \"bytea\",\n\t\t\t\tparse: pgByteaFromHexText\n\t\t\t},\n\t\t\tprint: (value) => pgByteaHexText(String(value)),\n\t\t\tdocumentation: \"Bytes, written as the hex text PostgreSQL prints, as in bytea`\\\\x68656c6c6f`.\"\n\t\t}\n\t};\n}\n//#endregion\nexport { postgresDataTypeEntries as t };\n\n//# sourceMappingURL=data-type-entries-CKHtbfmn.mjs.map"],"mappings":";;;;;;;;;AASA,MAAM,yBAAyB,uBAAuB;CACrD,UAAU;EACT;GACC,MAAM,OAAO;GACb,MAAM;GACN,GAAG,YAAY,EAAE;EAClB;EACA;GACC,MAAM,OAAO;GACb,MAAM;GACN,GAAG,YAAY,EAAE;EAClB;EACA;GACC,MAAM,OAAO;GACb,MAAM;GACN,GAAG,YAAY,EAAE;EAClB;CACD;CACA,aAAa;EACZ,MAAM,UAAU;EAChB,MAAM;CACP;CACA,UAAU;EACT,MAAM,UAAU;EAChB,MAAM;CACP;CACA,OAAO;EACN,MAAM,UAAU;EAChB,MAAM;CACP;AACD,CAAC;AACD,SAAS,YAAY,MAAM;CAC1B,IAAI,SAAS,UAAU,SAAS,SAAS,OAAO,SAAS;CACzD,MAAM,gBAAgB,yBAAyB,IAAI,KAAK,sBAAsB;EAC7E,KAAK;EACL,KAAK;CACN,CAAC;AACF;;AAEA,SAAS,YAAY,KAAK,OAAO,eAAe;CAC/C,OAAO;EACN,SAAS;GACR,MAAM;GACN;GACA;EACD;EACA,QAAQ,UAAU,OAAO,KAAK;EAC9B;CACD;AACD;;AAEA,SAAS,YAAY,OAAO;CAC3B,OAAO,OAAO,UAAU,WAAW,YAAY,KAAK,IAAI,OAAO,KAAK;AACrE;AACA,SAAS,0BAA0B;CAClC,OAAO;GACL,OAAO,KAAK;GACZ,SAAS;IACR,MAAM;IACN,QAAQ;IACR,QAAQ,SAAS;GAClB;GACA,QAAQ,UAAU,OAAO,KAAK;GAC9B,eAAe;EAChB;GACC,OAAO,KAAK;GACZ,SAAS;IACR,MAAM;IACN,QAAQ;IACR,OAAO;GACR;GACA,QAAQ,UAAU,OAAO,KAAK;GAC9B,eAAe;EAChB;GACC,UAAU,KAAK;GACf,SAAS;IACR,MAAM;IACN,QAAQ;IACR,OAAO;KACN,OAAO;KACP,OAAO;KACP,OAAO;KACP,UAAU;IACX;IACA,UAAU;GACX;GACA,OAAO;GACP,eAAe;EAChB;GACC,OAAO,KAAK;GACZ,SAAS;IACR,MAAM;IACN,KAAK;IACL,OAAO;GACR;GACA,OAAO;GACP,eAAe;EAChB;GACC,OAAO,KAAK,YAAY,QAAQ,kBAAkB,+HAA+H;GACjL,OAAO,KAAK,YAAY,QAAQ,kBAAkB,2DAA2D;GAC7G,SAAS,KAAK,YAAY,UAAU,oBAAoB,kEAAkE;GAC1H,YAAY,KAAK,YAAY,aAAa,uBAAuB,qKAAqK;GACtO,cAAc,KAAK,YAAY,eAAe,yBAAyB,sJAAsJ;GAC7N,WAAW,KAAK,YAAY,YAAY,sBAAsB,wGAAwG;GACtK,QAAQ,KAAK;GACb,SAAS;IACR,MAAM;IACN,KAAK;IACL,OAAO;GACR;GACA,QAAQ,UAAU,eAAe,OAAO,KAAK,CAAC;GAC9C,eAAe;EAChB;CACD;AACD"}
@@ -1,12 +1,13 @@
1
- import { u as postgresError } from "./errors-C4-Dp3gI-B5jY5eJj.mjs";
2
- import { a as quoteIdentifier } from "./sql-utils-CRPhDLp1-wbgQW5TM.mjs";
3
- import { INT32_RANGE, INT64_RANGE, asFloat, asNumeralText, assembleDataTypes, castUnchanged, dateTimeStoredText, decimalTextEqualityKey, readJsonBoolean, readJsonFloat, readJsonInteger, readJsonIntegerText, readJsonMatching, readJsonString, refuseJsonValue, refuseWrongShape, storedNumeralText } from "@prisma/orm-framework/components/codec";
1
+ import { u as postgresError } from "./errors-DxWL0CMX-BQe7Wfvt.mjs";
2
+ import { o as quoteIdentifier } from "./sql-utils-ClKAaUlZ-BdjnkJvV.mjs";
3
+ import { INT32_RANGE, INT64_RANGE, asFloat, asNumeralText, assembleDataTypes, castUnchanged, dateTimeStoredText, decimalTextEqualityKey, readJsonBoolean, readJsonFloat, readJsonInteger, readJsonIntegerText, readJsonMatching, readJsonString, refuseJsonValue, refuseWrongShape } from "@prisma/orm-framework/components/codec";
4
4
  import { isStructuredError, structuredError } from "@prisma/orm-framework/utils/structured-error";
5
5
  import { counted, withoutTrailing } from "@prisma/orm-framework/utils/text";
6
6
  import { ISO_DURATION } from "@prisma/orm-framework/type-implementations/duration";
7
7
  import { sqlDataType, sqlRawDataType } from "@prisma/orm-family-sql/contract/data-type";
8
+ import { isDecimalText, printedDecimalText } from "@prisma/orm-framework/type-implementations/decimal";
8
9
  import { type } from "arktype";
9
- //#region ../../../3-targets/postgres/1-target/dist/data-types-DWfwErIu.mjs
10
+ //#region ../../../3-targets/postgres/1-target/dist/data-types-DgYRia-g.mjs
10
11
  /**
11
12
  * Whether text fits `length` characters, counted as PostgreSQL counts them: code points. A `character` value is padded with spaces, and spaces past its length are dropped, so they do not count.
12
13
  */
@@ -456,8 +457,6 @@ function integerParam(params, name) {
456
457
  const value = params[name];
457
458
  return typeof value === "number" ? value : void 0;
458
459
  }
459
- /** A decimal numeral: an optional minus sign, digits, and an optional fraction. */
460
- const DECIMAL_NUMERAL_TEXT = /^-?\d+(?:\.\d+)?$/;
461
460
  /**
462
461
  * Numeric text in the form PostgreSQL *prints*, which is narrower than the form it accepts.
463
462
  *
@@ -484,7 +483,7 @@ function fitsNumeric(text, precision, scale) {
484
483
  }
485
484
  const readNumeric = (json, params) => {
486
485
  if (typeof json !== "string" || !STORED_NUMERIC_TEXT.test(json)) {
487
- const printed = typeof json === "string" && DECIMAL_NUMERAL_TEXT.test(json) ? storedNumeralText(json) : void 0;
486
+ const printed = typeof json === "string" && isDecimalText(json) ? printedDecimalText(json) : void 0;
488
487
  return refuseJsonValue("pg/numeric", printed === void 0 ? "a decimal string" : `"${printed}", as PostgreSQL writes this value`, json);
489
488
  }
490
489
  const precision = integerParam(params, "precision");
@@ -818,7 +817,7 @@ const MONEY_CENTS_RANGE = INT64_RANGE;
818
817
  const MONEY_RANGE_TEXT = "from -92233720368547758.08 to 92233720368547758.07";
819
818
  /** The cents a decimal numeral holds, or undefined when it has a third significant fraction digit or lies outside `money`'s range. */
820
819
  function moneyCents(text) {
821
- if (!DECIMAL_NUMERAL_TEXT.test(text)) return void 0;
820
+ if (!isDecimalText(text)) return void 0;
822
821
  const negative = text.startsWith("-");
823
822
  const [whole = "", fraction = ""] = text.replace(/^-/, "").split(".");
824
823
  if (withoutTrailing(fraction, "0").length > 2) return void 0;
@@ -1042,4 +1041,4 @@ const postgresTextDataTypes = [
1042
1041
  //#endregion
1043
1042
  export { pgXml as $, pgJson as A, pgTextArray as B, pgFloat8 as C, pgInt8 as D, pgInt4 as E, pgNumeric as F, pgTimestamptz as G, pgTimeStoredText as H, pgNumericParams as I, pgTimetzStoredText as J, pgTimestamptzStoredText as K, pgOid as L, pgJsonbEnumRefusal as M, pgMoney as N, pgInterval as O, pgMoneyStoredText as P, pgVarchar as Q, pgPrecisionParams as R, pgFloat4 as S, pgInt2 as T, pgTimestamp as U, pgTime as V, pgTimestampStoredText as W, pgUuid as X, pgTsquery as Y, pgVarbit as Z, pgCharacterLengthParams as _, intervalFieldsOf as a, pgEnum as b, microsFromFraction as c, pgBitLengthParams as d, postgresDataTypes as et, pgBool as f, pgChar as g, pgByteaHexText as h, formatIsoDuration as i, qualifiedEnumName as it, pgJsonb as j, pgIntervalStoredText as k, moneyTextOfCents as l, pgByteaFromHexText as m, MICROS_PER_SECOND as n, postgresTextDataTypes as nt, isPgOid as o, pgBytea as p, pgTimetz as q, createPostgresBuiltinDataTypeLookup as r, postgresYearText as rt, isoYearText as s, BYTEA_TEXT as t, postgresIntervalFields as tt, pgBit as u, pgDate as v, pgInet as w, pgEnumParams as x, pgDateStoredText as y, pgText as z };
1044
1043
 
1045
- //# sourceMappingURL=data-types-DWfwErIu-DF85cgmu.mjs.map
1044
+ //# sourceMappingURL=data-types-DgYRia-g-B_BFlAC3.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"data-types-DgYRia-g-B_BFlAC3.mjs","names":[],"sources":["../../../../3-targets/postgres/1-target/dist/data-types-DgYRia-g.mjs"],"sourcesContent":["import { u as postgresError } from \"./errors-DxWL0CMX.mjs\";\nimport { o as quoteIdentifier } from \"./sql-utils-ClKAaUlZ.mjs\";\nimport { INT32_RANGE, INT64_RANGE, asFloat, asNumeralText, assembleDataTypes, castUnchanged, dateTimeStoredText, decimalTextEqualityKey, readJsonBoolean, readJsonFloat, readJsonInteger, readJsonIntegerText, readJsonMatching, readJsonString, refuseJsonValue, refuseWrongShape } from \"@internal/framework-components/codec\";\nimport { isStructuredError, structuredError } from \"@internal/utils/structured-error\";\nimport { ISO_DURATION } from \"@internal/type-implementations/duration\";\nimport { counted, withoutTrailing } from \"@internal/utils/text\";\nimport { sqlDataType, sqlRawDataType } from \"@internal/sql-contract/data-type\";\nimport { isDecimalText, printedDecimalText } from \"@internal/type-implementations/decimal\";\nimport { type } from \"arktype\";\n//#region src/core/data-type-values.ts\n/**\n* Whether text fits `length` characters, counted as PostgreSQL counts them: code points. A `character` value is padded with spaces, and spaces past its length are dropped, so they do not count.\n*/\nfunction fitsCharacterLength(text, length, blankPadded) {\n\tconst significant = blankPadded ? withoutTrailing(text, \" \") : text;\n\treturn significant.length <= length || [...significant].length <= length;\n}\n/** The uuid input PostgreSQL reads: 32 hex digits in either case, a hyphen allowed after any group of four but the last, and the whole optionally in braces. */\nconst UUID_INPUT = /^(?:\\{[0-9a-f]{4}(?:-?[0-9a-f]{4}){7}\\}|[0-9a-f]{4}(?:-?[0-9a-f]{4}){7})$/i;\n/**\n* Text in any form PostgreSQL reads as a UUID (either case, a hyphen after any group of four digits, optionally in braces), written the way PostgreSQL writes it; `undefined` for text it does not read as one.\n*/\nfunction storedUuid(text) {\n\tif (!UUID_INPUT.test(text)) return void 0;\n\tconst hex = text.replace(/[{}-]/g, \"\").toLowerCase();\n\treturn `${hex.slice(0, 8)}-${hex.slice(8, 12)}-${hex.slice(12, 16)}-${hex.slice(16, 20)}-${hex.slice(20)}`;\n}\n/** The largest finite float4. */\nconst FLOAT4_MAX = 34028234663852886e22;\n/** Whether float4 holds a finite number: it neither overflows to an infinity nor rounds to 0, both of which PostgreSQL refuses. */\nfunction fitsFloat4(value) {\n\tconst single = Math.fround(value);\n\treturn Number.isFinite(single) && (value === 0 || single !== 0);\n}\nconst MICROS_PER_SECOND = 1000000n;\n/**\n* Converts a fractional-seconds digit string to microseconds, rounding rather\n* than truncating past the sixth digit.\n*\n* PostgreSQL rounds: `INTERVAL '1.1234567 seconds'` is `1.123457`, and\n* `'1.9999999 seconds'` carries into `2`. Truncating here made the parsed value\n* disagree with the database for any input past microsecond resolution.\n*\n* Ties round toward positive infinity, matching `Math.round` on the sibling path\n* that reads the driver's component object — so the two agree. PostgreSQL's own\n* tie behaviour is unobservable, because it parses the literal into a double\n* first and an exact half never survives that.\n*/\nconst microsFromFraction = (fraction, negative) => {\n\tif (fraction === \"\") return 0n;\n\tconst kept = BigInt(fraction.slice(0, 6).padEnd(6, \"0\"));\n\tconst rest = fraction.slice(6).replace(/0+$/, \"\");\n\tif (rest === \"\") return kept;\n\tconst half = rest[0] === \"5\" && rest.length === 1;\n\treturn rest > \"5\" || half && !negative ? kept + 1n : kept;\n};\nconst MICROS_PER_DAY = 86400n * MICROS_PER_SECOND;\n/** The key two stored intervals share exactly when PostgreSQL holds them equal: their total length in microseconds, a month counting as 30 days and a day as 24 hours. */\nfunction intervalEqualityKey(json) {\n\tconst { months, days, micros } = intervalFieldsOf(String(json));\n\treturn ((BigInt(months) * 30n + BigInt(days)) * MICROS_PER_DAY + micros).toString();\n}\nconst intervalFieldsOf = (text) => {\n\tconst match = ISO_DURATION.exec(text);\n\tif (match === null) throw postgresError(\"RUNTIME.DECODE_FAILED\", `pg/interval@1 value must be an ISO-8601 duration, got ${text}`, { meta: {\n\t\tcodecId: \"pg/interval@1\",\n\t\treceived: text\n\t} });\n\tconst [, years, months, days, hours, minutes, seconds] = match;\n\tconst wholeNumber = (part) => part === void 0 ? 0 : Number(part.slice(0, -1));\n\tconst secondsLiteral = seconds === void 0 ? \"0\" : seconds.slice(0, -1);\n\tconst negative = secondsLiteral.startsWith(\"-\");\n\tconst [whole = \"0\", fraction = \"\"] = secondsLiteral.replace(\"-\", \"\").split(\".\");\n\tconst magnitude = BigInt(whole) * MICROS_PER_SECOND + microsFromFraction(fraction, negative);\n\treturn {\n\t\tmonths: wholeNumber(years) * 12 + wholeNumber(months),\n\t\tdays: wholeNumber(days),\n\t\tmicros: BigInt(wholeNumber(hours)) * 3600n * MICROS_PER_SECOND + BigInt(wholeNumber(minutes)) * 60n * MICROS_PER_SECOND + (negative ? -magnitude : magnitude)\n\t};\n};\nconst secondsText = (micros) => {\n\tconst sign = micros < 0n ? \"-\" : \"\";\n\tconst magnitude = micros < 0n ? -micros : micros;\n\tconst whole = magnitude / MICROS_PER_SECOND % 60n;\n\tconst fraction = magnitude % MICROS_PER_SECOND;\n\treturn `${sign}${whole}${fraction === 0n ? \"\" : `.${fraction.toString().padStart(6, \"0\").replace(/0+$/, \"\")}`}`;\n};\n/**\n* Renders {@link PgInterval} the way PostgreSQL spells an interval under\n* `IntervalStyle = 'iso_8601'`: zero components omitted, `T` present only when a\n* time component is, each component carrying its own sign, and an all-zero\n* interval written `PT0S`.\n*/\nconst formatIsoDuration = ({ months, days, micros }) => {\n\tconst years = Math.trunc(months / 12);\n\tconst restMonths = months % 12;\n\tconst sign = micros < 0n ? \"-\" : \"\";\n\tconst magnitude = micros < 0n ? -micros : micros;\n\tconst hours = magnitude / (3600n * MICROS_PER_SECOND);\n\tconst minutes = magnitude / (60n * MICROS_PER_SECOND) % 60n;\n\tconst hasSeconds = magnitude % (60n * MICROS_PER_SECOND) !== 0n;\n\tconst parts = [\n\t\tyears === 0 ? \"\" : `${years}Y`,\n\t\trestMonths === 0 ? \"\" : `${restMonths}M`,\n\t\tdays === 0 ? \"\" : `${days}D`\n\t];\n\tconst time = [\n\t\thours === 0n ? \"\" : `${sign}${hours}H`,\n\t\tminutes === 0n ? \"\" : `${sign}${minutes}M`,\n\t\thasSeconds ? `${secondsText(micros)}S` : \"\"\n\t].join(\"\");\n\tconst rendered = `P${parts.join(\"\")}${time === \"\" ? \"\" : `T${time}`}`;\n\treturn rendered === \"P\" ? \"PT0S\" : rendered;\n};\n/**\n* An interval as PostgreSQL prints it under `IntervalStyle = 'postgres'`: `1 year 2 mons 3 days\n* 04:05:06.5`, `-1 years -2 mons +3 days -04:00:00`, `00:00:00`.\n*/\nconst POSTGRES_INTERVAL = /^(?:([+-]?\\d+) years? ?)?(?:([+-]?\\d+) mons? ?)?(?:([+-]?\\d+) days? ?)?(?:([+-])?(\\d+):(\\d{2}):(\\d{2})(?:\\.(\\d+))?)?$/;\nfunction postgresIntervalFields(text) {\n\tconst match = POSTGRES_INTERVAL.exec(text);\n\tif (match === null || text === \"\" || text.endsWith(\" \")) return void 0;\n\tconst [, years = \"0\", months = \"0\", days = \"0\", sign, hours = \"0\", minutes = \"0\", seconds = \"0\"] = match;\n\tconst fraction = match[8] ?? \"\";\n\tconst magnitude = (BigInt(hours) * 3600n + BigInt(minutes) * 60n + BigInt(seconds)) * MICROS_PER_SECOND + microsFromFraction(fraction, sign === \"-\");\n\treturn {\n\t\tmonths: Number(years) * 12 + Number(months),\n\t\tdays: Number(days),\n\t\tmicros: sign === \"-\" ? -magnitude : magnitude\n\t};\n}\nfunction intervalRefused(message) {\n\tthrow structuredError(\"CONTRACT.CAST_REFUSED\", message, {\n\t\twhy: \"pg/interval stores one form for each interval (ADR 254), and reads ISO 8601 durations and the text PostgreSQL prints.\",\n\t\tfix: \"Write an ISO 8601 duration, as the message shows.\"\n\t});\n}\n/**\n* The stored form of `pg/interval` (ADR 254), from an ISO 8601 duration or the text PostgreSQL\n* prints under `IntervalStyle = 'postgres'`.\n*/\nfunction pgIntervalStoredText(text) {\n\tconst fractionDigits = /\\.(\\d+)/.exec(text)?.[1]?.length ?? 0;\n\tif (fractionDigits > 6) intervalRefused(`\"${text}\" has ${fractionDigits} digits after the decimal point, but pg/interval holds microseconds, so at most 6. Round it, as in \"PT1.123456S\".`);\n\tif (ISO_DURATION.test(text)) return formatIsoDuration(intervalFieldsOf(text));\n\tconst fields = postgresIntervalFields(text);\n\tif (fields === void 0) intervalRefused(`pg/interval cannot read \"${text}\". Write an ISO 8601 duration, as in \"P1Y2M3DT4H5M6S\".`);\n\treturn formatIsoDuration(fields);\n}\nconst BASE64_TEXT = /^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/;\n/** Reads base64 with or without padding bits set; {@link spellPgByteaJson} writes the base64 `pg/bytea` stores. */\nconst readPgByteaJson = (owner, json) => readJsonMatching(owner, json, BASE64_TEXT, \"a base64 string\");\n/** The base64 of the same bytes with padding bits zero, as `Buffer` writes it. */\nconst spellPgByteaJson = (json) => typeof json === \"string\" ? Buffer.from(json, \"base64\").toString(\"base64\") : json;\nconst BYTEA_TEXT = /^\\\\x(?:[0-9A-Fa-f]{2})*$/;\n/** The base64 `pg/bytea` stores for the hex text PostgreSQL prints, `\\x68656c6c6f`. The `bytea` tag reads its body with this. */\nfunction pgByteaFromHexText(text) {\n\tif (!BYTEA_TEXT.test(text)) throw structuredError(\"CONTRACT.CAST_REFUSED\", `\"${text}\" is not the hex text PostgreSQL prints for bytea, which is \\\\x followed by two hexadecimal digits for each byte, as in \\\\x68656c6c6f.`, {\n\t\twhy: \"The bytea tag reads bytes as the hex text PostgreSQL prints under bytea_output = hex.\",\n\t\tfix: \"Write the bytes in hex after \\\\x, as in bytea`\\\\x68656c6c6f`.\"\n\t});\n\treturn Buffer.from(text.slice(2), \"hex\").toString(\"base64\");\n}\n/** The hex text PostgreSQL prints for the base64 `pg/bytea` stores. */\nfunction pgByteaHexText(base64) {\n\treturn `\\\\x${Buffer.from(base64, \"base64\").toString(\"hex\")}`;\n}\n//#endregion\n//#region src/core/postgres-year-text.ts\n/**\n* PostgreSQL's year text (ADR 254, \"Date and time types\"). PostgreSQL reads and prints no signed year: a year after 9999 is written without its sign and leading zeros, `10000-01-01`, and a year at or before ISO year 0000 with a ` BC` suffix and PostgreSQL's year number, which has no year 0, so ISO year 0000 is `0001 BC` and -000043 is `0044 BC`. Every Postgres date and time codec and tag converts years through these two functions.\n*/\nconst POSTGRES_YEAR = /^(\\d{4,6})(-.*?)( BC)?$/;\nconst ISO_YEAR = /^([+-]\\d{6,}|\\d{4})(-.*)$/;\nconst BC_SUFFIX = \" BC\";\n/** ISO 8601 text, with a four-digit or signed six-digit year, from text PostgreSQL prints. Text with no year, ISO text and `0000 BC`, which does not exist, stay as they are. */\nfunction isoYearText(text) {\n\tconst match = POSTGRES_YEAR.exec(text);\n\tif (match === null) return text;\n\tconst [, digits = \"\", rest = \"\", bc] = match;\n\tconst year = Number(digits);\n\tif (bc !== void 0) {\n\t\tif (year === 0) return text;\n\t\treturn `${isoYear(1 - year)}${rest}`;\n\t}\n\treturn digits.length > 4 ? `${isoYear(year)}${rest}` : text;\n}\n/** The text PostgreSQL reads for ISO 8601 text with a four-digit year or a signed year of six or more digits. Text with no year stays as it is. */\nfunction postgresYearText(text) {\n\tconst match = ISO_YEAR.exec(text);\n\tif (match === null) return text;\n\tconst [, yearDigits = \"\", rest = \"\"] = match;\n\tconst year = Number(yearDigits);\n\tif (year > 9999) return `${year}${rest}`;\n\tif (year >= 1) return `${String(year).padStart(4, \"0\")}${rest}`;\n\treturn `${String(1 - year).padStart(4, \"0\")}${rest}${BC_SUFFIX}`;\n}\nfunction isoYear(year) {\n\tif (year >= 0 && year <= 9999) return String(year).padStart(4, \"0\");\n\treturn `${year < 0 ? \"-\" : \"+\"}${String(Math.abs(year)).padStart(6, \"0\")}`;\n}\n//#endregion\n//#region src/core/stored-inet.ts\nconst DIGIT = /^[0-9]$/;\nconst HEX_DIGIT = /^[0-9a-fA-F]$/;\nconst isDigit = (ch) => ch !== void 0 && DIGIT.test(ch);\n/**\n* Text PostgreSQL reads as an `inet` value, written the way PostgreSQL prints it: an IPv4 address in\n* four decimal octets, an IPv6 address in lower-case hex with its longest run of zero groups written\n* `::`, and the prefix length only when it is shorter than the whole address. `undefined` for text\n* PostgreSQL does not read as an `inet` value.\n*/\nfunction storedInet(text) {\n\tif (text.includes(\":\")) {\n\t\tconst value = readIpv6(text);\n\t\treturn value === void 0 ? void 0 : printIpv6(value);\n\t}\n\tconst value = readIpv4(text);\n\treturn value === void 0 ? void 0 : printIpv4(value);\n}\n/**\n* PostgreSQL's `inet_net_pton_ipv4`: one to four decimal octets, each up to 255 and leading zeros\n* allowed, then an optional `/` and prefix length up to 32. Without a prefix length all four octets\n* are required; with one, the octets written must cover it.\n*/\nfunction readIpv4(text) {\n\tconst octets = [];\n\tlet index = 0;\n\tlet ch = text[index++];\n\twhile (isDigit(ch)) {\n\t\tlet octet = 0;\n\t\tdo {\n\t\t\toctet = octet * 10 + Number(ch);\n\t\t\tif (octet > 255) return void 0;\n\t\t\tch = text[index++];\n\t\t} while (isDigit(ch));\n\t\tif (octets.length === 4) return void 0;\n\t\toctets.push(octet);\n\t\tif (ch === void 0 || ch === \"/\") break;\n\t\tif (ch !== \".\") return void 0;\n\t\tch = text[index++];\n\t}\n\tlet bits = -1;\n\tif (ch === \"/\" && isDigit(text[index]) && octets.length > 0) {\n\t\tch = text[index++];\n\t\tbits = 0;\n\t\tdo {\n\t\t\tbits = bits * 10 + Number(ch);\n\t\t\tch = text[index++];\n\t\t} while (isDigit(ch));\n\t\tif (ch !== void 0 || bits > 32) return void 0;\n\t}\n\tif (ch !== void 0) return void 0;\n\tif (bits === -1) {\n\t\tif (octets.length !== 4) return void 0;\n\t\tbits = 32;\n\t}\n\tif (octets.length === 0 || Math.floor(bits / 8) > octets.length) return void 0;\n\treturn {\n\t\tbytes: [\n\t\t\t...octets,\n\t\t\t0,\n\t\t\t0,\n\t\t\t0,\n\t\t\t0\n\t\t].slice(0, 4),\n\t\tbits\n\t};\n}\n/** PostgreSQL's `getbits`: a prefix length up to 128, with no leading zero. */\nfunction readBits(text) {\n\tlet bits = 0;\n\tlet digits = 0;\n\tfor (const ch of text) {\n\t\tif (!isDigit(ch)) return void 0;\n\t\tif (digits++ !== 0 && bits === 0) return void 0;\n\t\tbits = bits * 10 + Number(ch);\n\t\tif (bits > 128) return void 0;\n\t}\n\treturn digits === 0 ? void 0 : bits;\n}\n/**\n* PostgreSQL's `getv4`, for the IPv4 tail of an IPv6 address: up to four decimal octets with no\n* leading zeros, and an optional prefix length. Octets left out are zero.\n*/\nfunction readIpv4Tail(text) {\n\tconst octets = [];\n\tlet octet = 0;\n\tlet digits = 0;\n\tfor (const [index, ch] of [...text].entries()) {\n\t\tif (isDigit(ch)) {\n\t\t\tif (digits++ !== 0 && octet === 0) return void 0;\n\t\t\toctet = octet * 10 + Number(ch);\n\t\t\tif (octet > 255) return void 0;\n\t\t\tcontinue;\n\t\t}\n\t\tif (ch !== \".\" && ch !== \"/\") return void 0;\n\t\tif (octets.length > 3) return void 0;\n\t\toctets.push(octet);\n\t\tif (ch === \"/\") {\n\t\t\tconst bits = readBits(text.slice(index + 1));\n\t\t\treturn bits === void 0 ? void 0 : {\n\t\t\t\toctets,\n\t\t\t\tbits\n\t\t\t};\n\t\t}\n\t\toctet = 0;\n\t\tdigits = 0;\n\t}\n\tif (digits === 0 || octets.length > 3) return void 0;\n\treturn {\n\t\toctets: [...octets, octet],\n\t\tbits: void 0\n\t};\n}\n/**\n* PostgreSQL's `inet_cidr_pton_ipv6`: up to eight groups of one to four hex digits in either case,\n* one `::` standing for a run of zero groups, an optional IPv4 tail, and an optional prefix length.\n*/\nfunction readIpv6(text) {\n\tconst bytes = new Array(16).fill(0);\n\tlet filled = 0;\n\tlet compressedAt;\n\tlet index = 0;\n\tif (text[0] === \":\") {\n\t\tif (text[1] !== \":\") return void 0;\n\t\tindex = 1;\n\t}\n\tlet tokenStart = index;\n\tlet sawHexDigit = false;\n\tlet group = 0;\n\tlet groupDigits = 0;\n\tlet bits = 128;\n\twhile (index < text.length) {\n\t\tconst ch = text[index++] ?? \"\";\n\t\tif (HEX_DIGIT.test(ch)) {\n\t\t\tgroup = group << 4 | Number.parseInt(ch, 16);\n\t\t\tif (++groupDigits > 4) return void 0;\n\t\t\tsawHexDigit = true;\n\t\t\tcontinue;\n\t\t}\n\t\tif (ch === \":\") {\n\t\t\ttokenStart = index;\n\t\t\tif (!sawHexDigit) {\n\t\t\t\tif (compressedAt !== void 0) return void 0;\n\t\t\t\tcompressedAt = filled;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif (index >= text.length || filled + 2 > 16) return void 0;\n\t\t\tbytes[filled++] = group >> 8;\n\t\t\tbytes[filled++] = group & 255;\n\t\t\tsawHexDigit = false;\n\t\t\tgroup = 0;\n\t\t\tgroupDigits = 0;\n\t\t\tcontinue;\n\t\t}\n\t\tif (ch === \".\" && filled + 4 <= 16) {\n\t\t\tconst tail = readIpv4Tail(text.slice(tokenStart));\n\t\t\tif (tail !== void 0) {\n\t\t\t\ttail.octets.forEach((octet, offset) => {\n\t\t\t\t\tbytes[filled + offset] = octet;\n\t\t\t\t});\n\t\t\t\tfilled += 4;\n\t\t\t\tsawHexDigit = false;\n\t\t\t\tbits = tail.bits ?? bits;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif (ch === \"/\") {\n\t\t\tconst prefix = readBits(text.slice(index));\n\t\t\tif (prefix !== void 0) {\n\t\t\t\tbits = prefix;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn;\n\t}\n\tif (sawHexDigit) {\n\t\tif (filled + 2 > 16) return void 0;\n\t\tbytes[filled++] = group >> 8;\n\t\tbytes[filled++] = group & 255;\n\t}\n\tif (compressedAt !== void 0) {\n\t\tif (filled === 16) return void 0;\n\t\tconst shifted = bytes.slice(compressedAt, filled);\n\t\tbytes.fill(0, compressedAt, filled);\n\t\tbytes.splice(16 - shifted.length, shifted.length, ...shifted);\n\t\tfilled = 16;\n\t}\n\treturn filled === 16 ? {\n\t\tbytes,\n\t\tbits\n\t} : void 0;\n}\nfunction printIpv4({ bytes, bits }) {\n\tconst address = bytes.join(\".\");\n\treturn bits === 32 ? address : `${address}/${bits}`;\n}\n/**\n* PostgreSQL's `inet_net_ntop_ipv6`: the first longest run of two or more zero groups is written\n* `::`, and an address whose first five groups are zero followed by `ffff`, or whose first six are\n* zero, ends in dotted IPv4.\n*/\nfunction printIpv6({ bytes, bits }) {\n\tconst groups = Array.from({ length: 8 }, (_, i) => (bytes[2 * i] ?? 0) << 8 | (bytes[2 * i + 1] ?? 0));\n\tconst zeroRun = longestZeroRun(groups);\n\tlet text = \"\";\n\tfor (let i = 0; i < 8; i++) {\n\t\tif (zeroRun !== void 0 && i >= zeroRun.start && i < zeroRun.start + zeroRun.length) {\n\t\t\tif (i === zeroRun.start) text += \":\";\n\t\t\tcontinue;\n\t\t}\n\t\tif (i !== 0) text += \":\";\n\t\tif (i === 6 && zeroRun?.start === 0 && (zeroRun.length === 6 || zeroRun.length === 5 && groups[5] === 65535)) {\n\t\t\ttext += bytes.slice(12).join(\".\");\n\t\t\tbreak;\n\t\t}\n\t\ttext += (groups[i] ?? 0).toString(16);\n\t}\n\tif (zeroRun !== void 0 && zeroRun.start + zeroRun.length === 8) text += \":\";\n\treturn bits === 128 ? text : `${text}/${bits}`;\n}\nfunction longestZeroRun(groups) {\n\tlet best;\n\tlet current;\n\tfor (const [i, group] of groups.entries()) {\n\t\tif (group === 0) {\n\t\t\tcurrent = current === void 0 ? {\n\t\t\t\tstart: i,\n\t\t\t\tlength: 1\n\t\t\t} : {\n\t\t\t\t...current,\n\t\t\t\tlength: current.length + 1\n\t\t\t};\n\t\t\tcontinue;\n\t\t}\n\t\tif (current !== void 0 && (best === void 0 || current.length > best.length)) best = current;\n\t\tcurrent = void 0;\n\t}\n\tif (current !== void 0 && (best === void 0 || current.length > best.length)) best = current;\n\treturn best !== void 0 && best.length >= 2 ? best : void 0;\n}\n//#endregion\n//#region src/core/data-types.ts\nconst written = (text) => ({\n\ttext,\n\twritten: true\n});\nconst catalog = (text) => ({\n\ttext,\n\tcatalog: true\n});\nconst writtenAndCatalog = (text) => ({\n\ttext,\n\twritten: true,\n\tcatalog: true\n});\nconst claimsOnly = (text) => ({ text });\nconst anyJson = (json) => json;\nconst readString = (id) => (json) => readJsonString(id, json);\n/** A parameter a type declares as a whole number, or undefined when the column does not set it. */\nfunction integerParam(params, name) {\n\tconst value = params[name];\n\treturn typeof value === \"number\" ? value : void 0;\n}\n/**\n* Numeric text in the form PostgreSQL *prints*, which is narrower than the form it accepts.\n*\n* `numeric` reads `+123`, `.5`, `1.`, `1e5`, `0x1f`, `1_000`, `007`, `-0` and whitespace-padded input, but prints every one of them in a single normalised form — `123`, `0.5`, `1`, `100000`, `31`, `1000`, `7`, `0`. A value in any other form is one the database never returns: `1e5` reads back as `100000`.\n*\n* `NaN`, `Infinity` and `-Infinity` are genuine `numeric` values, which PostgreSQL emits into JSON as strings.\n*/\nconst STORED_NUMERIC_TEXT = /^(?:(?!-0(?:\\.0+)?$)-?(?:0|[1-9]\\d*)(?:\\.\\d+)?|NaN|-?Infinity)$/;\n/**\n* Whether stored numeric text is a value `numeric(precision, scale)` stores without rounding: a whole number of units of 10^-scale, and at most `precision` digits once counted in those units. A negative scale rounds to tens, hundreds and so on, and a scale above the precision allows only values below 1. NaN fits; an infinity does not.\n*/\nfunction fitsNumeric(text, precision, scale) {\n\tif (text === \"NaN\") return true;\n\tif (text.endsWith(\"Infinity\")) return false;\n\tconst [whole = \"\", fraction = \"\"] = text.replace(/^-/, \"\").split(\".\");\n\tconst significantFraction = withoutTrailing(fraction, \"0\");\n\tconst digits = `${whole}${significantFraction}`.replace(/^0+/, \"\");\n\tif (digits === \"\") return true;\n\tconst shift = scale - significantFraction.length;\n\tif (shift >= 0) return digits.length + shift <= precision;\n\tconst units = withoutTrailing(digits, \"0\");\n\tif (digits.length - units.length < -shift) return false;\n\treturn digits.length + shift <= precision;\n}\nconst readNumeric = (json, params) => {\n\tif (typeof json !== \"string\" || !STORED_NUMERIC_TEXT.test(json)) {\n\t\tconst printed = typeof json === \"string\" && isDecimalText(json) ? printedDecimalText(json) : void 0;\n\t\treturn refuseJsonValue(\"pg/numeric\", printed === void 0 ? \"a decimal string\" : `\"${printed}\", as PostgreSQL writes this value`, json);\n\t}\n\tconst precision = integerParam(params, \"precision\");\n\tif (precision === void 0) return json;\n\tconst scale = integerParam(params, \"scale\") ?? 0;\n\tif (!fitsNumeric(json, precision, scale)) return refuseJsonValue(\"pg/numeric\", `a decimal string that numeric(${precision}, ${scale}) stores without rounding`, json);\n\treturn json;\n};\n/** A value of `numeric(precision, scale)` is written as PostgreSQL prints it: with exactly `scale` fraction digits, none for a scale of 0 or below. */\nconst spellNumeric = (json, params) => {\n\tif (integerParam(params, \"precision\") === void 0 || typeof json !== \"string\" || json === \"NaN\") return json;\n\tconst scale = integerParam(params, \"scale\") ?? 0;\n\tconst [whole = \"\", fraction = \"\"] = json.split(\".\");\n\treturn scale <= 0 ? whole : `${whole}.${fraction.slice(0, scale).padEnd(scale, \"0\")}`;\n};\nconst readFloat4 = (json) => {\n\tconst value = readJsonFloat(\"pg/float4\", json);\n\tif (Number.isFinite(value) && !fitsFloat4(value)) return refuseJsonValue(\"pg/float4\", `a number float4 holds, at most ${FLOAT4_MAX} in magnitude and not so small that it becomes 0, or the text NaN, Infinity or -Infinity`, json);\n\treturn json;\n};\n/** A `character` value is spelled without the spaces that pad it to its length, as the application reads it. */\nconst spellCharacter = (json) => typeof json === \"string\" ? withoutTrailing(json, \" \") : json;\n/** A `character` column holds its length in characters, and one with no length is `character(1)`; the spaces that pad a value to its length do not count. */\nconst readCharacter = (json, params) => {\n\tconst length = integerParam(params, \"length\") ?? 1;\n\tif (!fitsCharacterLength(readJsonString(\"pg/char\", json), length, true)) return refuseJsonValue(\"pg/char\", `a string of at most ${counted(length, \"character\")} before any trailing spaces`, json);\n\treturn json;\n};\n/** A `character varying` column with a length holds at most that many characters. */\nconst readCharacterVarying = (json, params) => {\n\tconst length = integerParam(params, \"length\");\n\tconst text = readJsonString(\"pg/varchar\", json);\n\tif (length !== void 0 && !fitsCharacterLength(text, length, false)) return refuseJsonValue(\"pg/varchar\", `a string of at most ${counted(length, \"character\")}`, json);\n\treturn json;\n};\nconst BIT_STRING = /^[01]*$/;\n/** A `bit` column holds exactly its length in bits, and one with no length is `bit(1)`. */\nconst readBit = (json, params) => {\n\tconst length = integerParam(params, \"length\") ?? 1;\n\tif (readJsonMatching(\"pg/bit\", json, BIT_STRING, \"a string of 0 and 1 digits\").length !== length) return refuseJsonValue(\"pg/bit\", `a string of exactly ${counted(length, \"bit\")}`, json);\n\treturn json;\n};\n/** A `bit varying` column with a length holds at most that many bits. */\nconst readBitVarying = (json, params) => {\n\tconst length = integerParam(params, \"length\");\n\tconst bits = readJsonMatching(\"pg/varbit\", json, BIT_STRING, \"a string of 0 and 1 digits\");\n\tif (length !== void 0 && bits.length > length) return refuseJsonValue(\"pg/varbit\", `a string of at most ${counted(length, \"bit\")}`, json);\n\treturn json;\n};\n/** A `text[]` may hold NULL elements, which PostgreSQL writes as JSON `null`. */\nconst readTextArray = (json) => {\n\tconst expected = \"an array of strings and nulls\";\n\tif (!Array.isArray(json)) return refuseJsonValue(\"pg/text-array\", expected, json);\n\tfor (const entry of json) if (entry !== null && typeof entry !== \"string\") return refuseJsonValue(\"pg/text-array\", expected, entry);\n\treturn json;\n};\n/** Reads a UUID in any spelling PostgreSQL reads; `spellUuid` gives it the one it stores. */\nconst readUuid = (json) => typeof json === \"string\" && storedUuid(json) !== void 0 ? json : refuseJsonValue(\"pg/uuid\", \"a UUID in a spelling PostgreSQL reads: 32 hexadecimal digits in either case, with or without a hyphen after any group of four, optionally in braces\", json);\n/** A UUID is stored as PostgreSQL prints it: lower case, hyphenated 8-4-4-4-12. */\nconst spellUuid = (json) => typeof json === \"string\" ? storedUuid(json) ?? json : json;\n/** Reads an address in any spelling PostgreSQL reads; `spellInet` gives it the one it stores. */\nconst readInet = (json) => typeof json === \"string\" && storedInet(json) !== void 0 ? json : refuseJsonValue(\"pg/inet\", \"an IP address or network in a spelling PostgreSQL reads, as in 10.0.0.1 or 2001:db8::/32\", json);\n/** An address is stored as PostgreSQL prints it. */\nconst spellInet = (json) => typeof json === \"string\" ? storedInet(json) ?? json : json;\n/** The fraction digits of a second the date, time and interval types hold when a column sets no precision: microseconds. */\nconst MICROSECOND_DIGITS = 6;\n/**\n* A value with more fraction digits of a second than the column's `precision`, or than microseconds when it sets none, which PostgreSQL would round, is refused rather than rounded. Trailing zeros of a fraction are not digits of the value.\n*/\nfunction refuseFinerThanPrecision(typeId, json, fraction, params) {\n\tconst precision = integerParam(params, \"precision\") ?? MICROSECOND_DIGITS;\n\tif (withoutTrailing(fraction ?? \"\", \"0\").length <= precision) return json;\n\treturn refuseJsonValue(typeId, `a value with at most ${counted(precision, \"fraction digit\")} of a second, which precision ${precision} holds without rounding`, json);\n}\n/** What `storedText` writes for `text`, or why it cannot read it. */\nfunction storedSpelling(storedText, text) {\n\ttry {\n\t\treturn { stored: storedText(text) };\n\t} catch (error) {\n\t\tif (isStructuredError(error) && error.code === \"CONTRACT.CAST_REFUSED\") return { reason: error.message };\n\t\tthrow error;\n\t}\n}\n/**\n* Reads a value of a date or time type (ADR 254, \"Date and time types\") in any spelling its tag reads, and refuses other text. A value with more fraction digits than the column's precision is refused rather than rounded. `spellStoredDateTime` gives the value its one stored spelling.\n*/\nconst readStoredDateTime = (typeId, storedText, description, fraction) => (json, params) => {\n\tif (typeof json !== \"string\") return refuseJsonValue(typeId, description, json);\n\tconst spelling = storedSpelling(storedText, json);\n\tif (\"reason\" in spelling) return refuseJsonValue(typeId, `${description}: ${spelling.reason}`, json);\n\trefuseFinerThanPrecision(typeId, json, fraction.exec(spelling.stored)?.[1], params);\n\treturn json;\n};\n/** The stored spelling of a date or time value: what `storedText` writes. */\nconst spellStoredDateTime = (storedText) => (json) => {\n\tif (typeof json !== \"string\") return json;\n\tconst spelling = storedSpelling(storedText, json);\n\treturn \"stored\" in spelling ? spelling.stored : json;\n};\nconst SECONDS_FRACTION = /:\\d{2}\\.(\\d+)/;\nconst INTERVAL_SECONDS_FRACTION = /\\d\\.(\\d+)S$/;\n/** The precision and scale of `numeric`. PostgreSQL 15 and later take a negative scale and one above the precision. */\nconst pgNumericParams = type({\n\t\"precision?\": \"number.integer >= 1 & number.integer <= 1000\",\n\t\"scale?\": \"number.integer >= -1000 & number.integer <= 1000\"\n}).narrow((params, ctx) => params.scale === void 0 || params.precision !== void 0 || ctx.reject({\n\tpath: [\"scale\"],\n\tmessage: \"scale requires a precision\"\n}));\n/** The length of `char` and `varchar`. */\nconst pgCharacterLengthParams = type({ \"length?\": \"number.integer >= 1 & number.integer <= 10485760\" });\n/** The length of `bit` and `bit varying`. */\nconst pgBitLengthParams = type({ \"length?\": \"number.integer >= 1 & number.integer <= 83886080\" });\n/** The fractional-second precision of the time, timestamp and interval types. */\nconst pgPrecisionParams = type({ \"precision?\": \"number.integer >= 0 & number.integer <= 6\" });\n/** PostgreSQL stores microseconds whether a precision of 6 is declared or omitted, so an omitted precision is 6. */\nconst withDefaultPrecision = (params) => params.precision === void 0 ? {\n\t...params,\n\tprecision: 6\n} : params;\n/** PostgreSQL's catalog prints a precision only where one was declared. */\nconst precisionAsWritten = (params) => params;\nconst pgEnumParams = type({ typeName: \"string > 0\" });\n/** A type with no parameters that is written and reported by its own name. */\nconst namedOnly = (id, name, read, casts = {}) => sqlDataType(id, {\n\ttexts: [writtenAndCatalog(name)],\n\tread,\n\tcasts\n});\nconst withDefaultLength = (params) => params.length === void 0 ? {\n\t...params,\n\tlength: 1\n} : params;\nconst pgText = namedOnly(\"pg/text\", \"text\", readString(\"pg/text\"));\nconst pgTextArray = sqlDataType(\"pg/text-array\", { read: readTextArray });\n/** The enum's `typeName`: its name in `public` or with no schema, its schema-qualified name elsewhere. */\nfunction qualifiedEnumName(reported) {\n\tconst name = reported.name ?? \"\";\n\treturn reported.schema === void 0 || reported.schema === \"public\" ? name : `${reported.schema}.${name}`;\n}\nconst pgEnum = sqlDataType(\"pg/enum\", {\n\tparams: pgEnumParams,\n\tread: readString(\"pg/enum\"),\n\tclaimsKind: \"enum\",\n\trender: ({ typeName }) => {\n\t\tconst dot = typeName.indexOf(\".\");\n\t\treturn dot === -1 ? quoteIdentifier(typeName) : `${quoteIdentifier(typeName.slice(0, dot))}.${quoteIdentifier(typeName.slice(dot + 1))}`;\n\t},\n\tfromReported: (reported) => ({ typeName: qualifiedEnumName(reported) })\n});\nconst pgInt2 = sqlDataType(\"pg/int2\", {\n\ttexts: [written(\"int2\"), catalog(\"smallint\")],\n\tread: (json) => readJsonInteger(\"pg/int2\", json, {\n\t\tmin: -32768,\n\t\tmax: 32767\n\t})\n});\nconst pgBool = sqlDataType(\"pg/bool\", {\n\ttexts: [written(\"bool\"), catalog(\"boolean\")],\n\tread: (json) => readJsonBoolean(\"pg/bool\", json)\n});\nconst pgJson = namedOnly(\"pg/json\", \"json\", anyJson);\nconst pgTsquery = namedOnly(\"pg/tsquery\", \"tsquery\", readString(\"pg/tsquery\"));\nconst pgInt4 = sqlDataType(\"pg/int4\", {\n\ttexts: [\n\t\twritten(\"int4\"),\n\t\tcatalog(\"integer\"),\n\t\tclaimsOnly(\"int\")\n\t],\n\tread: (json) => readJsonInteger(\"pg/int4\", json, INT32_RANGE),\n\tcasts: { [pgInt2.id]: castUnchanged }\n});\nconst pgInt8 = sqlDataType(\"pg/int8\", {\n\ttexts: [written(\"int8\"), catalog(\"bigint\")],\n\tread: (json) => {\n\t\treadJsonIntegerText(\"pg/int8\", json, INT64_RANGE);\n\t\treturn json;\n\t},\n\tcasts: {\n\t\t[pgInt2.id]: asNumeralText,\n\t\t[pgInt4.id]: asNumeralText\n\t}\n});\nconst pgNumeric = sqlDataType(\"pg/numeric\", {\n\tparams: pgNumericParams,\n\ttexts: [\n\t\twrittenAndCatalog(\"numeric\"),\n\t\twritten(\"numeric({precision})\"),\n\t\twrittenAndCatalog(\"numeric({precision},{scale})\"),\n\t\tclaimsOnly(\"decimal\"),\n\t\tclaimsOnly(\"decimal({precision})\"),\n\t\tclaimsOnly(\"decimal({precision},{scale})\")\n\t],\n\tread: readNumeric,\n\tspell: spellNumeric,\n\tequalityKey: decimalTextEqualityKey,\n\tnormalize: (params) => params.precision !== void 0 && params.scale === void 0 ? {\n\t\t...params,\n\t\tscale: 0\n\t} : params,\n\tcasts: {\n\t\t[pgInt2.id]: asNumeralText,\n\t\t[pgInt4.id]: asNumeralText,\n\t\t[pgInt8.id]: castUnchanged\n\t}\n});\n/** `float4` stores a single-precision float, so a magnitude past about 3.4e38, or one it would round to 0, does not fit. */\nconst asFloat4 = (value) => {\n\tconst converted = asFloat(value);\n\tif (typeof converted !== \"number\" || fitsFloat4(converted)) return converted;\n\tthrow structuredError(\"CONTRACT.CAST_REFUSED\", `${converted} is out of range: float4 holds a nonzero magnitude from about 1.4e-45 to 3.4e38.`, {\n\t\twhy: \"float4 stores a single-precision float, which overflows past about 3.4e38 and rounds a magnitude below about 1.4e-45 to 0.\",\n\t\tfix: \"Use a number float4 holds, or a float8 or numeric column.\"\n\t});\n};\nconst floatCastsOf = (cast) => ({\n\t[pgInt2.id]: cast,\n\t[pgInt4.id]: cast,\n\t[pgInt8.id]: cast,\n\t[pgNumeric.id]: cast\n});\nconst pgFloat4 = sqlDataType(\"pg/float4\", {\n\ttexts: [written(\"float4\"), catalog(\"real\")],\n\tread: readFloat4,\n\tcasts: floatCastsOf(asFloat4)\n});\nconst pgFloat8 = sqlDataType(\"pg/float8\", {\n\ttexts: [\n\t\twritten(\"float8\"),\n\t\tcatalog(\"double precision\"),\n\t\tclaimsOnly(\"float\")\n\t],\n\tread: (json) => {\n\t\treadJsonFloat(\"pg/float8\", json);\n\t\treturn json;\n\t},\n\tcasts: floatCastsOf(asFloat)\n});\nconst pgJsonb = namedOnly(\"pg/jsonb\", \"jsonb\", anyJson, { [pgJson.id]: castUnchanged });\n/** Why no enum can use a codec of `pg/jsonb`, which every such codec gives as its `enumRefusal`. */\nconst pgJsonbEnumRefusal = \"A CHECK lists a string member as SQL text, which PostgreSQL reads as the JSON text of a document rather than as a string, and a number member as a number, which PostgreSQL cannot compare with jsonb, so no CHECK can compare a value with the members. No enum can use a jsonb codec; use a text enum instead.\";\nconst fromText = { [pgText.id]: castUnchanged };\nconst pgChar = sqlDataType(\"pg/char\", {\n\tparams: pgCharacterLengthParams,\n\ttexts: [\n\t\twritten(\"character\"),\n\t\twrittenAndCatalog(\"character({length})\"),\n\t\tclaimsOnly(\"char\"),\n\t\tclaimsOnly(\"char({length})\")\n\t],\n\tread: readCharacter,\n\tspell: spellCharacter,\n\tnormalize: withDefaultLength,\n\tcasts: fromText\n});\nconst pgVarchar = sqlDataType(\"pg/varchar\", {\n\tparams: pgCharacterLengthParams,\n\ttexts: [\n\t\twrittenAndCatalog(\"character varying\"),\n\t\twrittenAndCatalog(\"character varying({length})\"),\n\t\tclaimsOnly(\"varchar\"),\n\t\tclaimsOnly(\"varchar({length})\")\n\t],\n\tread: readCharacterVarying,\n\tcasts: fromText\n});\n/** Text in any form PostgreSQL reads as a UUID, written the way PostgreSQL writes it, so the contract holds the value the database reports. */\nconst asUuid = (value) => {\n\tif (typeof value !== \"string\") return refuseWrongShape(value, \"text\");\n\tconst uuid = storedUuid(value);\n\tif (uuid !== void 0) return uuid;\n\tthrow structuredError(\"CONTRACT.CAST_REFUSED\", `${JSON.stringify(value)} is not a UUID: PostgreSQL reads 32 hexadecimal digits, with a hyphen after any group of four and optionally in braces.`, {\n\t\twhy: \"A uuid column takes only text PostgreSQL reads as a UUID.\",\n\t\tfix: \"Write a UUID such as a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11.\"\n\t});\n};\nconst pgUuid = sqlDataType(\"pg/uuid\", {\n\ttexts: [writtenAndCatalog(\"uuid\")],\n\tread: readUuid,\n\tspell: spellUuid,\n\tcasts: { [pgText.id]: asUuid }\n});\nconst pgBit = sqlDataType(\"pg/bit\", {\n\tparams: pgBitLengthParams,\n\ttexts: [written(\"bit\"), writtenAndCatalog(\"bit({length})\")],\n\tread: readBit,\n\tnormalize: withDefaultLength,\n\tcasts: fromText\n});\nconst pgVarbit = sqlDataType(\"pg/varbit\", {\n\tparams: pgBitLengthParams,\n\ttexts: [\n\t\twrittenAndCatalog(\"bit varying\"),\n\t\twrittenAndCatalog(\"bit varying({length})\"),\n\t\tclaimsOnly(\"varbit\"),\n\t\tclaimsOnly(\"varbit({length})\")\n\t],\n\tread: readBitVarying,\n\tcasts: fromText\n});\nconst pgXml = namedOnly(\"pg/xml\", \"xml\", readString(\"pg/xml\"), fromText);\nconst OID_RANGE = {\n\tmin: 0,\n\tmax: 4294967295\n};\n/** Whether a number is one `oid` stores: a whole number from 0 to 4294967295. */\nfunction isPgOid(value) {\n\treturn Number.isInteger(value) && value >= OID_RANGE.min && value <= OID_RANGE.max;\n}\n/** An integer as `oid` stores it: an unsigned 32-bit number, refused outside that range. */\nconst asOid = (value) => {\n\tif (typeof value !== \"number\" && typeof value !== \"string\") return refuseWrongShape(value, \"a number or digit text\");\n\tconst converted = Number(value);\n\tif (isPgOid(converted)) return converted;\n\tthrow structuredError(\"CONTRACT.CAST_REFUSED\", `${value} is out of range: oid holds a whole number from ${OID_RANGE.min} to ${OID_RANGE.max}.`, {\n\t\twhy: \"oid stores an unsigned 32-bit integer.\",\n\t\tfix: `Use a whole number from ${OID_RANGE.min} to ${OID_RANGE.max}.`\n\t});\n};\nconst pgOid = sqlDataType(\"pg/oid\", {\n\ttexts: [writtenAndCatalog(\"oid\")],\n\tread: (json) => readJsonInteger(\"pg/oid\", json, OID_RANGE),\n\tcasts: {\n\t\t[pgInt2.id]: asOid,\n\t\t[pgInt4.id]: asOid,\n\t\t[pgInt8.id]: asOid\n\t}\n});\n/** `money` holds a signed 64-bit count of cents. */\nconst MONEY_CENTS_RANGE = INT64_RANGE;\nconst MONEY_RANGE_TEXT = \"from -92233720368547758.08 to 92233720368547758.07\";\n/** The cents a decimal numeral holds, or undefined when it has a third significant fraction digit or lies outside `money`'s range. */\nfunction moneyCents(text) {\n\tif (!isDecimalText(text)) return void 0;\n\tconst negative = text.startsWith(\"-\");\n\tconst [whole = \"\", fraction = \"\"] = text.replace(/^-/, \"\").split(\".\");\n\tif (withoutTrailing(fraction, \"0\").length > 2) return void 0;\n\tconst magnitude = BigInt(`${whole}${fraction.slice(0, 2).padEnd(2, \"0\")}`);\n\tconst cents = negative ? -magnitude : magnitude;\n\treturn cents >= MONEY_CENTS_RANGE.min && cents <= MONEY_CENTS_RANGE.max ? cents : void 0;\n}\n/** Cents as `money`'s stored form: digit text with exactly two fraction digits. */\nfunction moneyTextOfCents(cents) {\n\tconst digits = (cents < 0n ? -cents : cents).toString().padStart(3, \"0\");\n\treturn `${cents < 0n ? \"-\" : \"\"}${digits.slice(0, -2)}.${digits.slice(-2)}`;\n}\n/** A decimal numeral as `money`'s stored form, or undefined when `money` does not hold it exactly. */\nfunction pgMoneyStoredText(text) {\n\tconst cents = moneyCents(text);\n\treturn cents === void 0 ? void 0 : moneyTextOfCents(cents);\n}\nconst readMoney = (json) => typeof json === \"string\" && moneyCents(json) !== void 0 ? json : refuseJsonValue(\"pg/money\", `a decimal string with at most two fraction digits, ${MONEY_RANGE_TEXT}`, json);\nconst spellMoney = (json) => typeof json === \"string\" ? pgMoneyStoredText(json) ?? json : json;\n/** A number as `money` stores it, refused rather than rounded when it has a third fraction digit, and refused outside `money`'s range. */\nconst asMoney = (value) => {\n\tconst text = typeof value === \"number\" ? asNumeralText(value) : value;\n\tif (typeof text !== \"string\") return refuseWrongShape(value, \"a number or numeral text\");\n\tconst stored = pgMoneyStoredText(text);\n\tif (stored !== void 0) return stored;\n\tthrow structuredError(\"CONTRACT.CAST_REFUSED\", `${text} is not a money value: money holds a number with at most two fraction digits, ${MONEY_RANGE_TEXT}.`, {\n\t\twhy: \"money stores a whole number of cents, and PostgreSQL rounds a value with a third fraction digit.\",\n\t\tfix: \"Write the amount with at most two fraction digits.\"\n\t});\n};\nconst pgMoney = sqlDataType(\"pg/money\", {\n\ttexts: [writtenAndCatalog(\"money\")],\n\tread: readMoney,\n\tspell: spellMoney,\n\tcasts: {\n\t\t[pgInt2.id]: asMoney,\n\t\t[pgInt4.id]: asMoney,\n\t\t[pgInt8.id]: asMoney,\n\t\t[pgNumeric.id]: asMoney\n\t}\n});\nconst INFINITIES = /* @__PURE__ */ new Set([\"infinity\", \"-infinity\"]);\n/**\n* The stored form of a date or time type (ADR 254), from ISO 8601 or the text PostgreSQL prints.\n* `infinity` and `-infinity` are values of the types that hold them.\n*/\nfunction postgresDateTime(options, holdsInfinity) {\n\treturn (text) => holdsInfinity && INFINITIES.has(text) ? text : dateTimeStoredText(isoYearText(text), options, text);\n}\n/**\n* Each range is what PostgreSQL and every codec of the type hold: PostgreSQL starts at 4714-11-24\n* BC, and the `Temporal` and `Date` codecs end at +275760-09-13.\n*/\nconst pgDateStoredText = postgresDateTime({\n\tshape: \"date\",\n\townerId: \"pg/date\",\n\trange: {\n\t\tearliest: \"-004713-11-24\",\n\t\tlatest: \"+275760-09-13\"\n\t}\n}, true);\nconst pgTimeStoredText = postgresDateTime({\n\tshape: \"time\",\n\townerId: \"pg/time\"\n}, false);\nconst pgTimetzStoredText = postgresDateTime({\n\tshape: \"timeWithOffset\",\n\townerId: \"pg/timetz\",\n\tmaxOffsetHours: 15\n}, false);\nconst pgTimestampStoredText = postgresDateTime({\n\tshape: \"dateTime\",\n\townerId: \"pg/timestamp\",\n\trange: {\n\t\tearliest: \"-004713-11-24T00:00:00\",\n\t\tlatest: \"+275760-09-13T23:59:59.999999\"\n\t}\n}, true);\nconst pgTimestamptzStoredText = postgresDateTime({\n\tshape: \"instant\",\n\townerId: \"pg/timestamptz\",\n\trange: {\n\t\tearliest: \"-004713-11-24T00:00:00Z\",\n\t\tlatest: \"+275760-09-13T00:00:00Z\"\n\t}\n}, true);\n/** A cast that takes text and gives the value `read` makes of it. */\nconst castFromText = (read) => (value) => typeof value === \"string\" ? read(value) : refuseWrongShape(value, \"text\");\nconst pgTimetz = sqlDataType(\"pg/timetz\", {\n\tread: readStoredDateTime(\"pg/timetz\", pgTimetzStoredText, \"a time of day with its UTC offset, as in \\\"12:34:56+02:00\\\" or \\\"12:34:56Z\\\"\", SECONDS_FRACTION),\n\tspell: spellStoredDateTime(pgTimetzStoredText),\n\tparams: pgPrecisionParams,\n\tnormalize: withDefaultPrecision,\n\tcatalogParams: precisionAsWritten,\n\ttexts: [\n\t\twritten(\"timetz\"),\n\t\twritten(\"timetz({precision})\"),\n\t\tcatalog(\"time with time zone\"),\n\t\tcatalog(\"time({precision}) with time zone\")\n\t]\n});\nconst pgInterval = sqlDataType(\"pg/interval\", {\n\tread: readStoredDateTime(\"pg/interval\", pgIntervalStoredText, \"an ISO 8601 duration, as in \\\"P1Y2M3DT4H5M6.5S\\\"\", INTERVAL_SECONDS_FRACTION),\n\tspell: spellStoredDateTime(pgIntervalStoredText),\n\tequalityKey: intervalEqualityKey,\n\tparams: pgPrecisionParams,\n\tnormalize: withDefaultPrecision,\n\tcatalogParams: precisionAsWritten,\n\ttexts: [writtenAndCatalog(\"interval\"), writtenAndCatalog(\"interval({precision})\")]\n});\nconst pgBytea = sqlDataType(\"pg/bytea\", {\n\tread: (json) => readPgByteaJson(\"pg/bytea\", json),\n\tspell: spellPgByteaJson,\n\ttexts: [writtenAndCatalog(\"bytea\")]\n});\n/** Text PostgreSQL reads as an IP address, written the way PostgreSQL writes it, so the contract holds the value the database reports. */\nfunction pgInetStoredText(text) {\n\tconst inet = storedInet(text);\n\tif (inet !== void 0) return inet;\n\tthrow structuredError(\"CONTRACT.CAST_REFUSED\", `${JSON.stringify(text)} is not an IP address: PostgreSQL reads an IPv4 address in decimal octets or an IPv6 address in hexadecimal groups, either optionally followed by / and a prefix length.`, {\n\t\twhy: \"An inet column takes only text PostgreSQL reads as an IP address.\",\n\t\tfix: \"Write an address such as 192.168.0.1 or 2001:db8::1/64.\"\n\t});\n}\nconst pgInet = sqlDataType(\"pg/inet\", {\n\tread: readInet,\n\tspell: spellInet,\n\ttexts: [writtenAndCatalog(\"inet\")],\n\tcasts: { [pgText.id]: castFromText(pgInetStoredText) }\n});\nconst pgDate = sqlDataType(\"pg/date\", {\n\tread: readStoredDateTime(\"pg/date\", pgDateStoredText, \"a date, as in \\\"2024-01-01\\\", or infinity or -infinity\", SECONDS_FRACTION),\n\tspell: spellStoredDateTime(pgDateStoredText),\n\ttexts: [writtenAndCatalog(\"date\")]\n});\nconst pgTime = sqlDataType(\"pg/time\", {\n\tread: readStoredDateTime(\"pg/time\", pgTimeStoredText, \"a time of day, as in \\\"12:34:56\\\"\", SECONDS_FRACTION),\n\tspell: spellStoredDateTime(pgTimeStoredText),\n\tparams: pgPrecisionParams,\n\tnormalize: withDefaultPrecision,\n\tcatalogParams: precisionAsWritten,\n\ttexts: [\n\t\twritten(\"time\"),\n\t\twritten(\"time({precision})\"),\n\t\tcatalog(\"time without time zone\"),\n\t\tcatalog(\"time({precision}) without time zone\")\n\t]\n});\nconst pgTimestamp = sqlDataType(\"pg/timestamp\", {\n\tread: readStoredDateTime(\"pg/timestamp\", pgTimestampStoredText, \"a date and time of day, as in \\\"2024-01-01T12:34:56\\\", or infinity or -infinity\", SECONDS_FRACTION),\n\tspell: spellStoredDateTime(pgTimestampStoredText),\n\tparams: pgPrecisionParams,\n\tnormalize: withDefaultPrecision,\n\tcatalogParams: precisionAsWritten,\n\ttexts: [\n\t\twritten(\"timestamp\"),\n\t\twritten(\"timestamp({precision})\"),\n\t\tcatalog(\"timestamp without time zone\"),\n\t\tcatalog(\"timestamp({precision}) without time zone\")\n\t]\n});\nconst pgTimestamptz = sqlDataType(\"pg/timestamptz\", {\n\tread: readStoredDateTime(\"pg/timestamptz\", pgTimestamptzStoredText, \"an instant in UTC, as in \\\"2024-01-01T00:00:00Z\\\", or infinity or -infinity\", SECONDS_FRACTION),\n\tspell: spellStoredDateTime(pgTimestamptzStoredText),\n\tparams: pgPrecisionParams,\n\tnormalize: withDefaultPrecision,\n\tcatalogParams: precisionAsWritten,\n\ttexts: [\n\t\twritten(\"timestamptz\"),\n\t\twritten(\"timestamptz({precision})\"),\n\t\tcatalog(\"timestamp with time zone\"),\n\t\tcatalog(\"timestamp({precision}) with time zone\")\n\t]\n});\n/** Every data type this target registers. */\nconst postgresDataTypes = [\n\tpgText,\n\tpgTextArray,\n\tpgEnum,\n\tpgInt2,\n\tpgBool,\n\tpgJson,\n\tpgTsquery,\n\tpgInt4,\n\tpgInt8,\n\tpgNumeric,\n\tpgFloat4,\n\tpgFloat8,\n\tpgJsonb,\n\tpgChar,\n\tpgVarchar,\n\tpgUuid,\n\tpgInet,\n\tpgBit,\n\tpgVarbit,\n\tpgXml,\n\tpgOid,\n\tpgMoney,\n\tpgTimetz,\n\tpgInterval,\n\tpgBytea,\n\tpgDate,\n\tpgTime,\n\tpgTimestamp,\n\tpgTimestamptz,\n\tsqlRawDataType\n];\n/** A lookup of the data types this target registers. */\nfunction createPostgresBuiltinDataTypeLookup() {\n\treturn assembleDataTypes([{\n\t\tid: \"postgres\",\n\t\tdataTypes: postgresDataTypes\n\t}]).lookup;\n}\n/** Postgres's text data types: `text`, `character(n)` and `character varying(n)`. */\nconst postgresTextDataTypes = [\n\tpgText.id,\n\tpgChar.id,\n\tpgVarchar.id\n];\n//#endregion\nexport { intervalFieldsOf as $, pgText as A, pgTsquery as B, pgJsonbEnumRefusal as C, pgNumericParams as D, pgNumeric as E, pgTimestampStoredText as F, postgresDataTypes as G, pgVarbit as H, pgTimestamptz as I, isoYearText as J, postgresTextDataTypes as K, pgTimestamptzStoredText as L, pgTime as M, pgTimeStoredText as N, pgOid as O, pgTimestamp as P, formatIsoDuration as Q, pgTimetz as R, pgJsonb as S, pgMoneyStoredText as T, pgVarchar as U, pgUuid as V, pgXml as W, BYTEA_TEXT as X, postgresYearText as Y, MICROS_PER_SECOND as Z, pgInt2 as _, pgBitLengthParams as a, pgInterval as b, pgChar as c, pgDateStoredText as d, microsFromFraction as et, pgEnum as f, pgInet as g, pgFloat8 as h, pgBit as i, postgresIntervalFields as it, pgTextArray as j, pgPrecisionParams as k, pgCharacterLengthParams as l, pgFloat4 as m, isPgOid as n, pgByteaHexText as nt, pgBool as o, pgEnumParams as p, qualifiedEnumName as q, moneyTextOfCents as r, pgIntervalStoredText as rt, pgBytea as s, createPostgresBuiltinDataTypeLookup as t, pgByteaFromHexText as tt, pgDate as u, pgInt4 as v, pgMoney as w, pgJson as x, pgInt8 as y, pgTimetzStoredText as z };\n\n//# sourceMappingURL=data-types-DgYRia-g.mjs.map"],"mappings":";;;;;;;;;;;;;AAaA,SAAS,oBAAoB,MAAM,QAAQ,aAAa;CACvD,MAAM,cAAc,cAAc,gBAAgB,MAAM,GAAG,IAAI;CAC/D,OAAO,YAAY,UAAU,UAAU,CAAC,GAAG,WAAW,CAAC,CAAC,UAAU;AACnE;;AAEA,MAAM,aAAa;;;;AAInB,SAAS,WAAW,MAAM;CACzB,IAAI,CAAC,WAAW,KAAK,IAAI,GAAG,OAAO,KAAK;CACxC,MAAM,MAAM,KAAK,QAAQ,UAAU,EAAE,CAAC,CAAC,YAAY;CACnD,OAAO,GAAG,IAAI,MAAM,GAAG,CAAC,EAAE,GAAG,IAAI,MAAM,GAAG,EAAE,EAAE,GAAG,IAAI,MAAM,IAAI,EAAE,EAAE,GAAG,IAAI,MAAM,IAAI,EAAE,EAAE,GAAG,IAAI,MAAM,EAAE;AACxG;;AAEA,MAAM,aAAa;;AAEnB,SAAS,WAAW,OAAO;CAC1B,MAAM,SAAS,KAAK,OAAO,KAAK;CAChC,OAAO,OAAO,SAAS,MAAM,MAAM,UAAU,KAAK,WAAW;AAC9D;AACA,MAAM,oBAAoB;;;;;;;;;;;;;;AAc1B,MAAM,sBAAsB,UAAU,aAAa;CAClD,IAAI,aAAa,IAAI,OAAO;CAC5B,MAAM,OAAO,OAAO,SAAS,MAAM,GAAG,CAAC,CAAC,CAAC,OAAO,GAAG,GAAG,CAAC;CACvD,MAAM,OAAO,SAAS,MAAM,CAAC,CAAC,CAAC,QAAQ,OAAO,EAAE;CAChD,IAAI,SAAS,IAAI,O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DataTypes } from "./data-types-DWfwErIu-DF85cgmu.mjs";
2
- import { W as requireTemporal } from "./codecs-Bzj3M0Q3-C2oFSIGs.mjs";
1
+ import { et as postgresDataTypes } from "./data-types-DgYRia-g-B_BFlAC3.mjs";
2
+ import { W as requireTemporal } from "./codecs-B2C2j2Un-Dc-aGN1s.mjs";
3
3
  import * as nowValues from "@prisma/orm-framework/type-implementations/now";
4
4
  import { DATE_STRING_NOW_GENERATOR_ID, INSTANT_NOW_GENERATOR_ID, PLAIN_DATE_NOW_GENERATOR_ID, PLAIN_DATE_TIME_NOW_GENERATOR_ID, PLAIN_TIME_NOW_GENERATOR_ID, TIME_STRING_NOW_GENERATOR_ID, fractionDigitsOf } from "@prisma/orm-framework/type-implementations/now";
5
- //#region ../../../3-targets/postgres/1-target/dist/date-time-now-generators-BORO1_nc.mjs
5
+ //#region ../../../3-targets/postgres/1-target/dist/date-time-now-generators-DylEKfQR.mjs
6
6
  const postgresTargetDescriptorMetaRuntime = {
7
7
  kind: "target",
8
8
  familyId: "sql",
@@ -11,10 +11,7 @@ const postgresTargetDescriptorMetaRuntime = {
11
11
  version: "0.0.1",
12
12
  capabilities: {},
13
13
  dataTypes: postgresDataTypes,
14
- sessionSettings: {
15
- DateStyle: "ISO",
16
- lc_monetary: "C"
17
- }
14
+ sessionSettings: { DateStyle: "ISO" }
18
15
  };
19
16
  const TIMESTAMP_STRING_NOW_GENERATOR_ID = "timestampStringNow";
20
17
  const TIMESTAMPTZ_STRING_NOW_GENERATOR_ID = "timestamptzStringNow";
@@ -95,4 +92,4 @@ function postgresNowGeneratorControlDescriptors() {
95
92
  //#endregion
96
93
  export { postgresNowGenerators as a, postgresNowGeneratorControlDescriptors as i, TIMESTAMP_STRING_NOW_GENERATOR_ID as n, postgresTargetDescriptorMetaRuntime as o, TIMETZ_NOW_GENERATOR_ID as r, TIMESTAMPTZ_STRING_NOW_GENERATOR_ID as t };
97
94
 
98
- //# sourceMappingURL=date-time-now-generators-BORO1_nc-BdCe3ppq.mjs.map
95
+ //# sourceMappingURL=date-time-now-generators-DylEKfQR-CYbXE0y0.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"date-time-now-generators-DylEKfQR-CYbXE0y0.mjs","names":[],"sources":["../../../../3-targets/postgres/1-target/dist/date-time-now-generators-DylEKfQR.mjs"],"sourcesContent":["import { G as postgresDataTypes } from \"./data-types-DgYRia-g.mjs\";\nimport { W as requireTemporal } from \"./codecs-B2C2j2Un.mjs\";\nimport * as nowValues from \"@internal/type-implementations/now\";\nimport { DATE_STRING_NOW_GENERATOR_ID, INSTANT_NOW_GENERATOR_ID, PLAIN_DATE_NOW_GENERATOR_ID, PLAIN_DATE_TIME_NOW_GENERATOR_ID, PLAIN_TIME_NOW_GENERATOR_ID, TIME_STRING_NOW_GENERATOR_ID, fractionDigitsOf } from \"@internal/type-implementations/now\";\nconst postgresTargetDescriptorMetaRuntime = {\n\tkind: \"target\",\n\tfamilyId: \"sql\",\n\ttargetId: \"postgres\",\n\tid: \"postgres\",\n\tversion: \"0.0.1\",\n\tcapabilities: {},\n\tdataTypes: postgresDataTypes,\n\tsessionSettings: { DateStyle: \"ISO\" }\n};\n//#endregion\n//#region src/core/date-time-now-generators.ts\nconst TIMESTAMP_STRING_NOW_GENERATOR_ID = \"timestampStringNow\";\nconst TIMESTAMPTZ_STRING_NOW_GENERATOR_ID = \"timestamptzStringNow\";\nconst TIMETZ_NOW_GENERATOR_ID = \"timetzNow\";\nconst UTC_OFFSET = \"Z\";\nconst MAX_TIME_PRECISION = 6;\nfunction precisionOf(params) {\n\treturn fractionDigitsOf(params, MAX_TIME_PRECISION);\n}\nfunction instantNow(params) {\n\treturn nowValues.instantNow(requireTemporal({ generatorId: INSTANT_NOW_GENERATOR_ID }), precisionOf(params));\n}\nfunction plainDateTimeNow(params) {\n\treturn nowValues.plainDateTimeNow(requireTemporal({ generatorId: PLAIN_DATE_TIME_NOW_GENERATOR_ID }), precisionOf(params));\n}\nfunction plainDateNow() {\n\treturn nowValues.plainDateNow(requireTemporal({ generatorId: PLAIN_DATE_NOW_GENERATOR_ID }));\n}\nfunction plainTimeNow(params) {\n\treturn nowValues.plainTimeNow(requireTemporal({ generatorId: PLAIN_TIME_NOW_GENERATOR_ID }), precisionOf(params));\n}\nfunction timestampStringNow(params) {\n\treturn nowValues.dateTimeStringNow(precisionOf(params), \"trimmed\");\n}\nfunction timestamptzStringNow(params) {\n\treturn nowValues.instantStringNow(precisionOf(params), \"trimmed\");\n}\nfunction timeStringNow(params) {\n\treturn nowValues.timeStringNow(precisionOf(params), \"trimmed\");\n}\nfunction timetzNow(params) {\n\treturn `${timeStringNow(params)}${UTC_OFFSET}`;\n}\n/**\n* The Postgres \"now\" generators, one per date and time codec except `pg/timestamptz-date@1` and `pg/timestamp-date@1`, which use the SQL family's `timestampNow`. All read the clock through `Date.now()` and write UTC. The time and timestamp generators round down to their `precision` param, so the column stores the value as written. The string generators are named after the codec they serve and write the codec's stored form (ADR 254, \"Date and time types\") in UTC, with milliseconds and no trailing zeros in the fraction.\n*/\nconst postgresNowGenerators = [\n\t{\n\t\tid: INSTANT_NOW_GENERATOR_ID,\n\t\tgenerate: instantNow\n\t},\n\t{\n\t\tid: PLAIN_DATE_TIME_NOW_GENERATOR_ID,\n\t\tgenerate: plainDateTimeNow\n\t},\n\t{\n\t\tid: PLAIN_DATE_NOW_GENERATOR_ID,\n\t\tgenerate: plainDateNow\n\t},\n\t{\n\t\tid: PLAIN_TIME_NOW_GENERATOR_ID,\n\t\tgenerate: plainTimeNow\n\t},\n\t{\n\t\tid: TIMESTAMP_STRING_NOW_GENERATOR_ID,\n\t\tgenerate: timestampStringNow\n\t},\n\t{\n\t\tid: TIMESTAMPTZ_STRING_NOW_GENERATOR_ID,\n\t\tgenerate: timestamptzStringNow\n\t},\n\t{\n\t\tid: DATE_STRING_NOW_GENERATOR_ID,\n\t\tgenerate: nowValues.dateStringNow\n\t},\n\t{\n\t\tid: TIME_STRING_NOW_GENERATOR_ID,\n\t\tgenerate: timeStringNow\n\t},\n\t{\n\t\tid: TIMETZ_NOW_GENERATOR_ID,\n\t\tgenerate: timetzNow\n\t}\n];\nfunction postgresNowGeneratorControlDescriptors() {\n\treturn postgresNowGenerators.map(({ id }) => ({ id }));\n}\n//#endregion\nexport { postgresNowGenerators as a, postgresNowGeneratorControlDescriptors as i, TIMESTAMP_STRING_NOW_GENERATOR_ID as n, postgresTargetDescriptorMetaRuntime as o, TIMETZ_NOW_GENERATOR_ID as r, TIMESTAMPTZ_STRING_NOW_GENERATOR_ID as t };\n\n//# sourceMappingURL=date-time-now-generators-DylEKfQR.mjs.map"],"mappings":";;;;;AAIA,MAAM,sCAAsC;CAC3C,MAAM;CACN,UAAU;CACV,UAAU;CACV,IAAI;CACJ,SAAS;CACT,cAAc,CAAC;CACf,WAAW;CACX,iBAAiB,EAAE,WAAW,MAAM;AACrC;AAGA,MAAM,oCAAoC;AAC1C,MAAM,sCAAsC;AAC5C,MAAM,0BAA0B;AAChC,MAAM,aAAa;AACnB,MAAM,qBAAqB;AAC3B,SAAS,YAAY,QAAQ;CAC5B,OAAO,iBAAiB,QAAQ,kBAAkB;AACnD;AACA,SAAS,WAAW,QAAQ;CAC3B,OAAO,UAAU,WAAW,gBAAgB,EAAE,aAAa,yBAAyB,CAAC,GAAG,YAAY,MAAM,CAAC;AAC5G;AACA,SAAS,iBAAiB,QAAQ;CACjC,OAAO,UAAU,iBAAiB,gBAAgB,EAAE,aAAa,iCAAiC,CAAC,GAAG,YAAY,MAAM,CAAC;AAC1H;AACA,SAAS,eAAe;CACvB,OAAO,UAAU,aAAa,gBAAgB,EAAE,aAAa,4BAA4B,CAAC,CAAC;AAC5F;AACA,SAAS,aAAa,QAAQ;CAC7B,OAAO,UAAU,aAAa,gBAAgB,EAAE,aAAa,4BAA4B,CAAC,GAAG,YAAY,MAAM,CAAC;AACjH;AACA,SAAS,mBAAmB,QAAQ;CACnC,OAAO,UAAU,kBAAkB,YAAY,MAAM,GAAG,SAAS;AAClE;AACA,SAAS,qBAAqB,QAAQ;CACrC,OAAO,UAAU,iBAAiB,YAAY,MAAM,GAAG,SAAS;AACjE;AACA,SAAS,cAAc,QAAQ;CAC9B,OAAO,UAAU,cAAc,YAAY,MAAM,GAAG,SAAS;AAC9D;AACA,SAAS,UAAU,QAAQ;CAC1B,OAAO,GAAG,cAAc,MAAM,IAAI;AACnC;;;;AAIA,MAAM,wBAAwB;CAC7B;EACC,IAAI;EACJ,UAAU;CACX;CACA;EACC,IAAI;EACJ,UAAU;CACX;CACA;EACC,IAAI;EACJ,UAAU;CACX;CACA;EACC,IAAI;EACJ,UAAU;CACX;CACA;EACC,IAAI;EACJ,UAAU;CACX;CACA;EACC,IAAI;EACJ,UAAU;CACX;CACA;EACC,IAAI;EACJ,UAAU,UAAU;CACrB;CACA;EACC,IAAI;EACJ,UAAU;CACX;CACA;EACC,IAAI;EACJ,UAAU;CACX;AACD;AACA,SAAS,yCAAyC;CACjD,OAAO,sBAAsB,KAAK,EAAE,UAAU,EAAE,GAAG,EAAE;AACtD"}
@@ -1,11 +1,11 @@
1
1
  import { T as PG_TEXT_CODEC_ID, n as PG_BOOL_CODEC_ID } from "./codec-ids-2htdtS66-CJPMZv1t.mjs";
2
- import { d as PostgresTableSource, v as postgresCreateNamespace } from "./postgres-schema-zd_p5Lg2-BdJlG7Cg.mjs";
2
+ import { d as PostgresTableSource, v as postgresCreateNamespace } from "./postgres-schema-CIfq1AjC-CGiMjtSX.mjs";
3
3
  import { _ as PostgresDropIndex, a as PostgresAlterIndexRename, b as PostgresDropType, c as PostgresAlterTable, d as PostgresCreatePolicy, f as PostgresCreateSchema, g as PostgresDisableRowLevelSecurity, i as DropDefaultAction, l as PostgresAlterTableSetSchema, m as PostgresCreateType, n as AddConstraintAction, o as PostgresAlterPolicyRename, p as PostgresCreateTable, r as AlterColumnTypeAction, s as PostgresAlterSchemaRename, t as AddColumnAction, u as PostgresCreateIndex, v as PostgresDropPolicy, y as PostgresDropSchema } from "./nodes-G8VTh4PM-DNvIhHag.mjs";
4
4
  import { opaqueSql } from "@prisma/orm-family-sql/relational-core/ast";
5
5
  import { UNBOUND_NAMESPACE_ID } from "@prisma/orm-framework/components/ir";
6
6
  import { ifDefined } from "@prisma/orm-framework/utils/defined";
7
7
  import { cfExpr, cfTable, exprSelect } from "@prisma/orm-family-sql/relational-core/contract-free";
8
- //#region ../../../3-targets/postgres/1-target/dist/ddl-DCQLfg18.mjs
8
+ //#region ../../../3-targets/postgres/1-target/dist/ddl-Cy_8QS23.mjs
9
9
  /**
10
10
  * `to_regclass($1)` with the qualified table name bound as a text parameter.
11
11
  * Thin vocabulary wrapper over the core `cfExpr.fn` helper — the target
@@ -651,4 +651,4 @@ function dropSchema(options) {
651
651
  //#endregion
652
652
  export { extensionInSchemaAst as A, schemaExistsAst as B, disableRowLevelSecurity as C, dropSchema as D, dropPolicy as E, noNullValuesAst as F, tableIsEmptyAst as G, sequenceNameAvailableAst as H, relationKindAst as I, unboundTableMovedAst as J, tablePrimaryKeyAst as K, rlsEnabledAst as L, indexExistsAst as M, nativeEnumTypeExistsAst as N, dropType as O, nativeEnumValueExistsAst as P, rlsPolicyDefinitionAst as R, createType as S, dropIndex as T, sequenceValuesFitAst as U, schemaHoldsNoObjectsAst as V, tableExistsAst as W, constraintExistsAst as _, alterPolicyRename as a, createSchema as b, alterTableSetSchema as c, columnExistsAst as d, columnNullabilityAst as f, constraintDefinitionAst as g, columnTypeOidAst as h, alterIndexRename as i, indexDefinitionAst as j, extensionExistsAst as k, columnDefaultAst as l, columnTypeAst as m, addConstraintAction as n, alterSchemaRename as o, columnOwnsSequenceAst as p, toRegclass as q, alterColumnTypeAction as r, alterTable as s, addColumnAction as t, columnDefaultSequenceAst as u, createIndex as v, dropDefaultAction as w, createTable as x, createPolicy as y, rlsPolicyExistsAst as z };
653
653
 
654
- //# sourceMappingURL=ddl-DCQLfg18-BgWGYC7L.mjs.map
654
+ //# sourceMappingURL=ddl-Cy_8QS23-D9EVihrI.mjs.map