@prisma/orm-target-postgres 0.16.0-dev.36

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 (279) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +23 -0
  3. package/dist/adapter-CWvVo0PV.d.mts +22 -0
  4. package/dist/adapter-CWvVo0PV.d.mts.map +1 -0
  5. package/dist/adapter-DhqcO3YO-jzwDVcCv.mjs +70 -0
  6. package/dist/adapter-DhqcO3YO-jzwDVcCv.mjs.map +1 -0
  7. package/dist/adapter.d.mts +12 -0
  8. package/dist/adapter.mjs +7 -0
  9. package/dist/adapter__adapter.d.mts +2 -0
  10. package/dist/adapter__adapter.mjs +2 -0
  11. package/dist/adapter__column-types.d.mts +2 -0
  12. package/dist/adapter__column-types.mjs +2 -0
  13. package/dist/adapter__control.d.mts +5 -0
  14. package/dist/adapter__control.mjs +441 -0
  15. package/dist/adapter__control.mjs.map +1 -0
  16. package/dist/adapter__operation-types.d.mts +2 -0
  17. package/dist/adapter__operation-types.mjs +1 -0
  18. package/dist/adapter__runtime.d.mts +2 -0
  19. package/dist/adapter__runtime.mjs +38 -0
  20. package/dist/adapter__runtime.mjs.map +1 -0
  21. package/dist/adapter__types.d.mts +4 -0
  22. package/dist/adapter__types.mjs +1 -0
  23. package/dist/authoring-03FwIL2k-kPjZAp3s.mjs +757 -0
  24. package/dist/authoring-03FwIL2k-kPjZAp3s.mjs.map +1 -0
  25. package/dist/canonicalize-CQlxSR4D-MnrT5gtW.d.mts +34 -0
  26. package/dist/canonicalize-CQlxSR4D-MnrT5gtW.d.mts.map +1 -0
  27. package/dist/canonicalize-CrN3u_xM-D4MrOqcB.mjs +59 -0
  28. package/dist/canonicalize-CrN3u_xM-D4MrOqcB.mjs.map +1 -0
  29. package/dist/codec-descriptor-Bec_zukr-BfvtUqhm.d.mts +37 -0
  30. package/dist/codec-descriptor-Bec_zukr-BfvtUqhm.d.mts.map +1 -0
  31. package/dist/codec-descriptor-Bg-_412t.d.mts +1 -0
  32. package/dist/codec-descriptor-CB6x0xEu-C-Zn2IEz.mjs +135 -0
  33. package/dist/codec-descriptor-CB6x0xEu-C-Zn2IEz.mjs.map +1 -0
  34. package/dist/codec-ids-CsOU3xDv-mPI0INiF.d.mts +33 -0
  35. package/dist/codec-ids-CsOU3xDv-mPI0INiF.d.mts.map +1 -0
  36. package/dist/codec-ids-fgafMLR7.d.mts +1 -0
  37. package/dist/codec-ids-tX7Svtz--BuOfRaVU.mjs +33 -0
  38. package/dist/codec-ids-tX7Svtz--BuOfRaVU.mjs.map +1 -0
  39. package/dist/codec-types-BHwY9Ff-.d.mts +2 -0
  40. package/dist/codec-types-mWhnDEAf-CAQzGFnF.d.mts +82 -0
  41. package/dist/codec-types-mWhnDEAf-CAQzGFnF.d.mts.map +1 -0
  42. package/dist/codecs-CBl0nD44-CaWPc1bd.mjs +1486 -0
  43. package/dist/codecs-CBl0nD44-CaWPc1bd.mjs.map +1 -0
  44. package/dist/codecs-CHIVTNZs.mjs +15 -0
  45. package/dist/codecs-CHIVTNZs.mjs.map +1 -0
  46. package/dist/codecs-Cvqvb9pV-Cdc51FKY.d.mts +589 -0
  47. package/dist/codecs-Cvqvb9pV-Cdc51FKY.d.mts.map +1 -0
  48. package/dist/codecs-DBn-uIv-.d.mts +15 -0
  49. package/dist/codecs-DBn-uIv-.d.mts.map +1 -0
  50. package/dist/column-types-BH-MU6uU.d.mts +108 -0
  51. package/dist/column-types-BH-MU6uU.d.mts.map +1 -0
  52. package/dist/column-types-CwAyCgp2.mjs +126 -0
  53. package/dist/column-types-CwAyCgp2.mjs.map +1 -0
  54. package/dist/contract-free-BZUS18FU.mjs +118 -0
  55. package/dist/contract-free-BZUS18FU.mjs.map +1 -0
  56. package/dist/contract-free-DzpGxLfb.d.mts +258 -0
  57. package/dist/contract-free-DzpGxLfb.d.mts.map +1 -0
  58. package/dist/control-2F195jJk.d.mts +11 -0
  59. package/dist/control-2F195jJk.d.mts.map +1 -0
  60. package/dist/control-6WFTtLAM.mjs +60 -0
  61. package/dist/control-6WFTtLAM.mjs.map +1 -0
  62. package/dist/control-B-FTbEnE.d.mts +22 -0
  63. package/dist/control-B-FTbEnE.d.mts.map +1 -0
  64. package/dist/control-D85zv_aY.d.mts +199 -0
  65. package/dist/control-D85zv_aY.d.mts.map +1 -0
  66. package/dist/control-DRMWptiJ.mjs +1355 -0
  67. package/dist/control-DRMWptiJ.mjs.map +1 -0
  68. package/dist/control-adapter-B9t0g7Pf-HrCxlM65.mjs +1901 -0
  69. package/dist/control-adapter-B9t0g7Pf-HrCxlM65.mjs.map +1 -0
  70. package/dist/control-policy-Cl3RRSPg-CT3QGpR3.mjs +1257 -0
  71. package/dist/control-policy-Cl3RRSPg-CT3QGpR3.mjs.map +1 -0
  72. package/dist/data-transform-BSM7TQpE.d.mts +1 -0
  73. package/dist/data-transform-ChZzy2dP-CxVCat_8.mjs +53 -0
  74. package/dist/data-transform-ChZzy2dP-CxVCat_8.mjs.map +1 -0
  75. package/dist/data-transform-Ck5FbyNO-BNE7QlAo.d.mts +38 -0
  76. package/dist/data-transform-Ck5FbyNO-BNE7QlAo.d.mts.map +1 -0
  77. package/dist/ddl-B4Rh8ntj.d.mts +1 -0
  78. package/dist/ddl-BdP4q3KY-Duef4uHw.mjs +395 -0
  79. package/dist/ddl-BdP4q3KY-Duef4uHw.mjs.map +1 -0
  80. package/dist/default-normalizer-B36TOul4.d.mts +31 -0
  81. package/dist/default-normalizer-B36TOul4.d.mts.map +1 -0
  82. package/dist/default-normalizer-Ba5ZebHM-isV86rjy.mjs +253 -0
  83. package/dist/default-normalizer-Ba5ZebHM-isV86rjy.mjs.map +1 -0
  84. package/dist/descriptor-meta-2IlVC6_d-DnV00Qd_.mjs +351 -0
  85. package/dist/descriptor-meta-2IlVC6_d-DnV00Qd_.mjs.map +1 -0
  86. package/dist/descriptor-meta-DnHabAS3-C53XXPQw.mjs +28 -0
  87. package/dist/descriptor-meta-DnHabAS3-C53XXPQw.mjs.map +1 -0
  88. package/dist/descriptor-meta-runtime-UwYdV8fD-B_m_Ha8r.mjs +13 -0
  89. package/dist/descriptor-meta-runtime-UwYdV8fD-B_m_Ha8r.mjs.map +1 -0
  90. package/dist/diff-database-schema-BfRs2vrG-D2o4KII0.mjs +390 -0
  91. package/dist/diff-database-schema-BfRs2vrG-D2o4KII0.mjs.map +1 -0
  92. package/dist/diff-database-schema-DsoNznGC.d.mts +38 -0
  93. package/dist/diff-database-schema-DsoNznGC.d.mts.map +1 -0
  94. package/dist/driver.d.mts +3 -0
  95. package/dist/driver.mjs +2 -0
  96. package/dist/driver__control.d.mts +2 -0
  97. package/dist/driver__control.mjs +2 -0
  98. package/dist/driver__runtime.d.mts +2 -0
  99. package/dist/driver__runtime.mjs +597 -0
  100. package/dist/driver__runtime.mjs.map +1 -0
  101. package/dist/errors-DCcVX4j1.d.mts +32 -0
  102. package/dist/errors-DCcVX4j1.d.mts.map +1 -0
  103. package/dist/errors-kYxOQjdD-D4T3rbVp.mjs +39 -0
  104. package/dist/errors-kYxOQjdD-D4T3rbVp.mjs.map +1 -0
  105. package/dist/issue-planner-jkY6p-Ca.d.mts +105 -0
  106. package/dist/issue-planner-jkY6p-Ca.d.mts.map +1 -0
  107. package/dist/migration-CBSAPE8S.d.mts +25 -0
  108. package/dist/migration-CBSAPE8S.d.mts.map +1 -0
  109. package/dist/migration-PTHAY9Cv.mjs +21 -0
  110. package/dist/migration-PTHAY9Cv.mjs.map +1 -0
  111. package/dist/namespace-ids-xtp_ZY86-Cpp8PTxD.mjs +7 -0
  112. package/dist/namespace-ids-xtp_ZY86-Cpp8PTxD.mjs.map +1 -0
  113. package/dist/native-type-normalizer-DqJlOTeX.d.mts +19 -0
  114. package/dist/native-type-normalizer-DqJlOTeX.d.mts.map +1 -0
  115. package/dist/native-type-normalizer-yvd3tqv-.mjs +38 -0
  116. package/dist/native-type-normalizer-yvd3tqv-.mjs.map +1 -0
  117. package/dist/nodes-BU-V-aZA-RqwPH68u.d.mts +235 -0
  118. package/dist/nodes-BU-V-aZA-RqwPH68u.d.mts.map +1 -0
  119. package/dist/nodes-DAvDJLvJ-BBdvFXNa.mjs +255 -0
  120. package/dist/nodes-DAvDJLvJ-BBdvFXNa.mjs.map +1 -0
  121. package/dist/normalize-error-CNjgVO71-CLlZ3CuJ.mjs +121 -0
  122. package/dist/normalize-error-CNjgVO71-CLlZ3CuJ.mjs.map +1 -0
  123. package/dist/op-factory-call-DifL68KT-Bo6pxs-R.mjs +2009 -0
  124. package/dist/op-factory-call-DifL68KT-Bo6pxs-R.mjs.map +1 -0
  125. package/dist/op-factory-call-FEA5mnWH.d.mts +1 -0
  126. package/dist/op-factory-call-jd4cgfjA-CyNT4YVn.d.mts +521 -0
  127. package/dist/op-factory-call-jd4cgfjA-CyNT4YVn.d.mts.map +1 -0
  128. package/dist/operation-types-BfRocNI8.d.mts +22 -0
  129. package/dist/operation-types-BfRocNI8.d.mts.map +1 -0
  130. package/dist/pack-DFM4tmob.d.mts +610 -0
  131. package/dist/pack-DFM4tmob.d.mts.map +1 -0
  132. package/dist/planner-Bmje9ii8-B99fEsNM.mjs +588 -0
  133. package/dist/planner-Bmje9ii8-B99fEsNM.mjs.map +1 -0
  134. package/dist/planner-DL4Bh5Nk.d.mts +163 -0
  135. package/dist/planner-DL4Bh5Nk.d.mts.map +1 -0
  136. package/dist/planner-ddl-builders-CbfICQfm-CxYiLrhX.mjs +102 -0
  137. package/dist/planner-ddl-builders-CbfICQfm-CxYiLrhX.mjs.map +1 -0
  138. package/dist/planner-ddl-builders-ijp60-JO.d.mts +19 -0
  139. package/dist/planner-ddl-builders-ijp60-JO.d.mts.map +1 -0
  140. package/dist/planner-identity-values-BmHn5C6U-BYBbUAyR.mjs +90 -0
  141. package/dist/planner-identity-values-BmHn5C6U-BYBbUAyR.mjs.map +1 -0
  142. package/dist/planner-identity-values-TfEhnoWa.d.mts +25 -0
  143. package/dist/planner-identity-values-TfEhnoWa.d.mts.map +1 -0
  144. package/dist/planner-produced-postgres-migration-B0PQLLUb-qsS6cQqX.d.mts +25 -0
  145. package/dist/planner-produced-postgres-migration-B0PQLLUb-qsS6cQqX.d.mts.map +1 -0
  146. package/dist/planner-produced-postgres-migration-C3GPZWeC.d.mts +1 -0
  147. package/dist/planner-produced-postgres-migration-Cicg2sXg-Ck9iDxGI.mjs +47 -0
  148. package/dist/planner-produced-postgres-migration-Cicg2sXg-Ck9iDxGI.mjs.map +1 -0
  149. package/dist/planner-schema-lookup-C4DHAddq.d.mts +21 -0
  150. package/dist/planner-schema-lookup-C4DHAddq.d.mts.map +1 -0
  151. package/dist/planner-schema-lookup-kMIVP2y--CdO4VlnF.mjs +57 -0
  152. package/dist/planner-schema-lookup-kMIVP2y--CdO4VlnF.mjs.map +1 -0
  153. package/dist/planner-sql-checks-CFgbRTJw.d.mts +20 -0
  154. package/dist/planner-sql-checks-CFgbRTJw.d.mts.map +1 -0
  155. package/dist/planner-sql-checks-DRc_78n8-C9nHOrvU.mjs +152 -0
  156. package/dist/planner-sql-checks-DRc_78n8-C9nHOrvU.mjs.map +1 -0
  157. package/dist/planner-target-details-HkP4RrRO-_xPQVPF0.d.mts +12 -0
  158. package/dist/planner-target-details-HkP4RrRO-_xPQVPF0.d.mts.map +1 -0
  159. package/dist/planner-type-resolution-Bt2f_q-F-C4T6YTae.mjs +15 -0
  160. package/dist/planner-type-resolution-Bt2f_q-F-C4T6YTae.mjs.map +1 -0
  161. package/dist/postgres-contract-view-2OP5JnXl-D2fpy4-8.d.mts +36 -0
  162. package/dist/postgres-contract-view-2OP5JnXl-D2fpy4-8.d.mts.map +1 -0
  163. package/dist/postgres-contract-view-FdLX7dV9-Cat1VKV9.mjs +144 -0
  164. package/dist/postgres-contract-view-FdLX7dV9-Cat1VKV9.mjs.map +1 -0
  165. package/dist/postgres-database-schema-node-CyfpHXDr-BqyozkQE.d.mts +285 -0
  166. package/dist/postgres-database-schema-node-CyfpHXDr-BqyozkQE.d.mts.map +1 -0
  167. package/dist/postgres-migration-CDJj7CvD-Bsqs_fVo.d.mts +260 -0
  168. package/dist/postgres-migration-CDJj7CvD-Bsqs_fVo.d.mts.map +1 -0
  169. package/dist/postgres-migration-CJshdIZn-DYYjgdD0.mjs +201 -0
  170. package/dist/postgres-migration-CJshdIZn-DYYjgdD0.mjs.map +1 -0
  171. package/dist/postgres-native-enum-CdP3b_-R-Cgz9KEKx.mjs +45 -0
  172. package/dist/postgres-native-enum-CdP3b_-R-Cgz9KEKx.mjs.map +1 -0
  173. package/dist/postgres-rls-policy-CnDxf3z9-C3LIHAIG.d.mts +61 -0
  174. package/dist/postgres-rls-policy-CnDxf3z9-C3LIHAIG.d.mts.map +1 -0
  175. package/dist/postgres-role-schema-node-B8Z5i5D--PObwlU2Z.mjs +204 -0
  176. package/dist/postgres-role-schema-node-B8Z5i5D--PObwlU2Z.mjs.map +1 -0
  177. package/dist/postgres-schema-KSzLDONj-CsXGoY8b.mjs +421 -0
  178. package/dist/postgres-schema-KSzLDONj-CsXGoY8b.mjs.map +1 -0
  179. package/dist/postgres-schema-Xsjt3RKO-Buv2X8ai.d.mts +269 -0
  180. package/dist/postgres-schema-Xsjt3RKO-Buv2X8ai.d.mts.map +1 -0
  181. package/dist/postgres-table-schema-node-BBkitBQh-DT1T5VWU.mjs +212 -0
  182. package/dist/postgres-table-schema-node-BBkitBQh-DT1T5VWU.mjs.map +1 -0
  183. package/dist/render-ops-DPwhZt2W.d.mts +11 -0
  184. package/dist/render-ops-DPwhZt2W.d.mts.map +1 -0
  185. package/dist/render-ops-DxzTxSsv-Bz85uUHk.mjs +34 -0
  186. package/dist/render-ops-DxzTxSsv-Bz85uUHk.mjs.map +1 -0
  187. package/dist/render-typescript-6sCFvMBh.d.mts +21 -0
  188. package/dist/render-typescript-6sCFvMBh.d.mts.map +1 -0
  189. package/dist/render-typescript-Cw3lFO28-Cx0lXWmv.mjs +117 -0
  190. package/dist/render-typescript-Cw3lFO28-Cx0lXWmv.mjs.map +1 -0
  191. package/dist/resolve-ddl-schema-CxqlLW47-0GiHRziS.mjs +22 -0
  192. package/dist/resolve-ddl-schema-CxqlLW47-0GiHRziS.mjs.map +1 -0
  193. package/dist/runtime-BbSRVwdd.d.mts +12 -0
  194. package/dist/runtime-BbSRVwdd.d.mts.map +1 -0
  195. package/dist/runtime-CDewySU9.d.mts +55 -0
  196. package/dist/runtime-CDewySU9.d.mts.map +1 -0
  197. package/dist/runtime-_TfO66h5.d.mts +32 -0
  198. package/dist/runtime-_TfO66h5.d.mts.map +1 -0
  199. package/dist/schema-ir-annotations-DuuYh0gl.d.mts +15 -0
  200. package/dist/schema-ir-annotations-DuuYh0gl.d.mts.map +1 -0
  201. package/dist/schema-node-kinds-qlnURWJy-Bo30pwTM.d.mts +30 -0
  202. package/dist/schema-node-kinds-qlnURWJy-Bo30pwTM.d.mts.map +1 -0
  203. package/dist/sql-utils-BnBlQxyh-DaX9Nb7Z.mjs +90 -0
  204. package/dist/sql-utils-BnBlQxyh-DaX9Nb7Z.mjs.map +1 -0
  205. package/dist/sql-utils-DW6fkczF.d.mts +62 -0
  206. package/dist/sql-utils-DW6fkczF.d.mts.map +1 -0
  207. package/dist/table-source-ikHOZmhD-DriY1Lcr.d.mts +15 -0
  208. package/dist/table-source-ikHOZmhD-DriY1Lcr.d.mts.map +1 -0
  209. package/dist/target.d.mts +47 -0
  210. package/dist/target.mjs +34 -0
  211. package/dist/target__codec-descriptor.d.mts +3 -0
  212. package/dist/target__codec-descriptor.mjs +2 -0
  213. package/dist/target__codec-ids.d.mts +3 -0
  214. package/dist/target__codec-ids.mjs +2 -0
  215. package/dist/target__codec-types.d.mts +4 -0
  216. package/dist/target__codec-types.mjs +1 -0
  217. package/dist/target__codecs.d.mts +3 -0
  218. package/dist/target__codecs.mjs +3 -0
  219. package/dist/target__contract-free.d.mts +3 -0
  220. package/dist/target__contract-free.mjs +4 -0
  221. package/dist/target__control.d.mts +2 -0
  222. package/dist/target__control.mjs +2 -0
  223. package/dist/target__data-transform.d.mts +3 -0
  224. package/dist/target__data-transform.mjs +2 -0
  225. package/dist/target__ddl.d.mts +4 -0
  226. package/dist/target__ddl.mjs +2 -0
  227. package/dist/target__default-normalizer.d.mts +2 -0
  228. package/dist/target__default-normalizer.mjs +2 -0
  229. package/dist/target__diff-database-schema.d.mts +2 -0
  230. package/dist/target__diff-database-schema.mjs +2 -0
  231. package/dist/target__errors.d.mts +2 -0
  232. package/dist/target__errors.mjs +2 -0
  233. package/dist/target__issue-planner.d.mts +2 -0
  234. package/dist/target__issue-planner.mjs +2 -0
  235. package/dist/target__migration.d.mts +4 -0
  236. package/dist/target__migration.mjs +5 -0
  237. package/dist/target__native-type-normalizer.d.mts +2 -0
  238. package/dist/target__native-type-normalizer.mjs +2 -0
  239. package/dist/target__op-factory-call.d.mts +3 -0
  240. package/dist/target__op-factory-call.mjs +2 -0
  241. package/dist/target__pack.d.mts +2 -0
  242. package/dist/target__pack.mjs +2 -0
  243. package/dist/target__planner-ddl-builders.d.mts +2 -0
  244. package/dist/target__planner-ddl-builders.mjs +2 -0
  245. package/dist/target__planner-identity-values.d.mts +2 -0
  246. package/dist/target__planner-identity-values.mjs +2 -0
  247. package/dist/target__planner-produced-postgres-migration.d.mts +3 -0
  248. package/dist/target__planner-produced-postgres-migration.mjs +2 -0
  249. package/dist/target__planner-schema-lookup.d.mts +2 -0
  250. package/dist/target__planner-schema-lookup.mjs +2 -0
  251. package/dist/target__planner-sql-checks.d.mts +2 -0
  252. package/dist/target__planner-sql-checks.mjs +2 -0
  253. package/dist/target__planner-target-details.d.mts +2 -0
  254. package/dist/target__planner-target-details.mjs +1 -0
  255. package/dist/target__planner.d.mts +2 -0
  256. package/dist/target__planner.mjs +3 -0
  257. package/dist/target__render-ops.d.mts +2 -0
  258. package/dist/target__render-ops.mjs +2 -0
  259. package/dist/target__render-typescript.d.mts +2 -0
  260. package/dist/target__render-typescript.mjs +2 -0
  261. package/dist/target__rls-canonicalize.d.mts +2 -0
  262. package/dist/target__rls-canonicalize.mjs +2 -0
  263. package/dist/target__runtime.d.mts +3 -0
  264. package/dist/target__runtime.mjs +23 -0
  265. package/dist/target__runtime.mjs.map +1 -0
  266. package/dist/target__schema-ir-annotations.d.mts +2 -0
  267. package/dist/target__schema-ir-annotations.mjs +2 -0
  268. package/dist/target__sql-utils.d.mts +2 -0
  269. package/dist/target__sql-utils.mjs +2 -0
  270. package/dist/target__types.d.mts +7 -0
  271. package/dist/target__types.mjs +5 -0
  272. package/dist/types-CkryN1AS-6MNZLjLY.d.mts +27 -0
  273. package/dist/types-CkryN1AS-6MNZLjLY.d.mts.map +1 -0
  274. package/dist/types-Cp_Jf2tk.d.mts +1 -0
  275. package/dist/types-ue6jkJyF-BQJzjx1P.d.mts +10 -0
  276. package/dist/types-ue6jkJyF-BQJzjx1P.d.mts.map +1 -0
  277. package/dist/types-xa86TkcV.d.mts +32 -0
  278. package/dist/types-xa86TkcV.d.mts.map +1 -0
  279. package/package.json +95 -0
@@ -0,0 +1,589 @@
1
+ import { r as PostgresCodecDescriptor } from "./codec-descriptor-Bec_zukr-BfvtUqhm.mjs";
2
+ import { C as PG_TIMETZ_CODEC_ID, E as PG_VARBIT_CODEC_ID, S as PG_TIMESTAMP_CODEC_ID, T as PG_UUID_CODEC_ID, _ as PG_JSON_CODEC_ID, a as PG_DATE_CODEC_ID, b as PG_TEXT_CODEC_ID, c as PG_FLOAT8_CODEC_ID, d as PG_INT2_CODEC_ID, f as PG_INT4_CODEC_ID, g as PG_JSONB_CODEC_ID, m as PG_INTERVAL_CODEC_ID, n as PG_BOOL_CODEC_ID, o as PG_ENUM_CODEC_ID, p as PG_INT8_CODEC_ID, r as PG_BYTEA_CODEC_ID, s as PG_FLOAT4_CODEC_ID, t as PG_BIT_CODEC_ID, u as PG_INET_CODEC_ID, v as PG_NUMERIC_CODEC_ID, w as PG_TIME_CODEC_ID, x as PG_TIMESTAMPTZ_CODEC_ID } from "./codec-ids-CsOU3xDv-mPI0INiF.mjs";
3
+ import { ProjectionExpr, SqlCharCodec, SqlFloatCodec, SqlIntCodec, SqlVarcharCodec } from "@prisma/orm-family-sql/relational-core/ast";
4
+ import { CodecCallContext, CodecImpl, CodecInstanceContext } from "@prisma/orm-framework/components/codec";
5
+ import { JsonValue } from "@prisma/orm-framework/contract/types";
6
+ import { StandardSchemaV1 } from "@standard-schema/spec";
7
+ //#region ../../../3-targets/3-targets/postgres/dist/codecs-Cvqvb9pV.d.mts
8
+ //#region src/core/codec-helpers.d.ts
9
+ /**
10
+ * The application value of a `pg/interval@1` column.
11
+ *
12
+ * A PostgreSQL interval is three independent fields — months, days and
13
+ * microseconds — not a single duration. `1 month` and `30 days` are different
14
+ * intervals because a month has no fixed length, so the three fields are carried
15
+ * separately and never collapsed into one another. Reading a value is therefore
16
+ * reading these three numbers, not parsing a string.
17
+ *
18
+ * `months` and `days` are `number` because PostgreSQL stores each as a 32-bit
19
+ * integer, which a JS number holds exactly. `micros` is `bigint` because
20
+ * PostgreSQL stores it as a 64-bit integer, whose range a JS number does not
21
+ * cover — the same reason `pg/int8@1` carries `bigint`.
22
+ *
23
+ * The canonical JSON of this codec is the ISO-8601 duration string, not this
24
+ * object: the value and its representation are independent, as they are for
25
+ * `pg/bytea@1` (`Uint8Array` / base64) and `pg/int8@1` (`bigint` / decimal text).
26
+ */
27
+ interface PgInterval {
28
+ readonly months: number;
29
+ readonly days: number;
30
+ readonly micros: bigint;
31
+ }
32
+ //#endregion
33
+ //#region src/core/codecs.d.ts
34
+ type LengthParams = {
35
+ readonly length?: number;
36
+ };
37
+ type PrecisionParams = {
38
+ readonly precision?: number;
39
+ };
40
+ type NumericParams = {
41
+ readonly precision?: number;
42
+ readonly scale?: number;
43
+ };
44
+ declare class PgTextCodec extends CodecImpl<typeof PG_TEXT_CODEC_ID, readonly ['equality', 'order', 'textual'], string, string> {
45
+ encode(value: string, _ctx: CodecCallContext): Promise<string>;
46
+ decode(wire: string, _ctx: CodecCallContext): Promise<string>;
47
+ encodeJson(value: string): JsonValue;
48
+ decodeJson(json: JsonValue): string;
49
+ }
50
+ declare class PgTextDescriptor extends PostgresCodecDescriptor<void> {
51
+ protected nativeType(): string;
52
+ protected jsonProjection(expression: ProjectionExpr): ProjectionExpr;
53
+ readonly codecId: "pg/text@1";
54
+ readonly traits: readonly ["equality", "order", "textual"];
55
+ readonly targetTypes: readonly ["text"];
56
+ readonly paramsSchema: StandardSchemaV1<void>;
57
+ renderValueLiteral(value: JsonValue): string | undefined;
58
+ factory(): (ctx: CodecInstanceContext) => PgTextCodec;
59
+ }
60
+ declare const pgTextColumn: () => import("@prisma/orm-framework/components/codec").ColumnSpec<PgTextCodec, undefined>;
61
+ /**
62
+ * Codec for a `pg.enum(Ref)` column bound to a native Postgres enum type.
63
+ * Text passthrough, identical to `pg/text@1` — encode/decode do not carry the
64
+ * enum's member values; membership is enforced by the native type itself, not
65
+ * by this codec. `renderValueLiteral` renders a member value as its TS
66
+ * literal, which is what drives the column's typed value-union (via
67
+ * `renderValueSetType` reading the column's `valueSet` ref) — the codec
68
+ * itself carries no params of its own; typing comes entirely from the
69
+ * column's value-set, not from `pg/enum@1`.
70
+ *
71
+ * A distinct codec id (rather than reusing `pg/text@1` on a plain text
72
+ * column) keeps native-enum columns independently identifiable — from a
73
+ * column's `codecId` alone, without also inspecting `nativeType` — which
74
+ * the managed (DDL) phase needs to target `CREATE TYPE`/`ALTER TYPE`
75
+ * operations at exactly the columns that use one.
76
+ */
77
+ declare class PgEnumCodec extends CodecImpl<typeof PG_ENUM_CODEC_ID, readonly ['equality', 'order', 'textual'], string, string> {
78
+ encode(value: string, _ctx: CodecCallContext): Promise<string>;
79
+ decode(wire: string, _ctx: CodecCallContext): Promise<string>;
80
+ encodeJson(value: string): JsonValue;
81
+ decodeJson(json: JsonValue): string;
82
+ }
83
+ type PgEnumParams = {
84
+ readonly typeName: string;
85
+ };
86
+ /**
87
+ * Narrows codec `typeParams` to {@link PgEnumParams} — the shape that binds a
88
+ * column to a named database type (a native enum's `CREATE TYPE` name).
89
+ */
90
+ declare function isPgEnumParams(value: unknown): value is PgEnumParams;
91
+ declare class PgEnumDescriptor extends PostgresCodecDescriptor<PgEnumParams> {
92
+ protected nativeType(params: PgEnumParams): string;
93
+ protected jsonProjection(expression: ProjectionExpr): ProjectionExpr;
94
+ readonly codecId: "pg/enum@1";
95
+ readonly traits: readonly ["equality", "order", "textual"];
96
+ readonly targetTypes: readonly ["text"];
97
+ readonly paramsSchema: import("arktype/internal/variants/object.ts").ObjectType<{
98
+ typeName: string;
99
+ }, {}>;
100
+ renderValueLiteral(value: JsonValue): string | undefined;
101
+ factory(_params: PgEnumParams): (ctx: CodecInstanceContext) => PgEnumCodec;
102
+ /**
103
+ * Authoring-time hook a `pg.enum(<ref>)` type constructor calls once it has
104
+ * resolved its ref argument to the referenced `native_enum` entity:
105
+ * produces this codec's per-column `typeParams` and native type from the
106
+ * entity's bare type name. Schema-qualification (`auth.aal_level` for a
107
+ * named non-default schema) is not this hook's concern — the field's
108
+ * namespace isn't known at this call site for every authoring path (the TS
109
+ * builder resolves a column before it knows its model's namespace), so it is
110
+ * applied later, at contract construction, by {@link qualifyNativeType} via
111
+ * the target's `authoring.qualifyColumnType` hook. `nativeType` mirrors
112
+ * `typeParams.typeName` — the same value `nativeTypeFor` derives at render
113
+ * time — so the column's declared native type and the render-time cast
114
+ * agree. Returns `undefined` if `entity` is not a `PostgresNativeEnum` (a
115
+ * contributor bug, not a user-schema error — the caller decides how to
116
+ * report it).
117
+ */
118
+ columnFromEntity(entity: object): {
119
+ readonly typeParams: PgEnumParams;
120
+ readonly nativeType: string;
121
+ } | undefined;
122
+ /**
123
+ * Schema-qualifies this native enum type's name for the namespace the
124
+ * consuming column lives in: `${namespaceId}.${typeName}` for a named
125
+ * non-default schema, bare for the target's default schema (`public`) or
126
+ * the late-bound unbound sentinel (whose schema `search_path` resolves at
127
+ * runtime). Postgres's `format_type()` reports the bare name for a
128
+ * public-schema type, so a public column's declared native type must stay
129
+ * bare to match. Owned here because the codec owns its native type.
130
+ */
131
+ qualifyNativeType(typeName: string, namespaceId: string): string;
132
+ }
133
+ declare const pgEnumDescriptor: PgEnumDescriptor;
134
+ /**
135
+ * Contract-construction-time column-type qualifier the Postgres target
136
+ * contributes through `authoring.qualifyColumnType`.
137
+ * `buildSqlContractFromDefinition` calls this for every column as it is
138
+ * constructed, passing the column's bare type info and its owning
139
+ * `namespaceId`; a native-enum column (`pg/enum@1`) gets its type name
140
+ * schema-qualified for that namespace (via
141
+ * {@link PgEnumDescriptor.qualifyNativeType}), keeping `nativeType` and
142
+ * `typeParams.typeName` in sync. Every other codec passes through unchanged.
143
+ * Both the PSL `pg.enum(Ref)` path and the TS `pg.enum(handle)` path route
144
+ * through here — the dispatch keys off the codec id, not authoring surface.
145
+ */
146
+ declare function postgresQualifyColumnType(input: {
147
+ readonly codecId: string;
148
+ readonly nativeType: string;
149
+ readonly typeParams?: Record<string, unknown>;
150
+ }, namespaceId: string): {
151
+ readonly nativeType: string;
152
+ readonly typeParams?: Record<string, unknown>;
153
+ };
154
+ declare class PgInt4Codec extends CodecImpl<typeof PG_INT4_CODEC_ID, readonly ['equality', 'order', 'numeric'], number, number> {
155
+ encode(value: number, _ctx: CodecCallContext): Promise<number>;
156
+ decode(wire: number, _ctx: CodecCallContext): Promise<number>;
157
+ encodeJson(value: number): JsonValue;
158
+ decodeJson(json: JsonValue): number;
159
+ }
160
+ declare class PgInt4Descriptor extends PostgresCodecDescriptor<void> {
161
+ protected nativeType(): string;
162
+ protected jsonProjection(expression: ProjectionExpr): ProjectionExpr;
163
+ readonly codecId: "pg/int4@1";
164
+ readonly traits: readonly ["equality", "order", "numeric"];
165
+ readonly targetTypes: readonly ["int4"];
166
+ readonly paramsSchema: StandardSchemaV1<void>;
167
+ renderValueLiteral(value: JsonValue): string | undefined;
168
+ factory(): (ctx: CodecInstanceContext) => PgInt4Codec;
169
+ }
170
+ declare const pgInt4Column: () => import("@prisma/orm-framework/components/codec").ColumnSpec<PgInt4Codec, undefined>;
171
+ declare class PgInt2Codec extends CodecImpl<typeof PG_INT2_CODEC_ID, readonly ['equality', 'order', 'numeric'], number, number> {
172
+ encode(value: number, _ctx: CodecCallContext): Promise<number>;
173
+ decode(wire: number, _ctx: CodecCallContext): Promise<number>;
174
+ encodeJson(value: number): JsonValue;
175
+ decodeJson(json: JsonValue): number;
176
+ }
177
+ declare class PgInt2Descriptor extends PostgresCodecDescriptor<void> {
178
+ protected nativeType(): string;
179
+ protected jsonProjection(expression: ProjectionExpr): ProjectionExpr;
180
+ readonly codecId: "pg/int2@1";
181
+ readonly traits: readonly ["equality", "order", "numeric"];
182
+ readonly targetTypes: readonly ["int2"];
183
+ readonly paramsSchema: StandardSchemaV1<void>;
184
+ renderValueLiteral(value: JsonValue): string | undefined;
185
+ factory(): (ctx: CodecInstanceContext) => PgInt2Codec;
186
+ }
187
+ declare const pgInt2Column: () => import("@prisma/orm-framework/components/codec").ColumnSpec<PgInt2Codec, undefined>;
188
+ /**
189
+ * A Postgres `int8` spans the full signed 64-bit range, which a JS `number`
190
+ * cannot hold past 2^53. Application values are `bigint` and the canonical JSON
191
+ * is decimal text; the wire form is the decimal string `pg` reads and writes for
192
+ * this type.
193
+ */
194
+ declare class PgInt8Codec extends CodecImpl<typeof PG_INT8_CODEC_ID, readonly ['equality', 'order', 'numeric'], string | number | bigint, bigint> {
195
+ encode(value: bigint, _ctx: CodecCallContext): Promise<string>;
196
+ decode(wire: string | number | bigint, _ctx: CodecCallContext): Promise<bigint>;
197
+ encodeJson(value: bigint): JsonValue;
198
+ decodeJson(json: JsonValue): bigint;
199
+ }
200
+ declare class PgInt8Descriptor extends PostgresCodecDescriptor<void> {
201
+ protected nativeType(): string;
202
+ protected jsonProjection(expression: ProjectionExpr): ProjectionExpr;
203
+ readonly codecId: "pg/int8@1";
204
+ readonly traits: readonly ["equality", "order", "numeric"];
205
+ readonly targetTypes: readonly ["int8"];
206
+ readonly paramsSchema: StandardSchemaV1<void>;
207
+ renderValueLiteral(value: JsonValue): string | undefined;
208
+ factory(): (ctx: CodecInstanceContext) => PgInt8Codec;
209
+ }
210
+ declare const pgInt8Column: () => import("@prisma/orm-framework/components/codec").ColumnSpec<PgInt8Codec, undefined>;
211
+ declare class PgFloat4Codec extends CodecImpl<typeof PG_FLOAT4_CODEC_ID, readonly ['equality', 'order', 'numeric'], number, number> {
212
+ encode(value: number, _ctx: CodecCallContext): Promise<number>;
213
+ decode(wire: number, _ctx: CodecCallContext): Promise<number>;
214
+ encodeJson(value: number): JsonValue;
215
+ decodeJson(json: JsonValue): number;
216
+ }
217
+ declare class PgFloat4Descriptor extends PostgresCodecDescriptor<void> {
218
+ protected nativeType(): string;
219
+ protected jsonProjection(expression: ProjectionExpr): ProjectionExpr;
220
+ readonly codecId: "pg/float4@1";
221
+ readonly traits: readonly ["equality", "order", "numeric"];
222
+ readonly targetTypes: readonly ["float4"];
223
+ readonly paramsSchema: StandardSchemaV1<void>;
224
+ renderValueLiteral(value: JsonValue): string | undefined;
225
+ factory(): (ctx: CodecInstanceContext) => PgFloat4Codec;
226
+ }
227
+ declare const pgFloat4Column: () => import("@prisma/orm-framework/components/codec").ColumnSpec<PgFloat4Codec, undefined>;
228
+ declare class PgFloat8Codec extends CodecImpl<typeof PG_FLOAT8_CODEC_ID, readonly ['equality', 'order', 'numeric'], number, number> {
229
+ encode(value: number, _ctx: CodecCallContext): Promise<number>;
230
+ decode(wire: number, _ctx: CodecCallContext): Promise<number>;
231
+ encodeJson(value: number): JsonValue;
232
+ decodeJson(json: JsonValue): number;
233
+ }
234
+ declare class PgFloat8Descriptor extends PostgresCodecDescriptor<void> {
235
+ protected nativeType(): string;
236
+ protected jsonProjection(expression: ProjectionExpr): ProjectionExpr;
237
+ readonly codecId: "pg/float8@1";
238
+ readonly traits: readonly ["equality", "order", "numeric"];
239
+ readonly targetTypes: readonly ["float8"];
240
+ readonly paramsSchema: StandardSchemaV1<void>;
241
+ renderValueLiteral(value: JsonValue): string | undefined;
242
+ factory(): (ctx: CodecInstanceContext) => PgFloat8Codec;
243
+ }
244
+ declare const pgFloat8Column: () => import("@prisma/orm-framework/components/codec").ColumnSpec<PgFloat8Codec, undefined>;
245
+ declare class PgBoolCodec extends CodecImpl<typeof PG_BOOL_CODEC_ID, readonly ['equality', 'boolean'], boolean, boolean> {
246
+ encode(value: boolean, _ctx: CodecCallContext): Promise<boolean>;
247
+ decode(wire: boolean, _ctx: CodecCallContext): Promise<boolean>;
248
+ encodeJson(value: boolean): JsonValue;
249
+ decodeJson(json: JsonValue): boolean;
250
+ }
251
+ declare class PgBoolDescriptor extends PostgresCodecDescriptor<void> {
252
+ protected nativeType(): string;
253
+ protected jsonProjection(expression: ProjectionExpr): ProjectionExpr;
254
+ readonly codecId: "pg/bool@1";
255
+ readonly traits: readonly ["equality", "boolean"];
256
+ readonly targetTypes: readonly ["bool"];
257
+ readonly paramsSchema: StandardSchemaV1<void>;
258
+ renderValueLiteral(value: JsonValue): string | undefined;
259
+ factory(): (ctx: CodecInstanceContext) => PgBoolCodec;
260
+ }
261
+ declare const pgBoolColumn: () => import("@prisma/orm-framework/components/codec").ColumnSpec<PgBoolCodec, undefined>;
262
+ declare class PgNumericCodec extends CodecImpl<typeof PG_NUMERIC_CODEC_ID, readonly ['equality', 'order', 'numeric'], string | number, string> {
263
+ encode(value: string, _ctx: CodecCallContext): Promise<string>;
264
+ decode(wire: string | number, _ctx: CodecCallContext): Promise<string>;
265
+ encodeJson(value: string): JsonValue;
266
+ decodeJson(json: JsonValue): string;
267
+ }
268
+ declare class PgNumericDescriptor extends PostgresCodecDescriptor<NumericParams> {
269
+ protected nativeType(): string;
270
+ protected jsonProjection(expression: ProjectionExpr): ProjectionExpr;
271
+ readonly codecId: "pg/numeric@1";
272
+ readonly traits: readonly ["equality", "order", "numeric"];
273
+ readonly targetTypes: readonly ["numeric", "decimal"];
274
+ readonly paramsSchema: import("arktype/internal/variants/object.ts").ObjectType<{
275
+ precision?: number;
276
+ scale?: number;
277
+ }, {}>;
278
+ renderOutputType(params: NumericParams): string | undefined;
279
+ factory(_params: NumericParams): (ctx: CodecInstanceContext) => PgNumericCodec;
280
+ }
281
+ declare const pgNumericColumn: (params?: NumericParams) => import("@prisma/orm-framework/components/codec").ColumnSpec<PgNumericCodec, NumericParams>;
282
+ /**
283
+ * A Postgres `date` has no time-of-day or timezone component. This codec
284
+ * canonicalizes its JS-level value as a `Date` at UTC midnight, so its
285
+ * round-trip is independent of the process's local timezone — see
286
+ * `pgDateEncode`/`pgDateDecode` in `codec-helpers.ts`.
287
+ */
288
+ declare class PgDateCodec extends CodecImpl<typeof PG_DATE_CODEC_ID, readonly ['equality', 'order'], Date | string, Date> {
289
+ encode(value: Date, _ctx: CodecCallContext): Promise<string>;
290
+ decode(wire: Date, _ctx: CodecCallContext): Promise<Date>;
291
+ encodeJson(value: Date): JsonValue;
292
+ decodeJson(json: JsonValue): Date;
293
+ }
294
+ declare class PgDateDescriptor extends PostgresCodecDescriptor<void> {
295
+ protected nativeType(): string;
296
+ protected jsonProjection(expression: ProjectionExpr): ProjectionExpr;
297
+ readonly codecId: "pg/date@1";
298
+ readonly traits: readonly ["equality", "order"];
299
+ readonly targetTypes: readonly ["date"];
300
+ readonly paramsSchema: StandardSchemaV1<void>;
301
+ factory(): (ctx: CodecInstanceContext) => PgDateCodec;
302
+ }
303
+ declare const pgDateColumn: () => import("@prisma/orm-framework/components/codec").ColumnSpec<PgDateCodec, undefined>;
304
+ declare class PgTimestampCodec extends CodecImpl<typeof PG_TIMESTAMP_CODEC_ID, readonly ['equality', 'order'], Date, Date> {
305
+ encode(value: Date, _ctx: CodecCallContext): Promise<Date>;
306
+ decode(wire: Date, _ctx: CodecCallContext): Promise<Date>;
307
+ encodeJson(value: Date): JsonValue;
308
+ decodeJson(json: JsonValue): Date;
309
+ }
310
+ declare class PgTimestampDescriptor extends PostgresCodecDescriptor<PrecisionParams> {
311
+ protected nativeType(): string;
312
+ protected jsonProjection(expression: ProjectionExpr): ProjectionExpr;
313
+ readonly codecId: "pg/timestamp@1";
314
+ readonly traits: readonly ["equality", "order"];
315
+ readonly targetTypes: readonly ["timestamp"];
316
+ readonly paramsSchema: import("arktype/internal/variants/object.ts").ObjectType<{
317
+ precision?: number;
318
+ }, {}>;
319
+ renderOutputType(params: PrecisionParams): string | undefined;
320
+ factory(_params: PrecisionParams): (ctx: CodecInstanceContext) => PgTimestampCodec;
321
+ }
322
+ declare const pgTimestampColumn: (params?: PrecisionParams) => import("@prisma/orm-framework/components/codec").ColumnSpec<PgTimestampCodec, PrecisionParams>;
323
+ declare class PgTimestamptzCodec extends CodecImpl<typeof PG_TIMESTAMPTZ_CODEC_ID, readonly ['equality', 'order'], Date, Date> {
324
+ encode(value: Date, _ctx: CodecCallContext): Promise<Date>;
325
+ decode(wire: Date, _ctx: CodecCallContext): Promise<Date>;
326
+ encodeJson(value: Date): JsonValue;
327
+ decodeJson(json: JsonValue): Date;
328
+ }
329
+ declare class PgTimestamptzDescriptor extends PostgresCodecDescriptor<PrecisionParams> {
330
+ protected nativeType(): string;
331
+ protected jsonProjection(expression: ProjectionExpr): ProjectionExpr;
332
+ readonly codecId: "pg/timestamptz@1";
333
+ readonly traits: readonly ["equality", "order"];
334
+ readonly targetTypes: readonly ["timestamptz"];
335
+ readonly paramsSchema: import("arktype/internal/variants/object.ts").ObjectType<{
336
+ precision?: number;
337
+ }, {}>;
338
+ renderOutputType(params: PrecisionParams): string | undefined;
339
+ factory(_params: PrecisionParams): (ctx: CodecInstanceContext) => PgTimestamptzCodec;
340
+ }
341
+ declare const pgTimestamptzColumn: (params?: PrecisionParams) => import("@prisma/orm-framework/components/codec").ColumnSpec<PgTimestamptzCodec, PrecisionParams>;
342
+ declare class PgTimeCodec extends CodecImpl<typeof PG_TIME_CODEC_ID, readonly ['equality', 'order'], string, string> {
343
+ encode(value: string, _ctx: CodecCallContext): Promise<string>;
344
+ decode(wire: string, _ctx: CodecCallContext): Promise<string>;
345
+ encodeJson(value: string): JsonValue;
346
+ decodeJson(json: JsonValue): string;
347
+ }
348
+ declare class PgTimeDescriptor extends PostgresCodecDescriptor<PrecisionParams> {
349
+ protected nativeType(): string;
350
+ protected jsonProjection(expression: ProjectionExpr): ProjectionExpr;
351
+ readonly codecId: "pg/time@1";
352
+ readonly traits: readonly ["equality", "order"];
353
+ readonly targetTypes: readonly ["time"];
354
+ readonly paramsSchema: import("arktype/internal/variants/object.ts").ObjectType<{
355
+ precision?: number;
356
+ }, {}>;
357
+ renderOutputType(params: PrecisionParams): string | undefined;
358
+ factory(_params: PrecisionParams): (ctx: CodecInstanceContext) => PgTimeCodec;
359
+ }
360
+ declare const pgTimeColumn: (params?: PrecisionParams) => import("@prisma/orm-framework/components/codec").ColumnSpec<PgTimeCodec, PrecisionParams>;
361
+ declare class PgTimetzCodec extends CodecImpl<typeof PG_TIMETZ_CODEC_ID, readonly ['equality', 'order'], string, string> {
362
+ encode(value: string, _ctx: CodecCallContext): Promise<string>;
363
+ decode(wire: string, _ctx: CodecCallContext): Promise<string>;
364
+ encodeJson(value: string): JsonValue;
365
+ decodeJson(json: JsonValue): string;
366
+ }
367
+ declare class PgTimetzDescriptor extends PostgresCodecDescriptor<PrecisionParams> {
368
+ protected nativeType(): string;
369
+ protected jsonProjection(expression: ProjectionExpr): ProjectionExpr;
370
+ readonly codecId: "pg/timetz@1";
371
+ readonly traits: readonly ["equality", "order"];
372
+ readonly targetTypes: readonly ["timetz"];
373
+ readonly paramsSchema: import("arktype/internal/variants/object.ts").ObjectType<{
374
+ precision?: number;
375
+ }, {}>;
376
+ renderOutputType(params: PrecisionParams): string | undefined;
377
+ factory(_params: PrecisionParams): (ctx: CodecInstanceContext) => PgTimetzCodec;
378
+ }
379
+ declare const pgTimetzColumn: (params?: PrecisionParams) => import("@prisma/orm-framework/components/codec").ColumnSpec<PgTimetzCodec, PrecisionParams>;
380
+ declare class PgBitCodec extends CodecImpl<typeof PG_BIT_CODEC_ID, readonly ['equality', 'order'], string, string> {
381
+ encode(value: string, _ctx: CodecCallContext): Promise<string>;
382
+ decode(wire: string, _ctx: CodecCallContext): Promise<string>;
383
+ encodeJson(value: string): JsonValue;
384
+ decodeJson(json: JsonValue): string;
385
+ }
386
+ declare class PgBitDescriptor extends PostgresCodecDescriptor<LengthParams> {
387
+ protected nativeType(): string;
388
+ protected jsonProjection(expression: ProjectionExpr): ProjectionExpr;
389
+ readonly codecId: "pg/bit@1";
390
+ readonly traits: readonly ["equality", "order"];
391
+ readonly targetTypes: readonly ["bit"];
392
+ readonly paramsSchema: import("arktype/internal/variants/object.ts").ObjectType<{
393
+ length?: number;
394
+ }, {}>;
395
+ renderOutputType(params: LengthParams): string | undefined;
396
+ factory(_params: LengthParams): (ctx: CodecInstanceContext) => PgBitCodec;
397
+ }
398
+ declare const pgBitColumn: (params?: LengthParams) => import("@prisma/orm-framework/components/codec").ColumnSpec<PgBitCodec, LengthParams>;
399
+ declare class PgVarbitCodec extends CodecImpl<typeof PG_VARBIT_CODEC_ID, readonly ['equality', 'order'], string, string> {
400
+ encode(value: string, _ctx: CodecCallContext): Promise<string>;
401
+ decode(wire: string, _ctx: CodecCallContext): Promise<string>;
402
+ encodeJson(value: string): JsonValue;
403
+ decodeJson(json: JsonValue): string;
404
+ }
405
+ declare class PgVarbitDescriptor extends PostgresCodecDescriptor<LengthParams> {
406
+ protected nativeType(): string;
407
+ protected jsonProjection(expression: ProjectionExpr): ProjectionExpr;
408
+ readonly codecId: "pg/varbit@1";
409
+ readonly traits: readonly ["equality", "order"];
410
+ readonly targetTypes: readonly ["bit varying"];
411
+ readonly paramsSchema: import("arktype/internal/variants/object.ts").ObjectType<{
412
+ length?: number;
413
+ }, {}>;
414
+ renderOutputType(params: LengthParams): string | undefined;
415
+ factory(_params: LengthParams): (ctx: CodecInstanceContext) => PgVarbitCodec;
416
+ }
417
+ declare const pgVarbitColumn: (params?: LengthParams) => import("@prisma/orm-framework/components/codec").ColumnSpec<PgVarbitCodec, LengthParams>;
418
+ declare class PgByteaCodec extends CodecImpl<typeof PG_BYTEA_CODEC_ID, readonly ['equality'], Uint8Array, Uint8Array> {
419
+ encode(value: Uint8Array, _ctx: CodecCallContext): Promise<Uint8Array>;
420
+ decode(wire: Uint8Array, _ctx: CodecCallContext): Promise<Uint8Array>;
421
+ encodeJson(value: Uint8Array): JsonValue;
422
+ decodeJson(json: JsonValue): Uint8Array;
423
+ }
424
+ declare class PgByteaDescriptor extends PostgresCodecDescriptor<void> {
425
+ protected nativeType(): string;
426
+ protected jsonProjection(expression: ProjectionExpr): ProjectionExpr;
427
+ readonly codecId: "pg/bytea@1";
428
+ readonly traits: readonly ["equality"];
429
+ readonly targetTypes: readonly ["bytea"];
430
+ readonly paramsSchema: StandardSchemaV1<void>;
431
+ factory(): (ctx: CodecInstanceContext) => PgByteaCodec;
432
+ }
433
+ declare class PgUuidCodec extends CodecImpl<typeof PG_UUID_CODEC_ID, readonly ['equality', 'order'], string, string> {
434
+ encode(value: string, _ctx: CodecCallContext): Promise<string>;
435
+ decode(wire: string, _ctx: CodecCallContext): Promise<string>;
436
+ encodeJson(value: string): JsonValue;
437
+ decodeJson(json: JsonValue): string;
438
+ }
439
+ declare class PgUuidDescriptor extends PostgresCodecDescriptor<void> {
440
+ protected nativeType(): string;
441
+ protected jsonProjection(expression: ProjectionExpr): ProjectionExpr;
442
+ readonly codecId: "pg/uuid@1";
443
+ readonly traits: readonly ["equality", "order"];
444
+ readonly targetTypes: readonly ["uuid"];
445
+ readonly paramsSchema: StandardSchemaV1<void>;
446
+ factory(): (ctx: CodecInstanceContext) => PgUuidCodec;
447
+ }
448
+ declare const pgUuidColumn: () => import("@prisma/orm-framework/components/codec").ColumnSpec<PgUuidCodec, undefined>;
449
+ declare class PgInetCodec extends CodecImpl<typeof PG_INET_CODEC_ID, readonly ['equality', 'order'], string, string> {
450
+ encode(value: string, _ctx: CodecCallContext): Promise<string>;
451
+ decode(wire: string, _ctx: CodecCallContext): Promise<string>;
452
+ encodeJson(value: string): JsonValue;
453
+ decodeJson(json: JsonValue): string;
454
+ }
455
+ declare class PgInetDescriptor extends PostgresCodecDescriptor<void> {
456
+ protected nativeType(): string;
457
+ protected jsonProjection(expression: ProjectionExpr): ProjectionExpr;
458
+ readonly codecId: "pg/inet@1";
459
+ readonly traits: readonly ["equality", "order"];
460
+ readonly targetTypes: readonly ["inet"];
461
+ readonly paramsSchema: StandardSchemaV1<void>;
462
+ factory(): (ctx: CodecInstanceContext) => PgInetCodec;
463
+ }
464
+ declare const pgInetColumn: () => import("@prisma/orm-framework/components/codec").ColumnSpec<PgInetCodec, undefined>;
465
+ /**
466
+ * An application value is a {@link PgInterval} — the three fields PostgreSQL
467
+ * actually stores, `{ months, days, micros }` — and its canonical JSON is the
468
+ * ISO-8601 duration string PostgreSQL spells under
469
+ * `IntervalStyle = 'iso_8601'`: `P1M`, `P30D`, `P1Y2M3DT4H5M6S`, `PT0S` for
470
+ * zero, each component carrying its own sign.
471
+ *
472
+ * Value and representation are independent here, as they are for `pg/bytea@1`
473
+ * (`Uint8Array` carried as base64) and `pg/int8@1` (`bigint` carried as decimal
474
+ * text). Reading an interval hands back numbers to compute with rather than a
475
+ * string to parse; writing one takes the same numbers.
476
+ *
477
+ * The fields stay independent because a month has no fixed length: `{months: 1}`
478
+ * and `{days: 30}` are different values and neither converts to the other. The
479
+ * ISO rendering normalises only in its own spelling — twelve months render as a
480
+ * year — so `{months: 13}` renders `P1Y1M` and reads back as `{months: 13}`.
481
+ */
482
+ declare class PgIntervalCodec extends CodecImpl<typeof PG_INTERVAL_CODEC_ID, readonly ['equality', 'order'], string | Record<string, unknown>, PgInterval> {
483
+ encode(value: PgInterval, _ctx: CodecCallContext): Promise<string>;
484
+ decode(wire: string | Record<string, unknown>, _ctx: CodecCallContext): Promise<PgInterval>;
485
+ encodeJson(value: PgInterval): JsonValue;
486
+ decodeJson(json: JsonValue): PgInterval;
487
+ }
488
+ declare class PgIntervalDescriptor extends PostgresCodecDescriptor<PrecisionParams> {
489
+ protected nativeType(): string;
490
+ protected jsonProjection(expression: ProjectionExpr): ProjectionExpr;
491
+ readonly codecId: "pg/interval@1";
492
+ readonly traits: readonly ["equality", "order"];
493
+ readonly targetTypes: readonly ["interval"];
494
+ readonly paramsSchema: import("arktype/internal/variants/object.ts").ObjectType<{
495
+ precision?: number;
496
+ }, {}>;
497
+ renderOutputType(params: PrecisionParams): string | undefined;
498
+ factory(_params: PrecisionParams): (ctx: CodecInstanceContext) => PgIntervalCodec;
499
+ }
500
+ declare const pgIntervalColumn: (params?: PrecisionParams) => import("@prisma/orm-framework/components/codec").ColumnSpec<PgIntervalCodec, PrecisionParams>;
501
+ declare class PgJsonCodec extends CodecImpl<typeof PG_JSON_CODEC_ID, readonly [], string | JsonValue, JsonValue> {
502
+ encode(value: JsonValue, _ctx: CodecCallContext): Promise<string>;
503
+ decode(wire: string | JsonValue, _ctx: CodecCallContext): Promise<JsonValue>;
504
+ encodeJson(value: JsonValue): JsonValue;
505
+ decodeJson(json: JsonValue): JsonValue;
506
+ }
507
+ declare class PgJsonDescriptor extends PostgresCodecDescriptor<void> {
508
+ protected nativeType(): string;
509
+ protected jsonProjection(expression: ProjectionExpr): ProjectionExpr;
510
+ readonly codecId: "pg/json@1";
511
+ readonly traits: readonly [];
512
+ readonly targetTypes: readonly ["json"];
513
+ readonly paramsSchema: StandardSchemaV1<void>;
514
+ factory(): (ctx: CodecInstanceContext) => PgJsonCodec;
515
+ }
516
+ declare const pgJsonColumn: () => import("@prisma/orm-framework/components/codec").ColumnSpec<PgJsonCodec, undefined>;
517
+ declare class PgJsonbCodec extends CodecImpl<typeof PG_JSONB_CODEC_ID, readonly ['equality'], string | JsonValue, JsonValue> {
518
+ encode(value: JsonValue, _ctx: CodecCallContext): Promise<string>;
519
+ decode(wire: string | JsonValue, _ctx: CodecCallContext): Promise<JsonValue>;
520
+ encodeJson(value: JsonValue): JsonValue;
521
+ decodeJson(json: JsonValue): JsonValue;
522
+ }
523
+ declare class PgJsonbDescriptor extends PostgresCodecDescriptor<void> {
524
+ protected nativeType(): string;
525
+ protected jsonProjection(expression: ProjectionExpr): ProjectionExpr;
526
+ readonly codecId: "pg/jsonb@1";
527
+ readonly traits: readonly ["equality"];
528
+ readonly targetTypes: readonly ["jsonb"];
529
+ readonly paramsSchema: StandardSchemaV1<void>;
530
+ factory(): (ctx: CodecInstanceContext) => PgJsonbCodec;
531
+ }
532
+ declare const pgJsonbColumn: () => import("@prisma/orm-framework/components/codec").ColumnSpec<PgJsonbCodec, undefined>;
533
+ declare class PgCharDescriptor extends PostgresCodecDescriptor<LengthParams> {
534
+ protected nativeType(): string;
535
+ protected jsonProjection(expression: ProjectionExpr): ProjectionExpr;
536
+ readonly codecId: "pg/char@1";
537
+ readonly targetTypes: readonly ["character"];
538
+ readonly traits: readonly ["equality", "order", "textual"];
539
+ readonly paramsSchema: StandardSchemaV1<{
540
+ readonly length?: number;
541
+ }, {
542
+ readonly length?: number;
543
+ }>;
544
+ renderOutputType(params: LengthParams): string | undefined;
545
+ renderValueLiteral(value: JsonValue): string | undefined;
546
+ factory(_params: LengthParams): (ctx: CodecInstanceContext) => SqlCharCodec;
547
+ }
548
+ declare const pgCharColumn: (params?: LengthParams) => import("@prisma/orm-framework/components/codec").ColumnSpec<SqlCharCodec, LengthParams>;
549
+ declare class PgVarcharDescriptor extends PostgresCodecDescriptor<LengthParams> {
550
+ protected nativeType(): string;
551
+ protected jsonProjection(expression: ProjectionExpr): ProjectionExpr;
552
+ readonly codecId: "pg/varchar@1";
553
+ readonly targetTypes: readonly ["character varying"];
554
+ readonly traits: readonly ["equality", "order", "textual"];
555
+ readonly paramsSchema: StandardSchemaV1<{
556
+ readonly length?: number;
557
+ }, {
558
+ readonly length?: number;
559
+ }>;
560
+ renderOutputType(params: LengthParams): string | undefined;
561
+ renderValueLiteral(value: JsonValue): string | undefined;
562
+ factory(_params: LengthParams): (ctx: CodecInstanceContext) => SqlVarcharCodec;
563
+ }
564
+ declare const pgVarcharColumn: (params?: LengthParams) => import("@prisma/orm-framework/components/codec").ColumnSpec<SqlVarcharCodec, LengthParams>;
565
+ declare class PgIntDescriptor extends PostgresCodecDescriptor<void> {
566
+ protected nativeType(): string;
567
+ protected jsonProjection(expression: ProjectionExpr): ProjectionExpr;
568
+ readonly codecId: "pg/int@1";
569
+ readonly targetTypes: readonly ["int4"];
570
+ readonly traits: readonly ["equality", "order", "numeric"];
571
+ readonly paramsSchema: StandardSchemaV1<void, void>;
572
+ renderValueLiteral(value: JsonValue): string | undefined;
573
+ factory(): (ctx: CodecInstanceContext) => SqlIntCodec;
574
+ }
575
+ declare const pgIntColumn: () => import("@prisma/orm-framework/components/codec").ColumnSpec<SqlIntCodec, undefined>;
576
+ declare class PgFloatDescriptor extends PostgresCodecDescriptor<void> {
577
+ protected nativeType(): string;
578
+ protected jsonProjection(expression: ProjectionExpr): ProjectionExpr;
579
+ readonly codecId: "pg/float@1";
580
+ readonly targetTypes: readonly ["float8"];
581
+ readonly traits: readonly ["equality", "order", "numeric"];
582
+ readonly paramsSchema: StandardSchemaV1<void, void>;
583
+ renderValueLiteral(value: JsonValue): string | undefined;
584
+ factory(): (ctx: CodecInstanceContext) => SqlFloatCodec;
585
+ }
586
+ declare const pgFloatColumn: () => import("@prisma/orm-framework/components/codec").ColumnSpec<SqlFloatCodec, undefined>;
587
+ //#endregion
588
+ export { pgUuidColumn as $, isPgEnumParams as A, pgInt2Column as B, PgTimeDescriptor as C, PgUuidDescriptor as D, PgTimetzDescriptor as E, pgEnumDescriptor as F, pgJsonColumn as G, pgInt8Column as H, pgFloat4Column as I, pgTextColumn as J, pgJsonbColumn as K, pgFloat8Column as L, pgBoolColumn as M, pgCharColumn as N, PgVarbitDescriptor as O, pgDateColumn as P, pgTimetzColumn as Q, pgFloatColumn as R, PgTextDescriptor as S, PgTimestamptzDescriptor as T, pgIntColumn as U, pgInt4Column as V, pgIntervalColumn as W, pgTimestampColumn as X, pgTimeColumn as Y, pgTimestamptzColumn as Z, PgInterval as _, PgDateDescriptor as a, PgJsonbDescriptor as b, PgEnumParams as c, PgFloatDescriptor as d, pgVarbitColumn as et, PgInetDescriptor as f, PgIntDescriptor as g, PgInt8Descriptor as h, PgCharDescriptor as i, pgBitColumn as j, PgVarcharDescriptor as k, PgFloat4Descriptor as l, PgInt4Descriptor as m, PgBoolDescriptor as n, postgresQualifyColumnType as nt, PgEnumCodec as o, PgInt2Descriptor as p, pgNumericColumn as q, PgByteaDescriptor as r, PgEnumDescriptor as s, PgBitDescriptor as t, pgVarcharColumn as tt, PgFloat8Descriptor as u, PgIntervalDescriptor as v, PgTimestampDescriptor as w, PgNumericDescriptor as x, PgJsonDescriptor as y, pgInetColumn as z };
589
+ //# sourceMappingURL=codecs-Cvqvb9pV-Cdc51FKY.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"codecs-Cvqvb9pV-Cdc51FKY.d.mts","names":[],"sources":["../../../../3-targets/3-targets/postgres/dist/codecs-Cvqvb9pV.d.mts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;UAyBU;WACC;WACA;WACA;;;;KAIN;WACM;;KAEN;WACM;;KAEN;WACM;WACA;;cAEG,oBAAoB,iBAAiB;EACjD,OAAO,eAAe,MAAM,mBAAmB;EAC/C,OAAO,cAAc,MAAM,mBAAmB;EAC9C,WAAW,gBAAgB;EAC3B,WAAW,MAAM;;cAEL,yBAAyB;YAC3B;YACA,eAAe,YAAY,iBAAiB;WAC7C;WACA;WACA;WACA,cAAc;EACvB,mBAAmB,OAAO;EAC1B,YAAY,KAAK,yBAAyB;;cAE9B,mEAAmE,WAAW;;;;;;;;;;;;;;;;;cAiB9E,oBAAoB,iBAAiB;EACjD,OAAO,eAAe,MAAM,mBAAmB;EAC/C,OAAO,cAAc,MAAM,mBAAmB;EAC9C,WAAW,gBAAgB;EAC3B,WAAW,MAAM;;KAEd;WACM;;;;;;iBAMM,eAAe,iBAAiB,SAAS;cAC5C,yBAAyB,wBAAwB;YACnD,WAAW,QAAQ;YACnB,eAAe,YAAY,iBAAiB;WAC7C;WACA;WACA;WACA,4DAA4D;IACnE;;EAEF,mBAAmB,OAAO;EAC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OAAO,OAAO,WAAW,MAAM,mBAAmB;EAClD,OAAO,eAAe,WAAW,MAAM,mBAAmB,QAAQ;EAClE,WAAW,OAAO,YAAY;EAC9B,WAAW,MAAM,YAAY;;cAEjB,0BAA0B;YAC5B;YACA,eAAe,YAAY,iBAAiB;WAC7C;WACA;WACA;WACA,cAAc;EACvB,YAAY,KAAK,yBAAyB;;cAE9B,oEAAoE,WAAW;cAC/E,yBAAyB,wBAAwB;YACnD;YACA,eAAe,YAAY,iBAAiB;WAC7C;WACA;WACA;WACA,cAAc;aACZ;;aAEA;;EAEX,iBAAiB,QAAQ;EACzB,mBAAmB,OAAO;EAC1B,QAAQ,SAAS,gBAAgB,KAAK,yBAAyB;;cAEnD,eAAe,SAAS,gEAAgE,WAAW,cAAc;cACjH,4BAA4B,wBAAwB;YACtD;YACA,eAAe,YAAY,iBAAiB;WAC7C;WACA;WACA;WACA,cAAc;aACZ;;aAEA;;EAEX,iBAAiB,QAAQ;EACzB,mBAAmB,OAAO;EAC1B,QAAQ,SAAS,gBAAgB,KAAK,yBAAyB;;cAEnD,kBAAkB,SAAS,gEAAgE,WAAW,iBAAiB;cACvH,wBAAwB;YAC1B;YACA,eAAe,YAAY,iBAAiB;WAC7C;WACA;WACA;WACA,cAAc;EACvB,mBAAmB,OAAO;EAC1B,YAAY,KAAK,yBAAyB;;cAE9B,kEAAkE,WAAW;cAC7E,0BAA0B;YAC5B;YACA,eAAe,YAAY,iBAAiB;WAC7C;WACA;WACA;WACA,cAAc;EACvB,mBAAmB,OAAO;EAC1B,YAAY,KAAK,yBAAyB;;cAE9B,oEAAoE,WAAW"}
@@ -0,0 +1,15 @@
1
+ import { i as PostgresCodecDescriptorRegistry } from "./codec-descriptor-Bec_zukr-BfvtUqhm.mjs";
2
+ import "./codecs-Cvqvb9pV-Cdc51FKY.mjs";
3
+ import { CodecDescriptorRegistry } from "@prisma/orm-family-sql/relational-core/query-lane-context";
4
+ //#region ../../../3-targets/3-targets/postgres/dist/codecs.d.mts
5
+ //#region src/core/registry.d.ts
6
+ /**
7
+ * Registry of every codec descriptor shipped by `@internal/target-postgres`.
8
+ *
9
+ * Public consumer surface for the postgres codec set: the postgres adapter and any other consumer that needs to enumerate or look up a postgres codec by id consumes this rather than the raw descriptor array. See ADR 208.
10
+ */
11
+ declare const postgresCodecRegistry: CodecDescriptorRegistry;
12
+ declare const postgresCodecDescriptorRegistry: PostgresCodecDescriptorRegistry;
13
+ //#endregion
14
+ export { postgresCodecRegistry as n, postgresCodecDescriptorRegistry as t };
15
+ //# sourceMappingURL=codecs-DBn-uIv-.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"codecs-DBn-uIv-.d.mts","names":[],"sources":["../../../../3-targets/3-targets/postgres/dist/codecs.d.mts"],"mappings":";;;;;;;;;;cASc,uBAAuB;cACvB,iCAAiC"}