@prisma/orm-target-postgres 8.0.0-rc.18-dev.30 → 8.0.0-rc.18-dev.32

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 (199) hide show
  1. package/dist/{adapter-vfsQ80l6.d.mts → adapter-BAR5FNt5.d.mts} +2 -2
  2. package/dist/{adapter-vfsQ80l6.d.mts.map → adapter-BAR5FNt5.d.mts.map} +1 -1
  3. package/dist/{adapter-BkfuSVLm-DmjWB5c9.mjs → adapter-BLduF4bR-LPL0DsEe.mjs} +6 -6
  4. package/dist/{adapter-BkfuSVLm-DmjWB5c9.mjs.map → adapter-BLduF4bR-LPL0DsEe.mjs.map} +1 -1
  5. package/dist/adapter.d.mts +6 -6
  6. package/dist/adapter.mjs +6 -6
  7. package/dist/adapter__adapter.d.mts +1 -1
  8. package/dist/adapter__adapter.mjs +2 -2
  9. package/dist/adapter__column-types.d.mts +2 -2
  10. package/dist/adapter__column-types.mjs +2 -2
  11. package/dist/adapter__control.d.mts +2 -2
  12. package/dist/adapter__control.mjs +4 -4
  13. package/dist/adapter__control.mjs.map +1 -1
  14. package/dist/adapter__runtime.mjs +4 -4
  15. package/dist/adapter__runtime.mjs.map +1 -1
  16. package/dist/adapter__sql-renderer.mjs +1 -1
  17. package/dist/adapter__types.d.mts +2 -2
  18. package/dist/{aggregates-DHIDeR2f.mjs → aggregates-C7KEByGU.mjs} +2 -2
  19. package/dist/{aggregates-DHIDeR2f.mjs.map → aggregates-C7KEByGU.mjs.map} +1 -1
  20. package/dist/{authoring-DtjMn8TZ-sv84Cdw_.mjs → authoring-CArQ0ZSb-BXqyKMTu.mjs} +6 -6
  21. package/dist/{authoring-DtjMn8TZ-sv84Cdw_.mjs.map → authoring-CArQ0ZSb-BXqyKMTu.mjs.map} +1 -1
  22. package/dist/{autoincrement-widths-1v9UfTSw-NFaqRGCV.mjs → autoincrement-widths-BeDdQuMU-CFDf2ypW.mjs} +3 -3
  23. package/dist/{autoincrement-widths-1v9UfTSw-NFaqRGCV.mjs.map → autoincrement-widths-BeDdQuMU-CFDf2ypW.mjs.map} +1 -1
  24. package/dist/{codec-ids-Cb0yO-IS--e0P2rfI.mjs → codec-ids-BMhEpFwv-BLIC4g3Y.mjs} +4 -4
  25. package/dist/codec-ids-BMhEpFwv-BLIC4g3Y.mjs.map +1 -0
  26. package/dist/codec-ids-C2HurNhZ.d.mts +1 -0
  27. package/dist/{codec-ids-jWpRZjZo-BKIzyx-J.d.mts → codec-ids-C6II64Wy-CCU5G6CU.d.mts} +4 -4
  28. package/dist/{codec-ids-jWpRZjZo-BKIzyx-J.d.mts.map → codec-ids-C6II64Wy-CCU5G6CU.d.mts.map} +1 -1
  29. package/dist/{codec-registry-T79ktJL4-B9_zlIhI.mjs → codec-registry-C8ymMRsH-B48NRqXL.mjs} +4 -4
  30. package/dist/{codec-registry-T79ktJL4-B9_zlIhI.mjs.map → codec-registry-C8ymMRsH-B48NRqXL.mjs.map} +1 -1
  31. package/dist/{codec-type-map-ulrHZjWI-DMkq8jy2.d.mts → codec-type-map-DiWClTtc-CUWQbVA0.d.mts} +4 -3
  32. package/dist/{codec-type-map-ulrHZjWI-DMkq8jy2.d.mts.map → codec-type-map-DiWClTtc-CUWQbVA0.d.mts.map} +1 -1
  33. package/dist/codec-types-CXL3_pbl.d.mts +2 -0
  34. package/dist/{codec-types-DX-72F9v-CORaQjWv.d.mts → codec-types-yRnVORmz-C5oISm2L.d.mts} +4 -4
  35. package/dist/{codec-types-DX-72F9v-CORaQjWv.d.mts.map → codec-types-yRnVORmz-C5oISm2L.d.mts.map} +1 -1
  36. package/dist/{codecs-UZ1NEbvk-CMnI6Ti0.mjs → codecs-DNjF5kIh-BkybYk_D.mjs} +23 -6
  37. package/dist/codecs-DNjF5kIh-BkybYk_D.mjs.map +1 -0
  38. package/dist/{codecs-ByHL7NZ0-B_903MRF.d.mts → codecs-DgslvOOU-eZpfm_fU.d.mts} +3 -3
  39. package/dist/{codecs-ByHL7NZ0-B_903MRF.d.mts.map → codecs-DgslvOOU-eZpfm_fU.d.mts.map} +1 -1
  40. package/dist/{codecs-J4SSxTf4.d.mts → codecs-DydRFxCt.d.mts} +2 -2
  41. package/dist/{codecs-J4SSxTf4.d.mts.map → codecs-DydRFxCt.d.mts.map} +1 -1
  42. package/dist/{column-types-Bbc3IVA7.mjs → column-types-5nUQfQFq.mjs} +10 -3
  43. package/dist/column-types-5nUQfQFq.mjs.map +1 -0
  44. package/dist/{column-types-COdejX_b.d.mts → column-types-D4U5xGjS.d.mts} +10 -4
  45. package/dist/column-types-D4U5xGjS.d.mts.map +1 -0
  46. package/dist/{contract-contributions-CQqafzSC-DrMFSSO4.mjs → contract-contributions-CRCEK7Dx-Dx2tYlyZ.mjs} +9 -9
  47. package/dist/{contract-contributions-CQqafzSC-DrMFSSO4.mjs.map → contract-contributions-CRCEK7Dx-Dx2tYlyZ.mjs.map} +1 -1
  48. package/dist/{contract-free-Kwm74Hg9.mjs → contract-free-CN4hGOBI.mjs} +4 -4
  49. package/dist/{contract-free-Kwm74Hg9.mjs.map → contract-free-CN4hGOBI.mjs.map} +1 -1
  50. package/dist/{control-vBNwKZ7Q.d.mts → control-R69irs57.d.mts} +2 -2
  51. package/dist/{control-vBNwKZ7Q.d.mts.map → control-R69irs57.d.mts.map} +1 -1
  52. package/dist/{control-policy-BHjZnca1-DUWuKmdJ.mjs → control-policy-B10lrdMt-CHUsNZat.mjs} +11 -9
  53. package/dist/control-policy-B10lrdMt-CHUsNZat.mjs.map +1 -0
  54. package/dist/{data-type-entries-CqnLlCkK-uN0WjREd.mjs → data-type-entries-EroSxeag-Ba-K5snn.mjs} +3 -3
  55. package/dist/{data-type-entries-CqnLlCkK-uN0WjREd.mjs.map → data-type-entries-EroSxeag-Ba-K5snn.mjs.map} +1 -1
  56. package/dist/{data-types-Cs-LkJBw-CJN57Y5M.mjs → data-types-DhBM9bIL-CVDQGAGw.mjs} +5 -4
  57. package/dist/data-types-DhBM9bIL-CVDQGAGw.mjs.map +1 -0
  58. package/dist/{ddl-2L13tYjC-enYPQJnG.mjs → ddl-BrIDeRCe-ojLIc02T.mjs} +4 -4
  59. package/dist/{ddl-2L13tYjC-enYPQJnG.mjs.map → ddl-BrIDeRCe-ojLIc02T.mjs.map} +1 -1
  60. package/dist/{descriptor-meta-C0yUaYLH-CUtYbbZp.mjs → descriptor-meta-9qCQPbrI-DFEFmwBv.mjs} +8 -8
  61. package/dist/{descriptor-meta-C0yUaYLH-CUtYbbZp.mjs.map → descriptor-meta-9qCQPbrI-DFEFmwBv.mjs.map} +1 -1
  62. package/dist/{descriptor-meta-DDh7-s6c-D6qC3SDx.mjs → descriptor-meta-Cb7RcgEQ-CwwQ6QE8.mjs} +4 -4
  63. package/dist/{descriptor-meta-DDh7-s6c-D6qC3SDx.mjs.map → descriptor-meta-Cb7RcgEQ-CwwQ6QE8.mjs.map} +1 -1
  64. package/dist/{descriptor-meta-runtime-C1AjrKaP-CYer0qt7.mjs → descriptor-meta-runtime-C56qYaOz-hfOBfhVz.mjs} +3 -3
  65. package/dist/{descriptor-meta-runtime-C1AjrKaP-CYer0qt7.mjs.map → descriptor-meta-runtime-C56qYaOz-hfOBfhVz.mjs.map} +1 -1
  66. package/dist/{diff-database-schema-DyCIRT80-C1zMCmRx.mjs → diff-database-schema-CmWmomi3-PoUser3Y.mjs} +5 -5
  67. package/dist/{diff-database-schema-DyCIRT80-C1zMCmRx.mjs.map → diff-database-schema-CmWmomi3-PoUser3Y.mjs.map} +1 -1
  68. package/dist/{full-text-CSMAiOYz.mjs → full-text-8PmilGkW.mjs} +2 -2
  69. package/dist/{full-text-CSMAiOYz.mjs.map → full-text-8PmilGkW.mjs.map} +1 -1
  70. package/dist/{full-text-OAJrtCtv.d.mts → full-text-OgRqBeQu.d.mts} +3 -3
  71. package/dist/{full-text-OAJrtCtv.d.mts.map → full-text-OgRqBeQu.d.mts.map} +1 -1
  72. package/dist/{full-text-collection-method-BIqQH9XN-CkW2x4u2.d.mts → full-text-collection-method-DWbpg-Ep-DDs6t_BB.d.mts} +4 -4
  73. package/dist/full-text-collection-method-DWbpg-Ep-DDs6t_BB.d.mts.map +1 -0
  74. package/dist/{full-text-parsers-CrMjTR2n-CHDNR_vE.mjs → full-text-parsers-CFFxiOrp-BmiwdZ21.mjs} +3 -3
  75. package/dist/{full-text-parsers-CrMjTR2n-CHDNR_vE.mjs.map → full-text-parsers-CFFxiOrp-BmiwdZ21.mjs.map} +1 -1
  76. package/dist/{indexes-BX4ewz3l-CPzMc0-t.d.mts → indexes-CvNRG0Xu-C8OjTa0S.d.mts} +3 -3
  77. package/dist/{indexes-BX4ewz3l-CPzMc0-t.d.mts.map → indexes-CvNRG0Xu-C8OjTa0S.d.mts.map} +1 -1
  78. package/dist/{issue-planner-BT5rqDNx.d.mts → issue-planner-CAxHx3OH.d.mts} +2 -2
  79. package/dist/{issue-planner-BT5rqDNx.d.mts.map → issue-planner-CAxHx3OH.d.mts.map} +1 -1
  80. package/dist/migration-CbOh59ZJ.mjs.map +1 -1
  81. package/dist/{migration-BWZskUHP.d.mts → migration-DbAx8skF.d.mts} +3 -3
  82. package/dist/{migration-BWZskUHP.d.mts.map → migration-DbAx8skF.d.mts.map} +1 -1
  83. package/dist/{native-type-normalizer-a1XJSlk6.mjs → native-type-normalizer-eX3KyHPA.mjs} +2 -2
  84. package/dist/{native-type-normalizer-a1XJSlk6.mjs.map → native-type-normalizer-eX3KyHPA.mjs.map} +1 -1
  85. package/dist/{op-factory-call-No9Z2tdw-Lap8xvVy.mjs → op-factory-call-35RJQ1ME-BFxUakDe.mjs} +10 -6
  86. package/dist/op-factory-call-35RJQ1ME-BFxUakDe.mjs.map +1 -0
  87. package/dist/op-factory-call-BRHT7R1s.d.mts +1 -0
  88. package/dist/{op-factory-call-DILl2zlf-BakJezLJ.d.mts → op-factory-call-DghB0ndC-9CDIMLTM.d.mts} +7 -4
  89. package/dist/op-factory-call-DghB0ndC-9CDIMLTM.d.mts.map +1 -0
  90. package/dist/operation-types-DeGKVV0-.d.mts +1 -0
  91. package/dist/{operation-types-CK6URXeD-BsCK-mcK.d.mts → operation-types-RXpAlUCj-9eC1wX5R.d.mts} +4 -4
  92. package/dist/{operation-types-CK6URXeD-BsCK-mcK.d.mts.map → operation-types-RXpAlUCj-9eC1wX5R.d.mts.map} +1 -1
  93. package/dist/{pack-C-rgdVoH.d.mts → pack-XQaG7LAo.d.mts} +5 -5
  94. package/dist/{pack-C-rgdVoH.d.mts.map → pack-XQaG7LAo.d.mts.map} +1 -1
  95. package/dist/{planner-Bo92I5YX.d.mts → planner-DVwj2GUS.d.mts} +2 -2
  96. package/dist/{planner-Bo92I5YX.d.mts.map → planner-DVwj2GUS.d.mts.map} +1 -1
  97. package/dist/{planner-ddl-builders-B8PhQZ2T-D1KBJxcS.mjs → planner-ddl-builders-DujKuwcn-C0VYScBe.mjs} +3 -3
  98. package/dist/{planner-ddl-builders-B8PhQZ2T-D1KBJxcS.mjs.map → planner-ddl-builders-DujKuwcn-C0VYScBe.mjs.map} +1 -1
  99. package/dist/{planner-identity-values-BnxSwhlS-CzyBeK0a.mjs → planner-identity-values-Vbk2SkMl-8xDzcTpo.mjs} +3 -3
  100. package/dist/{planner-identity-values-BnxSwhlS-CzyBeK0a.mjs.map → planner-identity-values-Vbk2SkMl-8xDzcTpo.mjs.map} +1 -1
  101. package/dist/{planner-BIOXTf-E-CFs_l_0M.mjs → planner-olDFDn2v-Bh0e16rN.mjs} +9 -9
  102. package/dist/{planner-BIOXTf-E-CFs_l_0M.mjs.map → planner-olDFDn2v-Bh0e16rN.mjs.map} +1 -1
  103. package/dist/{planner-produced-postgres-migration-Y7bMLPPc-tZeIl3hP.mjs → planner-produced-postgres-migration-BVsfYarL-C9BdUXeX.mjs} +4 -4
  104. package/dist/{planner-produced-postgres-migration-Y7bMLPPc-tZeIl3hP.mjs.map → planner-produced-postgres-migration-BVsfYarL-C9BdUXeX.mjs.map} +1 -1
  105. package/dist/planner-produced-postgres-migration-BtS3h1R7.d.mts +1 -0
  106. package/dist/{planner-produced-postgres-migration-C8uYGzUj-DRmZY4_u.d.mts → planner-produced-postgres-migration-DNnxAU-R-CSPyb9D_.d.mts} +3 -3
  107. package/dist/planner-produced-postgres-migration-DNnxAU-R-CSPyb9D_.d.mts.map +1 -0
  108. package/dist/{planner-sql-checks-pkURMYMz-2QAIKyW-.mjs → planner-sql-checks-BluJBZmQ-ClqyqOhD.mjs} +19 -7
  109. package/dist/planner-sql-checks-BluJBZmQ-ClqyqOhD.mjs.map +1 -0
  110. package/dist/{planner-sql-checks-CWOmxltY-CoWF8Eq0.d.mts → planner-sql-checks-Ed-WGtge-Clnvg-zp.d.mts} +4 -4
  111. package/dist/planner-sql-checks-Ed-WGtge-Clnvg-zp.d.mts.map +1 -0
  112. package/dist/planner-sql-checks-K_EFdkCw.d.mts +1 -0
  113. package/dist/{postgres-codec-traits-D3muwxMS-OwnBG0Mz.mjs → postgres-codec-traits-DM3rkou1-AyAbELmA.mjs} +3 -3
  114. package/dist/{postgres-codec-traits-D3muwxMS-OwnBG0Mz.mjs.map → postgres-codec-traits-DM3rkou1-AyAbELmA.mjs.map} +1 -1
  115. package/dist/{postgres-contract-view-Ctg2ire_-smoqnU-u.mjs → postgres-contract-view-xyfQHZ29-HOrk9af1.mjs} +8 -8
  116. package/dist/{postgres-contract-view-Ctg2ire_-smoqnU-u.mjs.map → postgres-contract-view-xyfQHZ29-HOrk9af1.mjs.map} +1 -1
  117. package/dist/{postgres-migration-HW4fCGNb-CLkytGtG.d.mts → postgres-migration-8BDn8Wja-D9tHQGWg.d.mts} +5 -3
  118. package/dist/{postgres-migration-HW4fCGNb-CLkytGtG.d.mts.map → postgres-migration-8BDn8Wja-D9tHQGWg.d.mts.map} +1 -1
  119. package/dist/{postgres-migration-BdFXT6xg-BPApPGX9.mjs → postgres-migration-fZk6Dmud-BjRqdGdm.mjs} +11 -10
  120. package/dist/{postgres-migration-BdFXT6xg-BPApPGX9.mjs.map → postgres-migration-fZk6Dmud-BjRqdGdm.mjs.map} +1 -1
  121. package/dist/{postgres-schema-DyUXtYIT-vb-RxpRN.mjs → postgres-schema-C6w1rzOF-bzaF5PIS.mjs} +3 -3
  122. package/dist/{postgres-schema-DyUXtYIT-vb-RxpRN.mjs.map → postgres-schema-C6w1rzOF-bzaF5PIS.mjs.map} +1 -1
  123. package/dist/{prisma7-binding-BXyT6bKE.d.mts → prisma7-binding-ChOxdhPc.d.mts} +5 -5
  124. package/dist/{prisma7-binding-BXyT6bKE.d.mts.map → prisma7-binding-ChOxdhPc.d.mts.map} +1 -1
  125. package/dist/{prisma7-binding-DWeHpJrg.mjs → prisma7-binding-Dfb3osBy.mjs} +7 -7
  126. package/dist/{prisma7-binding-DWeHpJrg.mjs.map → prisma7-binding-Dfb3osBy.mjs.map} +1 -1
  127. package/dist/{render-ops-MeXLgeOa-nL4PdJzz.mjs → render-ops-DkBRaS0Z-BtGb58iC.mjs} +3 -3
  128. package/dist/{render-ops-MeXLgeOa-nL4PdJzz.mjs.map → render-ops-DkBRaS0Z-BtGb58iC.mjs.map} +1 -1
  129. package/dist/{resolve-ddl-schema-IdPEiyLX-BZGpy8Wz.mjs → resolve-ddl-schema-D3VNPMSm-DVuswLch.mjs} +3 -3
  130. package/dist/{resolve-ddl-schema-IdPEiyLX-BZGpy8Wz.mjs.map → resolve-ddl-schema-D3VNPMSm-DVuswLch.mjs.map} +1 -1
  131. package/dist/{runtime-BeTyqpCH.d.mts → runtime-ONyptFAN.d.mts} +2 -2
  132. package/dist/{runtime-BeTyqpCH.d.mts.map → runtime-ONyptFAN.d.mts.map} +1 -1
  133. package/dist/{sql-renderer-CD5aYQos-1hGCWT0S.mjs → sql-renderer-BdWJPa5F-DqJ5nUgt.mjs} +9 -6
  134. package/dist/sql-renderer-BdWJPa5F-DqJ5nUgt.mjs.map +1 -0
  135. package/dist/target.d.mts +24 -24
  136. package/dist/target.mjs +29 -29
  137. package/dist/target__aggregates.mjs +1 -1
  138. package/dist/target__codec-ids.d.mts +3 -3
  139. package/dist/target__codec-ids.mjs +2 -2
  140. package/dist/target__codec-types.d.mts +3 -3
  141. package/dist/target__codecs.d.mts +2 -2
  142. package/dist/target__codecs.mjs +2 -2
  143. package/dist/target__contract-free.mjs +3 -3
  144. package/dist/target__control.mjs +11 -11
  145. package/dist/target__control.mjs.map +1 -1
  146. package/dist/target__data-types.mjs +2 -2
  147. package/dist/target__diff-database-schema.mjs +1 -1
  148. package/dist/target__full-text-index-authoring.mjs +1 -1
  149. package/dist/target__full-text.d.mts +3 -3
  150. package/dist/target__full-text.mjs +2 -2
  151. package/dist/target__issue-planner.d.mts +1 -1
  152. package/dist/target__issue-planner.mjs +1 -1
  153. package/dist/target__migration.d.mts +2 -2
  154. package/dist/target__migration.mjs +2 -2
  155. package/dist/target__native-type-normalizer.mjs +1 -1
  156. package/dist/target__op-factory-call.d.mts +2 -2
  157. package/dist/target__op-factory-call.mjs +1 -1
  158. package/dist/target__operation-types.d.mts +2 -2
  159. package/dist/target__pack.d.mts +2 -2
  160. package/dist/target__pack.mjs +1 -1
  161. package/dist/target__planner-ddl-builders.mjs +1 -1
  162. package/dist/target__planner-identity-values.mjs +1 -1
  163. package/dist/target__planner-produced-postgres-migration.d.mts +2 -2
  164. package/dist/target__planner-produced-postgres-migration.mjs +1 -1
  165. package/dist/target__planner-sql-checks.d.mts +2 -2
  166. package/dist/target__planner-sql-checks.mjs +1 -1
  167. package/dist/target__planner.d.mts +1 -1
  168. package/dist/target__planner.mjs +2 -2
  169. package/dist/target__prisma7-binding.d.mts +1 -1
  170. package/dist/target__prisma7-binding.mjs +1 -1
  171. package/dist/target__render-ops.mjs +1 -1
  172. package/dist/target__runtime.d.mts +2 -2
  173. package/dist/target__runtime.mjs +6 -6
  174. package/dist/target__runtime.mjs.map +1 -1
  175. package/dist/target__schema-ir-annotations.mjs +1 -1
  176. package/dist/target__types.mjs +1 -1
  177. package/dist/{type-constructors-BEZJxWcZ-Co2GJw1M.mjs → type-constructors-DQ7O80xT-DdTGyTSt.mjs} +7 -7
  178. package/dist/{type-constructors-BEZJxWcZ-Co2GJw1M.mjs.map → type-constructors-DQ7O80xT-DdTGyTSt.mjs.map} +1 -1
  179. package/dist/{types-CJNq93fb.d.mts → types-BA-ghQ5q.d.mts} +1 -1
  180. package/package.json +9 -9
  181. package/dist/codec-ids-BQRXOwQR.d.mts +0 -1
  182. package/dist/codec-ids-Cb0yO-IS--e0P2rfI.mjs.map +0 -1
  183. package/dist/codec-types-DoxsMXp7.d.mts +0 -2
  184. package/dist/codecs-UZ1NEbvk-CMnI6Ti0.mjs.map +0 -1
  185. package/dist/column-types-Bbc3IVA7.mjs.map +0 -1
  186. package/dist/column-types-COdejX_b.d.mts.map +0 -1
  187. package/dist/control-policy-BHjZnca1-DUWuKmdJ.mjs.map +0 -1
  188. package/dist/data-types-Cs-LkJBw-CJN57Y5M.mjs.map +0 -1
  189. package/dist/full-text-collection-method-BIqQH9XN-CkW2x4u2.d.mts.map +0 -1
  190. package/dist/op-factory-call-CEyI7a78.d.mts +0 -1
  191. package/dist/op-factory-call-DILl2zlf-BakJezLJ.d.mts.map +0 -1
  192. package/dist/op-factory-call-No9Z2tdw-Lap8xvVy.mjs.map +0 -1
  193. package/dist/operation-types-ECV4mkfb.d.mts +0 -1
  194. package/dist/planner-produced-postgres-migration-C8uYGzUj-DRmZY4_u.d.mts.map +0 -1
  195. package/dist/planner-produced-postgres-migration-DaDlRTID.d.mts +0 -1
  196. package/dist/planner-sql-checks-CWOmxltY-CoWF8Eq0.d.mts.map +0 -1
  197. package/dist/planner-sql-checks-Cp3fcCNc.d.mts +0 -1
  198. package/dist/planner-sql-checks-pkURMYMz-2QAIKyW-.mjs.map +0 -1
  199. package/dist/sql-renderer-CD5aYQos-1hGCWT0S.mjs.map +0 -1
@@ -1,6 +1,6 @@
1
1
  import { t as PostgresContract } from "./postgres-schema-Xsjt3RKO-Buv2X8ai.mjs";
2
2
  import { c as PostgresLoweredStatement, s as PostgresAdapterOptions } from "./types-D6lgKhE5-CjLf9QtO.mjs";
3
- import { t as PostgresCodecRegistry } from "./codecs-J4SSxTf4.mjs";
3
+ import { t as PostgresCodecRegistry } from "./codecs-DydRFxCt.mjs";
4
4
  import { v as PostgresDdlNode } from "./nodes-DOXes-fG-BifJqoRd.mjs";
5
5
  import "./ddl-D_JWHRzo.mjs";
6
6
  import { Adapter, AdapterProfile, AnyQueryAst, LowererContext } from "@prisma/orm-family-sql/relational-core/ast";
@@ -400,4 +400,4 @@ declare const postgresAdapterContractContributions: {
400
400
  };
401
401
  //#endregion
402
402
  export { postgresRawCodecInferer as i, postgresAdapterCapabilities as n, postgresAdapterContractContributions as r, createPostgresAdapter as t };
403
- //# sourceMappingURL=adapter-vfsQ80l6.d.mts.map
403
+ //# sourceMappingURL=adapter-BAR5FNt5.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"adapter-vfsQ80l6.d.mts","names":[],"sources":["../../../../3-targets/6-adapters/postgres/dist/adapter.d.mts"],"mappings":";;;;;;;;;;cAOc,+BAA+B,QAAQ,aAAa,kBAAkB;WACzE;WACA;WACA,SAAS;mBACD;mBACA;EACjB,YAAY,eAAe,uBAAuB,gBAAgB,gBAAgB,4BAA4B,YAAY;EAC1H,MAAM,KAAK,cAAc,iBAAiB,SAAS,eAAe,oBAAoB;;;;;;;cAO1E,yBAAyB;iBACtB,sBAAsB,UAAU,yBAAyB,SAAS;;;cAGrE,6BAA6B;WAChC;aACE;aACA;aACA;aACA;aACA;aACA;aACA;aACA;;WAEF;aACE;aACA;aACA;aACA;aACA;aACA;aACA;aACA;aACA;aACA;aACA;aACA;aACA;;;;;;;;cAQC;WACH,cAAc;aACZ;eACE;eACA;eACA;eACA;eACA;eACA;eACA;eACA;;aAEF;eACE;eACA;eACA;eACA;eACA;eACA;eACA;eACA;eACA;eACA;eACA;eACA;eACA;;;WAGJ;aACE;eACE;eACA;iBACE;;eAEF;iBACE;iBACA;;eAEF;eACA;;eAEA;eACA;iBACE;;eAEF;iBACE;iBACA;;eAEF;eACA;eACA,6EAA6E;;eAE7E;eACA;iBACE;iBACA;;eAEF;iBACE;iBACA;;eAEF;;eAEA,6EAA6E;eAC7E;eACA;iBACE;iBACA;;eAEF;iBACE;iBACA;;eAEF;;eAEA,6EAA6E;eAC7E;eACA;iBACE;iBACA;;eAEF;iBACE;iBACA;;eAEF;;eAEA,6EAA6E;eAC7E;eACA;iBACE;iBACA;;eAEF;iBACE;iBACA;;eAEF;;eAEA;eACA;iBACE;iBACA;;eAEF;iBACE;iBACA;;eAEF;;eAEA;eACA;iBACE;iBACA;;eAEF;iBACE;iBACA;;eAEF;;eAEA;eACA;iBACE;iBACA;;eAEF;iBACE;iBACA;;eAEF;;eAEA;eACA;iBACE;iBACA;;eAEF;iBACE;iBACA;;eAEF;;eAEA;eACA;iBACE;iBACA;;eAEF;iBACE;iBACA;;eAEF;;eAEA;eACA;iBACE;iBACA;;eAEF;iBACE;iBACA;;eAEF;;eAEA;eACA;iBACE;iBACA;;eAEF;iBACE;iBACA;;eAEF;;eAEA,6EAA6E;eAC7E;eACA;iBACE;iBACA;;eAEF;iBACE;iBACA;;eAEF;;eAEA,6EAA6E;eAC7E;eACA;iBACE;iBACA;;eAEF;iBACE;iBACA;;eAEF;;eAEA;eACA;iBACE;iBACA;;eAEF;iBACE;iBACA;;eAEF;;eAEA;eACA;iBACE;iBACA;;eAEF;iBACE;iBACA;;eAEF;;eAEA;eACA;iBACE;iBACA;;eAEF;iBACE;iBACA;;eAEF;;eAEA;eACA;iBACE;iBACA;;eAEF;iBACE;iBACA;;eAEF;;eAEA;eACA;iBACE;iBACA;;eAEF;iBACE;iBACA;;eAEF;;eAEA;eACA;iBACE;iBACA;;eAEF;iBACE;;eAEF;;eAEA;eACA;iBACE;iBACA;;eAEF;iBACE;;eAEF;;eAEA;eACA;iBACE;iBACA;;eAEF;iBACE;iBACA;;eAEF;;eAEA;eACA;iBACE;iBACA;;eAEF;iBACE;;eAEF;;eAEA;eACA;iBACE;iBACA;;eAEF;iBACE;;eAEF;;eAEA;eACA;iBACE;iBACA;;eAEF;iBACE;;eAEF;;eAEA;eACA;iBACE;iBACA;;eAEF;iBACE;iBACA;;eAEF;;eAEA;eACA;iBACE;iBACA;;eAEF;iBACE;;eAEF"}
1
+ {"version":3,"file":"adapter-BAR5FNt5.d.mts","names":[],"sources":["../../../../3-targets/6-adapters/postgres/dist/adapter.d.mts"],"mappings":";;;;;;;;;;cAOc,+BAA+B,QAAQ,aAAa,kBAAkB;WACzE;WACA;WACA,SAAS;mBACD;mBACA;EACjB,YAAY,eAAe,uBAAuB,gBAAgB,gBAAgB,4BAA4B,YAAY;EAC1H,MAAM,KAAK,cAAc,iBAAiB,SAAS,eAAe,oBAAoB;;;;;;;cAO1E,yBAAyB;iBACtB,sBAAsB,UAAU,yBAAyB,SAAS;;;cAGrE,6BAA6B;WAChC;aACE;aACA;aACA;aACA;aACA;aACA;aACA;aACA;;WAEF;aACE;aACA;aACA;aACA;aACA;aACA;aACA;aACA;aACA;aACA;aACA;aACA;aACA;;;;;;;;cAQC;WACH,cAAc;aACZ;eACE;eACA;eACA;eACA;eACA;eACA;eACA;eACA;;aAEF;eACE;eACA;eACA;eACA;eACA;eACA;eACA;eACA;eACA;eACA;eACA;eACA;eACA;;;WAGJ;aACE;eACE;eACA;iBACE;;eAEF;iBACE;iBACA;;eAEF;eACA;;eAEA;eACA;iBACE;;eAEF;iBACE;iBACA;;eAEF;eACA;eACA,6EAA6E;;eAE7E;eACA;iBACE;iBACA;;eAEF;iBACE;iBACA;;eAEF;;eAEA,6EAA6E;eAC7E;eACA;iBACE;iBACA;;eAEF;iBACE;iBACA;;eAEF;;eAEA,6EAA6E;eAC7E;eACA;iBACE;iBACA;;eAEF;iBACE;iBACA;;eAEF;;eAEA,6EAA6E;eAC7E;eACA;iBACE;iBACA;;eAEF;iBACE;iBACA;;eAEF;;eAEA;eACA;iBACE;iBACA;;eAEF;iBACE;iBACA;;eAEF;;eAEA;eACA;iBACE;iBACA;;eAEF;iBACE;iBACA;;eAEF;;eAEA;eACA;iBACE;iBACA;;eAEF;iBACE;iBACA;;eAEF;;eAEA;eACA;iBACE;iBACA;;eAEF;iBACE;iBACA;;eAEF;;eAEA;eACA;iBACE;iBACA;;eAEF;iBACE;iBACA;;eAEF;;eAEA;eACA;iBACE;iBACA;;eAEF;iBACE;iBACA;;eAEF;;eAEA;eACA;iBACE;iBACA;;eAEF;iBACE;iBACA;;eAEF;;eAEA,6EAA6E;eAC7E;eACA;iBACE;iBACA;;eAEF;iBACE;iBACA;;eAEF;;eAEA,6EAA6E;eAC7E;eACA;iBACE;iBACA;;eAEF;iBACE;iBACA;;eAEF;;eAEA;eACA;iBACE;iBACA;;eAEF;iBACE;iBACA;;eAEF;;eAEA;eACA;iBACE;iBACA;;eAEF;iBACE;iBACA;;eAEF;;eAEA;eACA;iBACE;iBACA;;eAEF;iBACE;iBACA;;eAEF;;eAEA;eACA;iBACE;iBACA;;eAEF;iBACE;iBACA;;eAEF;;eAEA;eACA;iBACE;iBACA;;eAEF;iBACE;iBACA;;eAEF;;eAEA;eACA;iBACE;iBACA;;eAEF;iBACE;;eAEF;;eAEA;eACA;iBACE;iBACA;;eAEF;iBACE;;eAEF;;eAEA;eACA;iBACE;iBACA;;eAEF;iBACE;iBACA;;eAEF;;eAEA;eACA;iBACE;iBACA;;eAEF;iBACE;;eAEF;;eAEA;eACA;iBACE;iBACA;;eAEF;iBACE;;eAEF;;eAEA;eACA;iBACE;iBACA;;eAEF;iBACE;;eAEF;;eAEA;eACA;iBACE;iBACA;;eAEF;iBACE;iBACA;;eAEF;;eAEA;eACA;iBACE;iBACA;;eAEF;iBACE;;eAEF"}
@@ -1,11 +1,11 @@
1
- import { J as postgresDataTypes } from "./data-types-Cs-LkJBw-CJN57Y5M.mjs";
2
- import { i as createPostgresCodecRegistryWithBuiltins } from "./codec-registry-T79ktJL4-B9_zlIhI.mjs";
3
- import { n as renderLoweredSql, t as adapterError } from "./sql-renderer-CD5aYQos-1hGCWT0S.mjs";
4
- import { n as postgresAdapterCapabilities, t as PostgresControlAdapter } from "./contract-contributions-CQqafzSC-DrMFSSO4.mjs";
1
+ import { J as postgresDataTypes } from "./data-types-DhBM9bIL-CVDQGAGw.mjs";
2
+ import { i as createPostgresCodecRegistryWithBuiltins } from "./codec-registry-C8ymMRsH-B48NRqXL.mjs";
3
+ import { n as renderLoweredSql, t as adapterError } from "./sql-renderer-BdWJPa5F-DqJ5nUgt.mjs";
4
+ import { n as postgresAdapterCapabilities, t as PostgresControlAdapter } from "./contract-contributions-CRCEK7Dx-Dx2tYlyZ.mjs";
5
5
  import { isDdlNode } from "@prisma/orm-family-sql/relational-core/ast";
6
6
  import { assembleDataTypes } from "@prisma/orm-framework/components/codec";
7
7
  import { APP_SPACE_ID } from "@prisma/orm-framework/components/control";
8
- //#region ../../../3-targets/6-adapters/postgres/dist/adapter-BkfuSVLm.mjs
8
+ //#region ../../../3-targets/6-adapters/postgres/dist/adapter-BLduF4bR.mjs
9
9
  var PostgresAdapterImpl = class {
10
10
  familyId = "sql";
11
11
  targetId = "postgres";
@@ -86,4 +86,4 @@ function createPostgresAdapterWithCodecRegistry(codecRegistry, dataTypeLookup, d
86
86
  //#endregion
87
87
  export { createPostgresAdapterWithCodecRegistry as n, postgresRawCodecInferer as r, createPostgresAdapter as t };
88
88
 
89
- //# sourceMappingURL=adapter-BkfuSVLm-DmjWB5c9.mjs.map
89
+ //# sourceMappingURL=adapter-BLduF4bR-LPL0DsEe.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"adapter-BkfuSVLm-DmjWB5c9.mjs","names":[],"sources":["../../../../3-targets/6-adapters/postgres/dist/adapter-BkfuSVLm.mjs"],"sourcesContent":["import { n as adapterError, t as renderLoweredSql } from \"./sql-renderer-CD5aYQos.mjs\";\nimport { n as PostgresControlAdapter, r as postgresAdapterCapabilities } from \"./contract-contributions-CQqafzSC.mjs\";\nimport { assembleDataTypes } from \"@internal/framework-components/codec\";\nimport { APP_SPACE_ID } from \"@internal/framework-components/control\";\nimport { isDdlNode } from \"@internal/sql-relational-core/ast\";\nimport { createPostgresCodecRegistryWithBuiltins } from \"@internal/target-postgres/codecs\";\nimport { postgresDataTypes } from \"@internal/target-postgres/data-types\";\n//#region src/core/adapter.ts\nvar PostgresAdapterImpl = class {\n\tfamilyId = \"sql\";\n\ttargetId = \"postgres\";\n\tprofile;\n\tcodecRegistry;\n\tdataTypeLookup;\n\tconstructor(codecRegistry, dataTypeLookup, declaredDataTypes, profileId) {\n\t\tthis.codecRegistry = codecRegistry;\n\t\tthis.dataTypeLookup = dataTypeLookup;\n\t\tconst controlAdapter = new PostgresControlAdapter(codecRegistry, dataTypeLookup, declaredDataTypes);\n\t\tthis.profile = Object.freeze({\n\t\t\tid: profileId ?? \"postgres/default@1\",\n\t\t\ttarget: \"postgres\",\n\t\t\tcapabilities: postgresAdapterCapabilities,\n\t\t\treadMarker: (queryable) => controlAdapter.readMarkerDiscriminated({\n\t\t\t\tfamilyId: \"sql\",\n\t\t\t\ttargetId: \"postgres\",\n\t\t\t\tquery: async (sql, params) => {\n\t\t\t\t\tconst rows = [];\n\t\t\t\t\tfor await (const row of queryable.query({\n\t\t\t\t\t\tsql,\n\t\t\t\t\t\t...params === void 0 ? {} : { params }\n\t\t\t\t\t})) rows.push(row);\n\t\t\t\t\treturn { rows };\n\t\t\t\t},\n\t\t\t\tclose: async () => {}\n\t\t\t}, APP_SPACE_ID)\n\t\t});\n\t}\n\tlower(ast, context) {\n\t\tif (isDdlNode(ast)) throw adapterError(\"RUNTIME.DDL_UNSUPPORTED\", \"lower() does not lower DDL on the runtime adapter — DDL lowering is a control-plane concern handled by the control adapter.\", { meta: { surface: \"runtime-adapter\" } });\n\t\treturn renderLoweredSql(ast, context.contract, this.codecRegistry, this.dataTypeLookup, postgresAdapterCapabilities);\n\t}\n};\nconst INT4_MIN = -2147483648;\nconst INT4_MAX = 2147483647;\n/**\n* The codec a bare JS number is bound through.\n*\n* An integer picks the narrowest column type that holds it: `int4` while it\n* fits the signed 32-bit range, `int8` (number-valued) up to the safe-integer\n* limit. Past that limit a JS number is no longer an exact integer, so it\n* binds as `float8` rather than pretending to a precision it does not have.\n*/\nfunction inferNumberCodecId(value) {\n\tif (!Number.isSafeInteger(value)) return \"pg/float8@1\";\n\treturn value >= INT4_MIN && value <= INT4_MAX ? \"pg/int4@1\" : \"pg/int8number@1\";\n}\n/**\n* Codec-id lookup for bare-literal interpolations used by `fns.raw` on a postgres client. Contributed as the descriptor's static `rawCodecInferer` slot.\n*\n* The ids are versioned because that is how the codec registry keys them: lowering resolves an interpolated value's codec by exact id through `descriptorFor`.\n*/\nconst postgresRawCodecInferer = { inferCodec(value) {\n\tswitch (typeof value) {\n\t\tcase \"number\": return inferNumberCodecId(value);\n\t\tcase \"bigint\": return \"pg/int8@1\";\n\t\tcase \"string\": return \"pg/text@1\";\n\t\tcase \"boolean\": return \"pg/bool@1\";\n\t\tcase \"object\": if (value instanceof Uint8Array) return \"pg/bytea@1\";\n\t}\n\tthrow adapterError(\"RUNTIME.RAW_SQL_UNSUPPORTED_INTERPOLATION\", \"unsupported JS value type for raw-SQL interpolation: wrap this value in `param(...)` with an explicit codec\", { meta: { valueType: typeof value } });\n} };\nfunction createPostgresAdapter(options) {\n\tconst dataTypes = assembleDataTypes([{\n\t\tid: \"postgres\",\n\t\tdataTypes: postgresDataTypes\n\t}, {\n\t\tid: \"createPostgresAdapter\",\n\t\tdataTypes: options?.dataTypes ?? []\n\t}]);\n\tconst codecRegistry = createPostgresCodecRegistryWithBuiltins(options?.codecDescriptors, dataTypes.lookup);\n\treturn Object.freeze(new PostgresAdapterImpl(codecRegistry, dataTypes.lookup, dataTypes.declared.map(({ type }) => type), options?.profileId));\n}\nfunction createPostgresAdapterWithCodecRegistry(codecRegistry, dataTypeLookup, declaredDataTypes) {\n\treturn Object.freeze(new PostgresAdapterImpl(codecRegistry, dataTypeLookup, declaredDataTypes));\n}\n//#endregion\nexport { createPostgresAdapterWithCodecRegistry as n, postgresRawCodecInferer as r, createPostgresAdapter as t };\n\n//# sourceMappingURL=adapter-BkfuSVLm.mjs.map"],"mappings":";;;;;;;;AAQA,IAAI,sBAAsB,MAAM;CAC/B,WAAW;CACX,WAAW;CACX;CACA;CACA;CACA,YAAY,eAAe,gBAAgB,mBAAmB,WAAW;EACxE,KAAK,gBAAgB;EACrB,KAAK,iBAAiB;EACtB,MAAM,iBAAiB,IAAI,uBAAuB,eAAe,gBAAgB,iBAAiB;EAClG,KAAK,UAAU,OAAO,OAAO;GAC5B,IAAI,aAAa;GACjB,QAAQ;GACR,cAAc;GACd,aAAa,cAAc,eAAe,wBAAwB;IACjE,UAAU;IACV,UAAU;IACV,OAAO,OAAO,KAAK,WAAW;KAC7B,MAAM,OAAO,CAAC;KACd,WAAW,MAAM,OAAO,UAAU,MAAM;MACvC;MACA,GAAG,WAAW,KAAK,IAAI,CAAC,IAAI,EAAE,OAAO;KACtC,CAAC,GAAG,KAAK,KAAK,GAAG;KACjB,OAAO,EAAE,KAAK;IACf;IACA,OAAO,YAAY,CAAC;GACrB,GAAG,YAAY;EAChB,CAAC;CACF;CACA,MAAM,KAAK,SAAS;EACnB,IAAI,UAAU,GAAG,GAAG,MAAM,aAAa,2BAA2B,+HAA+H,EAAE,MAAM,EAAE,SAAS,kBAAkB,EAAE,CAAC;EACzO,OAAO,iBAAiB,KAAK,QAAQ,UAAU,KAAK,eAAe,KAAK,gBAAgB,2BAA2B;CACpH;AACD;AACA,MAAM,WAAW;AACjB,MAAM,WAAW;;;;;;;;;AASjB,SAAS,mBAAmB,OAAO;CAClC,IAAI,CAAC,OAAO,cAAc,KAAK,GAAG,OAAO;CACzC,OAAO,SAAS,YAAY,SAAS,WAAW,cAAc;AAC/D;;;;;;AAMA,MAAM,0BAA0B,EAAE,WAAW,OAAO;CACnD,QAAQ,OAAO,OAAf;EACC,KAAK,UAAU,OAAO,mBAAmB,KAAK;EAC9C,KAAK,UAAU,OAAO;EACtB,KAAK,UAAU,OAAO;EACtB,KAAK,WAAW,OAAO;EACvB,KAAK,UAAU,IAAI,iBAAiB,YAAY,OAAO;CACxD;CACA,MAAM,aAAa,6CAA6C,+GAA+G,EAAE,MAAM,EAAE,WAAW,OAAO,MAAM,EAAE,CAAC;AACrN,EAAE;AACF,SAAS,sBAAsB,SAAS;CACvC,MAAM,YAAY,kBAAkB,CAAC;EACpC,IAAI;EACJ,WAAW;CACZ,GAAG;EACF,IAAI;EACJ,WAAW,SAAS,aAAa,CAAC;CACnC,CAAC,CAAC;CACF,MAAM,gBAAgB,wCAAwC,SAAS,kBAAkB,UAAU,MAAM;CACzG,OAAO,OAAO,OAAO,IAAI,oBAAoB,eAAe,UAAU,QAAQ,UAAU,SAAS,KAAK,EAAE,WAAW,IAAI,GAAG,SAAS,SAAS,CAAC;AAC9I;AACA,SAAS,uCAAuC,eAAe,gBAAgB,mBAAmB;CACjG,OAAO,OAAO,OAAO,IAAI,oBAAoB,eAAe,gBAAgB,iBAAiB,CAAC;AAC/F"}
1
+ {"version":3,"file":"adapter-BLduF4bR-LPL0DsEe.mjs","names":[],"sources":["../../../../3-targets/6-adapters/postgres/dist/adapter-BLduF4bR.mjs"],"sourcesContent":["import { n as adapterError, t as renderLoweredSql } from \"./sql-renderer-BdWJPa5F.mjs\";\nimport { n as PostgresControlAdapter, r as postgresAdapterCapabilities } from \"./contract-contributions-CRCEK7Dx.mjs\";\nimport { assembleDataTypes } from \"@internal/framework-components/codec\";\nimport { APP_SPACE_ID } from \"@internal/framework-components/control\";\nimport { isDdlNode } from \"@internal/sql-relational-core/ast\";\nimport { createPostgresCodecRegistryWithBuiltins } from \"@internal/target-postgres/codecs\";\nimport { postgresDataTypes } from \"@internal/target-postgres/data-types\";\n//#region src/core/adapter.ts\nvar PostgresAdapterImpl = class {\n\tfamilyId = \"sql\";\n\ttargetId = \"postgres\";\n\tprofile;\n\tcodecRegistry;\n\tdataTypeLookup;\n\tconstructor(codecRegistry, dataTypeLookup, declaredDataTypes, profileId) {\n\t\tthis.codecRegistry = codecRegistry;\n\t\tthis.dataTypeLookup = dataTypeLookup;\n\t\tconst controlAdapter = new PostgresControlAdapter(codecRegistry, dataTypeLookup, declaredDataTypes);\n\t\tthis.profile = Object.freeze({\n\t\t\tid: profileId ?? \"postgres/default@1\",\n\t\t\ttarget: \"postgres\",\n\t\t\tcapabilities: postgresAdapterCapabilities,\n\t\t\treadMarker: (queryable) => controlAdapter.readMarkerDiscriminated({\n\t\t\t\tfamilyId: \"sql\",\n\t\t\t\ttargetId: \"postgres\",\n\t\t\t\tquery: async (sql, params) => {\n\t\t\t\t\tconst rows = [];\n\t\t\t\t\tfor await (const row of queryable.query({\n\t\t\t\t\t\tsql,\n\t\t\t\t\t\t...params === void 0 ? {} : { params }\n\t\t\t\t\t})) rows.push(row);\n\t\t\t\t\treturn { rows };\n\t\t\t\t},\n\t\t\t\tclose: async () => {}\n\t\t\t}, APP_SPACE_ID)\n\t\t});\n\t}\n\tlower(ast, context) {\n\t\tif (isDdlNode(ast)) throw adapterError(\"RUNTIME.DDL_UNSUPPORTED\", \"lower() does not lower DDL on the runtime adapter — DDL lowering is a control-plane concern handled by the control adapter.\", { meta: { surface: \"runtime-adapter\" } });\n\t\treturn renderLoweredSql(ast, context.contract, this.codecRegistry, this.dataTypeLookup, postgresAdapterCapabilities);\n\t}\n};\nconst INT4_MIN = -2147483648;\nconst INT4_MAX = 2147483647;\n/**\n* The codec a bare JS number is bound through.\n*\n* An integer picks the narrowest column type that holds it: `int4` while it\n* fits the signed 32-bit range, `int8` (number-valued) up to the safe-integer\n* limit. Past that limit a JS number is no longer an exact integer, so it\n* binds as `float8` rather than pretending to a precision it does not have.\n*/\nfunction inferNumberCodecId(value) {\n\tif (!Number.isSafeInteger(value)) return \"pg/float8@1\";\n\treturn value >= INT4_MIN && value <= INT4_MAX ? \"pg/int4@1\" : \"pg/int8number@1\";\n}\n/**\n* Codec-id lookup for bare-literal interpolations used by `fns.raw` on a postgres client. Contributed as the descriptor's static `rawCodecInferer` slot.\n*\n* The ids are versioned because that is how the codec registry keys them: lowering resolves an interpolated value's codec by exact id through `descriptorFor`.\n*/\nconst postgresRawCodecInferer = { inferCodec(value) {\n\tswitch (typeof value) {\n\t\tcase \"number\": return inferNumberCodecId(value);\n\t\tcase \"bigint\": return \"pg/int8@1\";\n\t\tcase \"string\": return \"pg/text@1\";\n\t\tcase \"boolean\": return \"pg/bool@1\";\n\t\tcase \"object\": if (value instanceof Uint8Array) return \"pg/bytea@1\";\n\t}\n\tthrow adapterError(\"RUNTIME.RAW_SQL_UNSUPPORTED_INTERPOLATION\", \"unsupported JS value type for raw-SQL interpolation: wrap this value in `param(...)` with an explicit codec\", { meta: { valueType: typeof value } });\n} };\nfunction createPostgresAdapter(options) {\n\tconst dataTypes = assembleDataTypes([{\n\t\tid: \"postgres\",\n\t\tdataTypes: postgresDataTypes\n\t}, {\n\t\tid: \"createPostgresAdapter\",\n\t\tdataTypes: options?.dataTypes ?? []\n\t}]);\n\tconst codecRegistry = createPostgresCodecRegistryWithBuiltins(options?.codecDescriptors, dataTypes.lookup);\n\treturn Object.freeze(new PostgresAdapterImpl(codecRegistry, dataTypes.lookup, dataTypes.declared.map(({ type }) => type), options?.profileId));\n}\nfunction createPostgresAdapterWithCodecRegistry(codecRegistry, dataTypeLookup, declaredDataTypes) {\n\treturn Object.freeze(new PostgresAdapterImpl(codecRegistry, dataTypeLookup, declaredDataTypes));\n}\n//#endregion\nexport { createPostgresAdapterWithCodecRegistry as n, postgresRawCodecInferer as r, createPostgresAdapter as t };\n\n//# sourceMappingURL=adapter-BLduF4bR.mjs.map"],"mappings":";;;;;;;;AAQA,IAAI,sBAAsB,MAAM;CAC/B,WAAW;CACX,WAAW;CACX;CACA;CACA;CACA,YAAY,eAAe,gBAAgB,mBAAmB,WAAW;EACxE,KAAK,gBAAgB;EACrB,KAAK,iBAAiB;EACtB,MAAM,iBAAiB,IAAI,uBAAuB,eAAe,gBAAgB,iBAAiB;EAClG,KAAK,UAAU,OAAO,OAAO;GAC5B,IAAI,aAAa;GACjB,QAAQ;GACR,cAAc;GACd,aAAa,cAAc,eAAe,wBAAwB;IACjE,UAAU;IACV,UAAU;IACV,OAAO,OAAO,KAAK,WAAW;KAC7B,MAAM,OAAO,CAAC;KACd,WAAW,MAAM,OAAO,UAAU,MAAM;MACvC;MACA,GAAG,WAAW,KAAK,IAAI,CAAC,IAAI,EAAE,OAAO;KACtC,CAAC,GAAG,KAAK,KAAK,GAAG;KACjB,OAAO,EAAE,KAAK;IACf;IACA,OAAO,YAAY,CAAC;GACrB,GAAG,YAAY;EAChB,CAAC;CACF;CACA,MAAM,KAAK,SAAS;EACnB,IAAI,UAAU,GAAG,GAAG,MAAM,aAAa,2BAA2B,+HAA+H,EAAE,MAAM,EAAE,SAAS,kBAAkB,EAAE,CAAC;EACzO,OAAO,iBAAiB,KAAK,QAAQ,UAAU,KAAK,eAAe,KAAK,gBAAgB,2BAA2B;CACpH;AACD;AACA,MAAM,WAAW;AACjB,MAAM,WAAW;;;;;;;;;AASjB,SAAS,mBAAmB,OAAO;CAClC,IAAI,CAAC,OAAO,cAAc,KAAK,GAAG,OAAO;CACzC,OAAO,SAAS,YAAY,SAAS,WAAW,cAAc;AAC/D;;;;;;AAMA,MAAM,0BAA0B,EAAE,WAAW,OAAO;CACnD,QAAQ,OAAO,OAAf;EACC,KAAK,UAAU,OAAO,mBAAmB,KAAK;EAC9C,KAAK,UAAU,OAAO;EACtB,KAAK,UAAU,OAAO;EACtB,KAAK,WAAW,OAAO;EACvB,KAAK,UAAU,IAAI,iBAAiB,YAAY,OAAO;CACxD;CACA,MAAM,aAAa,6CAA6C,+GAA+G,EAAE,MAAM,EAAE,WAAW,OAAO,MAAM,EAAE,CAAC;AACrN,EAAE;AACF,SAAS,sBAAsB,SAAS;CACvC,MAAM,YAAY,kBAAkB,CAAC;EACpC,IAAI;EACJ,WAAW;CACZ,GAAG;EACF,IAAI;EACJ,WAAW,SAAS,aAAa,CAAC;CACnC,CAAC,CAAC;CACF,MAAM,gBAAgB,wCAAwC,SAAS,kBAAkB,UAAU,MAAM;CACzG,OAAO,OAAO,OAAO,IAAI,oBAAoB,eAAe,UAAU,QAAQ,UAAU,SAAS,KAAK,EAAE,WAAW,IAAI,GAAG,SAAS,SAAS,CAAC;AAC9I;AACA,SAAS,uCAAuC,eAAe,gBAAgB,mBAAmB;CACjG,OAAO,OAAO,OAAO,IAAI,oBAAoB,eAAe,gBAAgB,iBAAiB,CAAC;AAC/F"}
@@ -1,11 +1,11 @@
1
1
  import { t as PostgresContract } from "./postgres-schema-Xsjt3RKO-Buv2X8ai.mjs";
2
2
  import { a as OrderClause, c as PostgresLoweredStatement, d as StorageTable, i as Expr, l as SelectAst, n as ColumnRef, o as ParamRef, r as Direction, s as PostgresAdapterOptions, t as BinaryExpr, u as StorageColumn } from "./types-D6lgKhE5-CjLf9QtO.mjs";
3
- import { a as createPostgresCodecRegistryWithBuiltins, i as createPostgresBuiltinCodecLookup, t as PostgresCodecRegistry } from "./codecs-J4SSxTf4.mjs";
4
- import { i as postgresRawCodecInferer, n as postgresAdapterCapabilities, r as postgresAdapterContractContributions, t as createPostgresAdapter } from "./adapter-vfsQ80l6.mjs";
5
- import { C as timestamptzTemporalColumn, E as varcharColumn, S as timestamptzStringColumn, T as varbitColumn, _ as timeStringColumn, a as dateStringColumn, b as timestampTemporalColumn, c as float8Column, d as int8Column, f as intervalColumn, g as textColumn, h as numericColumn, i as charColumn, l as int2Column, m as jsonbColumn, n as boolColumn, o as dateTemporalColumn, p as jsonColumn, r as byteaColumn, s as float4Column, t as bitColumn, u as int4Column, v as timeTemporalColumn, w as timetzColumn, x as timestamptzJsDateColumn, y as timestampStringColumn } from "./column-types-COdejX_b.mjs";
3
+ import { a as createPostgresCodecRegistryWithBuiltins, i as createPostgresBuiltinCodecLookup, t as PostgresCodecRegistry } from "./codecs-DydRFxCt.mjs";
4
+ import { i as postgresRawCodecInferer, n as postgresAdapterCapabilities, r as postgresAdapterContractContributions, t as createPostgresAdapter } from "./adapter-BAR5FNt5.mjs";
5
+ import { C as timestamptzStringColumn, D as varcharColumn, E as varbitColumn, S as timestamptzJsDateColumn, T as timetzColumn, _ as textColumn, a as dateStringColumn, b as timestampStringColumn, c as float8Column, d as int8Column, f as intervalColumn, g as rawColumn, h as numericColumn, i as charColumn, l as int2Column, m as jsonbColumn, n as boolColumn, o as dateTemporalColumn, p as jsonColumn, r as byteaColumn, s as float4Column, t as bitColumn, u as int4Column, v as timeStringColumn, w as timestamptzTemporalColumn, x as timestampTemporalColumn, y as timeTemporalColumn } from "./column-types-D4U5xGjS.mjs";
6
6
  import { n as qualifyName, r as quoteIdentifier, t as escapeLiteral } from "./sql-utils-B7LfCQCB.mjs";
7
- import { t as PostgresControlAdapter } from "./control-vBNwKZ7Q.mjs";
7
+ import { t as PostgresControlAdapter } from "./control-R69irs57.mjs";
8
8
  import { t as SqlRuntimeAdapter } from "./runtime-CXQ7Xh-G.mjs";
9
9
  import { t as renderLoweredSql } from "./sql-renderer-dk7d0cK0.mjs";
10
- import "./types-CJNq93fb.mjs";
11
- export { type BinaryExpr, type ColumnRef, type Direction, type Expr, type OrderClause, type ParamRef, type PostgresAdapterOptions, type PostgresCodecRegistry, type PostgresContract, PostgresControlAdapter, type PostgresLoweredStatement, type SelectAst, SqlRuntimeAdapter, type StorageColumn, type StorageTable, bitColumn, boolColumn, byteaColumn, charColumn, createPostgresAdapter, createPostgresBuiltinCodecLookup, createPostgresCodecRegistryWithBuiltins, dateStringColumn, dateTemporalColumn, escapeLiteral, float4Column, float8Column, int2Column, int4Column, int8Column, intervalColumn, jsonColumn, jsonbColumn, numericColumn, postgresAdapterCapabilities, postgresAdapterContractContributions, postgresRawCodecInferer, qualifyName, quoteIdentifier, renderLoweredSql, textColumn, timeStringColumn, timeTemporalColumn, timestampStringColumn, timestampTemporalColumn, timestamptzJsDateColumn, timestamptzStringColumn, timestamptzTemporalColumn, timetzColumn, varbitColumn, varcharColumn };
10
+ import "./types-BA-ghQ5q.mjs";
11
+ export { type BinaryExpr, type ColumnRef, type Direction, type Expr, type OrderClause, type ParamRef, type PostgresAdapterOptions, type PostgresCodecRegistry, type PostgresContract, PostgresControlAdapter, type PostgresLoweredStatement, type SelectAst, SqlRuntimeAdapter, type StorageColumn, type StorageTable, bitColumn, boolColumn, byteaColumn, charColumn, createPostgresAdapter, createPostgresBuiltinCodecLookup, createPostgresCodecRegistryWithBuiltins, dateStringColumn, dateTemporalColumn, escapeLiteral, float4Column, float8Column, int2Column, int4Column, int8Column, intervalColumn, jsonColumn, jsonbColumn, numericColumn, postgresAdapterCapabilities, postgresAdapterContractContributions, postgresRawCodecInferer, qualifyName, quoteIdentifier, rawColumn, renderLoweredSql, textColumn, timeStringColumn, timeTemporalColumn, timestampStringColumn, timestampTemporalColumn, timestamptzJsDateColumn, timestamptzStringColumn, timestamptzTemporalColumn, timetzColumn, varbitColumn, varcharColumn };
package/dist/adapter.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import { i as quoteIdentifier, n as escapeLiteral, r as qualifyName } from "./sql-utils-Bnw3JbWf-zvWDkyrr.mjs";
2
- import { i as createPostgresCodecRegistryWithBuiltins, r as createPostgresBuiltinCodecLookup } from "./codec-registry-T79ktJL4-B9_zlIhI.mjs";
3
- import { n as renderLoweredSql } from "./sql-renderer-CD5aYQos-1hGCWT0S.mjs";
4
- import { n as postgresAdapterCapabilities, r as postgresAdapterContractContributions, t as PostgresControlAdapter } from "./contract-contributions-CQqafzSC-DrMFSSO4.mjs";
5
- import { r as postgresRawCodecInferer, t as createPostgresAdapter } from "./adapter-BkfuSVLm-DmjWB5c9.mjs";
6
- import { C as timestamptzTemporalColumn, E as varcharColumn, S as timestamptzStringColumn, T as varbitColumn, _ as timeStringColumn, a as dateStringColumn, b as timestampTemporalColumn, c as float8Column, d as int8Column, f as intervalColumn, g as textColumn, h as numericColumn, i as charColumn, l as int2Column, m as jsonbColumn, n as boolColumn, o as dateTemporalColumn, p as jsonColumn, r as byteaColumn, s as float4Column, t as bitColumn, u as int4Column, v as timeTemporalColumn, w as timetzColumn, x as timestamptzJsDateColumn, y as timestampStringColumn } from "./column-types-Bbc3IVA7.mjs";
7
- export { PostgresControlAdapter, bitColumn, boolColumn, byteaColumn, charColumn, createPostgresAdapter, createPostgresBuiltinCodecLookup, createPostgresCodecRegistryWithBuiltins, dateStringColumn, dateTemporalColumn, escapeLiteral, float4Column, float8Column, int2Column, int4Column, int8Column, intervalColumn, jsonColumn, jsonbColumn, numericColumn, postgresAdapterCapabilities, postgresAdapterContractContributions, postgresRawCodecInferer, qualifyName, quoteIdentifier, renderLoweredSql, textColumn, timeStringColumn, timeTemporalColumn, timestampStringColumn, timestampTemporalColumn, timestamptzJsDateColumn, timestamptzStringColumn, timestamptzTemporalColumn, timetzColumn, varbitColumn, varcharColumn };
2
+ import { i as createPostgresCodecRegistryWithBuiltins, r as createPostgresBuiltinCodecLookup } from "./codec-registry-C8ymMRsH-B48NRqXL.mjs";
3
+ import { n as renderLoweredSql } from "./sql-renderer-BdWJPa5F-DqJ5nUgt.mjs";
4
+ import { n as postgresAdapterCapabilities, r as postgresAdapterContractContributions, t as PostgresControlAdapter } from "./contract-contributions-CRCEK7Dx-Dx2tYlyZ.mjs";
5
+ import { r as postgresRawCodecInferer, t as createPostgresAdapter } from "./adapter-BLduF4bR-LPL0DsEe.mjs";
6
+ import { C as timestamptzStringColumn, D as varcharColumn, E as varbitColumn, S as timestamptzJsDateColumn, T as timetzColumn, _ as textColumn, a as dateStringColumn, b as timestampStringColumn, c as float8Column, d as int8Column, f as intervalColumn, g as rawColumn, h as numericColumn, i as charColumn, l as int2Column, m as jsonbColumn, n as boolColumn, o as dateTemporalColumn, p as jsonColumn, r as byteaColumn, s as float4Column, t as bitColumn, u as int4Column, v as timeStringColumn, w as timestamptzTemporalColumn, x as timestampTemporalColumn, y as timeTemporalColumn } from "./column-types-5nUQfQFq.mjs";
7
+ export { PostgresControlAdapter, bitColumn, boolColumn, byteaColumn, charColumn, createPostgresAdapter, createPostgresBuiltinCodecLookup, createPostgresCodecRegistryWithBuiltins, dateStringColumn, dateTemporalColumn, escapeLiteral, float4Column, float8Column, int2Column, int4Column, int8Column, intervalColumn, jsonColumn, jsonbColumn, numericColumn, postgresAdapterCapabilities, postgresAdapterContractContributions, postgresRawCodecInferer, qualifyName, quoteIdentifier, rawColumn, renderLoweredSql, textColumn, timeStringColumn, timeTemporalColumn, timestampStringColumn, timestampTemporalColumn, timestamptzJsDateColumn, timestamptzStringColumn, timestamptzTemporalColumn, timetzColumn, varbitColumn, varcharColumn };
@@ -1,2 +1,2 @@
1
- import { i as postgresRawCodecInferer, n as postgresAdapterCapabilities, r as postgresAdapterContractContributions, t as createPostgresAdapter } from "./adapter-vfsQ80l6.mjs";
1
+ import { i as postgresRawCodecInferer, n as postgresAdapterCapabilities, r as postgresAdapterContractContributions, t as createPostgresAdapter } from "./adapter-BAR5FNt5.mjs";
2
2
  export { createPostgresAdapter, postgresAdapterCapabilities, postgresAdapterContractContributions, postgresRawCodecInferer };
@@ -1,3 +1,3 @@
1
- import { n as postgresAdapterCapabilities, r as postgresAdapterContractContributions } from "./contract-contributions-CQqafzSC-DrMFSSO4.mjs";
2
- import { r as postgresRawCodecInferer, t as createPostgresAdapter } from "./adapter-BkfuSVLm-DmjWB5c9.mjs";
1
+ import { n as postgresAdapterCapabilities, r as postgresAdapterContractContributions } from "./contract-contributions-CRCEK7Dx-Dx2tYlyZ.mjs";
2
+ import { r as postgresRawCodecInferer, t as createPostgresAdapter } from "./adapter-BLduF4bR-LPL0DsEe.mjs";
3
3
  export { createPostgresAdapter, postgresAdapterCapabilities, postgresAdapterContractContributions, postgresRawCodecInferer };
@@ -1,2 +1,2 @@
1
- import { C as timestamptzTemporalColumn, E as varcharColumn, S as timestamptzStringColumn, T as varbitColumn, _ as timeStringColumn, a as dateStringColumn, b as timestampTemporalColumn, c as float8Column, d as int8Column, f as intervalColumn, g as textColumn, h as numericColumn, i as charColumn, l as int2Column, m as jsonbColumn, n as boolColumn, o as dateTemporalColumn, p as jsonColumn, r as byteaColumn, s as float4Column, t as bitColumn, u as int4Column, v as timeTemporalColumn, w as timetzColumn, x as timestamptzJsDateColumn, y as timestampStringColumn } from "./column-types-COdejX_b.mjs";
2
- export { bitColumn, boolColumn, byteaColumn, charColumn, dateStringColumn, dateTemporalColumn, float4Column, float8Column, int2Column, int4Column, int8Column, intervalColumn, jsonColumn, jsonbColumn, numericColumn, textColumn, timeStringColumn, timeTemporalColumn, timestampStringColumn, timestampTemporalColumn, timestamptzJsDateColumn, timestamptzStringColumn, timestamptzTemporalColumn, timetzColumn, varbitColumn, varcharColumn };
1
+ import { C as timestamptzStringColumn, D as varcharColumn, E as varbitColumn, S as timestamptzJsDateColumn, T as timetzColumn, _ as textColumn, a as dateStringColumn, b as timestampStringColumn, c as float8Column, d as int8Column, f as intervalColumn, g as rawColumn, h as numericColumn, i as charColumn, l as int2Column, m as jsonbColumn, n as boolColumn, o as dateTemporalColumn, p as jsonColumn, r as byteaColumn, s as float4Column, t as bitColumn, u as int4Column, v as timeStringColumn, w as timestamptzTemporalColumn, x as timestampTemporalColumn, y as timeTemporalColumn } from "./column-types-D4U5xGjS.mjs";
2
+ export { bitColumn, boolColumn, byteaColumn, charColumn, dateStringColumn, dateTemporalColumn, float4Column, float8Column, int2Column, int4Column, int8Column, intervalColumn, jsonColumn, jsonbColumn, numericColumn, rawColumn, textColumn, timeStringColumn, timeTemporalColumn, timestampStringColumn, timestampTemporalColumn, timestamptzJsDateColumn, timestamptzStringColumn, timestamptzTemporalColumn, timetzColumn, varbitColumn, varcharColumn };
@@ -1,2 +1,2 @@
1
- import { C as timestamptzTemporalColumn, E as varcharColumn, S as timestamptzStringColumn, T as varbitColumn, _ as timeStringColumn, a as dateStringColumn, b as timestampTemporalColumn, c as float8Column, d as int8Column, f as intervalColumn, g as textColumn, h as numericColumn, i as charColumn, l as int2Column, m as jsonbColumn, n as boolColumn, o as dateTemporalColumn, p as jsonColumn, r as byteaColumn, s as float4Column, t as bitColumn, u as int4Column, v as timeTemporalColumn, w as timetzColumn, x as timestamptzJsDateColumn, y as timestampStringColumn } from "./column-types-Bbc3IVA7.mjs";
2
- export { bitColumn, boolColumn, byteaColumn, charColumn, dateStringColumn, dateTemporalColumn, float4Column, float8Column, int2Column, int4Column, int8Column, intervalColumn, jsonColumn, jsonbColumn, numericColumn, textColumn, timeStringColumn, timeTemporalColumn, timestampStringColumn, timestampTemporalColumn, timestamptzJsDateColumn, timestamptzStringColumn, timestamptzTemporalColumn, timetzColumn, varbitColumn, varcharColumn };
1
+ import { C as timestamptzStringColumn, D as varcharColumn, E as varbitColumn, S as timestamptzJsDateColumn, T as timetzColumn, _ as textColumn, a as dateStringColumn, b as timestampStringColumn, c as float8Column, d as int8Column, f as intervalColumn, g as rawColumn, h as numericColumn, i as charColumn, l as int2Column, m as jsonbColumn, n as boolColumn, o as dateTemporalColumn, p as jsonColumn, r as byteaColumn, s as float4Column, t as bitColumn, u as int4Column, v as timeStringColumn, w as timestamptzTemporalColumn, x as timestampTemporalColumn, y as timeTemporalColumn } from "./column-types-5nUQfQFq.mjs";
2
+ export { bitColumn, boolColumn, byteaColumn, charColumn, dateStringColumn, dateTemporalColumn, float4Column, float8Column, int2Column, int4Column, int8Column, intervalColumn, jsonColumn, jsonbColumn, numericColumn, rawColumn, textColumn, timeStringColumn, timeTemporalColumn, timestampStringColumn, timestampTemporalColumn, timestamptzJsDateColumn, timestamptzStringColumn, timestamptzTemporalColumn, timetzColumn, varbitColumn, varcharColumn };
@@ -1,4 +1,4 @@
1
- import { a as createPostgresCodecRegistryWithBuiltins, i as createPostgresBuiltinCodecLookup } from "./codecs-J4SSxTf4.mjs";
1
+ import { a as createPostgresCodecRegistryWithBuiltins, i as createPostgresBuiltinCodecLookup } from "./codecs-DydRFxCt.mjs";
2
2
  import { n as qualifyName, r as quoteIdentifier, t as escapeLiteral } from "./sql-utils-B7LfCQCB.mjs";
3
- import { n as postgresAdapterDescriptor, t as PostgresControlAdapter } from "./control-vBNwKZ7Q.mjs";
3
+ import { n as postgresAdapterDescriptor, t as PostgresControlAdapter } from "./control-R69irs57.mjs";
4
4
  export { PostgresControlAdapter, createPostgresBuiltinCodecLookup, createPostgresCodecRegistryWithBuiltins, postgresAdapterDescriptor as default, escapeLiteral, qualifyName, quoteIdentifier };
@@ -1,8 +1,8 @@
1
1
  import { i as quoteIdentifier, n as escapeLiteral, r as qualifyName } from "./sql-utils-Bnw3JbWf-zvWDkyrr.mjs";
2
- import { i as createPostgresCodecRegistryWithBuiltins, r as createPostgresBuiltinCodecLookup, t as assemblePostgresCodecRegistry } from "./codec-registry-T79ktJL4-B9_zlIhI.mjs";
3
- import { v as postgresPslTypeConstructors } from "./type-constructors-BEZJxWcZ-Co2GJw1M.mjs";
4
- import { t as PostgresControlAdapter } from "./contract-contributions-CQqafzSC-DrMFSSO4.mjs";
5
- import { t as postgresAdapterDescriptorMeta } from "./descriptor-meta-DDh7-s6c-D6qC3SDx.mjs";
2
+ import { i as createPostgresCodecRegistryWithBuiltins, r as createPostgresBuiltinCodecLookup, t as assemblePostgresCodecRegistry } from "./codec-registry-C8ymMRsH-B48NRqXL.mjs";
3
+ import { v as postgresPslTypeConstructors } from "./type-constructors-DQ7O80xT-DdTGyTSt.mjs";
4
+ import { t as PostgresControlAdapter } from "./contract-contributions-CRCEK7Dx-Dx2tYlyZ.mjs";
5
+ import { t as postgresAdapterDescriptorMeta } from "./descriptor-meta-Cb7RcgEQ-CwwQ6QE8.mjs";
6
6
  //#region ../../../3-targets/6-adapters/postgres/dist/control.mjs
7
7
  function databaseFunction(expression) {
8
8
  return {
@@ -1 +1 @@
1
- {"version":3,"file":"adapter__control.mjs","names":[],"sources":["../../../../3-targets/6-adapters/postgres/dist/control.mjs"],"sourcesContent":["import { n as PostgresControlAdapter } from \"./contract-contributions-CQqafzSC.mjs\";\nimport { t as postgresAdapterDescriptorMeta } from \"./descriptor-meta-DDh7-s6c.mjs\";\nimport { assemblePostgresCodecRegistry, createPostgresBuiltinCodecLookup, createPostgresCodecRegistryWithBuiltins } from \"@internal/target-postgres/codecs\";\nimport { escapeLiteral, qualifyName, quoteIdentifier } from \"@internal/target-postgres/sql-utils\";\nimport { postgresPslTypeConstructors } from \"@internal/target-postgres/control\";\n//#region src/core/control-mutation-defaults.ts\nfunction databaseFunction(expression) {\n\treturn {\n\t\tok: true,\n\t\tvalue: {\n\t\t\tkind: \"storage\",\n\t\t\tdefaultValue: {\n\t\t\t\tkind: \"function\",\n\t\t\t\texpression\n\t\t\t}\n\t\t}\n\t};\n}\nconst postgresDefaultFunctionRegistryEntries = [[\"autoincrement\", {\n\tsignature: { documentation: \"Generates an increasing integer value in the database.\" },\n\tlower: () => databaseFunction(\"autoincrement()\"),\n\tusageSignatures: [\"autoincrement()\"]\n}], [\"now\", {\n\tsignature: { documentation: \"Uses the current database timestamp as the default value.\" },\n\tlower: () => databaseFunction(\"now()\"),\n\tusageSignatures: [\"now()\"]\n}]];\nfunction createPostgresDefaultFunctionRegistry() {\n\treturn new Map(postgresDefaultFunctionRegistryEntries);\n}\n//#endregion\n//#region src/exports/control.ts\nconst postgresAdapterDescriptor = {\n\t...postgresAdapterDescriptorMeta,\n\tauthoring: {\n\t\ttype: postgresPslTypeConstructors,\n\t\tvalueObjectStorageType: \"Jsonb\"\n\t},\n\tcontrolMutationDefaults: {\n\t\tdefaultFunctionRegistry: createPostgresDefaultFunctionRegistry(),\n\t\tgeneratorDescriptors: []\n\t},\n\tcreate(stack) {\n\t\treturn new PostgresControlAdapter(assemblePostgresCodecRegistry([\n\t\t\tstack.target,\n\t\t\t...stack.adapter === void 0 ? [] : [stack.adapter],\n\t\t\t...stack.extensions\n\t\t], stack.dataTypes.lookup), stack.dataTypes.lookup, stack.declaredDataTypes.map(({ type }) => type));\n\t}\n};\n//#endregion\nexport { PostgresControlAdapter, createPostgresBuiltinCodecLookup, createPostgresCodecRegistryWithBuiltins, postgresAdapterDescriptor as default, escapeLiteral, qualifyName, quoteIdentifier };\n\n//# sourceMappingURL=control.mjs.map"],"mappings":";;;;;;AAMA,SAAS,iBAAiB,YAAY;CACrC,OAAO;EACN,IAAI;EACJ,OAAO;GACN,MAAM;GACN,cAAc;IACb,MAAM;IACN;GACD;EACD;CACD;AACD;AACA,MAAM,yCAAyC,CAAC,CAAC,iBAAiB;CACjE,WAAW,EAAE,eAAe,yDAAyD;CACrF,aAAa,iBAAiB,iBAAiB;CAC/C,iBAAiB,CAAC,iBAAiB;AACpC,CAAC,GAAG,CAAC,OAAO;CACX,WAAW,EAAE,eAAe,4DAA4D;CACxF,aAAa,iBAAiB,OAAO;CACrC,iBAAiB,CAAC,OAAO;AAC1B,CAAC,CAAC;AACF,SAAS,wCAAwC;CAChD,OAAO,IAAI,IAAI,sCAAsC;AACtD;AAGA,MAAM,4BAA4B;CACjC,GAAG;CACH,WAAW;EACV,MAAM;EACN,wBAAwB;CACzB;CACA,yBAAyB;EACxB,yBAAyB,sCAAsC;EAC/D,sBAAsB,CAAC;CACxB;CACA,OAAO,OAAO;EACb,OAAO,IAAI,uBAAuB,8BAA8B;GAC/D,MAAM;GACN,GAAG,MAAM,YAAY,KAAK,IAAI,CAAC,IAAI,CAAC,MAAM,OAAO;GACjD,GAAG,MAAM;EACV,GAAG,MAAM,UAAU,MAAM,GAAG,MAAM,UAAU,QAAQ,MAAM,kBAAkB,KAAK,EAAE,WAAW,IAAI,CAAC;CACpG;AACD"}
1
+ {"version":3,"file":"adapter__control.mjs","names":[],"sources":["../../../../3-targets/6-adapters/postgres/dist/control.mjs"],"sourcesContent":["import { n as PostgresControlAdapter } from \"./contract-contributions-CRCEK7Dx.mjs\";\nimport { t as postgresAdapterDescriptorMeta } from \"./descriptor-meta-Cb7RcgEQ.mjs\";\nimport { assemblePostgresCodecRegistry, createPostgresBuiltinCodecLookup, createPostgresCodecRegistryWithBuiltins } from \"@internal/target-postgres/codecs\";\nimport { escapeLiteral, qualifyName, quoteIdentifier } from \"@internal/target-postgres/sql-utils\";\nimport { postgresPslTypeConstructors } from \"@internal/target-postgres/control\";\n//#region src/core/control-mutation-defaults.ts\nfunction databaseFunction(expression) {\n\treturn {\n\t\tok: true,\n\t\tvalue: {\n\t\t\tkind: \"storage\",\n\t\t\tdefaultValue: {\n\t\t\t\tkind: \"function\",\n\t\t\t\texpression\n\t\t\t}\n\t\t}\n\t};\n}\nconst postgresDefaultFunctionRegistryEntries = [[\"autoincrement\", {\n\tsignature: { documentation: \"Generates an increasing integer value in the database.\" },\n\tlower: () => databaseFunction(\"autoincrement()\"),\n\tusageSignatures: [\"autoincrement()\"]\n}], [\"now\", {\n\tsignature: { documentation: \"Uses the current database timestamp as the default value.\" },\n\tlower: () => databaseFunction(\"now()\"),\n\tusageSignatures: [\"now()\"]\n}]];\nfunction createPostgresDefaultFunctionRegistry() {\n\treturn new Map(postgresDefaultFunctionRegistryEntries);\n}\n//#endregion\n//#region src/exports/control.ts\nconst postgresAdapterDescriptor = {\n\t...postgresAdapterDescriptorMeta,\n\tauthoring: {\n\t\ttype: postgresPslTypeConstructors,\n\t\tvalueObjectStorageType: \"Jsonb\"\n\t},\n\tcontrolMutationDefaults: {\n\t\tdefaultFunctionRegistry: createPostgresDefaultFunctionRegistry(),\n\t\tgeneratorDescriptors: []\n\t},\n\tcreate(stack) {\n\t\treturn new PostgresControlAdapter(assemblePostgresCodecRegistry([\n\t\t\tstack.target,\n\t\t\t...stack.adapter === void 0 ? [] : [stack.adapter],\n\t\t\t...stack.extensions\n\t\t], stack.dataTypes.lookup), stack.dataTypes.lookup, stack.declaredDataTypes.map(({ type }) => type));\n\t}\n};\n//#endregion\nexport { PostgresControlAdapter, createPostgresBuiltinCodecLookup, createPostgresCodecRegistryWithBuiltins, postgresAdapterDescriptor as default, escapeLiteral, qualifyName, quoteIdentifier };\n\n//# sourceMappingURL=control.mjs.map"],"mappings":";;;;;;AAMA,SAAS,iBAAiB,YAAY;CACrC,OAAO;EACN,IAAI;EACJ,OAAO;GACN,MAAM;GACN,cAAc;IACb,MAAM;IACN;GACD;EACD;CACD;AACD;AACA,MAAM,yCAAyC,CAAC,CAAC,iBAAiB;CACjE,WAAW,EAAE,eAAe,yDAAyD;CACrF,aAAa,iBAAiB,iBAAiB;CAC/C,iBAAiB,CAAC,iBAAiB;AACpC,CAAC,GAAG,CAAC,OAAO;CACX,WAAW,EAAE,eAAe,4DAA4D;CACxF,aAAa,iBAAiB,OAAO;CACrC,iBAAiB,CAAC,OAAO;AAC1B,CAAC,CAAC;AACF,SAAS,wCAAwC;CAChD,OAAO,IAAI,IAAI,sCAAsC;AACtD;AAGA,MAAM,4BAA4B;CACjC,GAAG;CACH,WAAW;EACV,MAAM;EACN,wBAAwB;CACzB;CACA,yBAAyB;EACxB,yBAAyB,sCAAsC;EAC/D,sBAAsB,CAAC;CACxB;CACA,OAAO,OAAO;EACb,OAAO,IAAI,uBAAuB,8BAA8B;GAC/D,MAAM;GACN,GAAG,MAAM,YAAY,KAAK,IAAI,CAAC,IAAI,CAAC,MAAM,OAAO;GACjD,GAAG,MAAM;EACV,GAAG,MAAM,UAAU,MAAM,GAAG,MAAM,UAAU,QAAQ,MAAM,kBAAkB,KAAK,EAAE,WAAW,IAAI,CAAC;CACpG;AACD"}
@@ -1,7 +1,7 @@
1
- import { o as postgresCodecRegistry, t as assemblePostgresCodecRegistry } from "./codec-registry-T79ktJL4-B9_zlIhI.mjs";
2
- import { u as postgresNowGenerators } from "./authoring-DtjMn8TZ-sv84Cdw_.mjs";
3
- import { n as createPostgresAdapterWithCodecRegistry, r as postgresRawCodecInferer } from "./adapter-BkfuSVLm-DmjWB5c9.mjs";
4
- import { t as postgresAdapterDescriptorMeta } from "./descriptor-meta-DDh7-s6c-D6qC3SDx.mjs";
1
+ import { o as postgresCodecRegistry, t as assemblePostgresCodecRegistry } from "./codec-registry-C8ymMRsH-B48NRqXL.mjs";
2
+ import { u as postgresNowGenerators } from "./authoring-CArQ0ZSb-BXqyKMTu.mjs";
3
+ import { n as createPostgresAdapterWithCodecRegistry, r as postgresRawCodecInferer } from "./adapter-BLduF4bR-LPL0DsEe.mjs";
4
+ import { t as postgresAdapterDescriptorMeta } from "./descriptor-meta-Cb7RcgEQ-CwwQ6QE8.mjs";
5
5
  import { assembleDataTypes } from "@prisma/orm-framework/components/codec";
6
6
  import { timestampNowRuntimeGenerator } from "@prisma/orm-family-sql/family/runtime";
7
7
  import { builtinGeneratorIds } from "@prisma/orm-framework/ids";
@@ -1 +1 @@
1
- {"version":3,"file":"adapter__runtime.mjs","names":[],"sources":["../../../../3-targets/6-adapters/postgres/dist/runtime.mjs"],"sourcesContent":["import { n as createPostgresAdapterWithCodecRegistry, r as postgresRawCodecInferer } from \"./adapter-BkfuSVLm.mjs\";\nimport { t as postgresAdapterDescriptorMeta } from \"./descriptor-meta-DDh7-s6c.mjs\";\nimport { assembleDataTypes } from \"@internal/framework-components/codec\";\nimport { assemblePostgresCodecRegistry, postgresCodecRegistry } from \"@internal/target-postgres/codecs\";\nimport { timestampNowRuntimeGenerator } from \"@internal/family-sql/runtime\";\nimport { builtinGeneratorIds } from \"@internal/ids\";\nimport { generateId } from \"@internal/ids/runtime\";\nimport { postgresNowGenerators } from \"@internal/target-postgres/runtime\";\n//#region src/exports/runtime.ts\nfunction createPostgresMutationDefaultGenerators() {\n\treturn [\n\t\t...builtinGeneratorIds.map((id) => ({\n\t\t\tid,\n\t\t\tgenerate: (params) => {\n\t\t\t\treturn generateId(params ? {\n\t\t\t\t\tid,\n\t\t\t\t\tparams\n\t\t\t\t} : { id });\n\t\t\t},\n\t\t\tstability: \"field\"\n\t\t})),\n\t\ttimestampNowRuntimeGenerator(),\n\t\t...postgresNowGenerators.map(({ id, generate }) => ({\n\t\t\tid,\n\t\t\tgenerate,\n\t\t\tstability: \"query\"\n\t\t}))\n\t];\n}\nconst postgresRuntimeAdapterDescriptor = {\n\t...postgresAdapterDescriptorMeta,\n\tcodecs: () => Array.from(postgresCodecRegistry.values()),\n\tmutationDefaultGenerators: createPostgresMutationDefaultGenerators,\n\trawCodecInferer: postgresRawCodecInferer,\n\tcreate(stack) {\n\t\tconst components = [\n\t\t\tstack.target,\n\t\t\tstack.adapter,\n\t\t\t...stack.extensions\n\t\t];\n\t\tconst dataTypes = assembleDataTypes(components);\n\t\treturn createPostgresAdapterWithCodecRegistry(assemblePostgresCodecRegistry(components, dataTypes.lookup), dataTypes.lookup, dataTypes.declared.map(({ type }) => type));\n\t}\n};\n//#endregion\nexport { postgresRuntimeAdapterDescriptor as default };\n\n//# sourceMappingURL=runtime.mjs.map"],"mappings":";;;;;;;;;AASA,SAAS,0CAA0C;CAClD,OAAO;EACN,GAAG,oBAAoB,KAAK,QAAQ;GACnC;GACA,WAAW,WAAW;IACrB,OAAO,WAAW,SAAS;KAC1B;KACA;IACD,IAAI,EAAE,GAAG,CAAC;GACX;GACA,WAAW;EACZ,EAAE;EACF,6BAA6B;EAC7B,GAAG,sBAAsB,KAAK,EAAE,IAAI,gBAAgB;GACnD;GACA;GACA,WAAW;EACZ,EAAE;CACH;AACD;AACA,MAAM,mCAAmC;CACxC,GAAG;CACH,cAAc,MAAM,KAAK,sBAAsB,OAAO,CAAC;CACvD,2BAA2B;CAC3B,iBAAiB;CACjB,OAAO,OAAO;EACb,MAAM,aAAa;GAClB,MAAM;GACN,MAAM;GACN,GAAG,MAAM;EACV;EACA,MAAM,YAAY,kBAAkB,UAAU;EAC9C,OAAO,uCAAuC,8BAA8B,YAAY,UAAU,MAAM,GAAG,UAAU,QAAQ,UAAU,SAAS,KAAK,EAAE,WAAW,IAAI,CAAC;CACxK;AACD"}
1
+ {"version":3,"file":"adapter__runtime.mjs","names":[],"sources":["../../../../3-targets/6-adapters/postgres/dist/runtime.mjs"],"sourcesContent":["import { n as createPostgresAdapterWithCodecRegistry, r as postgresRawCodecInferer } from \"./adapter-BLduF4bR.mjs\";\nimport { t as postgresAdapterDescriptorMeta } from \"./descriptor-meta-Cb7RcgEQ.mjs\";\nimport { assembleDataTypes } from \"@internal/framework-components/codec\";\nimport { assemblePostgresCodecRegistry, postgresCodecRegistry } from \"@internal/target-postgres/codecs\";\nimport { timestampNowRuntimeGenerator } from \"@internal/family-sql/runtime\";\nimport { builtinGeneratorIds } from \"@internal/ids\";\nimport { generateId } from \"@internal/ids/runtime\";\nimport { postgresNowGenerators } from \"@internal/target-postgres/runtime\";\n//#region src/exports/runtime.ts\nfunction createPostgresMutationDefaultGenerators() {\n\treturn [\n\t\t...builtinGeneratorIds.map((id) => ({\n\t\t\tid,\n\t\t\tgenerate: (params) => {\n\t\t\t\treturn generateId(params ? {\n\t\t\t\t\tid,\n\t\t\t\t\tparams\n\t\t\t\t} : { id });\n\t\t\t},\n\t\t\tstability: \"field\"\n\t\t})),\n\t\ttimestampNowRuntimeGenerator(),\n\t\t...postgresNowGenerators.map(({ id, generate }) => ({\n\t\t\tid,\n\t\t\tgenerate,\n\t\t\tstability: \"query\"\n\t\t}))\n\t];\n}\nconst postgresRuntimeAdapterDescriptor = {\n\t...postgresAdapterDescriptorMeta,\n\tcodecs: () => Array.from(postgresCodecRegistry.values()),\n\tmutationDefaultGenerators: createPostgresMutationDefaultGenerators,\n\trawCodecInferer: postgresRawCodecInferer,\n\tcreate(stack) {\n\t\tconst components = [\n\t\t\tstack.target,\n\t\t\tstack.adapter,\n\t\t\t...stack.extensions\n\t\t];\n\t\tconst dataTypes = assembleDataTypes(components);\n\t\treturn createPostgresAdapterWithCodecRegistry(assemblePostgresCodecRegistry(components, dataTypes.lookup), dataTypes.lookup, dataTypes.declared.map(({ type }) => type));\n\t}\n};\n//#endregion\nexport { postgresRuntimeAdapterDescriptor as default };\n\n//# sourceMappingURL=runtime.mjs.map"],"mappings":";;;;;;;;;AASA,SAAS,0CAA0C;CAClD,OAAO;EACN,GAAG,oBAAoB,KAAK,QAAQ;GACnC;GACA,WAAW,WAAW;IACrB,OAAO,WAAW,SAAS;KAC1B;KACA;IACD,IAAI,EAAE,GAAG,CAAC;GACX;GACA,WAAW;EACZ,EAAE;EACF,6BAA6B;EAC7B,GAAG,sBAAsB,KAAK,EAAE,IAAI,gBAAgB;GACnD;GACA;GACA,WAAW;EACZ,EAAE;CACH;AACD;AACA,MAAM,mCAAmC;CACxC,GAAG;CACH,cAAc,MAAM,KAAK,sBAAsB,OAAO,CAAC;CACvD,2BAA2B;CAC3B,iBAAiB;CACjB,OAAO,OAAO;EACb,MAAM,aAAa;GAClB,MAAM;GACN,MAAM;GACN,GAAG,MAAM;EACV;EACA,MAAM,YAAY,kBAAkB,UAAU;EAC9C,OAAO,uCAAuC,8BAA8B,YAAY,UAAU,MAAM,GAAG,UAAU,QAAQ,UAAU,SAAS,KAAK,EAAE,WAAW,IAAI,CAAC;CACxK;AACD"}
@@ -1,2 +1,2 @@
1
- import { n as renderLoweredSql } from "./sql-renderer-CD5aYQos-1hGCWT0S.mjs";
1
+ import { n as renderLoweredSql } from "./sql-renderer-BdWJPa5F-DqJ5nUgt.mjs";
2
2
  export { renderLoweredSql };
@@ -1,5 +1,5 @@
1
1
  import { t as PostgresContract } from "./postgres-schema-Xsjt3RKO-Buv2X8ai.mjs";
2
2
  import { a as OrderClause, c as PostgresLoweredStatement, d as StorageTable, i as Expr, l as SelectAst, n as ColumnRef, o as ParamRef, r as Direction, s as PostgresAdapterOptions, t as BinaryExpr, u as StorageColumn } from "./types-D6lgKhE5-CjLf9QtO.mjs";
3
- import { t as PostgresCodecRegistry } from "./codecs-J4SSxTf4.mjs";
4
- import "./types-CJNq93fb.mjs";
3
+ import { t as PostgresCodecRegistry } from "./codecs-DydRFxCt.mjs";
4
+ import "./types-BA-ghQ5q.mjs";
5
5
  export type { BinaryExpr, ColumnRef, Direction, Expr, OrderClause, ParamRef, PostgresAdapterOptions, PostgresCodecRegistry, PostgresContract, PostgresLoweredStatement, SelectAst, StorageColumn, StorageTable };
@@ -1,4 +1,4 @@
1
- import { A as PG_TIME_TEMPORAL_CODEC_ID, B as SQL_VARCHAR_CODEC_ID, C as PG_TIMESTAMPTZ_DATE_CODEC_ID, D as PG_TIMESTAMP_TEMPORAL_CODEC_ID, E as PG_TIMESTAMP_STRING_CODEC_ID, F as PG_VARCHAR_CODEC_ID, L as SQL_FLOAT_CODEC_ID, M as PG_UNBOUNDED_INT_CODEC_ID, O as PG_TIMETZ_CODEC_ID, R as SQL_INT_CODEC_ID, S as PG_TEXT_CODEC_ID, T as PG_TIMESTAMPTZ_TEMPORAL_CODEC_ID, _ as PG_INT_CODEC_ID, a as PG_DATE_STRING_CODEC_ID, b as PG_NUMERIC_CODEC_ID, c as PG_FLOAT4_CODEC_ID, d as PG_INET_CODEC_ID, f as PG_INT2_CODEC_ID, g as PG_INTERVAL_CODEC_ID, h as PG_INT8_NUMBER_CODEC_ID, k as PG_TIME_STRING_CODEC_ID, l as PG_FLOAT8_CODEC_ID, m as PG_INT8_CODEC_ID, o as PG_DATE_TEMPORAL_CODEC_ID, p as PG_INT4_CODEC_ID, s as PG_ENUM_CODEC_ID, u as PG_FLOAT_CODEC_ID, w as PG_TIMESTAMPTZ_STRING_CODEC_ID, x as PG_TEXT_ARRAY_CODEC_ID } from "./codec-ids-Cb0yO-IS--e0P2rfI.mjs";
1
+ import { A as PG_TIME_TEMPORAL_CODEC_ID, C as PG_TIMESTAMPTZ_DATE_CODEC_ID, D as PG_TIMESTAMP_TEMPORAL_CODEC_ID, E as PG_TIMESTAMP_STRING_CODEC_ID, F as PG_VARCHAR_CODEC_ID, L as SQL_FLOAT_CODEC_ID, M as PG_UNBOUNDED_INT_CODEC_ID, O as PG_TIMETZ_CODEC_ID, R as SQL_INT_CODEC_ID, S as PG_TEXT_CODEC_ID, T as PG_TIMESTAMPTZ_TEMPORAL_CODEC_ID, V as SQL_VARCHAR_CODEC_ID, _ as PG_INT_CODEC_ID, a as PG_DATE_STRING_CODEC_ID, b as PG_NUMERIC_CODEC_ID, c as PG_FLOAT4_CODEC_ID, d as PG_INET_CODEC_ID, f as PG_INT2_CODEC_ID, g as PG_INTERVAL_CODEC_ID, h as PG_INT8_NUMBER_CODEC_ID, k as PG_TIME_STRING_CODEC_ID, l as PG_FLOAT8_CODEC_ID, m as PG_INT8_CODEC_ID, o as PG_DATE_TEMPORAL_CODEC_ID, p as PG_INT4_CODEC_ID, s as PG_ENUM_CODEC_ID, u as PG_FLOAT_CODEC_ID, w as PG_TIMESTAMPTZ_STRING_CODEC_ID, x as PG_TEXT_ARRAY_CODEC_ID } from "./codec-ids-BMhEpFwv-BLIC4g3Y.mjs";
2
2
  import { AggregateExpr, CastExpr } from "@prisma/orm-family-sql/relational-core/ast";
3
3
  //#region ../../../3-targets/3-targets/postgres/dist/aggregates.mjs
4
4
  /**
@@ -194,4 +194,4 @@ const postgresAggregateDescriptors = [
194
194
  //#endregion
195
195
  export { postgresAggregateDescriptors as t };
196
196
 
197
- //# sourceMappingURL=aggregates-DHIDeR2f.mjs.map
197
+ //# sourceMappingURL=aggregates-C7KEByGU.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"aggregates-DHIDeR2f.mjs","names":[],"sources":["../../../../3-targets/3-targets/postgres/dist/aggregates.mjs"],"sourcesContent":["import { A as PG_TIME_TEMPORAL_CODEC_ID, B as SQL_VARCHAR_CODEC_ID, C as PG_TIMESTAMPTZ_DATE_CODEC_ID, D as PG_TIMESTAMP_TEMPORAL_CODEC_ID, E as PG_TIMESTAMP_STRING_CODEC_ID, F as PG_VARCHAR_CODEC_ID, L as SQL_FLOAT_CODEC_ID, M as PG_UNBOUNDED_INT_CODEC_ID, O as PG_TIMETZ_CODEC_ID, R as SQL_INT_CODEC_ID, S as PG_TEXT_CODEC_ID, T as PG_TIMESTAMPTZ_TEMPORAL_CODEC_ID, _ as PG_INT_CODEC_ID, a as PG_DATE_STRING_CODEC_ID, b as PG_NUMERIC_CODEC_ID, c as PG_FLOAT4_CODEC_ID, d as PG_INET_CODEC_ID, f as PG_INT2_CODEC_ID, g as PG_INTERVAL_CODEC_ID, h as PG_INT8_NUMBER_CODEC_ID, k as PG_TIME_STRING_CODEC_ID, l as PG_FLOAT8_CODEC_ID, m as PG_INT8_CODEC_ID, o as PG_DATE_TEMPORAL_CODEC_ID, p as PG_INT4_CODEC_ID, s as PG_ENUM_CODEC_ID, u as PG_FLOAT_CODEC_ID, w as PG_TIMESTAMPTZ_STRING_CODEC_ID, x as PG_TEXT_ARRAY_CODEC_ID } from \"./codec-ids-Cb0yO-IS.mjs\";\nimport { AggregateExpr, CastExpr } from \"@internal/sql-relational-core/ast\";\n//#region src/core/aggregates.ts\n/**\n* An aggregate whose result is one of the input values, so it carries the input's codec — type parameters included, since a `numeric(10,3)` minimum is still a `numeric(10,3)`.\n*/\nconst preservesInput = (operation, input) => ({\n\toperation,\n\tinput,\n\toutput: { kind: \"self\" },\n\tnullable: true\n});\n/**\n* An aggregate whose result is a new value. It names its result codec without type parameters: a sum leaves the input's width behind (a `numeric(10,3)` column sums to an unconstrained `numeric`), so carrying the input's parameters into the result would understate the range.\n*/\nconst produces = (operation, input, codecId) => ({\n\toperation,\n\tinput,\n\toutput: {\n\t\tkind: \"codec\",\n\t\tcodecId\n\t},\n\tnullable: true\n});\n/** The same, for an operation that builds its own expression. */\nconst producesVia = (operation, input, codecId, lower) => ({\n\t...produces(operation, input, codecId),\n\tlower\n});\n/** The SQL aggregate a lossless variant computes with. `sumBigInt` is a `sum` read exactly, `countBigInt` a `count`, `avgDecimal` an `avg`: the variants differ in how the result is read, never in what the database computes. */\nconst computedWith = (fn) => ({ expr }) => new AggregateExpr(fn, expr);\n/** `avg` over an integer column, rounded once. PostgreSQL computes the exact `numeric` mean and the cast turns that one value into the `double precision` the result codec reads; casting the input instead would round every value before it was accumulated. */\nconst avgCastToFloat8 = ({ expr }) => CastExpr.as(new AggregateExpr(\"avg\", expr), \"float8\");\n/** Integer codecs whose `sum` widens to `bigint` — every built-in integer bar the 64-bit ones, whose sum goes to `numeric` instead. */\nconst SUM_WIDENS_TO_INT8 = [\n\tPG_INT2_CODEC_ID,\n\tPG_INT4_CODEC_ID,\n\tPG_INT_CODEC_ID,\n\tSQL_INT_CODEC_ID\n];\n/** The 64-bit integer codecs: PostgreSQL computes their `sum` as a `numeric`, a total free to leave the range an `int8` holds. */\nconst SUM_WIDENS_TO_NUMERIC = [PG_INT8_CODEC_ID, PG_INT8_NUMBER_CODEC_ID];\n/** The integer codecs a `sum` reads back as a `number`: every fixed-width one, whatever its own application type. */\nconst FIXED_WIDTH_INTEGER_CODECS = [...SUM_WIDENS_TO_INT8, ...SUM_WIDENS_TO_NUMERIC];\n/** Every built-in integer codec, the unbounded one included: `avg` over any of them is a `numeric` mean. */\nconst INTEGER_CODECS = [...FIXED_WIDTH_INTEGER_CODECS, PG_UNBOUNDED_INT_CODEC_ID];\n/** Codecs over `double precision`, whose `sum` and `avg` stay there. */\nconst DOUBLE_PRECISION_CODECS = [\n\tPG_FLOAT8_CODEC_ID,\n\tPG_FLOAT_CODEC_ID,\n\tSQL_FLOAT_CODEC_ID\n];\n/**\n* Codecs whose `min`/`max` returns the input type and whose traits do not already say so: the temporal types, `inet`, `text[]`, and native enums advertise `order` or `equality`, which `uuid`, `bit`, `bit varying`, `bool`, `bytea`, `json`, and `jsonb` also advertise while having no `min`/`max` at all. An exact overload per supported codec is therefore the only honest shape — a trait fallback over `order` would claim the unsupported ones too.\n*/\nconst MIN_MAX_PRESERVING_CODECS = [\n\tPG_ENUM_CODEC_ID,\n\tPG_TIMETZ_CODEC_ID,\n\tPG_INTERVAL_CODEC_ID,\n\tPG_INET_CODEC_ID,\n\tPG_TEXT_ARRAY_CODEC_ID,\n\tPG_DATE_STRING_CODEC_ID,\n\tPG_TIMESTAMP_STRING_CODEC_ID,\n\tPG_TIMESTAMPTZ_STRING_CODEC_ID,\n\tPG_TIMESTAMPTZ_DATE_CODEC_ID,\n\tPG_TIME_STRING_CODEC_ID,\n\tPG_DATE_TEMPORAL_CODEC_ID,\n\tPG_TIMESTAMP_TEMPORAL_CODEC_ID,\n\tPG_TIMESTAMPTZ_TEMPORAL_CODEC_ID,\n\tPG_TIME_TEMPORAL_CODEC_ID\n];\n/**\n* `min`/`max` over the character types, where the trait rung does hold: every `textual` codec returns its input type — except the two `varchar` codecs, whose result PostgreSQL widens to `text`, and which therefore claim themselves exactly and shadow the fallback.\n*/\nconst MIN_MAX_WIDENS_TO_TEXT = [PG_VARCHAR_CODEC_ID, SQL_VARCHAR_CODEC_ID];\nconst orderingDescriptors = (operation) => [\n\tpreservesInput(operation, {\n\t\tkind: \"trait\",\n\t\ttrait: \"numeric\"\n\t}),\n\tpreservesInput(operation, {\n\t\tkind: \"trait\",\n\t\ttrait: \"textual\"\n\t}),\n\t...MIN_MAX_WIDENS_TO_TEXT.map((codecId) => produces(operation, {\n\t\tkind: \"codec\",\n\t\tcodecId\n\t}, PG_TEXT_CODEC_ID)),\n\t...MIN_MAX_PRESERVING_CODECS.map((codecId) => preservesInput(operation, {\n\t\tkind: \"codec\",\n\t\tcodecId\n\t}))\n];\n/**\n* Every aggregate overload the PostgreSQL target contributes. The adapter lists these on `types.aggregateDescriptors`, from where emission derives result types and the runtime builds its resolution registry.\n*/\nconst postgresAggregateDescriptors = [\n\t{\n\t\toperation: \"count\",\n\t\tinput: { kind: \"any\" },\n\t\toutput: {\n\t\t\tkind: \"codec\",\n\t\t\tcodecId: PG_INT8_NUMBER_CODEC_ID\n\t\t},\n\t\tnullable: false,\n\t\temptyResultWire: \"0\"\n\t},\n\t{\n\t\toperation: \"countBigInt\",\n\t\tinput: { kind: \"any\" },\n\t\toutput: {\n\t\t\tkind: \"codec\",\n\t\t\tcodecId: PG_INT8_CODEC_ID\n\t\t},\n\t\tnullable: false,\n\t\temptyResultWire: \"0\",\n\t\tlower: computedWith(\"count\")\n\t},\n\t...FIXED_WIDTH_INTEGER_CODECS.map((codecId) => produces(\"sum\", {\n\t\tkind: \"codec\",\n\t\tcodecId\n\t}, PG_INT8_NUMBER_CODEC_ID)),\n\t...SUM_WIDENS_TO_INT8.map((codecId) => producesVia(\"sumBigInt\", {\n\t\tkind: \"codec\",\n\t\tcodecId\n\t}, PG_INT8_CODEC_ID, computedWith(\"sum\"))),\n\t...SUM_WIDENS_TO_NUMERIC.map((codecId) => producesVia(\"sumBigInt\", {\n\t\tkind: \"codec\",\n\t\tcodecId\n\t}, PG_UNBOUNDED_INT_CODEC_ID, computedWith(\"sum\"))),\n\tproducesVia(\"sumBigInt\", {\n\t\tkind: \"codec\",\n\t\tcodecId: PG_UNBOUNDED_INT_CODEC_ID\n\t}, PG_UNBOUNDED_INT_CODEC_ID, computedWith(\"sum\")),\n\tproduces(\"sum\", {\n\t\tkind: \"codec\",\n\t\tcodecId: PG_FLOAT4_CODEC_ID\n\t}, PG_FLOAT4_CODEC_ID),\n\t...DOUBLE_PRECISION_CODECS.map((codecId) => produces(\"sum\", {\n\t\tkind: \"codec\",\n\t\tcodecId\n\t}, PG_FLOAT8_CODEC_ID)),\n\tproduces(\"sum\", {\n\t\tkind: \"codec\",\n\t\tcodecId: PG_NUMERIC_CODEC_ID\n\t}, PG_NUMERIC_CODEC_ID),\n\tproduces(\"sum\", {\n\t\tkind: \"codec\",\n\t\tcodecId: PG_UNBOUNDED_INT_CODEC_ID\n\t}, PG_UNBOUNDED_INT_CODEC_ID),\n\tproduces(\"sum\", {\n\t\tkind: \"codec\",\n\t\tcodecId: PG_INTERVAL_CODEC_ID\n\t}, PG_INTERVAL_CODEC_ID),\n\tproduces(\"sum\", {\n\t\tkind: \"codec\",\n\t\tcodecId: PG_TIME_STRING_CODEC_ID\n\t}, PG_INTERVAL_CODEC_ID),\n\tproduces(\"sum\", {\n\t\tkind: \"codec\",\n\t\tcodecId: PG_TIME_TEMPORAL_CODEC_ID\n\t}, PG_INTERVAL_CODEC_ID),\n\t...INTEGER_CODECS.map((codecId) => producesVia(\"avg\", {\n\t\tkind: \"codec\",\n\t\tcodecId\n\t}, PG_FLOAT8_CODEC_ID, avgCastToFloat8)),\n\t...[...INTEGER_CODECS, PG_NUMERIC_CODEC_ID].map((codecId) => producesVia(\"avgDecimal\", {\n\t\tkind: \"codec\",\n\t\tcodecId\n\t}, PG_NUMERIC_CODEC_ID, computedWith(\"avg\"))),\n\t...[PG_FLOAT4_CODEC_ID, ...DOUBLE_PRECISION_CODECS].map((codecId) => produces(\"avg\", {\n\t\tkind: \"codec\",\n\t\tcodecId\n\t}, PG_FLOAT8_CODEC_ID)),\n\tproduces(\"avg\", {\n\t\tkind: \"codec\",\n\t\tcodecId: PG_NUMERIC_CODEC_ID\n\t}, PG_NUMERIC_CODEC_ID),\n\tproduces(\"avg\", {\n\t\tkind: \"codec\",\n\t\tcodecId: PG_INTERVAL_CODEC_ID\n\t}, PG_INTERVAL_CODEC_ID),\n\tproduces(\"avg\", {\n\t\tkind: \"codec\",\n\t\tcodecId: PG_TIME_STRING_CODEC_ID\n\t}, PG_INTERVAL_CODEC_ID),\n\tproduces(\"avg\", {\n\t\tkind: \"codec\",\n\t\tcodecId: PG_TIME_TEMPORAL_CODEC_ID\n\t}, PG_INTERVAL_CODEC_ID),\n\t...orderingDescriptors(\"min\"),\n\t...orderingDescriptors(\"max\")\n];\n//#endregion\nexport { postgresAggregateDescriptors };\n\n//# sourceMappingURL=aggregates.mjs.map"],"mappings":"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"}
1
+ {"version":3,"file":"aggregates-C7KEByGU.mjs","names":[],"sources":["../../../../3-targets/3-targets/postgres/dist/aggregates.mjs"],"sourcesContent":["import { A as PG_TIME_TEMPORAL_CODEC_ID, C as PG_TIMESTAMPTZ_DATE_CODEC_ID, D as PG_TIMESTAMP_TEMPORAL_CODEC_ID, E as PG_TIMESTAMP_STRING_CODEC_ID, F as PG_VARCHAR_CODEC_ID, L as SQL_FLOAT_CODEC_ID, M as PG_UNBOUNDED_INT_CODEC_ID, O as PG_TIMETZ_CODEC_ID, R as SQL_INT_CODEC_ID, S as PG_TEXT_CODEC_ID, T as PG_TIMESTAMPTZ_TEMPORAL_CODEC_ID, V as SQL_VARCHAR_CODEC_ID, _ as PG_INT_CODEC_ID, a as PG_DATE_STRING_CODEC_ID, b as PG_NUMERIC_CODEC_ID, c as PG_FLOAT4_CODEC_ID, d as PG_INET_CODEC_ID, f as PG_INT2_CODEC_ID, g as PG_INTERVAL_CODEC_ID, h as PG_INT8_NUMBER_CODEC_ID, k as PG_TIME_STRING_CODEC_ID, l as PG_FLOAT8_CODEC_ID, m as PG_INT8_CODEC_ID, o as PG_DATE_TEMPORAL_CODEC_ID, p as PG_INT4_CODEC_ID, s as PG_ENUM_CODEC_ID, u as PG_FLOAT_CODEC_ID, w as PG_TIMESTAMPTZ_STRING_CODEC_ID, x as PG_TEXT_ARRAY_CODEC_ID } from \"./codec-ids-BMhEpFwv.mjs\";\nimport { AggregateExpr, CastExpr } from \"@internal/sql-relational-core/ast\";\n//#region src/core/aggregates.ts\n/**\n* An aggregate whose result is one of the input values, so it carries the input's codec — type parameters included, since a `numeric(10,3)` minimum is still a `numeric(10,3)`.\n*/\nconst preservesInput = (operation, input) => ({\n\toperation,\n\tinput,\n\toutput: { kind: \"self\" },\n\tnullable: true\n});\n/**\n* An aggregate whose result is a new value. It names its result codec without type parameters: a sum leaves the input's width behind (a `numeric(10,3)` column sums to an unconstrained `numeric`), so carrying the input's parameters into the result would understate the range.\n*/\nconst produces = (operation, input, codecId) => ({\n\toperation,\n\tinput,\n\toutput: {\n\t\tkind: \"codec\",\n\t\tcodecId\n\t},\n\tnullable: true\n});\n/** The same, for an operation that builds its own expression. */\nconst producesVia = (operation, input, codecId, lower) => ({\n\t...produces(operation, input, codecId),\n\tlower\n});\n/** The SQL aggregate a lossless variant computes with. `sumBigInt` is a `sum` read exactly, `countBigInt` a `count`, `avgDecimal` an `avg`: the variants differ in how the result is read, never in what the database computes. */\nconst computedWith = (fn) => ({ expr }) => new AggregateExpr(fn, expr);\n/** `avg` over an integer column, rounded once. PostgreSQL computes the exact `numeric` mean and the cast turns that one value into the `double precision` the result codec reads; casting the input instead would round every value before it was accumulated. */\nconst avgCastToFloat8 = ({ expr }) => CastExpr.as(new AggregateExpr(\"avg\", expr), \"float8\");\n/** Integer codecs whose `sum` widens to `bigint` — every built-in integer bar the 64-bit ones, whose sum goes to `numeric` instead. */\nconst SUM_WIDENS_TO_INT8 = [\n\tPG_INT2_CODEC_ID,\n\tPG_INT4_CODEC_ID,\n\tPG_INT_CODEC_ID,\n\tSQL_INT_CODEC_ID\n];\n/** The 64-bit integer codecs: PostgreSQL computes their `sum` as a `numeric`, a total free to leave the range an `int8` holds. */\nconst SUM_WIDENS_TO_NUMERIC = [PG_INT8_CODEC_ID, PG_INT8_NUMBER_CODEC_ID];\n/** The integer codecs a `sum` reads back as a `number`: every fixed-width one, whatever its own application type. */\nconst FIXED_WIDTH_INTEGER_CODECS = [...SUM_WIDENS_TO_INT8, ...SUM_WIDENS_TO_NUMERIC];\n/** Every built-in integer codec, the unbounded one included: `avg` over any of them is a `numeric` mean. */\nconst INTEGER_CODECS = [...FIXED_WIDTH_INTEGER_CODECS, PG_UNBOUNDED_INT_CODEC_ID];\n/** Codecs over `double precision`, whose `sum` and `avg` stay there. */\nconst DOUBLE_PRECISION_CODECS = [\n\tPG_FLOAT8_CODEC_ID,\n\tPG_FLOAT_CODEC_ID,\n\tSQL_FLOAT_CODEC_ID\n];\n/**\n* Codecs whose `min`/`max` returns the input type and whose traits do not already say so: the temporal types, `inet`, `text[]`, and native enums advertise `order` or `equality`, which `uuid`, `bit`, `bit varying`, `bool`, `bytea`, `json`, and `jsonb` also advertise while having no `min`/`max` at all. An exact overload per supported codec is therefore the only honest shape — a trait fallback over `order` would claim the unsupported ones too.\n*/\nconst MIN_MAX_PRESERVING_CODECS = [\n\tPG_ENUM_CODEC_ID,\n\tPG_TIMETZ_CODEC_ID,\n\tPG_INTERVAL_CODEC_ID,\n\tPG_INET_CODEC_ID,\n\tPG_TEXT_ARRAY_CODEC_ID,\n\tPG_DATE_STRING_CODEC_ID,\n\tPG_TIMESTAMP_STRING_CODEC_ID,\n\tPG_TIMESTAMPTZ_STRING_CODEC_ID,\n\tPG_TIMESTAMPTZ_DATE_CODEC_ID,\n\tPG_TIME_STRING_CODEC_ID,\n\tPG_DATE_TEMPORAL_CODEC_ID,\n\tPG_TIMESTAMP_TEMPORAL_CODEC_ID,\n\tPG_TIMESTAMPTZ_TEMPORAL_CODEC_ID,\n\tPG_TIME_TEMPORAL_CODEC_ID\n];\n/**\n* `min`/`max` over the character types, where the trait rung does hold: every `textual` codec returns its input type — except the two `varchar` codecs, whose result PostgreSQL widens to `text`, and which therefore claim themselves exactly and shadow the fallback.\n*/\nconst MIN_MAX_WIDENS_TO_TEXT = [PG_VARCHAR_CODEC_ID, SQL_VARCHAR_CODEC_ID];\nconst orderingDescriptors = (operation) => [\n\tpreservesInput(operation, {\n\t\tkind: \"trait\",\n\t\ttrait: \"numeric\"\n\t}),\n\tpreservesInput(operation, {\n\t\tkind: \"trait\",\n\t\ttrait: \"textual\"\n\t}),\n\t...MIN_MAX_WIDENS_TO_TEXT.map((codecId) => produces(operation, {\n\t\tkind: \"codec\",\n\t\tcodecId\n\t}, PG_TEXT_CODEC_ID)),\n\t...MIN_MAX_PRESERVING_CODECS.map((codecId) => preservesInput(operation, {\n\t\tkind: \"codec\",\n\t\tcodecId\n\t}))\n];\n/**\n* Every aggregate overload the PostgreSQL target contributes. The adapter lists these on `types.aggregateDescriptors`, from where emission derives result types and the runtime builds its resolution registry.\n*/\nconst postgresAggregateDescriptors = [\n\t{\n\t\toperation: \"count\",\n\t\tinput: { kind: \"any\" },\n\t\toutput: {\n\t\t\tkind: \"codec\",\n\t\t\tcodecId: PG_INT8_NUMBER_CODEC_ID\n\t\t},\n\t\tnullable: false,\n\t\temptyResultWire: \"0\"\n\t},\n\t{\n\t\toperation: \"countBigInt\",\n\t\tinput: { kind: \"any\" },\n\t\toutput: {\n\t\t\tkind: \"codec\",\n\t\t\tcodecId: PG_INT8_CODEC_ID\n\t\t},\n\t\tnullable: false,\n\t\temptyResultWire: \"0\",\n\t\tlower: computedWith(\"count\")\n\t},\n\t...FIXED_WIDTH_INTEGER_CODECS.map((codecId) => produces(\"sum\", {\n\t\tkind: \"codec\",\n\t\tcodecId\n\t}, PG_INT8_NUMBER_CODEC_ID)),\n\t...SUM_WIDENS_TO_INT8.map((codecId) => producesVia(\"sumBigInt\", {\n\t\tkind: \"codec\",\n\t\tcodecId\n\t}, PG_INT8_CODEC_ID, computedWith(\"sum\"))),\n\t...SUM_WIDENS_TO_NUMERIC.map((codecId) => producesVia(\"sumBigInt\", {\n\t\tkind: \"codec\",\n\t\tcodecId\n\t}, PG_UNBOUNDED_INT_CODEC_ID, computedWith(\"sum\"))),\n\tproducesVia(\"sumBigInt\", {\n\t\tkind: \"codec\",\n\t\tcodecId: PG_UNBOUNDED_INT_CODEC_ID\n\t}, PG_UNBOUNDED_INT_CODEC_ID, computedWith(\"sum\")),\n\tproduces(\"sum\", {\n\t\tkind: \"codec\",\n\t\tcodecId: PG_FLOAT4_CODEC_ID\n\t}, PG_FLOAT4_CODEC_ID),\n\t...DOUBLE_PRECISION_CODECS.map((codecId) => produces(\"sum\", {\n\t\tkind: \"codec\",\n\t\tcodecId\n\t}, PG_FLOAT8_CODEC_ID)),\n\tproduces(\"sum\", {\n\t\tkind: \"codec\",\n\t\tcodecId: PG_NUMERIC_CODEC_ID\n\t}, PG_NUMERIC_CODEC_ID),\n\tproduces(\"sum\", {\n\t\tkind: \"codec\",\n\t\tcodecId: PG_UNBOUNDED_INT_CODEC_ID\n\t}, PG_UNBOUNDED_INT_CODEC_ID),\n\tproduces(\"sum\", {\n\t\tkind: \"codec\",\n\t\tcodecId: PG_INTERVAL_CODEC_ID\n\t}, PG_INTERVAL_CODEC_ID),\n\tproduces(\"sum\", {\n\t\tkind: \"codec\",\n\t\tcodecId: PG_TIME_STRING_CODEC_ID\n\t}, PG_INTERVAL_CODEC_ID),\n\tproduces(\"sum\", {\n\t\tkind: \"codec\",\n\t\tcodecId: PG_TIME_TEMPORAL_CODEC_ID\n\t}, PG_INTERVAL_CODEC_ID),\n\t...INTEGER_CODECS.map((codecId) => producesVia(\"avg\", {\n\t\tkind: \"codec\",\n\t\tcodecId\n\t}, PG_FLOAT8_CODEC_ID, avgCastToFloat8)),\n\t...[...INTEGER_CODECS, PG_NUMERIC_CODEC_ID].map((codecId) => producesVia(\"avgDecimal\", {\n\t\tkind: \"codec\",\n\t\tcodecId\n\t}, PG_NUMERIC_CODEC_ID, computedWith(\"avg\"))),\n\t...[PG_FLOAT4_CODEC_ID, ...DOUBLE_PRECISION_CODECS].map((codecId) => produces(\"avg\", {\n\t\tkind: \"codec\",\n\t\tcodecId\n\t}, PG_FLOAT8_CODEC_ID)),\n\tproduces(\"avg\", {\n\t\tkind: \"codec\",\n\t\tcodecId: PG_NUMERIC_CODEC_ID\n\t}, PG_NUMERIC_CODEC_ID),\n\tproduces(\"avg\", {\n\t\tkind: \"codec\",\n\t\tcodecId: PG_INTERVAL_CODEC_ID\n\t}, PG_INTERVAL_CODEC_ID),\n\tproduces(\"avg\", {\n\t\tkind: \"codec\",\n\t\tcodecId: PG_TIME_STRING_CODEC_ID\n\t}, PG_INTERVAL_CODEC_ID),\n\tproduces(\"avg\", {\n\t\tkind: \"codec\",\n\t\tcodecId: PG_TIME_TEMPORAL_CODEC_ID\n\t}, PG_INTERVAL_CODEC_ID),\n\t...orderingDescriptors(\"min\"),\n\t...orderingDescriptors(\"max\")\n];\n//#endregion\nexport { postgresAggregateDescriptors };\n\n//# sourceMappingURL=aggregates.mjs.map"],"mappings":"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"}
@@ -1,10 +1,10 @@
1
- import { A as PG_TIME_TEMPORAL_CODEC_ID, C as PG_TIMESTAMPTZ_DATE_CODEC_ID, D as PG_TIMESTAMP_TEMPORAL_CODEC_ID, E as PG_TIMESTAMP_STRING_CODEC_ID, O as PG_TIMETZ_CODEC_ID, T as PG_TIMESTAMPTZ_TEMPORAL_CODEC_ID, a as PG_DATE_STRING_CODEC_ID, k as PG_TIME_STRING_CODEC_ID, o as PG_DATE_TEMPORAL_CODEC_ID, s as PG_ENUM_CODEC_ID, w as PG_TIMESTAMPTZ_STRING_CODEC_ID } from "./codec-ids-Cb0yO-IS--e0P2rfI.mjs";
1
+ import { A as PG_TIME_TEMPORAL_CODEC_ID, C as PG_TIMESTAMPTZ_DATE_CODEC_ID, D as PG_TIMESTAMP_TEMPORAL_CODEC_ID, E as PG_TIMESTAMP_STRING_CODEC_ID, O as PG_TIMETZ_CODEC_ID, T as PG_TIMESTAMPTZ_TEMPORAL_CODEC_ID, a as PG_DATE_STRING_CODEC_ID, k as PG_TIME_STRING_CODEC_ID, o as PG_DATE_TEMPORAL_CODEC_ID, s as PG_ENUM_CODEC_ID, w as PG_TIMESTAMPTZ_STRING_CODEC_ID } from "./codec-ids-BMhEpFwv-BLIC4g3Y.mjs";
2
2
  import { c as postgresError } from "./errors-BrhQYgdL-D_lIrddD.mjs";
3
3
  import { t as PostgresNativeEnum } from "./postgres-native-enum-CdP3b_-R-Cgz9KEKx.mjs";
4
- import { N as requireTemporal } from "./codecs-UZ1NEbvk-CMnI6Ti0.mjs";
4
+ import { N as requireTemporal } from "./codecs-DNjF5kIh-BkybYk_D.mjs";
5
5
  import { f as weightGroupsOf, i as POSTGRES_TEXT_SEARCH_LANGUAGES, l as fullTextIndexProblems, n as FULL_TEXT_INDEX_TYPE, o as describeFullTextIndexProblem } from "./full-text-index-definition-BPxQQBuC-BrpDsuJu.mjs";
6
- import { a as PostgresRlsPolicySchema, i as PostgresRlsPolicy, n as PostgresRlsEnablement, o as PostgresRole, r as PostgresRlsEnablementSchema, s as PostgresRoleSchema, t as PostgresNativeEnumSchema } from "./postgres-schema-DyUXtYIT-vb-RxpRN.mjs";
7
- import { t as postgresCodecTraitsOf } from "./postgres-codec-traits-D3muwxMS-OwnBG0Mz.mjs";
6
+ import { a as PostgresRlsPolicySchema, i as PostgresRlsPolicy, n as PostgresRlsEnablement, o as PostgresRole, r as PostgresRlsEnablementSchema, s as PostgresRoleSchema, t as PostgresNativeEnumSchema } from "./postgres-schema-C6w1rzOF-bzaF5PIS.mjs";
7
+ import { t as postgresCodecTraitsOf } from "./postgres-codec-traits-DM3rkou1-AyAbELmA.mjs";
8
8
  import { r as computeContentHash } from "./canonicalize-RdxoUHao-DK_M6HU-.mjs";
9
9
  import { blindCast } from "@prisma/orm-framework/utils/casts";
10
10
  import { UNBOUND_NAMESPACE_ID } from "@prisma/orm-framework/components/ir";
@@ -17,7 +17,7 @@ import { blockAttribute, bool, dataTypeValue, entityRef, fieldRef, identifier, l
17
17
  import { exactNameBodyWarning } from "@prisma/orm-family-sql/contract/index-naming";
18
18
  import { SQL_EXPRESSION_DATA_TYPE_ID, requireSqlExpression, sqlTextFromStored } from "@prisma/orm-family-sql/contract/sql-expression";
19
19
  import { singleGeneratorBinding } from "@prisma/orm-framework/components/components";
20
- //#region ../../../3-targets/3-targets/postgres/dist/authoring-DtjMn8TZ.mjs
20
+ //#region ../../../3-targets/3-targets/postgres/dist/authoring-CArQ0ZSb.mjs
21
21
  /**
22
22
  * The Postgres "now" generators, one per date and time codec except `pg/timestamptz-date@1`, which uses the framework's `timestampNow`. All read the clock through `Date.now()` and write UTC. The time generators round down to their `precision` param. The string generators are named after the codec they serve and write the text PostgreSQL prints in a UTC session, with milliseconds and no trailing zeros in the fraction.
23
23
  */
@@ -944,4 +944,4 @@ function postgresLowerEntityHandles(input) {
944
944
  //#endregion
945
945
  export { postgresAuthoringPslBlockDescriptors as a, postgresNowGeneratorControlDescriptors as c, postgresAuthoringModelAttributes as i, postgresNowGeneratorFunction as l, postgresAuthoringEntityTypes as n, postgresAuthoringTypes as o, postgresAuthoringFieldPresets as r, postgresLowerEntityHandles as s, POLICY_BLOCK_KEYWORDS as t, postgresNowGenerators as u };
946
946
 
947
- //# sourceMappingURL=authoring-DtjMn8TZ-sv84Cdw_.mjs.map
947
+ //# sourceMappingURL=authoring-CArQ0ZSb-BXqyKMTu.mjs.map