@prisma/orm-target-postgres 8.0.0-rc.21-dev.5 → 8.0.0-rc.21-dev.7

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 (208) hide show
  1. package/dist/{adapter-BIWKN0d7-HfXFH4vy.mjs → adapter-B84yJpi7-8wwdWq5R.mjs} +6 -6
  2. package/dist/{adapter-BIWKN0d7-HfXFH4vy.mjs.map → adapter-B84yJpi7-8wwdWq5R.mjs.map} +1 -1
  3. package/dist/{adapter-BNZo-LwN.d.mts → adapter-CGBZvb_8.d.mts} +3 -3
  4. package/dist/{adapter-BNZo-LwN.d.mts.map → adapter-CGBZvb_8.d.mts.map} +1 -1
  5. package/dist/adapter.d.mts +8 -8
  6. package/dist/adapter.mjs +5 -5
  7. package/dist/adapter__adapter.d.mts +1 -1
  8. package/dist/adapter__adapter.mjs +2 -2
  9. package/dist/adapter__control.d.mts +3 -3
  10. package/dist/adapter__control.mjs +4 -4
  11. package/dist/adapter__control.mjs.map +1 -1
  12. package/dist/adapter__runtime.d.mts +1 -1
  13. package/dist/adapter__runtime.mjs +4 -4
  14. package/dist/adapter__runtime.mjs.map +1 -1
  15. package/dist/adapter__sql-renderer.d.mts +1 -1
  16. package/dist/adapter__sql-renderer.mjs +1 -1
  17. package/dist/adapter__types.d.mts +3 -3
  18. package/dist/{authoring-BYl9graG-BTI-XfEW.mjs → authoring-Bm8PD9ls-clXbYDiN.mjs} +209 -48
  19. package/dist/authoring-Bm8PD9ls-clXbYDiN.mjs.map +1 -0
  20. package/dist/{autoincrement-widths-D7Uub-uA-DccZpX6Q.mjs → autoincrement-widths-DkD24r-C-D4O96GJZ.mjs} +3 -3
  21. package/dist/{autoincrement-widths-D7Uub-uA-DccZpX6Q.mjs.map → autoincrement-widths-DkD24r-C-D4O96GJZ.mjs.map} +1 -1
  22. package/dist/check-expressions-BLd3bGf1-CwtBWbN3.d.mts +21 -0
  23. package/dist/check-expressions-BLd3bGf1-CwtBWbN3.d.mts.map +1 -0
  24. package/dist/check-expressions-C_lM7sSK-Dtv6p3hg.mjs +118 -0
  25. package/dist/check-expressions-C_lM7sSK-Dtv6p3hg.mjs.map +1 -0
  26. package/dist/{codec-descriptor-DoR-cTFZ-BlG5Gj-X.mjs → codec-descriptor-DBeD0UlS-BfvrE-KZ.mjs} +6 -3
  27. package/dist/codec-descriptor-DBeD0UlS-BfvrE-KZ.mjs.map +1 -0
  28. package/dist/codec-descriptor-Dp3lP7Rc.d.mts +1 -0
  29. package/dist/{codec-descriptor-d1ByNBEk-DhrtS_5y.d.mts → codec-descriptor-nXA2rkO1-DyArG-p2.d.mts} +12 -4
  30. package/dist/codec-descriptor-nXA2rkO1-DyArG-p2.d.mts.map +1 -0
  31. package/dist/{codec-registry-D8Nsfksc-B5zXDblI.mjs → codec-registry-DVjibYBY-BeOUp5fk.mjs} +5 -5
  32. package/dist/{codec-registry-D8Nsfksc-B5zXDblI.mjs.map → codec-registry-DVjibYBY-BeOUp5fk.mjs.map} +1 -1
  33. package/dist/{codec-type-map-CIZ7LbPA-CeMPxEAm.d.mts → codec-type-map-DSuWVp-n-Cp4c9JWN.d.mts} +4 -4
  34. package/dist/{codec-type-map-CIZ7LbPA-CeMPxEAm.d.mts.map → codec-type-map-DSuWVp-n-Cp4c9JWN.d.mts.map} +1 -1
  35. package/dist/codec-types-BioRVnRb.d.mts +2 -0
  36. package/dist/{codec-types-C7E42vTO-CGX0m6Mb.d.mts → codec-types-xBRj9sIm-atN8rfl1.d.mts} +4 -4
  37. package/dist/{codec-types-C7E42vTO-CGX0m6Mb.d.mts.map → codec-types-xBRj9sIm-atN8rfl1.d.mts.map} +1 -1
  38. package/dist/{codecs-BVyoUeNy-DZw_7n3P.mjs → codecs-BqCmavY8-CC-ZbbTA.mjs} +51 -6
  39. package/dist/codecs-BqCmavY8-CC-ZbbTA.mjs.map +1 -0
  40. package/dist/{codecs-DulR4oG1.d.mts → codecs-DCtBjmAW.d.mts} +3 -3
  41. package/dist/{codecs-DulR4oG1.d.mts.map → codecs-DCtBjmAW.d.mts.map} +1 -1
  42. package/dist/{codecs-BJBFipkV-CVMp939Z.d.mts → codecs-qCAX5T6T-sg3NIKfN.d.mts} +40 -3
  43. package/dist/codecs-qCAX5T6T-sg3NIKfN.d.mts.map +1 -0
  44. package/dist/{contract-contributions-DTGGTwRZ-DUokY6NT.mjs → contract-contributions-rxCSM_1W-d9oohAzB.mjs} +16 -41
  45. package/dist/contract-contributions-rxCSM_1W-d9oohAzB.mjs.map +1 -0
  46. package/dist/{contract-free-Bjx-Ktot.mjs → contract-free-BrY8qnvY.mjs} +3 -3
  47. package/dist/{contract-free-Bjx-Ktot.mjs.map → contract-free-BrY8qnvY.mjs.map} +1 -1
  48. package/dist/{control-nSGzcTXc.d.mts → control-CCetIiFG.d.mts} +3 -3
  49. package/dist/{control-nSGzcTXc.d.mts.map → control-CCetIiFG.d.mts.map} +1 -1
  50. package/dist/{control-policy-D9yEV-XI-CCDB2v5g.mjs → control-policy-BncmQ6LO-B8SXRfP_.mjs} +9 -9
  51. package/dist/{control-policy-D9yEV-XI-CCDB2v5g.mjs.map → control-policy-BncmQ6LO-B8SXRfP_.mjs.map} +1 -1
  52. package/dist/{control-m9LWRUnY.d.mts → control-s1_5W_8t.d.mts} +179 -74
  53. package/dist/control-s1_5W_8t.d.mts.map +1 -0
  54. package/dist/{data-type-entries-DhUYJbVb-4NUH6vR_.mjs → data-type-entries-ZHPz2h_f-CNUmPGgf.mjs} +3 -3
  55. package/dist/{data-type-entries-DhUYJbVb-4NUH6vR_.mjs.map → data-type-entries-ZHPz2h_f-CNUmPGgf.mjs.map} +1 -1
  56. package/dist/{data-types-B7S_CHZd-C9JA40Ir.mjs → data-types-DklKHVmp-Bl-nwUa-.mjs} +21 -4
  57. package/dist/data-types-DklKHVmp-Bl-nwUa-.mjs.map +1 -0
  58. package/dist/{date-time-now-generators-C2aktlrc-uf9LqU6E.d.mts → date-time-now-generators-BZj5G1E3-BylrCrgW.d.mts} +4 -4
  59. package/dist/date-time-now-generators-BZj5G1E3-BylrCrgW.d.mts.map +1 -0
  60. package/dist/{date-time-now-generators-DsGxTwjo-DTb5oTHX.mjs → date-time-now-generators-Cc4PvFeB-XQWJz_4f.mjs} +21 -11
  61. package/dist/date-time-now-generators-Cc4PvFeB-XQWJz_4f.mjs.map +1 -0
  62. package/dist/{ddl-DiUFjVZe-DETlNlJh.mjs → ddl-LpR9foVX-YBmyKx74.mjs} +3 -3
  63. package/dist/{ddl-DiUFjVZe-DETlNlJh.mjs.map → ddl-LpR9foVX-YBmyKx74.mjs.map} +1 -1
  64. package/dist/{descriptor-meta-RxUflZY0-BNMenVO8.mjs → descriptor-meta-C2F_xt0P-D7gfqNS0.mjs} +17 -12
  65. package/dist/descriptor-meta-C2F_xt0P-D7gfqNS0.mjs.map +1 -0
  66. package/dist/{descriptor-meta-I7Ih-0hE-BzEpKpQF.mjs → descriptor-meta-C2YuDfV8-B_u19j25.mjs} +4 -4
  67. package/dist/{descriptor-meta-I7Ih-0hE-BzEpKpQF.mjs.map → descriptor-meta-C2YuDfV8-B_u19j25.mjs.map} +1 -1
  68. package/dist/{diff-database-schema-j18Gm75j-CNAELOTU.mjs → diff-database-schema-CcR7BN-A-BuftnIR2.mjs} +9 -9
  69. package/dist/{diff-database-schema-j18Gm75j-CNAELOTU.mjs.map → diff-database-schema-CcR7BN-A-BuftnIR2.mjs.map} +1 -1
  70. package/dist/{errors-Di_apgWJ-BLXRTfFj.mjs → errors-DG6xgXgr-Cb1XcPcb.mjs} +6 -5
  71. package/dist/errors-DG6xgXgr-Cb1XcPcb.mjs.map +1 -0
  72. package/dist/{full-text-CcHf5wkL.mjs → full-text-7szWl7EC.mjs} +3 -3
  73. package/dist/{full-text-CcHf5wkL.mjs.map → full-text-7szWl7EC.mjs.map} +1 -1
  74. package/dist/{full-text-collection-method-DHuJr46z-Bndk11cK.d.mts → full-text-collection-method-DvmPrdZL-B1FlBM0E.d.mts} +4 -4
  75. package/dist/full-text-collection-method-DvmPrdZL-B1FlBM0E.d.mts.map +1 -0
  76. package/dist/{full-text-index-definition-B0kQDs_M-8N6Slj3l.mjs → full-text-index-definition-BRNRSgZK-l_2TBarg.mjs} +3 -3
  77. package/dist/{full-text-index-definition-B0kQDs_M-8N6Slj3l.mjs.map → full-text-index-definition-BRNRSgZK-l_2TBarg.mjs.map} +1 -1
  78. package/dist/{full-text-xZIrFi7x.d.mts → full-text-k_9J-JPd.d.mts} +3 -3
  79. package/dist/{full-text-xZIrFi7x.d.mts.map → full-text-k_9J-JPd.d.mts.map} +1 -1
  80. package/dist/{full-text-parsers-hI_qtk-Q-DqTMF4n2.mjs → full-text-parsers-Dd5DOdBA-BTeOSzUj.mjs} +4 -4
  81. package/dist/{full-text-parsers-hI_qtk-Q-DqTMF4n2.mjs.map → full-text-parsers-Dd5DOdBA-BTeOSzUj.mjs.map} +1 -1
  82. package/dist/{full-text-search-document-7AKd6oOw-S-rsh3SZ.mjs → full-text-search-document-DWzECXD--BqrLGXsX.mjs} +5 -5
  83. package/dist/{full-text-search-document-7AKd6oOw-S-rsh3SZ.mjs.map → full-text-search-document-DWzECXD--BqrLGXsX.mjs.map} +1 -1
  84. package/dist/{index-types-DfnDGeQU-BWcrd_SP.mjs → index-types-5g7gXoWK-CBvkTIbr.mjs} +3 -3
  85. package/dist/{index-types-DfnDGeQU-BWcrd_SP.mjs.map → index-types-5g7gXoWK-CBvkTIbr.mjs.map} +1 -1
  86. package/dist/{infer-psl-contract-DnTNOWZT-BwBxvl_y.mjs → infer-psl-contract-CT9H9Xnw-l2pNPAyO.mjs} +76 -21
  87. package/dist/infer-psl-contract-CT9H9Xnw-l2pNPAyO.mjs.map +1 -0
  88. package/dist/migration-Be_iuIpn.mjs.map +1 -1
  89. package/dist/{native-type-normalizer-BpTZ6sm1.mjs → native-type-normalizer-DgHcQkwl.mjs} +2 -2
  90. package/dist/{native-type-normalizer-BpTZ6sm1.mjs.map → native-type-normalizer-DgHcQkwl.mjs.map} +1 -1
  91. package/dist/{op-factory-call-DI5rMe0F-Cvj8LzGR.mjs → op-factory-call-BRaCqnFh-avSVdAgI.mjs} +13 -10
  92. package/dist/op-factory-call-BRaCqnFh-avSVdAgI.mjs.map +1 -0
  93. package/dist/operation-types-ByVoHU_s.d.mts +1 -0
  94. package/dist/{operation-types-BlaAPrew-BkZiJwPy.d.mts → operation-types-DfWYI0Cn-fXs3p9mN.d.mts} +3 -3
  95. package/dist/{operation-types-BlaAPrew-BkZiJwPy.d.mts.map → operation-types-DfWYI0Cn-fXs3p9mN.d.mts.map} +1 -1
  96. package/dist/{pack-BSTwDeu2.d.mts → pack-BPopDUvg.d.mts} +187 -103
  97. package/dist/pack-BPopDUvg.d.mts.map +1 -0
  98. package/dist/{planner-Bhde2uHk-CSZF9ODS.mjs → planner-BsLpyYHC-IEpACcdS.mjs} +10 -10
  99. package/dist/{planner-Bhde2uHk-CSZF9ODS.mjs.map → planner-BsLpyYHC-IEpACcdS.mjs.map} +1 -1
  100. package/dist/{planner-ddl-builders-BHvruDX3-Sw7yWuWE.mjs → planner-ddl-builders-Dmr6ph8i-5FWxE6Wu.mjs} +3 -3
  101. package/dist/{planner-ddl-builders-BHvruDX3-Sw7yWuWE.mjs.map → planner-ddl-builders-Dmr6ph8i-5FWxE6Wu.mjs.map} +1 -1
  102. package/dist/{planner-identity-values-Cp0Cvrg7-BxMk9Qaf.mjs → planner-identity-values-BwYhwYeo-CaSwyXgC.mjs} +3 -3
  103. package/dist/{planner-identity-values-Cp0Cvrg7-BxMk9Qaf.mjs.map → planner-identity-values-BwYhwYeo-CaSwyXgC.mjs.map} +1 -1
  104. package/dist/{planner-produced-postgres-migration-CT7o4vF9-DHyGaSfZ.mjs → planner-produced-postgres-migration-CU7D_5IE-Cv-o4-Hh.mjs} +4 -4
  105. package/dist/{planner-produced-postgres-migration-CT7o4vF9-DHyGaSfZ.mjs.map → planner-produced-postgres-migration-CU7D_5IE-Cv-o4-Hh.mjs.map} +1 -1
  106. package/dist/{planner-sql-checks-Dhx-R5GJ-GyHfROia.mjs → planner-sql-checks-DOGD6v7y-BWkRMsXt.mjs} +19 -10
  107. package/dist/{planner-sql-checks-Dhx-R5GJ-GyHfROia.mjs.map → planner-sql-checks-DOGD6v7y-BWkRMsXt.mjs.map} +1 -1
  108. package/dist/{postgres-codec-traits-BfhOLlQK-BqSX5cGp.mjs → postgres-codec-traits-BhLP9ipO-D5kVsAxr.mjs} +3 -3
  109. package/dist/{postgres-codec-traits-BfhOLlQK-BqSX5cGp.mjs.map → postgres-codec-traits-BhLP9ipO-D5kVsAxr.mjs.map} +1 -1
  110. package/dist/{postgres-contract-view-d_EYkS83-Busf8EFd.mjs → postgres-contract-view-DBmVHV5m-DDZR3cBh.mjs} +8 -8
  111. package/dist/{postgres-contract-view-d_EYkS83-Busf8EFd.mjs.map → postgres-contract-view-DBmVHV5m-DDZR3cBh.mjs.map} +1 -1
  112. package/dist/{postgres-migration-CRKs0heQ-BE95T3ql.mjs → postgres-migration-DrLpuKus-DOU9Rbkb.mjs} +11 -11
  113. package/dist/{postgres-migration-CRKs0heQ-BE95T3ql.mjs.map → postgres-migration-DrLpuKus-DOU9Rbkb.mjs.map} +1 -1
  114. package/dist/{postgres-schema-CNNW8eA3-CwosQz5e.mjs → postgres-schema-CEGf780E-cyGo2Sii.mjs} +4 -4
  115. package/dist/{postgres-schema-CNNW8eA3-CwosQz5e.mjs.map → postgres-schema-CEGf780E-cyGo2Sii.mjs.map} +1 -1
  116. package/dist/{prisma7-binding-CQXZgPCd.d.mts → prisma7-binding-BNc7RE11.d.mts} +194 -103
  117. package/dist/prisma7-binding-BNc7RE11.d.mts.map +1 -0
  118. package/dist/{prisma7-binding-BwJtshLc.mjs → prisma7-binding-BvvPWMwt.mjs} +27 -9
  119. package/dist/prisma7-binding-BvvPWMwt.mjs.map +1 -0
  120. package/dist/{render-ops-CSWpAFQI-CqyjJlzM.mjs → render-ops-CbRkpwwx-C6wSWcTl.mjs} +4 -4
  121. package/dist/{render-ops-CSWpAFQI-CqyjJlzM.mjs.map → render-ops-CbRkpwwx-C6wSWcTl.mjs.map} +1 -1
  122. package/dist/{resolve-ddl-schema-p68Q5F1u-DZAQNXpi.mjs → resolve-ddl-schema-BhOYD95_-DhUQYNLi.mjs} +3 -3
  123. package/dist/{resolve-ddl-schema-p68Q5F1u-DZAQNXpi.mjs.map → resolve-ddl-schema-BhOYD95_-DhUQYNLi.mjs.map} +1 -1
  124. package/dist/{runtime-BjS3N8LM.d.mts → runtime-BbPgK4gH.d.mts} +3 -3
  125. package/dist/{runtime-BjS3N8LM.d.mts.map → runtime-BbPgK4gH.d.mts.map} +1 -1
  126. package/dist/{runtime-DtjW0GP_.d.mts → runtime-R_BCXCp_.d.mts} +2 -2
  127. package/dist/{runtime-DtjW0GP_.d.mts.map → runtime-R_BCXCp_.d.mts.map} +1 -1
  128. package/dist/{sql-renderer-BdWJPa5F-DUvahuXZ.mjs → sql-renderer-BdWJPa5F-B8cdiqmK.mjs} +3 -3
  129. package/dist/{sql-renderer-BdWJPa5F-DUvahuXZ.mjs.map → sql-renderer-BdWJPa5F-B8cdiqmK.mjs.map} +1 -1
  130. package/dist/{sql-renderer-BiBhge7D.d.mts → sql-renderer-BnO2fkSf.d.mts} +4 -4
  131. package/dist/{sql-renderer-BiBhge7D.d.mts.map → sql-renderer-BnO2fkSf.d.mts.map} +1 -1
  132. package/dist/{sql-utils-CnnGiZBc.d.mts → sql-utils-Bq4nuPvy.d.mts} +6 -2
  133. package/dist/{sql-utils-CnnGiZBc.d.mts.map → sql-utils-Bq4nuPvy.d.mts.map} +1 -1
  134. package/dist/{sql-utils-0j_6QstU-DAfnt5Mu.mjs → sql-utils-ylvfJ1RJ-03xGdSLI.mjs} +34 -4
  135. package/dist/sql-utils-ylvfJ1RJ-03xGdSLI.mjs.map +1 -0
  136. package/dist/target.d.mts +19 -19
  137. package/dist/target.mjs +33 -33
  138. package/dist/target__codec-descriptor.d.mts +2 -2
  139. package/dist/target__codec-descriptor.mjs +1 -1
  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.d.mts +2 -2
  145. package/dist/target__control.mjs +168 -48
  146. package/dist/target__control.mjs.map +1 -1
  147. package/dist/target__data-types.mjs +2 -2
  148. package/dist/target__diff-database-schema.mjs +1 -1
  149. package/dist/target__errors.mjs +1 -1
  150. package/dist/target__full-text-index-authoring.mjs +2 -2
  151. package/dist/target__full-text.d.mts +3 -3
  152. package/dist/target__full-text.mjs +2 -2
  153. package/dist/target__issue-planner.mjs +1 -1
  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.mjs +1 -1
  157. package/dist/target__operation-types.d.mts +2 -2
  158. package/dist/target__pack.d.mts +2 -2
  159. package/dist/target__pack.mjs +1 -1
  160. package/dist/target__planner-ddl-builders.mjs +1 -1
  161. package/dist/target__planner-identity-values.mjs +1 -1
  162. package/dist/target__planner-produced-postgres-migration.mjs +1 -1
  163. package/dist/target__planner-sql-checks.mjs +1 -1
  164. package/dist/target__planner.mjs +2 -2
  165. package/dist/target__prisma7-binding.d.mts +1 -1
  166. package/dist/target__prisma7-binding.mjs +1 -1
  167. package/dist/target__render-ops.mjs +1 -1
  168. package/dist/target__runtime.d.mts +3 -3
  169. package/dist/target__runtime.mjs +7 -7
  170. package/dist/target__runtime.mjs.map +1 -1
  171. package/dist/target__schema-ir-annotations.mjs +1 -1
  172. package/dist/target__sql-utils.d.mts +2 -2
  173. package/dist/target__sql-utils.mjs +4 -4
  174. package/dist/target__types.d.mts +3 -3
  175. package/dist/target__types.mjs +2 -2
  176. package/dist/types-CuFeRfUn.d.mts +2 -0
  177. package/dist/{types-DOmgp_12.d.mts → types-D-U10Lyo.d.mts} +2 -2
  178. package/dist/{types-DOmgp_12.d.mts.map → types-D-U10Lyo.d.mts.map} +1 -1
  179. package/dist/{types-D6lgKhE5-D1J9YJnd.d.mts → types-D6lgKhE5-BrgAgVCq.d.mts} +4 -4
  180. package/dist/{types-D6lgKhE5-D1J9YJnd.d.mts.map → types-D6lgKhE5-BrgAgVCq.d.mts.map} +1 -1
  181. package/package.json +9 -9
  182. package/dist/authoring-BYl9graG-BTI-XfEW.mjs.map +0 -1
  183. package/dist/check-expressions-BPrbjEKM-CEIP4jTS.mjs +0 -48
  184. package/dist/check-expressions-BPrbjEKM-CEIP4jTS.mjs.map +0 -1
  185. package/dist/check-expressions-CtTzM58x-LloO-5Vf.d.mts +0 -55
  186. package/dist/check-expressions-CtTzM58x-LloO-5Vf.d.mts.map +0 -1
  187. package/dist/codec-descriptor-DoR-cTFZ-BlG5Gj-X.mjs.map +0 -1
  188. package/dist/codec-descriptor-Fb3UoQGb.d.mts +0 -1
  189. package/dist/codec-descriptor-d1ByNBEk-DhrtS_5y.d.mts.map +0 -1
  190. package/dist/codec-types-CiEHACsD.d.mts +0 -2
  191. package/dist/codecs-BJBFipkV-CVMp939Z.d.mts.map +0 -1
  192. package/dist/codecs-BVyoUeNy-DZw_7n3P.mjs.map +0 -1
  193. package/dist/contract-contributions-DTGGTwRZ-DUokY6NT.mjs.map +0 -1
  194. package/dist/control-m9LWRUnY.d.mts.map +0 -1
  195. package/dist/data-types-B7S_CHZd-C9JA40Ir.mjs.map +0 -1
  196. package/dist/date-time-now-generators-C2aktlrc-uf9LqU6E.d.mts.map +0 -1
  197. package/dist/date-time-now-generators-DsGxTwjo-DTb5oTHX.mjs.map +0 -1
  198. package/dist/descriptor-meta-RxUflZY0-BNMenVO8.mjs.map +0 -1
  199. package/dist/errors-Di_apgWJ-BLXRTfFj.mjs.map +0 -1
  200. package/dist/full-text-collection-method-DHuJr46z-Bndk11cK.d.mts.map +0 -1
  201. package/dist/infer-psl-contract-DnTNOWZT-BwBxvl_y.mjs.map +0 -1
  202. package/dist/op-factory-call-DI5rMe0F-Cvj8LzGR.mjs.map +0 -1
  203. package/dist/operation-types-Bz8xX2oY.d.mts +0 -1
  204. package/dist/pack-BSTwDeu2.d.mts.map +0 -1
  205. package/dist/prisma7-binding-BwJtshLc.mjs.map +0 -1
  206. package/dist/prisma7-binding-CQXZgPCd.d.mts.map +0 -1
  207. package/dist/sql-utils-0j_6QstU-DAfnt5Mu.mjs.map +0 -1
  208. package/dist/types-BZ2l9Q5i.d.mts +0 -2
@@ -1,5 +1,5 @@
1
1
  import { t as PostgresPlanTargetDetails } from "./planner-target-details-HkP4RrRO-D6VtK0jY.mjs";
2
- import "./date-time-now-generators-C2aktlrc-uf9LqU6E.mjs";
2
+ import "./date-time-now-generators-BZj5G1E3-BylrCrgW.mjs";
3
3
  import { SqlControlTargetDescriptor } from "@prisma/orm-family-sql/family/control";
4
4
  //#region ../../../3-targets/postgres/1-target/dist/control.d.mts
5
5
  //#region src/core/type-constructors.d.ts
@@ -58,13 +58,6 @@ declare const postgresScalarAuthoringTypes: {
58
58
  readonly codecId: "pg/numeric@1";
59
59
  };
60
60
  };
61
- readonly DateTime: {
62
- readonly kind: "typeConstructor";
63
- readonly documentation: "An instant stored as PostgreSQL timestamptz and represented as Temporal.Instant.";
64
- readonly output: {
65
- readonly codecId: "pg/timestamptz-temporal@1";
66
- };
67
- };
68
61
  readonly Json: {
69
62
  readonly kind: "typeConstructor";
70
63
  readonly inferred: true;
@@ -217,25 +210,6 @@ declare const postgresNativeAuthoringTypes: {
217
210
  };
218
211
  };
219
212
  };
220
- readonly Time: {
221
- readonly kind: "typeConstructor";
222
- readonly documentation: "A time of day without a time zone, represented as Temporal.PlainTime.";
223
- readonly args: readonly [{
224
- readonly kind: "value";
225
- readonly dataType: "pg/int4";
226
- readonly name: "precision";
227
- readonly optional: true;
228
- }];
229
- readonly output: {
230
- readonly codecId: "pg/time-temporal@1";
231
- readonly typeParams: {
232
- readonly precision: {
233
- readonly kind: "arg";
234
- readonly index: 0;
235
- };
236
- };
237
- };
238
- };
239
213
  readonly Timetz: {
240
214
  readonly kind: "typeConstructor";
241
215
  readonly inferred: true;
@@ -295,13 +269,6 @@ declare const postgresNativeAuthoringTypes: {
295
269
  readonly codecId: "pg/date-temporal@1";
296
270
  };
297
271
  };
298
- readonly Date: {
299
- readonly kind: "typeConstructor";
300
- readonly documentation: "A calendar date represented as Temporal.PlainDate.";
301
- readonly output: {
302
- readonly codecId: "pg/date-temporal@1";
303
- };
304
- };
305
272
  readonly DateString: {
306
273
  readonly kind: "typeConstructor";
307
274
  readonly inferred: true;
@@ -312,7 +279,6 @@ declare const postgresNativeAuthoringTypes: {
312
279
  };
313
280
  readonly TimestampString: {
314
281
  readonly kind: "typeConstructor";
315
- readonly inferred: true;
316
282
  readonly documentation: "A timestamp without a time zone represented as ISO 8601 text.";
317
283
  readonly args: readonly [{
318
284
  readonly kind: "value";
@@ -332,6 +298,7 @@ declare const postgresNativeAuthoringTypes: {
332
298
  };
333
299
  readonly TimestamptzJsDate: {
334
300
  readonly kind: "typeConstructor";
301
+ readonly inferred: true;
335
302
  readonly documentation: "An instant stored as PostgreSQL timestamptz and represented as a JavaScript Date.";
336
303
  readonly args: readonly [{
337
304
  readonly kind: "value";
@@ -351,6 +318,7 @@ declare const postgresNativeAuthoringTypes: {
351
318
  };
352
319
  readonly TimestampJsDate: {
353
320
  readonly kind: "typeConstructor";
321
+ readonly inferred: true;
354
322
  readonly documentation: "A date and time stored as PostgreSQL timestamp and represented as a JavaScript Date, read and written as UTC.";
355
323
  readonly args: readonly [{
356
324
  readonly kind: "value";
@@ -389,7 +357,6 @@ declare const postgresNativeAuthoringTypes: {
389
357
  };
390
358
  readonly TimestamptzString: {
391
359
  readonly kind: "typeConstructor";
392
- readonly inferred: true;
393
360
  readonly documentation: "A timestamp with time zone represented as ISO 8601 text, the instant in UTC.";
394
361
  readonly args: readonly [{
395
362
  readonly kind: "value";
@@ -469,7 +436,6 @@ declare const postgresNativeAuthoringTypes: {
469
436
  };
470
437
  readonly IntervalParts: {
471
438
  readonly kind: "typeConstructor";
472
- readonly inferred: true;
473
439
  readonly documentation: "A span of time stored as PostgreSQL interval and represented as { months, days, micros }, with optional fractional-second precision.";
474
440
  readonly args: readonly [{
475
441
  readonly kind: "value";
@@ -489,6 +455,7 @@ declare const postgresNativeAuthoringTypes: {
489
455
  };
490
456
  readonly IntervalString: {
491
457
  readonly kind: "typeConstructor";
458
+ readonly inferred: true;
492
459
  readonly documentation: "A span of time stored as PostgreSQL interval and represented as an ISO 8601 duration such as P1Y2M, with optional fractional-second precision.";
493
460
  readonly args: readonly [{
494
461
  readonly kind: "value";
@@ -511,6 +478,177 @@ declare const postgresNativeAuthoringTypes: {
511
478
  * The base scalars and native types as type constructors. The target contributes them, so PSL and the TypeScript builder's `type.*` see the same names.
512
479
  */
513
480
  declare const postgresScalarAndNativeTypeConstructors: {
481
+ readonly DateTime: {
482
+ readonly kind: "typeChoice";
483
+ readonly documentation: "A moment in time. `as` is what the application reads: jsDate (a JavaScript Date), temporal (Temporal.Instant) or string. `storage` is timestamptz or timestamp, a timestamp read and written as UTC.";
484
+ readonly args: readonly [{
485
+ readonly kind: "option";
486
+ readonly name: "as";
487
+ readonly values: readonly ["jsDate", "temporal", "string"];
488
+ readonly default: "jsDate";
489
+ readonly optional: true;
490
+ }, {
491
+ readonly kind: "option";
492
+ readonly name: "storage";
493
+ readonly values: readonly ["timestamptz", "timestamp"];
494
+ readonly default: "timestamptz";
495
+ readonly optional: true;
496
+ }, {
497
+ readonly kind: "value";
498
+ readonly dataType: "pg/int4";
499
+ readonly name: "precision";
500
+ readonly optional: true;
501
+ }];
502
+ readonly choices: readonly [{
503
+ readonly when: {
504
+ readonly as: "jsDate";
505
+ readonly storage: "timestamptz";
506
+ };
507
+ readonly type: "TimestamptzJsDate";
508
+ readonly defaults: {
509
+ readonly precision: 3;
510
+ };
511
+ }, {
512
+ readonly when: {
513
+ readonly as: "temporal";
514
+ readonly storage: "timestamptz";
515
+ };
516
+ readonly type: "TimestamptzTemporal";
517
+ }, {
518
+ readonly when: {
519
+ readonly as: "string";
520
+ readonly storage: "timestamptz";
521
+ };
522
+ readonly type: "TimestamptzString";
523
+ }, {
524
+ readonly when: {
525
+ readonly as: "jsDate";
526
+ readonly storage: "timestamp";
527
+ };
528
+ readonly type: "TimestampJsDate";
529
+ readonly defaults: {
530
+ readonly precision: 3;
531
+ };
532
+ }, {
533
+ readonly when: {
534
+ readonly as: "temporal";
535
+ readonly storage: "timestamp";
536
+ };
537
+ readonly type: "TimestampInstant";
538
+ }, {
539
+ readonly when: {
540
+ readonly as: "string";
541
+ readonly storage: "timestamp";
542
+ };
543
+ readonly type: "TimestampString";
544
+ }];
545
+ };
546
+ readonly Date: {
547
+ readonly kind: "typeChoice";
548
+ readonly documentation: "A calendar date. `as` is what the application reads: string, such as \"2024-02-29\", or temporal (Temporal.PlainDate).";
549
+ readonly args: readonly [{
550
+ readonly kind: "option";
551
+ readonly name: "as";
552
+ readonly values: readonly ["string", "temporal"];
553
+ readonly default: "string";
554
+ readonly optional: true;
555
+ }, {
556
+ readonly kind: "option";
557
+ readonly name: "storage";
558
+ readonly values: readonly ["date"];
559
+ readonly default: "date";
560
+ readonly optional: true;
561
+ }];
562
+ readonly choices: readonly [{
563
+ readonly when: {
564
+ readonly as: "string";
565
+ readonly storage: "date";
566
+ };
567
+ readonly type: "DateString";
568
+ }, {
569
+ readonly when: {
570
+ readonly as: "temporal";
571
+ readonly storage: "date";
572
+ };
573
+ readonly type: "DateTemporal";
574
+ }];
575
+ };
576
+ readonly Time: {
577
+ readonly kind: "typeChoice";
578
+ readonly documentation: "A time of day. `as` is what the application reads: string, such as \"09:30:00\", or temporal (Temporal.PlainTime). `storage` is time, or timetz with as: string.";
579
+ readonly args: readonly [{
580
+ readonly kind: "option";
581
+ readonly name: "as";
582
+ readonly values: readonly ["string", "temporal"];
583
+ readonly default: "string";
584
+ readonly optional: true;
585
+ }, {
586
+ readonly kind: "option";
587
+ readonly name: "storage";
588
+ readonly values: readonly ["time", "timetz"];
589
+ readonly default: "time";
590
+ readonly optional: true;
591
+ }, {
592
+ readonly kind: "value";
593
+ readonly dataType: "pg/int4";
594
+ readonly name: "precision";
595
+ readonly optional: true;
596
+ }];
597
+ readonly choices: readonly [{
598
+ readonly when: {
599
+ readonly as: "string";
600
+ readonly storage: "time";
601
+ };
602
+ readonly type: "TimeString";
603
+ }, {
604
+ readonly when: {
605
+ readonly as: "temporal";
606
+ readonly storage: "time";
607
+ };
608
+ readonly type: "TimeTemporal";
609
+ }, {
610
+ readonly when: {
611
+ readonly as: "string";
612
+ readonly storage: "timetz";
613
+ };
614
+ readonly type: "Timetz";
615
+ }];
616
+ };
617
+ readonly Duration: {
618
+ readonly kind: "typeChoice";
619
+ readonly documentation: "A length of time. `as` is what the application reads: string, an ISO 8601 duration such as \"P1M\", or parts, the object { months, days, micros }.";
620
+ readonly args: readonly [{
621
+ readonly kind: "option";
622
+ readonly name: "as";
623
+ readonly values: readonly ["string", "parts"];
624
+ readonly default: "string";
625
+ readonly optional: true;
626
+ }, {
627
+ readonly kind: "option";
628
+ readonly name: "storage";
629
+ readonly values: readonly ["interval"];
630
+ readonly default: "interval";
631
+ readonly optional: true;
632
+ }, {
633
+ readonly kind: "value";
634
+ readonly dataType: "pg/int4";
635
+ readonly name: "precision";
636
+ readonly optional: true;
637
+ }];
638
+ readonly choices: readonly [{
639
+ readonly when: {
640
+ readonly as: "string";
641
+ readonly storage: "interval";
642
+ };
643
+ readonly type: "IntervalString";
644
+ }, {
645
+ readonly when: {
646
+ readonly as: "parts";
647
+ readonly storage: "interval";
648
+ };
649
+ readonly type: "IntervalParts";
650
+ }];
651
+ };
514
652
  readonly String: {
515
653
  readonly kind: "typeConstructor";
516
654
  readonly inferred: true;
@@ -558,13 +696,6 @@ declare const postgresScalarAndNativeTypeConstructors: {
558
696
  readonly codecId: "pg/numeric@1";
559
697
  };
560
698
  };
561
- readonly DateTime: {
562
- readonly kind: "typeConstructor";
563
- readonly documentation: "An instant stored as PostgreSQL timestamptz and represented as Temporal.Instant.";
564
- readonly output: {
565
- readonly codecId: "pg/timestamptz-temporal@1";
566
- };
567
- };
568
699
  readonly Json: {
569
700
  readonly kind: "typeConstructor";
570
701
  readonly inferred: true;
@@ -715,25 +846,6 @@ declare const postgresScalarAndNativeTypeConstructors: {
715
846
  };
716
847
  };
717
848
  };
718
- readonly Time: {
719
- readonly kind: "typeConstructor";
720
- readonly documentation: "A time of day without a time zone, represented as Temporal.PlainTime.";
721
- readonly args: readonly [{
722
- readonly kind: "value";
723
- readonly dataType: "pg/int4";
724
- readonly name: "precision";
725
- readonly optional: true;
726
- }];
727
- readonly output: {
728
- readonly codecId: "pg/time-temporal@1";
729
- readonly typeParams: {
730
- readonly precision: {
731
- readonly kind: "arg";
732
- readonly index: 0;
733
- };
734
- };
735
- };
736
- };
737
849
  readonly Timetz: {
738
850
  readonly kind: "typeConstructor";
739
851
  readonly inferred: true;
@@ -793,13 +905,6 @@ declare const postgresScalarAndNativeTypeConstructors: {
793
905
  readonly codecId: "pg/date-temporal@1";
794
906
  };
795
907
  };
796
- readonly Date: {
797
- readonly kind: "typeConstructor";
798
- readonly documentation: "A calendar date represented as Temporal.PlainDate.";
799
- readonly output: {
800
- readonly codecId: "pg/date-temporal@1";
801
- };
802
- };
803
908
  readonly DateString: {
804
909
  readonly kind: "typeConstructor";
805
910
  readonly inferred: true;
@@ -810,7 +915,6 @@ declare const postgresScalarAndNativeTypeConstructors: {
810
915
  };
811
916
  readonly TimestampString: {
812
917
  readonly kind: "typeConstructor";
813
- readonly inferred: true;
814
918
  readonly documentation: "A timestamp without a time zone represented as ISO 8601 text.";
815
919
  readonly args: readonly [{
816
920
  readonly kind: "value";
@@ -830,6 +934,7 @@ declare const postgresScalarAndNativeTypeConstructors: {
830
934
  };
831
935
  readonly TimestamptzJsDate: {
832
936
  readonly kind: "typeConstructor";
937
+ readonly inferred: true;
833
938
  readonly documentation: "An instant stored as PostgreSQL timestamptz and represented as a JavaScript Date.";
834
939
  readonly args: readonly [{
835
940
  readonly kind: "value";
@@ -849,6 +954,7 @@ declare const postgresScalarAndNativeTypeConstructors: {
849
954
  };
850
955
  readonly TimestampJsDate: {
851
956
  readonly kind: "typeConstructor";
957
+ readonly inferred: true;
852
958
  readonly documentation: "A date and time stored as PostgreSQL timestamp and represented as a JavaScript Date, read and written as UTC.";
853
959
  readonly args: readonly [{
854
960
  readonly kind: "value";
@@ -887,7 +993,6 @@ declare const postgresScalarAndNativeTypeConstructors: {
887
993
  };
888
994
  readonly TimestamptzString: {
889
995
  readonly kind: "typeConstructor";
890
- readonly inferred: true;
891
996
  readonly documentation: "A timestamp with time zone represented as ISO 8601 text, the instant in UTC.";
892
997
  readonly args: readonly [{
893
998
  readonly kind: "value";
@@ -967,7 +1072,6 @@ declare const postgresScalarAndNativeTypeConstructors: {
967
1072
  };
968
1073
  readonly IntervalParts: {
969
1074
  readonly kind: "typeConstructor";
970
- readonly inferred: true;
971
1075
  readonly documentation: "A span of time stored as PostgreSQL interval and represented as { months, days, micros }, with optional fractional-second precision.";
972
1076
  readonly args: readonly [{
973
1077
  readonly kind: "value";
@@ -987,6 +1091,7 @@ declare const postgresScalarAndNativeTypeConstructors: {
987
1091
  };
988
1092
  readonly IntervalString: {
989
1093
  readonly kind: "typeConstructor";
1094
+ readonly inferred: true;
990
1095
  readonly documentation: "A span of time stored as PostgreSQL interval and represented as an ISO 8601 duration such as P1Y2M, with optional fractional-second precision.";
991
1096
  readonly args: readonly [{
992
1097
  readonly kind: "value";
@@ -1010,4 +1115,4 @@ declare const postgresScalarAndNativeTypeConstructors: {
1010
1115
  declare const postgresTargetDescriptor: SqlControlTargetDescriptor<"postgres", PostgresPlanTargetDetails, import("@prisma/orm-framework/contract/types").Contract<import("@prisma/orm-family-sql/contract/types").SqlStorage<string>>>;
1011
1116
  //#endregion
1012
1117
  export { postgresTargetDescriptor as i, postgresScalarAndNativeTypeConstructors as n, postgresScalarAuthoringTypes as r, postgresNativeAuthoringTypes as t };
1013
- //# sourceMappingURL=control-m9LWRUnY.d.mts.map
1118
+ //# sourceMappingURL=control-s1_5W_8t.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"control-s1_5W_8t.d.mts","names":[],"sources":["../../../../3-targets/postgres/1-target/dist/control.d.mts"],"mappings":";;;;;;;;;;;;cAYc;WACH;aACE;aACA;aACA;aACA;eACE;;;WAGJ;aACE;aACA;aACA;aACA;eACE;;;WAGJ;aACE;aACA;aACA;aACA;eACE;;;WAGJ;aACE;aACA;aACA;aACA;eACE;;;WAGJ;aACE;aACA;aACA;aACA;eACE;;;WAGJ;aACE;aACA;aACA;eACE;;;WAGJ;aACE;aACA;aACA;aACA;eACE;;;WAGJ;aACE;aACA;aACA;aACA;eACE;;;WAGJ;aACE;aACA;aACA;aACA;eACE;;;;cAID;WACH;aACE;aACA;aACA;aACA;eACE;eACA;eACA;eACA;;aAEF;eACE;eACA;iBACE;mBACE;mBACA;;;;;WAKR;aACE;aACA;aACA;aACA;eACE;eACA;eACA;eACA;;aAEF;eACE;eACA;iBACE;mBACE;mBACA;;;;;WAKR;aACE;aACA;aACA;aACA;eACE;eACA;eACA;eACA;;eAEA;eACA;eACA;eACA;;aAEF;eACE;eACA;iBACE;mBACE;mBACA;;iBAEF;mBACE;mBACA;;;;;WAKR;aACE;aACA;aACA;eACE;eACA;eACA;eACA;;aAEF;eACE;eACA;iBACE;mBACE;mBACA;;;;;WAKR;aACE;aACA;aACA;eACE;eACA;eACA;eACA;;aAEF;eACE;eACA;iBACE;mBACE;mBACA;;;;;WAKR;aACE;aACA;aACA;eACE;eACA;eACA;eACA;;aAEF;eACE;eACA;iBACE;mBACE;mBACA;;;;;WAKR;aACE;aACA;aACA;aACA;eACE;eACA;eACA;eACA;;aAEF;eACE;eACA;iBACE;mBACE;mBACA;;;;;WAKR;aACE;aACA;aACA;aACA;eACE;;;WAGJ;aACE;aACA;aACA;aACA;eACE;;;WAGJ;aACE;aACA;aACA;aACA;eACE;;;WAGJ;aACE;aACA;aACA;aACA;eACE;;;WAGJ;aACE;aACA;aACA;eACE;;;WAGJ;aACE;aACA;aACA;aACA;eACE;;;WAGJ;aACE;aACA;aACA;eACE;eACA;eACA;eACA;;aAEF;eACE;eACA;iBACE;mBACE;mBACA;;;;;WAKR;aACE;aACA;aACA;aACA;eACE;eACA;eACA;eACA;;aAEF;eACE;eACA;iBACE;mBACE;mBACA;;;;;WAKR;aACE;aACA;aACA;aACA;eACE;eACA;eACA;eACA;;aAEF;eACE;eACA;iBACE;mBACE;mBACA;;;;;WAKR;aACE;aACA;aACA;eACE;eACA;eACA;eACA;;aAEF;eACE;eACA;iBACE;mBACE;mBACA;;;;;WAKR;aACE;aACA;aACA;eACE;eACA;eACA;eACA;;aAEF;eACE;eACA;iBACE;mBACE;mBACA;;;;;WAKR;aACE;aACA;aACA;aACA;eACE;eACA;eACA;eACA;;aAEF;eACE;eACA;iBACE;mBACE;mBACA;;;;;WAKR;aACE;aACA;aACA;aACA;eACE;eACA;eACA;eACA;;aAEF;eACE;eACA;iBACE;mBACE;mBACA;;;;;WAKR;aACE;aACA;aACA;aACA;eACE;eACA;eACA;eACA;;aAEF;eACE;eACA;iBACE;mBACE;mBACA;;;;;WAKR;aACE;aACA;aACA;eACE;eACA;eACA;eACA;;aAEF;eACE;eACA;iBACE;mBACE;mBACA;;;;;WAKR;aACE;aACA;aACA;aACA;eACE;eACA;eACA;eACA;;aAEF;eACE;eACA;iBACE;mBACE;mBACA;;;;;;;;;cASL;WACH;aACE;aACA;aACA;eACE;eACA;eACA;eACA;eACA;;eAEA;eACA;eACA;eACA;eACA;;eAEA;eACA;eACA;eACA;;aAEF;eACE;iBACE;iBACA;;eAEF;eACA;iBACE;;;eAGF;iBACE;iBACA;;eAEF;;eAEA;iBACE;iBACA;;eAEF;;eAEA;iBACE;iBACA;;eAEF;eACA;iBACE;;;eAGF;iBACE;iBACA;;eAEF;;eAEA;iBACE;iBACA;;eAEF;;;WAGJ;aACE;aACA;aACA;eACE;eACA;eACA;eACA;eACA;;eAEA;eACA;eACA;eACA;eACA;;aAEF;eACE;iBACE;iBACA;;eAEF;;eAEA;iBACE;iBACA;;eAEF;;;WAGJ;aACE;aACA;aACA;eACE;eACA;eACA;eACA;eACA;;eAEA;eACA;eACA;eACA;eACA;;eAEA;eACA;eACA;eACA;;aAEF;eACE;iBACE;iBACA;;eAEF;;eAEA;iBACE;iBACA;;eAEF;;eAEA;iBACE;iBACA;;eAEF;;;WAGJ;aACE;aACA;aACA;eACE;eACA;eACA;eACA;eACA;;eAEA;eACA;eACA;eACA;eACA;;eAEA;eACA;eACA;eACA;;aAEF;eACE;iBACE;iBACA;;eAEF;;eAEA;iBACE;iBACA;;eAEF;;;WAGJ;aACE;aACA;aACA;aACA;eACE;;;WAGJ;aACE;aACA;aACA;aACA;eACE;;;WAGJ;aACE;aACA;aACA;aACA;eACE;;;WAGJ;aACE;aACA;aACA;aACA;eACE;;;WAGJ;aACE;aACA;aACA;aACA;eACE;;;WAGJ;aACE;aACA;aACA;eACE;;;WAGJ;aACE;aACA;aACA;aACA;eACE;;;WAGJ;aACE;aACA;aACA;aACA;eACE;;;WAGJ;aACE;aACA;aACA;aACA;eACE;;;WAGJ;aACE;aACA;aACA;aACA;eACE;eACA;eACA;eACA;;aAEF;eACE;eACA;iBACE;mBACE;mBACA;;;;;WAKR;aACE;aACA;aACA;aACA;eACE;eACA;eACA;eACA;;aAEF;eACE;eACA;iBACE;mBACE;mBACA;;;;;WAKR;aACE;aACA;aACA;aACA;eACE;eACA;eACA;eACA;;eAEA;eACA;eACA;eACA;;aAEF;eACE;eACA;iBACE;mBACE;mBACA;;iBAEF;mBACE;mBACA;;;;;WAKR;aACE;aACA;aACA;eACE;eACA;eACA;eACA;;aAEF;eACE;eACA;iBACE;mBACE;mBACA;;;;;WAKR;aACE;aACA;aACA;eACE;eACA;eACA;eACA;;aAEF;eACE;eACA;iBACE;mBACE;mBACA;;;;;WAKR;aACE;aACA;aACA;eACE;eACA;eACA;eACA;;aAEF;eACE;eACA;iBACE;mBACE;mBACA;;;;;WAKR;aACE;aACA;aACA;aACA;eACE;eACA;eACA;eACA;;aAEF;eACE;eACA;iBACE;mBACE;mBACA;;;;;WAKR;aACE;aACA;aACA;aACA;eACE;;;WAGJ;aACE;aACA;aACA;aACA;eACE;;;WAGJ;aACE;aACA;aACA;aACA;eACE;;;WAGJ;aACE;aACA;aACA;aACA;eACE;;;WAGJ;aACE;aACA;aACA;eACE;;;WAGJ;aACE;aACA;aACA;aACA;eACE;;;WAGJ;aACE;aACA;aACA;eACE;eACA;eACA;eACA;;aAEF;eACE;eACA;iBACE;mBACE;mBACA;;;;;WAKR;aACE;aACA;aACA;aACA;eACE;eACA;eACA;eACA;;aAEF;eACE;eACA;iBACE;mBACE;mBACA;;;;;WAKR;aACE;aACA;aACA;aACA;eACE;eACA;eACA;eACA;;aAEF;eACE;eACA;iBACE;mBACE;mBACA;;;;;WAKR;aACE;aACA;aACA;eACE;eACA;eACA;eACA;;aAEF;eACE;eACA;iBACE;mBACE;mBACA;;;;;WAKR;aACE;aACA;aACA;eACE;eACA;eACA;eACA;;aAEF;eACE;eACA;iBACE;mBACE;mBACA;;;;;WAKR;aACE;aACA;aACA;aACA;eACE;eACA;eACA;eACA;;aAEF;eACE;eACA;iBACE;mBACE;mBACA;;;;;WAKR;aACE;aACA;aACA;aACA;eACE;eACA;eACA;eACA;;aAEF;eACE;eACA;iBACE;mBACE;mBACA;;;;;WAKR;aACE;aACA;aACA;aACA;eACE;eACA;eACA;eACA;;aAEF;eACE;eACA;iBACE;mBACE;mBACA;;;;;WAKR;aACE;aACA;aACA;eACE;eACA;eACA;eACA;;aAEF;eACE;eACA;iBACE;mBACE;mBACA;;;;;WAKR;aACE;aACA;aACA;aACA;eACE;eACA;eACA;eACA;;aAEF;eACE;eACA;iBACE;mBACE;mBACA;;;;;;;;cAQL,0BAA0B,uCAAuC,8DAA8D,gDAAgD"}
@@ -1,7 +1,7 @@
1
- import { B as pgTimestampStoredText, D as pgInterval, E as pgInt8, F as pgText, H as pgTimestamptzStoredText, L as pgTime, M as pgNumeric, O as pgIntervalStoredText, R as pgTimeStoredText, T as pgInt4, U as pgTimetz, V as pgTimestamptz, W as pgTimetzStoredText, _ as pgDate, d as pgBool, f as pgBytea, k as pgJson, m as pgByteaHexText, p as pgByteaFromHexText, v as pgDateStoredText, w as pgInt2, z as pgTimestamp } from "./data-types-B7S_CHZd-C9JA40Ir.mjs";
1
+ import { B as pgTimestampStoredText, D as pgInterval, E as pgInt8, F as pgText, H as pgTimestamptzStoredText, L as pgTime, M as pgNumeric, O as pgIntervalStoredText, R as pgTimeStoredText, T as pgInt4, U as pgTimetz, V as pgTimestamptz, W as pgTimetzStoredText, _ as pgDate, d as pgBool, f as pgBytea, k as pgJson, m as pgByteaHexText, p as pgByteaFromHexText, v as pgDateStoredText, w as pgInt2, z as pgTimestamp } from "./data-types-DklKHVmp-Bl-nwUa-.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-DhUYJbVb.mjs
4
+ //#region ../../../3-targets/postgres/1-target/dist/data-type-entries-ZHPz2h_f.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-DhUYJbVb-4NUH6vR_.mjs.map
128
+ //# sourceMappingURL=data-type-entries-ZHPz2h_f-CNUmPGgf.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"data-type-entries-DhUYJbVb-4NUH6vR_.mjs","names":[],"sources":["../../../../3-targets/postgres/1-target/dist/data-type-entries-DhUYJbVb.mjs"],"sourcesContent":["import { A as pgTimestampStoredText, D as pgTime, M as pgTimestamptzStoredText, N as pgTimetz, O as pgTimeStoredText, P as pgTimetzStoredText, Q as pgIntervalStoredText, S as pgNumeric, T as pgText, X as pgByteaFromHexText, Z as pgByteaHexText, _ as pgInt8, a as pgBytea, c as pgDate, g as pgInt4, h as pgInt2, i as pgBool, j as pgTimestamptz, k as pgTimestamp, l as pgDateStoredText, v as pgInterval, y as pgJson } from \"./data-types-B7S_CHZd.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-DhUYJbVb.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
+ {"version":3,"file":"data-type-entries-ZHPz2h_f-CNUmPGgf.mjs","names":[],"sources":["../../../../3-targets/postgres/1-target/dist/data-type-entries-ZHPz2h_f.mjs"],"sourcesContent":["import { A as pgTimestampStoredText, D as pgTime, M as pgTimestamptzStoredText, N as pgTimetz, O as pgTimeStoredText, P as pgTimetzStoredText, Q as pgIntervalStoredText, S as pgNumeric, T as pgText, X as pgByteaFromHexText, Z as pgByteaHexText, _ as pgInt8, a as pgBytea, c as pgDate, g as pgInt4, h as pgInt2, i as pgBool, j as pgTimestamptz, k as pgTimestamp, l as pgDateStoredText, v as pgInterval, y as pgJson } from \"./data-types-DklKHVmp.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-ZHPz2h_f.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,11 +1,11 @@
1
- import { l as postgresError } from "./errors-Di_apgWJ-BLXRTfFj.mjs";
2
- import { i as quoteIdentifier } from "./sql-utils-0j_6QstU-DAfnt5Mu.mjs";
1
+ import { l as postgresError } from "./errors-DG6xgXgr-Cb1XcPcb.mjs";
2
+ import { a as quoteIdentifier } from "./sql-utils-ylvfJ1RJ-03xGdSLI.mjs";
3
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";
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 { sqlDataType, sqlRawDataType } from "@prisma/orm-family-sql/contract/data-type";
7
7
  import { type } from "arktype";
8
- //#region ../../../3-targets/postgres/1-target/dist/data-types-B7S_CHZd.mjs
8
+ //#region ../../../3-targets/postgres/1-target/dist/data-types-DklKHVmp.mjs
9
9
  /**
10
10
  * 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.
11
11
  */
@@ -600,6 +600,13 @@ const pgCharacterLengthParams = type({ "length?": "number.integer >= 1 & number.
600
600
  const pgBitLengthParams = type({ "length?": "number.integer >= 1 & number.integer <= 83886080" });
601
601
  /** The fractional-second precision of the time, timestamp and interval types. */
602
602
  const pgPrecisionParams = type({ "precision?": "number.integer >= 0 & number.integer <= 6" });
603
+ /** PostgreSQL stores microseconds whether a precision of 6 is declared or omitted, so an omitted precision is 6. */
604
+ const withDefaultPrecision = (params) => params.precision === void 0 ? {
605
+ ...params,
606
+ precision: 6
607
+ } : params;
608
+ /** PostgreSQL's catalog prints a precision only where one was declared. */
609
+ const precisionAsWritten = (params) => params;
603
610
  const pgEnumParams = type({ typeName: "string > 0" });
604
611
  /** A type with no parameters that is written and reported by its own name. */
605
612
  const namedOnly = (id, name, read, casts = {}) => sqlDataType(id, {
@@ -829,6 +836,8 @@ const pgTimetz = sqlDataType("pg/timetz", {
829
836
  read: 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),
830
837
  spell: spellStoredDateTime(pgTimetzStoredText),
831
838
  params: pgPrecisionParams,
839
+ normalize: withDefaultPrecision,
840
+ catalogParams: precisionAsWritten,
832
841
  texts: [
833
842
  written("timetz"),
834
843
  written("timetz({precision})"),
@@ -841,6 +850,8 @@ const pgInterval = sqlDataType("pg/interval", {
841
850
  spell: spellStoredDateTime(pgIntervalStoredText),
842
851
  equalityKey: intervalEqualityKey,
843
852
  params: pgPrecisionParams,
853
+ normalize: withDefaultPrecision,
854
+ catalogParams: precisionAsWritten,
844
855
  texts: [writtenAndCatalog("interval"), writtenAndCatalog("interval({precision})")]
845
856
  });
846
857
  const pgBytea = sqlDataType("pg/bytea", {
@@ -872,6 +883,8 @@ const pgTime = sqlDataType("pg/time", {
872
883
  read: readStoredDateTime("pg/time", pgTimeStoredText, "a time of day, as in \"12:34:56\"", SECONDS_FRACTION),
873
884
  spell: spellStoredDateTime(pgTimeStoredText),
874
885
  params: pgPrecisionParams,
886
+ normalize: withDefaultPrecision,
887
+ catalogParams: precisionAsWritten,
875
888
  texts: [
876
889
  written("time"),
877
890
  written("time({precision})"),
@@ -883,6 +896,8 @@ const pgTimestamp = sqlDataType("pg/timestamp", {
883
896
  read: readStoredDateTime("pg/timestamp", pgTimestampStoredText, "a date and time of day, as in \"2024-01-01T12:34:56\", or infinity or -infinity", SECONDS_FRACTION),
884
897
  spell: spellStoredDateTime(pgTimestampStoredText),
885
898
  params: pgPrecisionParams,
899
+ normalize: withDefaultPrecision,
900
+ catalogParams: precisionAsWritten,
886
901
  texts: [
887
902
  written("timestamp"),
888
903
  written("timestamp({precision})"),
@@ -894,6 +909,8 @@ const pgTimestamptz = sqlDataType("pg/timestamptz", {
894
909
  read: readStoredDateTime("pg/timestamptz", pgTimestamptzStoredText, "an instant in UTC, as in \"2024-01-01T00:00:00Z\", or infinity or -infinity", SECONDS_FRACTION),
895
910
  spell: spellStoredDateTime(pgTimestamptzStoredText),
896
911
  params: pgPrecisionParams,
912
+ normalize: withDefaultPrecision,
913
+ catalogParams: precisionAsWritten,
897
914
  texts: [
898
915
  written("timestamptz"),
899
916
  written("timestamptz({precision})"),
@@ -947,4 +964,4 @@ const postgresTextDataTypes = [
947
964
  //#endregion
948
965
  export { qualifiedEnumName as $, pgJsonb as A, pgTimestampStoredText as B, pgInet as C, pgInterval as D, pgInt8 as E, pgText as F, pgTsquery as G, pgTimestamptzStoredText as H, pgTextArray as I, pgVarchar as J, pgUuid as K, pgTime as L, pgNumeric as M, pgNumericParams as N, pgIntervalStoredText as O, pgPrecisionParams as P, postgresYearText as Q, pgTimeStoredText as R, pgFloat8 as S, pgInt4 as T, pgTimetz as U, pgTimestamptz as V, pgTimetzStoredText as W, postgresIntervalFields as X, postgresDataTypes as Y, postgresTextDataTypes as Z, pgDate as _, formatIsoDuration as a, pgEnumParams as b, microsFromFraction as c, pgBool as d, pgBytea as f, pgCharacterLengthParams as g, pgChar as h, createPostgresBuiltinDataTypeLookup as i, pgJsonbEnumRefusal as j, pgJson as k, pgBit as l, pgByteaHexText as m, ISO_DURATION as n, intervalFieldsOf as o, pgByteaFromHexText as p, pgVarbit as q, MICROS_PER_SECOND as r, isoYearText as s, BYTEA_TEXT as t, pgBitLengthParams as u, pgDateStoredText as v, pgInt2 as w, pgFloat4 as x, pgEnum as y, pgTimestamp as z };
949
966
 
950
- //# sourceMappingURL=data-types-B7S_CHZd-C9JA40Ir.mjs.map
967
+ //# sourceMappingURL=data-types-DklKHVmp-Bl-nwUa-.mjs.map