@prisma/orm-target-postgres 8.0.0-rc.11-dev.16 → 8.0.0-rc.11-dev.17

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 (90) hide show
  1. package/dist/{adapter-DDfZMW0M-Cqq4b6_G.mjs → adapter-bTD1EPrl-DQ66tQwz.mjs} +3 -3
  2. package/dist/{adapter-DDfZMW0M-Cqq4b6_G.mjs.map → adapter-bTD1EPrl-DQ66tQwz.mjs.map} +1 -1
  3. package/dist/adapter.d.mts +2 -2
  4. package/dist/adapter.mjs +3 -3
  5. package/dist/adapter__adapter.mjs +1 -1
  6. package/dist/adapter__control.d.mts +2 -2
  7. package/dist/adapter__control.mjs +5 -4
  8. package/dist/adapter__control.mjs.map +1 -1
  9. package/dist/adapter__runtime.mjs +8 -3
  10. package/dist/adapter__runtime.mjs.map +1 -1
  11. package/dist/{authoring-DgeWf8RC-C-jQzf_w.mjs → authoring-Beq66XGy-D-GgvlBG.mjs} +63 -20
  12. package/dist/authoring-Beq66XGy-D-GgvlBG.mjs.map +1 -0
  13. package/dist/authoring-xyQRYoem-DWCGb5Py.d.mts +36 -0
  14. package/dist/authoring-xyQRYoem-DWCGb5Py.d.mts.map +1 -0
  15. package/dist/control-206OMpyA.mjs +470 -0
  16. package/dist/control-206OMpyA.mjs.map +1 -0
  17. package/dist/{control--T7XaMS8.d.mts → control-BvK2pHHh.d.mts} +2 -2
  18. package/dist/{control--T7XaMS8.d.mts.map → control-BvK2pHHh.d.mts.map} +1 -1
  19. package/dist/{control-xdW1bgaP.d.mts → control-DmVutloY.d.mts} +2 -2
  20. package/dist/{control-xdW1bgaP.d.mts.map → control-DmVutloY.d.mts.map} +1 -1
  21. package/dist/{control-adapter-5et6pVM9-B5CKg-5B.mjs → control-adapter-Bdz-Xa1p-rKiOVhsh.mjs} +96 -28
  22. package/dist/control-adapter-Bdz-Xa1p-rKiOVhsh.mjs.map +1 -0
  23. package/dist/{control-policy-BKgU_M65-BWedWA-f.mjs → control-policy-B8x7UxGf-BjTez7am.mjs} +24 -17
  24. package/dist/control-policy-B8x7UxGf-BjTez7am.mjs.map +1 -0
  25. package/dist/{default-normalizer-Ba5ZebHM-isV86rjy.mjs → default-normalizer-Bjtm2F4f-uV5vvkVt.mjs} +160 -33
  26. package/dist/default-normalizer-Bjtm2F4f-uV5vvkVt.mjs.map +1 -0
  27. package/dist/{default-normalizer-B36TOul4.d.mts → default-normalizer-D9WbKo20.d.mts} +2 -2
  28. package/dist/{default-normalizer-B36TOul4.d.mts.map → default-normalizer-D9WbKo20.d.mts.map} +1 -1
  29. package/dist/{descriptor-meta-C4i4pLQn-CmdN74uG.mjs → descriptor-meta-BhJOswpM-CqvnQMC0.mjs} +3 -3
  30. package/dist/{descriptor-meta-C4i4pLQn-CmdN74uG.mjs.map → descriptor-meta-BhJOswpM-CqvnQMC0.mjs.map} +1 -1
  31. package/dist/{diff-database-schema-BaSP2z4y-Ch42uw-j.mjs → diff-database-schema-BFX0ZWWK-KVfAPOLF.mjs} +4 -4
  32. package/dist/{diff-database-schema-BaSP2z4y-Ch42uw-j.mjs.map → diff-database-schema-BFX0ZWWK-KVfAPOLF.mjs.map} +1 -1
  33. package/dist/{control-BC3oXXIK.mjs → infer-psl-contract-BaZaJAD9-DTVu5Zab.mjs} +110 -488
  34. package/dist/infer-psl-contract-BaZaJAD9-DTVu5Zab.mjs.map +1 -0
  35. package/dist/migration-PTHAY9Cv.mjs.map +1 -1
  36. package/dist/{op-factory-call-6Jg-ycA--4AC_11Od.mjs → op-factory-call-B3-CevCo-CSV5SL9W.mjs} +3 -3
  37. package/dist/{op-factory-call-6Jg-ycA--4AC_11Od.mjs.map → op-factory-call-B3-CevCo-CSV5SL9W.mjs.map} +1 -1
  38. package/dist/{pack-D8V-43m8.d.mts → pack-CRA_2QjF.d.mts} +8 -38
  39. package/dist/pack-CRA_2QjF.d.mts.map +1 -0
  40. package/dist/plain-date-time-now-generator-DJ3icyVr-B-rdIVd3.d.mts +23 -0
  41. package/dist/plain-date-time-now-generator-DJ3icyVr-B-rdIVd3.d.mts.map +1 -0
  42. package/dist/{planner-C70Loeo_-qHTNBO3Q.mjs → planner-D_VBDqX0-C2jCXuIt.mjs} +6 -6
  43. package/dist/{planner-C70Loeo_-qHTNBO3Q.mjs.map → planner-D_VBDqX0-C2jCXuIt.mjs.map} +1 -1
  44. package/dist/{planner-ddl-builders-Cf6-fTvi-CKp-yZkB.mjs → planner-ddl-builders-CpXQ-J0X-CL5gNUSG.mjs} +14 -5
  45. package/dist/{planner-ddl-builders-Cf6-fTvi-CKp-yZkB.mjs.map → planner-ddl-builders-CpXQ-J0X-CL5gNUSG.mjs.map} +1 -1
  46. package/dist/{planner-ddl-builders-ijp60-JO.d.mts → planner-ddl-builders-bBCUsq_0.d.mts} +2 -2
  47. package/dist/planner-ddl-builders-bBCUsq_0.d.mts.map +1 -0
  48. package/dist/{planner-produced-postgres-migration-ButAgK7L-CZXweEva.mjs → planner-produced-postgres-migration-DwcW5RrQ-D0DPBmoS.mjs} +3 -3
  49. package/dist/{planner-produced-postgres-migration-ButAgK7L-CZXweEva.mjs.map → planner-produced-postgres-migration-DwcW5RrQ-D0DPBmoS.mjs.map} +1 -1
  50. package/dist/{postgres-contract-view-C22aDeL9-BWJIOpCz.mjs → postgres-contract-view-D7tYWHwD-DJNOh9Qo.mjs} +3 -3
  51. package/dist/{postgres-contract-view-C22aDeL9-BWJIOpCz.mjs.map → postgres-contract-view-D7tYWHwD-DJNOh9Qo.mjs.map} +1 -1
  52. package/dist/{postgres-migration-Cj-DvDY8-CIrWHp9I.mjs → postgres-migration-DXHNRgZA-HzAql-Bj.mjs} +4 -4
  53. package/dist/{postgres-migration-Cj-DvDY8-CIrWHp9I.mjs.map → postgres-migration-DXHNRgZA-HzAql-Bj.mjs.map} +1 -1
  54. package/dist/prisma7-binding-C38o_ABR.d.mts +1012 -0
  55. package/dist/prisma7-binding-C38o_ABR.d.mts.map +1 -0
  56. package/dist/prisma7-binding-DjpSw5G6.mjs +331 -0
  57. package/dist/prisma7-binding-DjpSw5G6.mjs.map +1 -0
  58. package/dist/{runtime-CpeP58Y6.d.mts → runtime-BRbiY5Vj.d.mts} +2 -2
  59. package/dist/{runtime-CpeP58Y6.d.mts.map → runtime-BRbiY5Vj.d.mts.map} +1 -1
  60. package/dist/target.d.mts +8 -7
  61. package/dist/target.mjs +13 -12
  62. package/dist/target__control.d.mts +3 -3
  63. package/dist/target__control.mjs +3 -3
  64. package/dist/target__default-normalizer.d.mts +1 -1
  65. package/dist/target__default-normalizer.mjs +1 -1
  66. package/dist/target__diff-database-schema.mjs +1 -1
  67. package/dist/target__issue-planner.mjs +1 -1
  68. package/dist/target__migration.mjs +2 -2
  69. package/dist/target__op-factory-call.mjs +1 -1
  70. package/dist/target__pack.d.mts +1 -1
  71. package/dist/target__pack.mjs +1 -1
  72. package/dist/target__planner-ddl-builders.d.mts +1 -1
  73. package/dist/target__planner-ddl-builders.mjs +1 -1
  74. package/dist/target__planner-produced-postgres-migration.mjs +1 -1
  75. package/dist/target__planner.mjs +2 -2
  76. package/dist/target__prisma7-binding.d.mts +2 -0
  77. package/dist/target__prisma7-binding.mjs +2 -0
  78. package/dist/target__runtime.d.mts +3 -3
  79. package/dist/target__runtime.mjs +3 -3
  80. package/dist/target__runtime.mjs.map +1 -1
  81. package/package.json +10 -9
  82. package/dist/authoring-DgeWf8RC-C-jQzf_w.mjs.map +0 -1
  83. package/dist/control-BC3oXXIK.mjs.map +0 -1
  84. package/dist/control-adapter-5et6pVM9-B5CKg-5B.mjs.map +0 -1
  85. package/dist/control-policy-BKgU_M65-BWedWA-f.mjs.map +0 -1
  86. package/dist/default-normalizer-Ba5ZebHM-isV86rjy.mjs.map +0 -1
  87. package/dist/list-decoder-8mZBUNe0-C9dPXUP0.d.mts +0 -13
  88. package/dist/list-decoder-8mZBUNe0-C9dPXUP0.d.mts.map +0 -1
  89. package/dist/pack-D8V-43m8.d.mts.map +0 -1
  90. package/dist/planner-ddl-builders-ijp60-JO.d.mts.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"prisma7-binding-C38o_ABR.d.mts","names":[],"sources":["../../../../3-targets/3-targets/postgres/dist/prisma7-binding.d.mts"],"mappings":";;;;;;;;iBAOiB,0BAA0B;;;;;;;;iBAQ1B,2BAA2B,gBAAgB;;;;;;;;;;;cAW9C;WACH;aACE;aACA;aACA,yDAAyD,iBAAiB,uBAAuB;eAC/F;SACN;eACM;SACN;eACM;SACN;eACM;SACN;eACM;SACN;eACM;;aAEF;eACE;iBACE;mBACE;mBACA;qBACE;qBACA;;;iBAGJ;mBACE;mBACA;qBACE;qBACA;;;iBAGJ;mBACE;qBACE;qBACA;uBACE;uBACA;;qBAEF;uBACE;;;;;eAKR;iBACE;mBACE;mBACA;qBACE;qBACA;;;iBAGJ;mBACE;mBACA;qBACE;qBACA;;;iBAGJ;mBACE;mBACA;qBACE;qBACA;;;iBAGJ;mBACE;mBACA;qBACE;qBACA;;;iBAGJ;mBACE;mBACA;qBACE;qBACA;;;iBAGJ;mBACE;mBACA;qBACE;qBACA;;;iBAGJ;mBACE;mBACA;qBACE;qBACA;;;iBAGJ;mBACE;mBACA;qBACE;qBACA;;;iBAGJ;mBACE;mBACA;qBACE;qBACA;;;iBAGJ;mBACE;qBACE;qBACA;uBACE;uBACA;uBACA;uBACA;uBACA;;uBAEA;uBACA;uBACA;uBACA;;uBAEA;uBACA;uBACA;uBACA;;qBAEF;uBACE;uBACA;uBACA;yBACE;2BACE;2BACA;;;uBAGJ;yBACE;2BACE;2BACA;2BACA;6BACE;+BACE;+BACA;;;;yBAIN;2BACE;2BACA;2BACA;6BACE;+BACE;+BACA;;;;;;;mBAOZ;qBACE;qBACA;uBACE;uBACA;uBACA;uBACA;uBACA;;uBAEA;uBACA;uBACA;uBACA;;uBAEA;uBACA;uBACA;uBACA;;qBAEF;uBACE;uBACA;uBACA;yBACE;2BACE;2BACA;;;uBAGJ;yBACE;2BACE;2BACA;2BACA;6BACE;+BACE;+BACA;;;;yBAIN;2BACE;2BACA;2BACA;6BACE;+BACE;+BACA;;;;;;;mBAOZ;qBACE;qBACA;uBACE;uBACA;uBACA;uBACA;uBACA;;uBAEA;uBACA;uBACA;uBACA;;uBAEA;uBACA;uBACA;uBACA;;qBAEF;uBACE;uBACA;uBACA;yBACE;2BACE;2BACA;;;uBAGJ;yBACE;2BACE;2BACA;2BACA;6BACE;+BACE;+BACA;;;;yBAIN;2BACE;2BACA;2BACA;6BACE;+BACE;+BACA;;;;;;;mBAOZ;qBACE;qBACA;uBACE;uBACA;uBACA;uBACA;uBACA;;uBAEA;uBACA;uBACA;uBACA;;uBAEA;uBACA;uBACA;uBACA;;qBAEF;uBACE;uBACA;uBACA;yBACE;2BACE;2BACA;;;uBAGJ;yBACE;2BACE;2BACA;2BACA;6BACE;+BACE;+BACA;;;;yBAIN;2BACE;2BACA;2BACA;6BACE;+BACE;+BACA;;;;;;;mBAOZ;qBACE;qBACA;uBACE;uBACA;uBACA;yBACE;yBACA;;;;mBAIN;qBACE;qBACA;uBACE;uBACA;uBACA;yBACE;2BACE;2BACA;;yBAEF;2BACE;2BACA;;;;;mBAKR;qBACE;qBACA;uBACE;uBACA;uBACA;yBACE;yBACA;;;;mBAIN;qBACE;qBACA;uBACE;uBACA;uBACA;yBACE;2BACE;2BACA;;yBAEF;2BACE;2BACA;;;;;mBAKR;qBACE;qBACA;uBACE;uBACA;uBACA;yBACE;yBACA;;;;mBAIN;qBACE;qBACA;uBACE;uBACA;uBACA;yBACE;2BACE;2BACA;;yBAEF;2BACE;2BACA;;;;;mBAKR;qBACE;qBACA;uBACE;uBACA;uBACA;uBACA;uBACA;;uBAEA;uBACA;uBACA;uBACA;;uBAEA;uBACA;uBACA;uBACA;;qBAEF;uBACE;uBACA;uBACA;yBACE;2BACE;2BACA;;;uBAGJ;yBACE;2BACE;2BACA;2BACA;6BACE;+BACE;+BACA;;;;yBAIN;2BACE;2BACA;2BACA;6BACE;+BACE;+BACA;;;;;;;;iBAQd;mBACE;mBACA;qBACE;qBACA;;;iBAGJ;mBACE;qBACE;qBACA;uBACE;uBACA;uBACA;yBACE;2BACE;2BACA;;;uBAGJ;;;mBAGJ;qBACE;qBACA;uBACE;uBACA;uBACA;yBACE;2BACE;2BACA;;;uBAGJ;;;;;eAKR;iBACE;mBACE;mBACA;mBACA,+DAA+D;YACtE;YACA;YACA;YACA;;mBAEO;qBACE,UAAU,OAAO,oBAAoB,wDAAwD,2BAA2B;;;iBAG5H;mBACE;mBACA;mBACA,+DAA+D;YACtE;YACA;YACA;;mBAEO;qBACE,UAAU,OAAO,+BAA+B;;;iBAGpD;mBACE;mBACA;mBACA,+DAA+D;YACtE;YACA;YACA;YACA;YACA;YACA;YACA;YACA;YACA;YACA;;mBAEO;qBACE,UAAU,OAAO,yBAAyB,wDAAwD,2BAA2B;;;iBAGjI;mBACE;mBACA;mBACA,+DAA+D;YACtE;YACA;YACA;YACA;;mBAEO;YACP,UAAU,sCAAsC,mBAAmB,wDAAwD,2BAA2B;YACtJ,iBAAiB,QAAQ;cACvB;cACA;;;;;eAKC;iBACE;mBACE;mBACA;mBACA;mBACA;qBACE;;mBAEF;qBACE;uBACE;uBACA;uBACA;uBACA;;qBAEF;uBACE;uBACA;yBACE;yBACA;yBACA;;;qBAGJ;uBACE;uBACA;uBACA;;qBAEF;uBACE;uBACA;;;mBAGJ;qBACE;qBACA;;mBAEF;YACP,0CAA0C;cACxC;8CACgC;;;iBAG7B;mBACE;mBACA;mBACA;mBACA;qBACE;;mBAEF;qBACE;uBACE;uBACA;uBACA;uBACA;;qBAEF;uBACE;uBACA;yBACE;yBACA;yBACA;;;qBAGJ;uBACE;uBACA;uBACA;;qBAEF;uBACE;uBACA;;;mBAGJ;qBACE;qBACA;;mBAEF;YACP,0CAA0C;cACxC;8CACgC;;;iBAG7B;mBACE;mBACA;mBACA;mBACA;qBACE;;mBAEF;qBACE;uBACE;uBACA;uBACA;uBACA;;qBAEF;uBACE;uBACA;yBACE;yBACA;yBACA;;;qBAGJ;uBACE;uBACA;uBACA;;qBAEF;uBACE;uBACA;;;mBAGJ;qBACE;qBACA;;mBAEF;YACP,0CAA0C;cACxC;8CACgC;;;iBAG7B;mBACE;mBACA;mBACA;mBACA;qBACE;;mBAEF;qBACE;uBACE;uBACA;uBACA;uBACA;;qBAEF;uBACE;uBACA;yBACE;yBACA;yBACA;;;qBAGJ;uBACE;uBACA;uBACA;;qBAEF;uBACE;uBACA;uBACA;;qBAEF;uBACE;uBACA;;;mBAGJ;qBACE;qBACA;;mBAEF;YACP,0CAA0C;cACxC;8CACgC;;;iBAG7B;mBACE;mBACA;mBACA;mBACA;qBACE;;mBAEF;qBACE;uBACE;uBACA;uBACA;uBACA;;qBAEF;uBACE;uBACA;yBACE;yBACA;yBACA;;;qBAGJ;uBACE;uBACA;uBACA;;qBAEF;uBACE;uBACA;uBACA;;qBAEF;uBACE;uBACA;;;mBAGJ;qBACE;qBACA;;mBAEF;YACP,0CAA0C;cACxC;8CACgC;;;iBAG7B;mBACE;mBACA;mBACA;mBACA;qBACE;;mBAEF;mBACA;mBACA;qBACE,0CAA0C;cACjD;8CACgC;;;iBAG7B;mBACE;mBACA;mBACA;mBACA;qBACE;;mBAEF;;;eAGJ;iBACE;mBACE;mBACA;mBACA,qCAAqC;mBACrC,QAAQ,SAAS,sBAAsB,wDAAwD;YACtG;YACA,QAAQ;;;;eAIL,wBAAwB;eACxB,0BAA0B;eAC1B,+BAA+B;eAC/B,2BAA2B;;aAE7B;aACA;aACA;aACA;aACA;aACA;aACA,eAAe;;aAEf,eAAe;;WAEjB,wBAAwB;WACxB;WACA;aACE;eACE;iBACE;iBACA;;eAEF;iBACE;iBACA;;eAEF;iBACE;iBACA;;eAEF;iBACE;iBACA;;eAEF;iBACE;iBACA;;eAEF;iBACE;iBACA;;eAEF;iBACE;iBACA;;eAEF;iBACE;iBACA;;eAEF;iBACE;iBACA;;;aAGJ;eACE;iBACE;iBACA;;eAEF;iBACE;iBACA;;eAEF;iBACE;iBACA;;eAEF;iBACE;iBACA;;eAEF;iBACE;iBACA;;eAEF;iBACE;iBACA;;eAEF;iBACE;iBACA;;eAEF;iBACE;iBACA;;eAEF;iBACE;iBACA;;eAEF;iBACE;iBACA;;eAEF;iBACE;iBACA;;eAEF;iBACE;iBACA;;eAEF;iBACE;iBACA;;eAEF;iBACE;iBACA;;eAEF;iBACE;iBACA;;eAEF;iBACE;iBACA;;eAEF;iBACE;iBACA;;eAEF;iBACE;iBACA;;eAEF;iBACE;iBACA;;eAEF;iBACE;iBACA;;;;WAIN;aACE;aACA;;WAEF;aACE;aACA;aACA;aACA;aACA;aACA;;;WAGF;WACA,mCAAmC;WACnC,6BAA6B;WAC7B,uBAAuB,YAAY;aACjC;aACA,aAAa,SAAS;;aAEtB;aACA;aACA;;aAEA;aACA,UAAU;aACV,OAAO"}
@@ -0,0 +1,331 @@
1
+ import { h as postgresCreateNamespace } from "./postgres-schema-PFL-fpel-s3InB8T0.mjs";
2
+ import { t as parsePostgresDefault } from "./default-normalizer-Bjtm2F4f-uV5vvkVt.mjs";
3
+ import { p as postgresNowGeneratorIdFor } from "./authoring-Beq66XGy-D-GgvlBG.mjs";
4
+ import { t as postgresTargetDescriptorMeta } from "./descriptor-meta-BhJOswpM-CqvnQMC0.mjs";
5
+ import { n as createPostgresDefaultMapping, r as createPostgresTypeMap, t as buildPslDocumentAst } from "./infer-psl-contract-BaZaJAD9-DTVu5Zab.mjs";
6
+ import { SqlSchemaIR, SqlTableIR } from "@prisma/orm-family-sql/schema-ir/types";
7
+ import { toModelName } from "@prisma/orm-family-sql/family/psl-infer";
8
+ import { flatPslModels } from "@prisma/orm-framework/components/psl-ast";
9
+ //#region ../../../3-targets/3-targets/postgres/dist/prisma7-binding.mjs
10
+ const RFC_3339 = /^(\d{4})-(\d{2})-(\d{2})[Tt ](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(?:[Zz]|([+-])(\d{2}):(\d{2}))$/;
11
+ const MICROS_PER_SECOND = 1e6;
12
+ function pad(value, width = 2) {
13
+ return String(value).padStart(width, "0");
14
+ }
15
+ /**
16
+ * The microseconds Postgres keeps for a fraction-of-a-second digit string. Every digit counts:
17
+ * `.1234565` is an exact tie, and C's `rint` takes the even neighbour 123456, while `.1234565001`
18
+ * is above the tie and rounds up to 123457.
19
+ */
20
+ function fractionMicros(fraction) {
21
+ const micros = Number(`${fraction}000000`.slice(0, 6));
22
+ const beyondTie = fraction.slice(6).replace(/0+$/, "");
23
+ if (beyondTie === "") return micros;
24
+ if (beyondTie === "5") return micros % 2 === 0 ? micros : micros + 1;
25
+ return beyondTie > "5" ? micros + 1 : micros;
26
+ }
27
+ function fractionText(micros) {
28
+ return micros === 0 ? "" : `.${pad(micros, 6).replace(/0+$/, "")}`;
29
+ }
30
+ function offsetText(minutes) {
31
+ const magnitude = Math.abs(minutes);
32
+ const rest = magnitude % 60;
33
+ return `${minutes < 0 ? "-" : "+"}${pad(Math.floor(magnitude / 60))}${rest === 0 ? "" : `:${pad(rest)}`}`;
34
+ }
35
+ /**
36
+ * The text of the column default Postgres stores for a Prisma 7 `DateTime`
37
+ * default, which Prisma 7 writes as `'2024-01-02 03:04:05.123 +02:00'`:
38
+ * `date` keeps the written date, `time` and `timestamp` the written wall-clock
39
+ * time without the offset, and `timetz` the time with the written offset.
40
+ * `timestamptz` is carried in its UTC form, the text a session in UTC prints
41
+ * (`2024-01-02 01:04:05+00`, and `0001-12-31 23:30:00+00 BC` before year 1);
42
+ * a session in another time zone prints the same instant differently.
43
+ * Fractional seconds are rounded to microseconds; the column's own precision
44
+ * does not change a stored default.
45
+ */
46
+ function storedTemporalText(text, nativeType) {
47
+ const match = RFC_3339.exec(text);
48
+ if (match === null) return void 0;
49
+ const [, year = "", month = "", day = "", hour, minute, second, fraction = "", sign, offsetHours, offsetMinutes] = match;
50
+ if (nativeType === "date") return `${year}-${month}-${day}`;
51
+ const micros = fractionMicros(fraction);
52
+ const clockSeconds = Number(hour) * 3600 + Number(minute) * 60 + Number(second) + Math.floor(micros / MICROS_PER_SECOND);
53
+ const fractional = fractionText(micros % MICROS_PER_SECOND);
54
+ const offsetMinutesTotal = sign === void 0 ? 0 : (sign === "-" ? -1 : 1) * (Number(offsetHours) * 60 + Number(offsetMinutes));
55
+ if (nativeType === "time" || nativeType === "timetz") {
56
+ const clock = `${pad(Math.floor(clockSeconds / 3600))}:${pad(Math.floor(clockSeconds / 60) % 60)}:${pad(clockSeconds % 60)}${fractional}`;
57
+ return nativeType === "time" ? clock : `${clock}${offsetText(offsetMinutesTotal)}`;
58
+ }
59
+ const midnight = /* @__PURE__ */ new Date(0);
60
+ midnight.setUTCFullYear(Number(year), Number(month) - 1, Number(day));
61
+ const utcShift = nativeType === "timestamptz" ? offsetMinutesTotal * 60 : 0;
62
+ const stamp = new Date(midnight.getTime() + (clockSeconds - utcShift) * 1e3);
63
+ const astronomicalYear = stamp.getUTCFullYear();
64
+ const wallClock = `${pad(astronomicalYear > 0 ? astronomicalYear : 1 - astronomicalYear, 4)}-${pad(stamp.getUTCMonth() + 1)}-${pad(stamp.getUTCDate())} ${pad(stamp.getUTCHours())}:${pad(stamp.getUTCMinutes())}:${pad(stamp.getUTCSeconds())}${fractional}`;
65
+ const era = astronomicalYear > 0 ? "" : " BC";
66
+ return nativeType === "timestamptz" ? `${wallClock}+00${era}` : `${wallClock}${era}`;
67
+ }
68
+ /**
69
+ * What Prisma 7.10.0 creates in Postgres for each Prisma 7 scalar and `@db.*`
70
+ * native type, expressed as the Prisma 8 authoring type constructor that
71
+ * produces the same column. Derived from the SQL recorded in
72
+ * `test/integration/test/fixtures/prisma7-source/reference/migration.sql`.
73
+ * `args` are the constructor's positional arguments. A `@db.*` attribute's own
74
+ * arguments replace them; without any, the column gets `args`, so `@db.Char`
75
+ * is `Char(1)`, the `character(1)` Postgres stores for Prisma 7's `CHAR`.
76
+ */
77
+ const prisma7PostgresTypeMap = {
78
+ scalars: {
79
+ String: {
80
+ constructorName: "String",
81
+ args: []
82
+ },
83
+ Boolean: {
84
+ constructorName: "Boolean",
85
+ args: []
86
+ },
87
+ Int: {
88
+ constructorName: "Int",
89
+ args: []
90
+ },
91
+ BigInt: {
92
+ constructorName: "BigInt",
93
+ args: []
94
+ },
95
+ Float: {
96
+ constructorName: "Float",
97
+ args: []
98
+ },
99
+ Decimal: {
100
+ constructorName: "Numeric",
101
+ args: ["65", "30"]
102
+ },
103
+ DateTime: {
104
+ constructorName: "Timestamp",
105
+ args: ["3"]
106
+ },
107
+ Json: {
108
+ constructorName: "Jsonb",
109
+ args: []
110
+ },
111
+ Bytes: {
112
+ constructorName: "Bytes",
113
+ args: []
114
+ }
115
+ },
116
+ nativeTypes: {
117
+ Text: {
118
+ constructorName: "String",
119
+ args: []
120
+ },
121
+ VarChar: {
122
+ constructorName: "VarChar",
123
+ args: []
124
+ },
125
+ Char: {
126
+ constructorName: "Char",
127
+ args: ["1"]
128
+ },
129
+ Uuid: {
130
+ constructorName: "Uuid",
131
+ args: []
132
+ },
133
+ Inet: {
134
+ constructorName: "Inet",
135
+ args: []
136
+ },
137
+ Boolean: {
138
+ constructorName: "Boolean",
139
+ args: []
140
+ },
141
+ Integer: {
142
+ constructorName: "Int",
143
+ args: []
144
+ },
145
+ SmallInt: {
146
+ constructorName: "SmallInt",
147
+ args: []
148
+ },
149
+ BigInt: {
150
+ constructorName: "BigInt",
151
+ args: []
152
+ },
153
+ Real: {
154
+ constructorName: "Real",
155
+ args: []
156
+ },
157
+ DoublePrecision: {
158
+ constructorName: "Float",
159
+ args: []
160
+ },
161
+ Decimal: {
162
+ constructorName: "Numeric",
163
+ args: []
164
+ },
165
+ Timestamp: {
166
+ constructorName: "Timestamp",
167
+ args: []
168
+ },
169
+ Timestamptz: {
170
+ constructorName: "Timestamptz",
171
+ args: []
172
+ },
173
+ Date: {
174
+ constructorName: "Date",
175
+ args: []
176
+ },
177
+ Time: {
178
+ constructorName: "Time",
179
+ args: []
180
+ },
181
+ Timetz: {
182
+ constructorName: "Timetz",
183
+ args: []
184
+ },
185
+ Json: {
186
+ constructorName: "Json",
187
+ args: []
188
+ },
189
+ JsonB: {
190
+ constructorName: "Jsonb",
191
+ args: []
192
+ },
193
+ ByteA: {
194
+ constructorName: "Bytes",
195
+ args: []
196
+ }
197
+ }
198
+ };
199
+ const EMPTY_FOREIGN_KEY_EXTRAS = {
200
+ extraRelationsByTable: /* @__PURE__ */ new Map(),
201
+ crossSpaceFieldNamesByTable: /* @__PURE__ */ new Map(),
202
+ danglingForeignKeysByTable: /* @__PURE__ */ new Map()
203
+ };
204
+ function idTable(name) {
205
+ return new SqlTableIR({
206
+ name,
207
+ columns: { id: {
208
+ name: "id",
209
+ nativeType: "int4",
210
+ nullable: false
211
+ } },
212
+ foreignKeys: [],
213
+ uniques: [],
214
+ indexes: [],
215
+ primaryKey: { columns: ["id"] }
216
+ });
217
+ }
218
+ /**
219
+ * The relation field names `contract infer` prints for an implicit
220
+ * many-to-many junction table whose columns `A` and `B` reference `tableA`
221
+ * and `tableB`, found by running infer's PSL construction on that table.
222
+ */
223
+ function junctionRelationFieldNames(tableA, tableB) {
224
+ let junctionName = "_junction";
225
+ while ([tableA, tableB].some((table) => toModelName(table).name === toModelName(junctionName).name)) junctionName = `${junctionName}x`;
226
+ const column = (name) => ({
227
+ name,
228
+ nativeType: "int4",
229
+ nullable: false
230
+ });
231
+ const foreignKey = (columnName, referencedTable) => ({
232
+ columns: [columnName],
233
+ referencedTable,
234
+ referencedColumns: ["id"]
235
+ });
236
+ const junction = new SqlTableIR({
237
+ name: junctionName,
238
+ columns: {
239
+ A: column("A"),
240
+ B: column("B")
241
+ },
242
+ foreignKeys: [foreignKey("A", tableA), foreignKey("B", tableB)],
243
+ uniques: [],
244
+ indexes: [],
245
+ primaryKey: { columns: ["A", "B"] }
246
+ });
247
+ const document = buildPslDocumentAst(new SqlSchemaIR({ tables: {
248
+ [tableA]: idTable(tableA),
249
+ [tableB]: idTable(tableB),
250
+ [junctionName]: junction
251
+ } }), {
252
+ typeMap: createPostgresTypeMap(),
253
+ defaultMapping: createPostgresDefaultMapping(),
254
+ parseRawDefault: parsePostgresDefault
255
+ }, EMPTY_FOREIGN_KEY_EXTRAS);
256
+ const junctionModelName = toModelName(junctionName).name;
257
+ const fields = flatPslModels(document).find((model) => model.name === junctionModelName)?.fields;
258
+ const scalarFieldCount = Object.keys(junction.columns).length;
259
+ const [a = "", b = ""] = (fields ?? []).slice(scalarFieldCount).map((field) => field.name);
260
+ return [a, b];
261
+ }
262
+ const TEMPORAL_NATIVE_TYPES = /* @__PURE__ */ new Set([
263
+ "timestamp",
264
+ "timestamptz",
265
+ "date",
266
+ "time",
267
+ "timetz"
268
+ ]);
269
+ function isTemporalNativeType(nativeType) {
270
+ return TEMPORAL_NATIVE_TYPES.has(nativeType);
271
+ }
272
+ function sqlStringLiteral(value) {
273
+ return value === void 0 ? void 0 : `'${value.replace(/'/g, "''")}'`;
274
+ }
275
+ function base64ToHex(base64) {
276
+ if (!/^[A-Za-z0-9+/]*={0,2}$/.test(base64) || base64.length % 4 !== 0) return void 0;
277
+ return `\\x${Buffer.from(base64, "base64").toString("hex")}`;
278
+ }
279
+ function arrayLiteral(literals, typeName) {
280
+ return `ARRAY[${literals.join(", ")}]::${typeName}[]`;
281
+ }
282
+ /**
283
+ * What the Postgres target supplies to the Prisma 7 interpreter. A `Bytes` or
284
+ * `DateTime` default is carried as the SQL literal of the default Postgres
285
+ * stores (`'\x68656c6c6f'`, `'2024-01-02 03:04:05'`), and a list default as an
286
+ * `ARRAY[...]` of those literals cast to the column type, rather than through
287
+ * the column codec, whose JSON form (base64, a Temporal value) is not what
288
+ * introspection reads back; verify parses both sides with the same parser.
289
+ */
290
+ const prisma7PostgresBinding = {
291
+ target: postgresTargetDescriptorMeta,
292
+ createNamespace: postgresCreateNamespace,
293
+ providers: ["postgresql", "postgres"],
294
+ typeMap: prisma7PostgresTypeMap,
295
+ nativeEnum: {
296
+ entityKind: "native_enum",
297
+ typeConstructor: ["pg", "enum"]
298
+ },
299
+ indexTypes: {
300
+ BTree: "btree",
301
+ Hash: "hash",
302
+ Gin: "gin",
303
+ Gist: "gist",
304
+ SpGist: "spgist",
305
+ Brin: "brin"
306
+ },
307
+ /** `NAMEDATALEN - 1`. */
308
+ identifierMaxBytes: 63,
309
+ junctionRelationFieldNames,
310
+ updatedAtGeneratorId: postgresNowGeneratorIdFor,
311
+ literalDefaultForm: ({ nativeType, typeParams }) => {
312
+ if (nativeType === "json" || nativeType === "jsonb") return { kind: "json" };
313
+ if (nativeType === "bytea") return {
314
+ kind: "sqlExpression",
315
+ literal: (text) => sqlStringLiteral(base64ToHex(text)),
316
+ list: (literals) => arrayLiteral(literals, "BYTEA")
317
+ };
318
+ if (!isTemporalNativeType(nativeType)) return void 0;
319
+ const precision = typeParams?.["precision"];
320
+ const typeName = `${nativeType.toUpperCase()}${typeof precision === "number" ? `(${precision})` : ""}`;
321
+ return {
322
+ kind: "sqlExpression",
323
+ literal: (text) => sqlStringLiteral(storedTemporalText(text, nativeType)),
324
+ list: (literals) => arrayLiteral(literals, typeName)
325
+ };
326
+ }
327
+ };
328
+ //#endregion
329
+ export { prisma7PostgresBinding as t };
330
+
331
+ //# sourceMappingURL=prisma7-binding-DjpSw5G6.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"prisma7-binding-DjpSw5G6.mjs","names":[],"sources":["../../../../3-targets/3-targets/postgres/dist/prisma7-binding.mjs"],"sourcesContent":["import { t as parsePostgresDefault } from \"./default-normalizer-Bjtm2F4f.mjs\";\nimport { s as postgresNowGeneratorIdFor } from \"./authoring-Beq66XGy.mjs\";\nimport { i as postgresCreateNamespace } from \"./postgres-schema-PFL-fpel.mjs\";\nimport { t as postgresTargetDescriptorMeta } from \"./descriptor-meta-BhJOswpM.mjs\";\nimport { i as createPostgresDefaultMapping, r as createPostgresTypeMap, t as buildPslDocumentAst } from \"./infer-psl-contract-BaZaJAD9.mjs\";\nimport { SqlSchemaIR, SqlTableIR } from \"@internal/sql-schema-ir/types\";\nimport { toModelName } from \"@internal/family-sql/psl-infer\";\nimport { flatPslModels } from \"@internal/framework-components/psl-ast\";\n//#region src/core/prisma7-temporal-defaults.ts\nconst RFC_3339 = /^(\\d{4})-(\\d{2})-(\\d{2})[Tt ](\\d{2}):(\\d{2}):(\\d{2})(?:\\.(\\d+))?(?:[Zz]|([+-])(\\d{2}):(\\d{2}))$/;\nconst MICROS_PER_SECOND = 1e6;\nfunction pad(value, width = 2) {\n\treturn String(value).padStart(width, \"0\");\n}\n/**\n* The microseconds Postgres keeps for a fraction-of-a-second digit string. Every digit counts:\n* `.1234565` is an exact tie, and C's `rint` takes the even neighbour 123456, while `.1234565001`\n* is above the tie and rounds up to 123457.\n*/\nfunction fractionMicros(fraction) {\n\tconst micros = Number(`${fraction}000000`.slice(0, 6));\n\tconst beyondTie = fraction.slice(6).replace(/0+$/, \"\");\n\tif (beyondTie === \"\") return micros;\n\tif (beyondTie === \"5\") return micros % 2 === 0 ? micros : micros + 1;\n\treturn beyondTie > \"5\" ? micros + 1 : micros;\n}\nfunction fractionText(micros) {\n\treturn micros === 0 ? \"\" : `.${pad(micros, 6).replace(/0+$/, \"\")}`;\n}\nfunction offsetText(minutes) {\n\tconst magnitude = Math.abs(minutes);\n\tconst rest = magnitude % 60;\n\treturn `${minutes < 0 ? \"-\" : \"+\"}${pad(Math.floor(magnitude / 60))}${rest === 0 ? \"\" : `:${pad(rest)}`}`;\n}\n/**\n* The text of the column default Postgres stores for a Prisma 7 `DateTime`\n* default, which Prisma 7 writes as `'2024-01-02 03:04:05.123 +02:00'`:\n* `date` keeps the written date, `time` and `timestamp` the written wall-clock\n* time without the offset, and `timetz` the time with the written offset.\n* `timestamptz` is carried in its UTC form, the text a session in UTC prints\n* (`2024-01-02 01:04:05+00`, and `0001-12-31 23:30:00+00 BC` before year 1);\n* a session in another time zone prints the same instant differently.\n* Fractional seconds are rounded to microseconds; the column's own precision\n* does not change a stored default.\n*/\nfunction storedTemporalText(text, nativeType) {\n\tconst match = RFC_3339.exec(text);\n\tif (match === null) return void 0;\n\tconst [, year = \"\", month = \"\", day = \"\", hour, minute, second, fraction = \"\", sign, offsetHours, offsetMinutes] = match;\n\tif (nativeType === \"date\") return `${year}-${month}-${day}`;\n\tconst micros = fractionMicros(fraction);\n\tconst clockSeconds = Number(hour) * 3600 + Number(minute) * 60 + Number(second) + Math.floor(micros / MICROS_PER_SECOND);\n\tconst fractional = fractionText(micros % MICROS_PER_SECOND);\n\tconst offsetMinutesTotal = sign === void 0 ? 0 : (sign === \"-\" ? -1 : 1) * (Number(offsetHours) * 60 + Number(offsetMinutes));\n\tif (nativeType === \"time\" || nativeType === \"timetz\") {\n\t\tconst clock = `${pad(Math.floor(clockSeconds / 3600))}:${pad(Math.floor(clockSeconds / 60) % 60)}:${pad(clockSeconds % 60)}${fractional}`;\n\t\treturn nativeType === \"time\" ? clock : `${clock}${offsetText(offsetMinutesTotal)}`;\n\t}\n\tconst midnight = /* @__PURE__ */ new Date(0);\n\tmidnight.setUTCFullYear(Number(year), Number(month) - 1, Number(day));\n\tconst utcShift = nativeType === \"timestamptz\" ? offsetMinutesTotal * 60 : 0;\n\tconst stamp = new Date(midnight.getTime() + (clockSeconds - utcShift) * 1e3);\n\tconst astronomicalYear = stamp.getUTCFullYear();\n\tconst wallClock = `${pad(astronomicalYear > 0 ? astronomicalYear : 1 - astronomicalYear, 4)}-${pad(stamp.getUTCMonth() + 1)}-${pad(stamp.getUTCDate())} ${pad(stamp.getUTCHours())}:${pad(stamp.getUTCMinutes())}:${pad(stamp.getUTCSeconds())}${fractional}`;\n\tconst era = astronomicalYear > 0 ? \"\" : \" BC\";\n\treturn nativeType === \"timestamptz\" ? `${wallClock}+00${era}` : `${wallClock}${era}`;\n}\n//#endregion\n//#region src/core/prisma7-type-map.ts\n/**\n* What Prisma 7.10.0 creates in Postgres for each Prisma 7 scalar and `@db.*`\n* native type, expressed as the Prisma 8 authoring type constructor that\n* produces the same column. Derived from the SQL recorded in\n* `test/integration/test/fixtures/prisma7-source/reference/migration.sql`.\n* `args` are the constructor's positional arguments. A `@db.*` attribute's own\n* arguments replace them; without any, the column gets `args`, so `@db.Char`\n* is `Char(1)`, the `character(1)` Postgres stores for Prisma 7's `CHAR`.\n*/\nconst prisma7PostgresTypeMap = {\n\tscalars: {\n\t\tString: {\n\t\t\tconstructorName: \"String\",\n\t\t\targs: []\n\t\t},\n\t\tBoolean: {\n\t\t\tconstructorName: \"Boolean\",\n\t\t\targs: []\n\t\t},\n\t\tInt: {\n\t\t\tconstructorName: \"Int\",\n\t\t\targs: []\n\t\t},\n\t\tBigInt: {\n\t\t\tconstructorName: \"BigInt\",\n\t\t\targs: []\n\t\t},\n\t\tFloat: {\n\t\t\tconstructorName: \"Float\",\n\t\t\targs: []\n\t\t},\n\t\tDecimal: {\n\t\t\tconstructorName: \"Numeric\",\n\t\t\targs: [\"65\", \"30\"]\n\t\t},\n\t\tDateTime: {\n\t\t\tconstructorName: \"Timestamp\",\n\t\t\targs: [\"3\"]\n\t\t},\n\t\tJson: {\n\t\t\tconstructorName: \"Jsonb\",\n\t\t\targs: []\n\t\t},\n\t\tBytes: {\n\t\t\tconstructorName: \"Bytes\",\n\t\t\targs: []\n\t\t}\n\t},\n\tnativeTypes: {\n\t\tText: {\n\t\t\tconstructorName: \"String\",\n\t\t\targs: []\n\t\t},\n\t\tVarChar: {\n\t\t\tconstructorName: \"VarChar\",\n\t\t\targs: []\n\t\t},\n\t\tChar: {\n\t\t\tconstructorName: \"Char\",\n\t\t\targs: [\"1\"]\n\t\t},\n\t\tUuid: {\n\t\t\tconstructorName: \"Uuid\",\n\t\t\targs: []\n\t\t},\n\t\tInet: {\n\t\t\tconstructorName: \"Inet\",\n\t\t\targs: []\n\t\t},\n\t\tBoolean: {\n\t\t\tconstructorName: \"Boolean\",\n\t\t\targs: []\n\t\t},\n\t\tInteger: {\n\t\t\tconstructorName: \"Int\",\n\t\t\targs: []\n\t\t},\n\t\tSmallInt: {\n\t\t\tconstructorName: \"SmallInt\",\n\t\t\targs: []\n\t\t},\n\t\tBigInt: {\n\t\t\tconstructorName: \"BigInt\",\n\t\t\targs: []\n\t\t},\n\t\tReal: {\n\t\t\tconstructorName: \"Real\",\n\t\t\targs: []\n\t\t},\n\t\tDoublePrecision: {\n\t\t\tconstructorName: \"Float\",\n\t\t\targs: []\n\t\t},\n\t\tDecimal: {\n\t\t\tconstructorName: \"Numeric\",\n\t\t\targs: []\n\t\t},\n\t\tTimestamp: {\n\t\t\tconstructorName: \"Timestamp\",\n\t\t\targs: []\n\t\t},\n\t\tTimestamptz: {\n\t\t\tconstructorName: \"Timestamptz\",\n\t\t\targs: []\n\t\t},\n\t\tDate: {\n\t\t\tconstructorName: \"Date\",\n\t\t\targs: []\n\t\t},\n\t\tTime: {\n\t\t\tconstructorName: \"Time\",\n\t\t\targs: []\n\t\t},\n\t\tTimetz: {\n\t\t\tconstructorName: \"Timetz\",\n\t\t\targs: []\n\t\t},\n\t\tJson: {\n\t\t\tconstructorName: \"Json\",\n\t\t\targs: []\n\t\t},\n\t\tJsonB: {\n\t\t\tconstructorName: \"Jsonb\",\n\t\t\targs: []\n\t\t},\n\t\tByteA: {\n\t\t\tconstructorName: \"Bytes\",\n\t\t\targs: []\n\t\t}\n\t}\n};\n//#endregion\n//#region src/core/psl-infer/junction-relation-field-names.ts\nconst EMPTY_FOREIGN_KEY_EXTRAS = {\n\textraRelationsByTable: /* @__PURE__ */ new Map(),\n\tcrossSpaceFieldNamesByTable: /* @__PURE__ */ new Map(),\n\tdanglingForeignKeysByTable: /* @__PURE__ */ new Map()\n};\nfunction idTable(name) {\n\treturn new SqlTableIR({\n\t\tname,\n\t\tcolumns: { id: {\n\t\t\tname: \"id\",\n\t\t\tnativeType: \"int4\",\n\t\t\tnullable: false\n\t\t} },\n\t\tforeignKeys: [],\n\t\tuniques: [],\n\t\tindexes: [],\n\t\tprimaryKey: { columns: [\"id\"] }\n\t});\n}\n/**\n* The relation field names `contract infer` prints for an implicit\n* many-to-many junction table whose columns `A` and `B` reference `tableA`\n* and `tableB`, found by running infer's PSL construction on that table.\n*/\nfunction junctionRelationFieldNames(tableA, tableB) {\n\tlet junctionName = \"_junction\";\n\twhile ([tableA, tableB].some((table) => toModelName(table).name === toModelName(junctionName).name)) junctionName = `${junctionName}x`;\n\tconst column = (name) => ({\n\t\tname,\n\t\tnativeType: \"int4\",\n\t\tnullable: false\n\t});\n\tconst foreignKey = (columnName, referencedTable) => ({\n\t\tcolumns: [columnName],\n\t\treferencedTable,\n\t\treferencedColumns: [\"id\"]\n\t});\n\tconst junction = new SqlTableIR({\n\t\tname: junctionName,\n\t\tcolumns: {\n\t\t\tA: column(\"A\"),\n\t\t\tB: column(\"B\")\n\t\t},\n\t\tforeignKeys: [foreignKey(\"A\", tableA), foreignKey(\"B\", tableB)],\n\t\tuniques: [],\n\t\tindexes: [],\n\t\tprimaryKey: { columns: [\"A\", \"B\"] }\n\t});\n\tconst document = buildPslDocumentAst(new SqlSchemaIR({ tables: {\n\t\t[tableA]: idTable(tableA),\n\t\t[tableB]: idTable(tableB),\n\t\t[junctionName]: junction\n\t} }), {\n\t\ttypeMap: createPostgresTypeMap(),\n\t\tdefaultMapping: createPostgresDefaultMapping(),\n\t\tparseRawDefault: parsePostgresDefault\n\t}, EMPTY_FOREIGN_KEY_EXTRAS);\n\tconst junctionModelName = toModelName(junctionName).name;\n\tconst fields = flatPslModels(document).find((model) => model.name === junctionModelName)?.fields;\n\tconst scalarFieldCount = Object.keys(junction.columns).length;\n\tconst [a = \"\", b = \"\"] = (fields ?? []).slice(scalarFieldCount).map((field) => field.name);\n\treturn [a, b];\n}\n//#endregion\n//#region src/core/prisma7-binding.ts\nconst TEMPORAL_NATIVE_TYPES = /* @__PURE__ */ new Set([\n\t\"timestamp\",\n\t\"timestamptz\",\n\t\"date\",\n\t\"time\",\n\t\"timetz\"\n]);\nfunction isTemporalNativeType(nativeType) {\n\treturn TEMPORAL_NATIVE_TYPES.has(nativeType);\n}\nfunction sqlStringLiteral(value) {\n\treturn value === void 0 ? void 0 : `'${value.replace(/'/g, \"''\")}'`;\n}\nfunction base64ToHex(base64) {\n\tif (!/^[A-Za-z0-9+/]*={0,2}$/.test(base64) || base64.length % 4 !== 0) return void 0;\n\treturn `\\\\x${Buffer.from(base64, \"base64\").toString(\"hex\")}`;\n}\nfunction arrayLiteral(literals, typeName) {\n\treturn `ARRAY[${literals.join(\", \")}]::${typeName}[]`;\n}\n/**\n* What the Postgres target supplies to the Prisma 7 interpreter. A `Bytes` or\n* `DateTime` default is carried as the SQL literal of the default Postgres\n* stores (`'\\x68656c6c6f'`, `'2024-01-02 03:04:05'`), and a list default as an\n* `ARRAY[...]` of those literals cast to the column type, rather than through\n* the column codec, whose JSON form (base64, a Temporal value) is not what\n* introspection reads back; verify parses both sides with the same parser.\n*/\nconst prisma7PostgresBinding = {\n\ttarget: postgresTargetDescriptorMeta,\n\tcreateNamespace: postgresCreateNamespace,\n\tproviders: [\"postgresql\", \"postgres\"],\n\ttypeMap: prisma7PostgresTypeMap,\n\tnativeEnum: {\n\t\tentityKind: \"native_enum\",\n\t\ttypeConstructor: [\"pg\", \"enum\"]\n\t},\n\tindexTypes: {\n\t\tBTree: \"btree\",\n\t\tHash: \"hash\",\n\t\tGin: \"gin\",\n\t\tGist: \"gist\",\n\t\tSpGist: \"spgist\",\n\t\tBrin: \"brin\"\n\t},\n\t/** `NAMEDATALEN - 1`. */\n\tidentifierMaxBytes: 63,\n\tjunctionRelationFieldNames,\n\tupdatedAtGeneratorId: postgresNowGeneratorIdFor,\n\tliteralDefaultForm: ({ nativeType, typeParams }) => {\n\t\tif (nativeType === \"json\" || nativeType === \"jsonb\") return { kind: \"json\" };\n\t\tif (nativeType === \"bytea\") return {\n\t\t\tkind: \"sqlExpression\",\n\t\t\tliteral: (text) => sqlStringLiteral(base64ToHex(text)),\n\t\t\tlist: (literals) => arrayLiteral(literals, \"BYTEA\")\n\t\t};\n\t\tif (!isTemporalNativeType(nativeType)) return void 0;\n\t\tconst precision = typeParams?.[\"precision\"];\n\t\tconst typeName = `${nativeType.toUpperCase()}${typeof precision === \"number\" ? `(${precision})` : \"\"}`;\n\t\treturn {\n\t\t\tkind: \"sqlExpression\",\n\t\t\tliteral: (text) => sqlStringLiteral(storedTemporalText(text, nativeType)),\n\t\t\tlist: (literals) => arrayLiteral(literals, typeName)\n\t\t};\n\t}\n};\n//#endregion\nexport { prisma7PostgresBinding };\n\n//# sourceMappingURL=prisma7-binding.mjs.map"],"mappings":"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"}
@@ -1,4 +1,4 @@
1
- import "./list-decoder-8mZBUNe0-C9dPXUP0.mjs";
1
+ import "./plain-date-time-now-generator-DJ3icyVr-B-rdIVd3.mjs";
2
2
  import "./postgres-contract-view-2OP5JnXl-D2fpy4-8.mjs";
3
3
  import { AnyCodecDescriptor } from "@prisma/orm-framework/components/codec";
4
4
  import { AnyEntityKindDescriptor, Namespace } from "@prisma/orm-framework/components/ir";
@@ -32,4 +32,4 @@ declare const postgresRuntimeTargetDescriptor: RuntimeTargetDescriptor<'sql', 'p
32
32
  };
33
33
  //#endregion
34
34
  export { postgresRuntimeTargetDescriptor as i, PostgresListDecoder as n, PostgresRuntimeTargetInstance as r, PostgresContractSerializer as t };
35
- //# sourceMappingURL=runtime-CpeP58Y6.d.mts.map
35
+ //# sourceMappingURL=runtime-BRbiY5Vj.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"runtime-CpeP58Y6.d.mts","names":[],"sources":["../../../../3-targets/3-targets/postgres/dist/runtime.d.mts"],"mappings":";;;;;;;;;;;;cAWc,mCAAmC,0BAA0B,SAAS;EAClF,qBAAqB;EACrB,YAAY,gCAAgC;YAClC,yBAAyB,cAAc,KAAK,0BAA0B,YAAY;EAC5F,kBAAkB,UAAU,SAAS,cAAc;;;;UAI3C,sCAAsC;KAC3C,uBAAuB,oBAAoB,gBAAgB,mBAAmB,qBAAqB;;;;;;;cAO1F,iCAAiC,2CAA2C;WAC/E,uBAAuB;WACvB,mBAAmB"}
1
+ {"version":3,"file":"runtime-BRbiY5Vj.d.mts","names":[],"sources":["../../../../3-targets/3-targets/postgres/dist/runtime.d.mts"],"mappings":";;;;;;;;;;;;cAWc,mCAAmC,0BAA0B,SAAS;EAClF,qBAAqB;EACrB,YAAY,gCAAgC;YAClC,yBAAyB,cAAc,KAAK,0BAA0B,YAAY;EAC5F,kBAAkB,UAAU,SAAS,cAAc;;;;UAI3C,sCAAsC;KAC3C,uBAAuB,oBAAoB,gBAAgB,mBAAmB,qBAAqB;;;;;;;cAO1F,iCAAiC,2CAA2C;WAC/E,uBAAuB;WACvB,mBAAmB"}
package/dist/target.d.mts CHANGED
@@ -11,7 +11,7 @@ import { n as policyInputFromSerialized, t as SerializedRlsPolicy } from "./type
11
11
  import { i as computeContentHash, n as POLICY_OPERATION_PREDICATES, r as RlsPolicyOperation, t as ContentHashParts } from "./canonicalize-CQlxSR4D-MnrT5gtW.mjs";
12
12
  import { _ as PostgresDisableRowLevelSecurity, a as DdlIndexElements, b as PostgresDropType, c as PostgresAlterPolicyRename, d as PostgresCreatePolicy, f as PostgresCreateSchema, g as PostgresDdlVisitor, h as PostgresDdlNode, i as AnyPostgresDdlNode, l as PostgresAlterTable, m as PostgresCreateType, n as AlterTableActionVisitor, o as DropDefaultAction, p as PostgresCreateTable, r as AnyAlterTableAction, s as PostgresAlterIndexRename, t as AddColumnAction, u as PostgresCreateIndex, v as PostgresDropIndex, y as PostgresDropPolicy } from "./nodes-BU-V-aZA-RqwPH68u.mjs";
13
13
  import "./ddl-B4Rh8ntj.mjs";
14
- import { n as postgresResolveDefault, t as parsePostgresDefault } from "./default-normalizer-B36TOul4.mjs";
14
+ import { n as postgresResolveDefault, t as parsePostgresDefault } from "./default-normalizer-D9WbKo20.mjs";
15
15
  import { t as normalizeSchemaNativeType } from "./native-type-normalizer-DqJlOTeX.mjs";
16
16
  import { a as validateEnumValueLength, i as quoteQualifiedName, n as qualifyName, r as quoteIdentifier, t as escapeLiteral } from "./sql-utils-DW6fkczF.mjs";
17
17
  import { t as postgresAggregateDescriptors } from "./aggregates-CgqNfj2O.mjs";
@@ -23,8 +23,8 @@ import "./codec-types-Cjrk3RME.mjs";
23
23
  import { n as postgresCodecRegistry, t as postgresCodecDescriptorRegistry } from "./codecs-BfhfEZaj.mjs";
24
24
  import { A as rlsPolicyExistsAst, C as indexExistsAst, D as noNullValuesAst, E as jsonb, F as textArray, I as timestamptz, L as timestamptzJsDate, M as tableIsEmptyAst, N as tablePrimaryKeyAst, O as pgTable, P as text, R as toRegclass, S as extensionExistsAst, T as int8, _ as columnTypeAst, a as IndexExistsCheckBuilder, b as createTable, c as TableExistsCheckBuilder, d as alterTable, f as buildControlTableBootstrapQueries, g as columnNullabilityAst, h as columnExistsAst, i as ExtensionExistsCheckBuilder, j as tableExistsAst, k as rlsEnabledAst, l as TablePrimaryKeyCheckBuilder, m as columnDefaultAst, n as ColumnExistsCheckBuilder, o as RlsEnabledCheckBuilder, p as buildSignMarkerBootstrapQueries, r as ConstraintExistsCheckBuilder, s as RlsPolicyExistsCheckBuilder, t as ColumnDefaultCheckBuilder, u as addColumnAction, v as constraintExistsAst, w as int4, x as dropDefaultAction, y as createSchema } from "./contract-free-DFF0Xo-V.mjs";
25
25
  import { t as PostgresPlanTargetDetails } from "./planner-target-details-HkP4RrRO-_xPQVPF0.mjs";
26
- import { a as parsePostgresListText, i as instantNowControlDescriptor, n as decodePostgresListText, r as instantNow, t as INSTANT_NOW_GENERATOR_ID } from "./list-decoder-8mZBUNe0-C9dPXUP0.mjs";
27
- import { t as postgresRenderDefault } from "./control--T7XaMS8.mjs";
26
+ import { a as instantNowControlDescriptor, c as plainDateTimeNowControlDescriptor, i as instantNow, n as PLAIN_DATE_TIME_NOW_GENERATOR_ID, o as parsePostgresListText, r as decodePostgresListText, s as plainDateTimeNow, t as INSTANT_NOW_GENERATOR_ID } from "./plain-date-time-now-generator-DJ3icyVr-B-rdIVd3.mjs";
27
+ import { t as postgresRenderDefault } from "./control-BvK2pHHh.mjs";
28
28
  import { n as DataTransformOptions, r as dataTransform, t as DataTransformClosure } from "./data-transform-Ck5FbyNO-BNE7QlAo.mjs";
29
29
  import "./data-transform-BSM7TQpE.mjs";
30
30
  import { t as buildPostgresPlanDiff } from "./diff-database-schema-DsoNznGC.mjs";
@@ -35,16 +35,17 @@ import { t as PostgresContractView } from "./postgres-contract-view-2OP5JnXl-D2f
35
35
  import { t as PostgresMigration } from "./postgres-migration-BNsrwlxh-CwI5BqAu.mjs";
36
36
  import { a as fn, c as placeholder, d as unique, i as createExtension, l as primaryKey, n as checkExpression, o as foreignKey, r as col, s as lit, t as MigrationCLI, u as rawSql } from "./migration-aFeTWTOJ.mjs";
37
37
  import "./op-factory-call-BTU8I_x0.mjs";
38
- import "./pack-D8V-43m8.mjs";
38
+ import "./pack-CRA_2QjF.mjs";
39
39
  import { t as TypeScriptRenderablePostgresMigration } from "./planner-produced-postgres-migration-BaviT8KK-Yo9kw6rs.mjs";
40
40
  import { n as createPostgresMigrationPlanner, t as contractToPostgresDatabaseSchemaNode } from "./planner-CT-7zSfk.mjs";
41
- import { n as buildColumnTypeSql, r as renderDefaultLiteral, t as buildColumnDefaultSql } from "./planner-ddl-builders-ijp60-JO.mjs";
41
+ import { n as buildColumnTypeSql, r as renderDefaultLiteral, t as buildColumnDefaultSql } from "./planner-ddl-builders-bBCUsq_0.mjs";
42
42
  import { n as resolveIdentityValue, t as buildBuiltinIdentityValue } from "./planner-identity-values-TfEhnoWa.mjs";
43
43
  import "./planner-produced-postgres-migration-D6C0T2xV.mjs";
44
44
  import { i as hasUniqueConstraint, n as hasForeignKey, r as hasIndex, t as buildSchemaLookupMap } from "./planner-schema-lookup-C4DHAddq.mjs";
45
45
  import { n as qualifyTableName, t as buildExpectedFormatType } from "./planner-sql-checks-CFgbRTJw.mjs";
46
+ import { t as prisma7PostgresBinding } from "./prisma7-binding-C38o_ABR.mjs";
46
47
  import { t as renderOps } from "./render-ops-DPwhZt2W.mjs";
47
48
  import { t as renderCallsToTypeScript } from "./render-typescript-6sCFvMBh.mjs";
48
- import { n as PostgresListDecoder, r as PostgresRuntimeTargetInstance, t as PostgresContractSerializer } from "./runtime-CpeP58Y6.mjs";
49
+ import { n as PostgresListDecoder, r as PostgresRuntimeTargetInstance, t as PostgresContractSerializer } from "./runtime-BRbiY5Vj.mjs";
49
50
  import { t as resolveDdlSchemaForNamespaceStorage } from "./schema-ir-annotations-DuuYh0gl.mjs";
50
- export { type AdaptedPostgresCodecDescriptor, AddCheckConstraintCall, AddColumnAction, AddColumnCall, AddForeignKeyCall, AddNativeEnumValueCall, AddNotNullColumnWithTempDefaultCall, AddPrimaryKeyCall, AddUniqueCall, AlterColumnTypeCall, type AlterTableActionVisitor, type AnyAlterTableAction, type AnyPostgresCodecDescriptor, type AnyPostgresDdlNode, Bit, Char, CodecTypes, type ColumnDefaultCheckBuilder, type ColumnExistsCheckBuilder, type ConstraintExistsCheckBuilder, type ContentHashParts, CreateExtensionCall, CreateIndexCall, CreateNativeEnumTypeCall, CreatePostgresRlsPolicyCall, CreateSchemaCall, CreateTableCall, DataTransformCall, type DataTransformClosure, type DataTransformOptions, type DdlIndexElements, DisableRowLevelSecurityCall, DropCheckConstraintCall, DropColumnCall, DropConstraintCall, DropDefaultAction, DropDefaultCall, DropIndexCall, DropNativeEnumTypeCall, DropNotNullCall, DropPostgresRlsPolicyCall, DropTableCall, EnableRowLevelSecurityCall, type ExtensionExistsCheckBuilder, INSTANT_NOW_GENERATOR_ID, type IndexExistsCheckBuilder, Interval, type JsonValue$1 as JsonValue, PostgresMigration as Migration, MigrationCLI, Numeric, PG_BIT_CODEC_ID, PG_BOOL_CODEC_ID, PG_BYTEA_CODEC_ID, PG_CHAR_CODEC_ID, PG_DATE_STRING_CODEC_ID, PG_DATE_TEMPORAL_CODEC_ID, PG_ENUM_CODEC_ID, PG_FLOAT4_CODEC_ID, PG_FLOAT8_CODEC_ID, PG_FLOAT_CODEC_ID, PG_INET_CODEC_ID, PG_INT2_CODEC_ID, PG_INT4_CODEC_ID, PG_INT8_CODEC_ID, PG_INT8_NUMBER_CODEC_ID, PG_INTERVAL_CODEC_ID, PG_INT_CODEC_ID, PG_JSONB_CODEC_ID, PG_JSON_CODEC_ID, PG_NUMERIC_CODEC_ID, PG_TEXT_ARRAY_CODEC_ID, PG_TEXT_CODEC_ID, PG_TIMESTAMPTZ_DATE_CODEC_ID, PG_TIMESTAMPTZ_STRING_CODEC_ID, PG_TIMESTAMPTZ_TEMPORAL_CODEC_ID, PG_TIMESTAMP_STRING_CODEC_ID, PG_TIMESTAMP_TEMPORAL_CODEC_ID, PG_TIMETZ_CODEC_ID, PG_TIME_STRING_CODEC_ID, PG_TIME_TEMPORAL_CODEC_ID, PG_UNBOUNDED_INT_CODEC_ID, PG_UUID_CODEC_ID, PG_VARBIT_CODEC_ID, PG_VARCHAR_CODEC_ID, POLICY_OPERATION_PREDICATES, type PgBitDescriptor, type PgBoolDescriptor, type PgCharDescriptor, type PgEnumCodec, type PgEnumDescriptor, type PgEnumParams, type PgFloat4Descriptor, type PgFloat8Descriptor, type PgFloatDescriptor, type PgInetDescriptor, type PgInt2Descriptor, type PgInt4Descriptor, type PgInt8Descriptor, type PgInt8NumberDescriptor, type PgIntDescriptor, type PgInterval, type PgIntervalDescriptor, type PgJsonDescriptor, type PgJsonbDescriptor, type PgNumericDescriptor, type PgTextDescriptor, PgTimestamptzDateCodec, PgTimestamptzDateDescriptor, type PgTimetzDescriptor, type PgUnboundedIntDescriptor, type PgUuidDescriptor, type PgVarbitDescriptor, type PgVarcharDescriptor, PostgresAlterIndexRename, PostgresAlterPolicyRename, PostgresAlterTable, type PostgresCheckExpressionCandidate, type PostgresCheckExpressionInput, type PostgresCheckKind, PostgresCodecDescriptor, type PostgresCodecDescriptorRegistry, type PostgresCodecOptions, type PostgresColumnDefault, type PostgresContract, PostgresContractSerializer, PostgresContractView, PostgresCreateIndex, PostgresCreatePolicy, PostgresCreateSchema, PostgresCreateTable, PostgresCreateType, PostgresDatabaseSchemaNode, type PostgresDatabaseSchemaNodeInput, PostgresDdlNode, type PostgresDdlVisitor, PostgresDisableRowLevelSecurity, PostgresDropIndex, PostgresDropPolicy, PostgresDropType, PostgresListDecoder, PostgresNamespaceSchemaNode, type PostgresNamespaceSchemaNodeInput, PostgresNativeEnum, type PostgresNativeEnumInput, PostgresNativeEnumSchemaNode, type PostgresNativeEnumSchemaNodeInput, type PostgresPlanTargetDetails, PostgresPolicySchemaNode, type PostgresPolicySchemaNodeInput, PostgresRlsEnablement, type PostgresRlsEnablementInput, PostgresRlsPolicy, type PostgresRlsPolicyInput, PostgresRole, type PostgresRoleInput, PostgresRoleSchemaNode, type PostgresRoleSchemaNodeInput, PostgresRuntimeTargetInstance, PostgresSchema, PostgresSchemaNodeKind, PostgresTableSchemaNode, type PostgresTableSchemaNodeInput, PostgresTableSource, PostgresUnboundSchema, RawSqlCall, RenameCheckConstraintCall, RenameIndexCall, RenamePostgresRlsPolicyCall, type RenderedRlsPolicyLiteral, type RlsEnabledCheckBuilder, type RlsPolicyExistsCheckBuilder, SQL_CHAR_CODEC_ID, SQL_FLOAT_CODEC_ID, SQL_INT_CODEC_ID, SQL_TEXT_CODEC_ID, SQL_VARCHAR_CODEC_ID, type SerializedRlsPolicy, SetDefaultCall, SetNotNullCall, type TableExistsCheckBuilder, type TablePrimaryKeyCheckBuilder, Time, TimeString, Timestamp, TimestampString, Timestamptz, TimestamptzString, Timetz, TypeScriptRenderablePostgresMigration, VarBit, Varchar, addColumnAction, alterTable, buildBuiltinIdentityValue, buildColumnDefaultSql, buildColumnTypeSql, buildControlTableBootstrapQueries, buildExpectedFormatType, buildPostgresCodecDescriptorRegistry, buildPostgresPlanDiff, buildSchemaLookupMap, buildSignMarkerBootstrapQueries, checkExpression, coalesceSubtreeIssues, col, columnDefaultAst, columnExistsAst, columnNullabilityAst, columnTypeAst, computeContentHash, constraintExistsAst, contractToPostgresDatabaseSchemaNode, createExtension, createPostgresMigrationPlanner, createSchema, createTable, dataTransform, decodePostgresListText, definePostgresCodecs, dropDefaultAction, errorPostgresMigrationStackMissing, escapeLiteral, extensionExistsAst, fn, foreignKey, hasForeignKey, hasIndex, hasUniqueConstraint, indexExistsAst, instantNow, instantNowControlDescriptor, int4, int8, isPgEnumParams, isPostgresCodecDescriptor, isPostgresSchema, jsonb, lit, noNullValuesAst, normalizeSchemaNativeType, parsePostgresDefault, parsePostgresListText, pgBitColumn, pgBoolColumn, pgCharColumn, pgEnumDescriptor, pgFloat4Column, pgFloat8Column, pgFloatColumn, pgInetColumn, pgInt2Column, pgInt4Column, pgInt8Column, pgInt8NumberColumn, pgIntColumn, pgIntervalColumn, pgJsonColumn, pgJsonbColumn, pgNumericColumn, pgTable, pgTextColumn, pgTimestamptzDateColumn, pgTimestamptzDateDescriptor, pgTimetzColumn, pgUnboundedIntColumn, pgUuidColumn, pgVarbitColumn, pgVarcharColumn, placeholder, planIssues, policyInputFromSerialized, postgresAggregateDescriptors, postgresCodec, postgresCodecDescriptorRegistry, postgresCodecRegistry, postgresCreateNamespace, postgresError, postgresRenderCheckExpressions, postgresRenderDefault, postgresResolveDefault, primaryKey, qualifyName, qualifyTableName, quoteIdentifier, quoteQualifiedName, rawSql, renderCallsToTypeScript, renderDefaultLiteral, renderOps, resolveDdlSchemaForNamespaceStorage, resolveIdentityValue, rlsEnabledAst, rlsPolicyExistsAst, tableExistsAst, tableIsEmptyAst, tablePrimaryKeyAst, text, textArray, timestamptz, timestamptzJsDate, toRegclass, unique, validateEnumValueLength };
51
+ export { type AdaptedPostgresCodecDescriptor, AddCheckConstraintCall, AddColumnAction, AddColumnCall, AddForeignKeyCall, AddNativeEnumValueCall, AddNotNullColumnWithTempDefaultCall, AddPrimaryKeyCall, AddUniqueCall, AlterColumnTypeCall, type AlterTableActionVisitor, type AnyAlterTableAction, type AnyPostgresCodecDescriptor, type AnyPostgresDdlNode, Bit, Char, CodecTypes, type ColumnDefaultCheckBuilder, type ColumnExistsCheckBuilder, type ConstraintExistsCheckBuilder, type ContentHashParts, CreateExtensionCall, CreateIndexCall, CreateNativeEnumTypeCall, CreatePostgresRlsPolicyCall, CreateSchemaCall, CreateTableCall, DataTransformCall, type DataTransformClosure, type DataTransformOptions, type DdlIndexElements, DisableRowLevelSecurityCall, DropCheckConstraintCall, DropColumnCall, DropConstraintCall, DropDefaultAction, DropDefaultCall, DropIndexCall, DropNativeEnumTypeCall, DropNotNullCall, DropPostgresRlsPolicyCall, DropTableCall, EnableRowLevelSecurityCall, type ExtensionExistsCheckBuilder, INSTANT_NOW_GENERATOR_ID, type IndexExistsCheckBuilder, Interval, type JsonValue$1 as JsonValue, PostgresMigration as Migration, MigrationCLI, Numeric, PG_BIT_CODEC_ID, PG_BOOL_CODEC_ID, PG_BYTEA_CODEC_ID, PG_CHAR_CODEC_ID, PG_DATE_STRING_CODEC_ID, PG_DATE_TEMPORAL_CODEC_ID, PG_ENUM_CODEC_ID, PG_FLOAT4_CODEC_ID, PG_FLOAT8_CODEC_ID, PG_FLOAT_CODEC_ID, PG_INET_CODEC_ID, PG_INT2_CODEC_ID, PG_INT4_CODEC_ID, PG_INT8_CODEC_ID, PG_INT8_NUMBER_CODEC_ID, PG_INTERVAL_CODEC_ID, PG_INT_CODEC_ID, PG_JSONB_CODEC_ID, PG_JSON_CODEC_ID, PG_NUMERIC_CODEC_ID, PG_TEXT_ARRAY_CODEC_ID, PG_TEXT_CODEC_ID, PG_TIMESTAMPTZ_DATE_CODEC_ID, PG_TIMESTAMPTZ_STRING_CODEC_ID, PG_TIMESTAMPTZ_TEMPORAL_CODEC_ID, PG_TIMESTAMP_STRING_CODEC_ID, PG_TIMESTAMP_TEMPORAL_CODEC_ID, PG_TIMETZ_CODEC_ID, PG_TIME_STRING_CODEC_ID, PG_TIME_TEMPORAL_CODEC_ID, PG_UNBOUNDED_INT_CODEC_ID, PG_UUID_CODEC_ID, PG_VARBIT_CODEC_ID, PG_VARCHAR_CODEC_ID, PLAIN_DATE_TIME_NOW_GENERATOR_ID, POLICY_OPERATION_PREDICATES, type PgBitDescriptor, type PgBoolDescriptor, type PgCharDescriptor, type PgEnumCodec, type PgEnumDescriptor, type PgEnumParams, type PgFloat4Descriptor, type PgFloat8Descriptor, type PgFloatDescriptor, type PgInetDescriptor, type PgInt2Descriptor, type PgInt4Descriptor, type PgInt8Descriptor, type PgInt8NumberDescriptor, type PgIntDescriptor, type PgInterval, type PgIntervalDescriptor, type PgJsonDescriptor, type PgJsonbDescriptor, type PgNumericDescriptor, type PgTextDescriptor, PgTimestamptzDateCodec, PgTimestamptzDateDescriptor, type PgTimetzDescriptor, type PgUnboundedIntDescriptor, type PgUuidDescriptor, type PgVarbitDescriptor, type PgVarcharDescriptor, PostgresAlterIndexRename, PostgresAlterPolicyRename, PostgresAlterTable, type PostgresCheckExpressionCandidate, type PostgresCheckExpressionInput, type PostgresCheckKind, PostgresCodecDescriptor, type PostgresCodecDescriptorRegistry, type PostgresCodecOptions, type PostgresColumnDefault, type PostgresContract, PostgresContractSerializer, PostgresContractView, PostgresCreateIndex, PostgresCreatePolicy, PostgresCreateSchema, PostgresCreateTable, PostgresCreateType, PostgresDatabaseSchemaNode, type PostgresDatabaseSchemaNodeInput, PostgresDdlNode, type PostgresDdlVisitor, PostgresDisableRowLevelSecurity, PostgresDropIndex, PostgresDropPolicy, PostgresDropType, PostgresListDecoder, PostgresNamespaceSchemaNode, type PostgresNamespaceSchemaNodeInput, PostgresNativeEnum, type PostgresNativeEnumInput, PostgresNativeEnumSchemaNode, type PostgresNativeEnumSchemaNodeInput, type PostgresPlanTargetDetails, PostgresPolicySchemaNode, type PostgresPolicySchemaNodeInput, PostgresRlsEnablement, type PostgresRlsEnablementInput, PostgresRlsPolicy, type PostgresRlsPolicyInput, PostgresRole, type PostgresRoleInput, PostgresRoleSchemaNode, type PostgresRoleSchemaNodeInput, PostgresRuntimeTargetInstance, PostgresSchema, PostgresSchemaNodeKind, PostgresTableSchemaNode, type PostgresTableSchemaNodeInput, PostgresTableSource, PostgresUnboundSchema, RawSqlCall, RenameCheckConstraintCall, RenameIndexCall, RenamePostgresRlsPolicyCall, type RenderedRlsPolicyLiteral, type RlsEnabledCheckBuilder, type RlsPolicyExistsCheckBuilder, SQL_CHAR_CODEC_ID, SQL_FLOAT_CODEC_ID, SQL_INT_CODEC_ID, SQL_TEXT_CODEC_ID, SQL_VARCHAR_CODEC_ID, type SerializedRlsPolicy, SetDefaultCall, SetNotNullCall, type TableExistsCheckBuilder, type TablePrimaryKeyCheckBuilder, Time, TimeString, Timestamp, TimestampString, Timestamptz, TimestamptzString, Timetz, TypeScriptRenderablePostgresMigration, VarBit, Varchar, addColumnAction, alterTable, buildBuiltinIdentityValue, buildColumnDefaultSql, buildColumnTypeSql, buildControlTableBootstrapQueries, buildExpectedFormatType, buildPostgresCodecDescriptorRegistry, buildPostgresPlanDiff, buildSchemaLookupMap, buildSignMarkerBootstrapQueries, checkExpression, coalesceSubtreeIssues, col, columnDefaultAst, columnExistsAst, columnNullabilityAst, columnTypeAst, computeContentHash, constraintExistsAst, contractToPostgresDatabaseSchemaNode, createExtension, createPostgresMigrationPlanner, createSchema, createTable, dataTransform, decodePostgresListText, definePostgresCodecs, dropDefaultAction, errorPostgresMigrationStackMissing, escapeLiteral, extensionExistsAst, fn, foreignKey, hasForeignKey, hasIndex, hasUniqueConstraint, indexExistsAst, instantNow, instantNowControlDescriptor, int4, int8, isPgEnumParams, isPostgresCodecDescriptor, isPostgresSchema, jsonb, lit, noNullValuesAst, normalizeSchemaNativeType, parsePostgresDefault, parsePostgresListText, pgBitColumn, pgBoolColumn, pgCharColumn, pgEnumDescriptor, pgFloat4Column, pgFloat8Column, pgFloatColumn, pgInetColumn, pgInt2Column, pgInt4Column, pgInt8Column, pgInt8NumberColumn, pgIntColumn, pgIntervalColumn, pgJsonColumn, pgJsonbColumn, pgNumericColumn, pgTable, pgTextColumn, pgTimestamptzDateColumn, pgTimestamptzDateDescriptor, pgTimetzColumn, pgUnboundedIntColumn, pgUuidColumn, pgVarbitColumn, pgVarcharColumn, placeholder, plainDateTimeNow, plainDateTimeNowControlDescriptor, planIssues, policyInputFromSerialized, postgresAggregateDescriptors, postgresCodec, postgresCodecDescriptorRegistry, postgresCodecRegistry, postgresCreateNamespace, postgresError, postgresRenderCheckExpressions, postgresRenderDefault, postgresResolveDefault, primaryKey, prisma7PostgresBinding, qualifyName, qualifyTableName, quoteIdentifier, quoteQualifiedName, rawSql, renderCallsToTypeScript, renderDefaultLiteral, renderOps, resolveDdlSchemaForNamespaceStorage, resolveIdentityValue, rlsEnabledAst, rlsPolicyExistsAst, tableExistsAst, tableIsEmptyAst, tablePrimaryKeyAst, text, textArray, timestamptz, timestamptzJsDate, toRegclass, unique, validateEnumValueLength };
package/dist/target.mjs CHANGED
@@ -10,29 +10,30 @@ import { c as PostgresSchema, d as isPostgresSchema, h as postgresCreateNamespac
10
10
  import { a as PostgresAlterTable, c as PostgresCreateSchema, d as PostgresDdlNode, f as PostgresDisableRowLevelSecurity, h as PostgresDropType, i as PostgresAlterPolicyRename, l as PostgresCreateTable, m as PostgresDropPolicy, n as DropDefaultAction, o as PostgresCreateIndex, p as PostgresDropIndex, r as PostgresAlterIndexRename, s as PostgresCreatePolicy, t as AddColumnAction, u as PostgresCreateType } from "./nodes-DAvDJLvJ-BBdvFXNa.mjs";
11
11
  import { A as toRegclass, D as tableExistsAst, E as rlsPolicyExistsAst, O as tableIsEmptyAst, T as rlsEnabledAst, a as columnDefaultAst, b as extensionExistsAst, c as columnTypeAst, f as createSchema, g as dropDefaultAction, i as alterTable, k as tablePrimaryKeyAst, l as constraintExistsAst, o as columnExistsAst, p as createTable, s as columnNullabilityAst, t as addColumnAction, w as noNullValuesAst, x as indexExistsAst } from "./ddl-CaKDvAty-sHOb0D92.mjs";
12
12
  import { a as jsonb, c as textArray, i as int8, l as timestamptz, n as buildSignMarkerBootstrapQueries, o as pgTable, r as int4, s as text, t as buildControlTableBootstrapQueries, u as timestamptzJsDate } from "./contract-free-DcfADfM5.mjs";
13
- import { n as postgresResolveDefault, t as parsePostgresDefault } from "./default-normalizer-Ba5ZebHM-isV86rjy.mjs";
13
+ import { n as postgresResolveDefault, t as parsePostgresDefault } from "./default-normalizer-Bjtm2F4f-uV5vvkVt.mjs";
14
14
  import { n as computeContentHash, t as POLICY_OPERATION_PREDICATES } from "./canonicalize-CrN3u_xM-D4MrOqcB.mjs";
15
- import { n as instantNow, r as instantNowControlDescriptor, t as INSTANT_NOW_GENERATOR_ID } from "./authoring-DgeWf8RC-C-jQzf_w.mjs";
15
+ import { a as plainDateTimeNow, i as instantNowControlDescriptor, n as PLAIN_DATE_TIME_NOW_GENERATOR_ID, o as plainDateTimeNowControlDescriptor, r as instantNow, t as INSTANT_NOW_GENERATOR_ID } from "./authoring-Beq66XGy-D-GgvlBG.mjs";
16
16
  import { t as postgresRenderCheckExpressions } from "./check-expressions-DFTeR0rd-CSxSpyMV.mjs";
17
17
  import { n as PostgresSchemaNodeKind, r as PostgresTableSchemaNode, t as PostgresNativeEnumSchemaNode } from "./postgres-table-schema-node-BBkitBQh-DT1T5VWU.mjs";
18
18
  import { i as PostgresRoleSchemaNode, n as PostgresNamespaceSchemaNode, r as PostgresPolicySchemaNode, t as PostgresDatabaseSchemaNode } from "./postgres-role-schema-node-B8Z5i5D--PObwlU2Z.mjs";
19
19
  import { t as resolveDdlSchemaForNamespaceStorage } from "./resolve-ddl-schema-DoVk6G3i-D6YoWjC9.mjs";
20
20
  import { n as qualifyTableName, t as buildExpectedFormatType } from "./planner-sql-checks-CaRMR5SA-DGYjc2Cy.mjs";
21
- import { n as buildColumnTypeSql, r as renderDefaultLiteral, t as buildColumnDefaultSql } from "./planner-ddl-builders-Cf6-fTvi-CKp-yZkB.mjs";
22
- import { A as RenameIndexCall, C as DropNativeEnumTypeCall, D as EnableRowLevelSecurityCall, E as DropTableCall, F as createExtension, M as SetDefaultCall, N as SetNotNullCall, O as RawSqlCall, S as DropIndexCall, T as DropPostgresRlsPolicyCall, _ as DisableRowLevelSecurityCall, b as DropConstraintCall, c as AddUniqueCall, d as CreateIndexCall, f as CreateNativeEnumTypeCall, g as DataTransformCall, h as CreateTableCall, i as AddNativeEnumValueCall, j as RenamePostgresRlsPolicyCall, k as RenameCheckConstraintCall, l as AlterColumnTypeCall, m as CreateSchemaCall, n as AddColumnCall, o as AddNotNullColumnWithTempDefaultCall, p as CreatePostgresRlsPolicyCall, r as AddForeignKeyCall, s as AddPrimaryKeyCall, t as AddCheckConstraintCall, u as CreateExtensionCall, v as DropCheckConstraintCall, w as DropNotNullCall, x as DropDefaultCall, y as DropColumnCall } from "./op-factory-call-6Jg-ycA--4AC_11Od.mjs";
21
+ import { n as buildColumnTypeSql, r as renderDefaultLiteral, t as buildColumnDefaultSql } from "./planner-ddl-builders-CpXQ-J0X-CL5gNUSG.mjs";
22
+ import { A as RenameIndexCall, C as DropNativeEnumTypeCall, D as EnableRowLevelSecurityCall, E as DropTableCall, F as createExtension, M as SetDefaultCall, N as SetNotNullCall, O as RawSqlCall, S as DropIndexCall, T as DropPostgresRlsPolicyCall, _ as DisableRowLevelSecurityCall, b as DropConstraintCall, c as AddUniqueCall, d as CreateIndexCall, f as CreateNativeEnumTypeCall, g as DataTransformCall, h as CreateTableCall, i as AddNativeEnumValueCall, j as RenamePostgresRlsPolicyCall, k as RenameCheckConstraintCall, l as AlterColumnTypeCall, m as CreateSchemaCall, n as AddColumnCall, o as AddNotNullColumnWithTempDefaultCall, p as CreatePostgresRlsPolicyCall, r as AddForeignKeyCall, s as AddPrimaryKeyCall, t as AddCheckConstraintCall, u as CreateExtensionCall, v as DropCheckConstraintCall, w as DropNotNullCall, x as DropDefaultCall, y as DropColumnCall } from "./op-factory-call-B3-CevCo-CSV5SL9W.mjs";
23
23
  import { n as resolveIdentityValue, t as buildBuiltinIdentityValue } from "./planner-identity-values-BmHn5C6U-BYBbUAyR.mjs";
24
24
  import { i as hasUniqueConstraint, n as hasForeignKey, r as hasIndex, t as buildSchemaLookupMap } from "./planner-schema-lookup-kMIVP2y--CdO4VlnF.mjs";
25
- import { a as planIssues, t as coalesceSubtreeIssues } from "./control-policy-BKgU_M65-BWedWA-f.mjs";
26
- import { n as contractToPostgresDatabaseSchemaNode, t as buildPostgresPlanDiff } from "./diff-database-schema-BaSP2z4y-Ch42uw-j.mjs";
27
- import { n as PostgresContractView, t as PostgresContractSerializer } from "./postgres-contract-view-C22aDeL9-BWJIOpCz.mjs";
25
+ import { a as planIssues, t as coalesceSubtreeIssues } from "./control-policy-B8x7UxGf-BjTez7am.mjs";
26
+ import { n as contractToPostgresDatabaseSchemaNode, t as buildPostgresPlanDiff } from "./diff-database-schema-BFX0ZWWK-KVfAPOLF.mjs";
27
+ import { n as PostgresContractView, t as PostgresContractSerializer } from "./postgres-contract-view-D7tYWHwD-DJNOh9Qo.mjs";
28
28
  import { t as dataTransform } from "./data-transform-ChZzy2dP-CxVCat_8.mjs";
29
- import { t as PostgresMigration } from "./postgres-migration-Cj-DvDY8-CIrWHp9I.mjs";
29
+ import { t as PostgresMigration } from "./postgres-migration-DXHNRgZA-HzAql-Bj.mjs";
30
30
  import { t as renderOps } from "./render-ops-D2vJApKB-B281fzmn.mjs";
31
31
  import { t as renderCallsToTypeScript } from "./render-typescript-Dqp1Spgn-B128r1qw.mjs";
32
- import { t as TypeScriptRenderablePostgresMigration } from "./planner-produced-postgres-migration-ButAgK7L-CZXweEva.mjs";
33
- import { t as createPostgresMigrationPlanner } from "./planner-C70Loeo_-qHTNBO3Q.mjs";
32
+ import { t as TypeScriptRenderablePostgresMigration } from "./planner-produced-postgres-migration-DwcW5RrQ-D0DPBmoS.mjs";
33
+ import { t as createPostgresMigrationPlanner } from "./planner-D_VBDqX0-C2jCXuIt.mjs";
34
34
  import { n as parsePostgresListText, t as decodePostgresListText } from "./list-decoder-DXee1orj-K3y-hxiI.mjs";
35
- import { t as postgresRenderDefault } from "./control-BC3oXXIK.mjs";
35
+ import { t as postgresRenderDefault } from "./control-206OMpyA.mjs";
36
36
  import { a as foreignKey, c as primaryKey, i as fn, l as rawSql, n as checkExpression, o as lit, r as col, s as placeholder, t as MigrationCLI, u as unique } from "./migration-PTHAY9Cv.mjs";
37
37
  import { t as normalizeSchemaNativeType } from "./native-type-normalizer-yvd3tqv-.mjs";
38
- export { AddCheckConstraintCall, AddColumnAction, AddColumnCall, AddForeignKeyCall, AddNativeEnumValueCall, AddNotNullColumnWithTempDefaultCall, AddPrimaryKeyCall, AddUniqueCall, AlterColumnTypeCall, CreateExtensionCall, CreateIndexCall, CreateNativeEnumTypeCall, CreatePostgresRlsPolicyCall, CreateSchemaCall, CreateTableCall, DataTransformCall, DisableRowLevelSecurityCall, DropCheckConstraintCall, DropColumnCall, DropConstraintCall, DropDefaultAction, DropDefaultCall, DropIndexCall, DropNativeEnumTypeCall, DropNotNullCall, DropPostgresRlsPolicyCall, DropTableCall, EnableRowLevelSecurityCall, INSTANT_NOW_GENERATOR_ID, PostgresMigration as Migration, MigrationCLI, PG_BIT_CODEC_ID, PG_BOOL_CODEC_ID, PG_BYTEA_CODEC_ID, PG_CHAR_CODEC_ID, PG_DATE_STRING_CODEC_ID, PG_DATE_TEMPORAL_CODEC_ID, PG_ENUM_CODEC_ID, PG_FLOAT4_CODEC_ID, PG_FLOAT8_CODEC_ID, PG_FLOAT_CODEC_ID, PG_INET_CODEC_ID, PG_INT2_CODEC_ID, PG_INT4_CODEC_ID, PG_INT8_CODEC_ID, PG_INT8_NUMBER_CODEC_ID, PG_INTERVAL_CODEC_ID, PG_INT_CODEC_ID, PG_JSONB_CODEC_ID, PG_JSON_CODEC_ID, PG_NUMERIC_CODEC_ID, PG_TEXT_ARRAY_CODEC_ID, PG_TEXT_CODEC_ID, PG_TIMESTAMPTZ_DATE_CODEC_ID, PG_TIMESTAMPTZ_STRING_CODEC_ID, PG_TIMESTAMPTZ_TEMPORAL_CODEC_ID, PG_TIMESTAMP_STRING_CODEC_ID, PG_TIMESTAMP_TEMPORAL_CODEC_ID, PG_TIMETZ_CODEC_ID, PG_TIME_STRING_CODEC_ID, PG_TIME_TEMPORAL_CODEC_ID, PG_UNBOUNDED_INT_CODEC_ID, PG_UUID_CODEC_ID, PG_VARBIT_CODEC_ID, PG_VARCHAR_CODEC_ID, POLICY_OPERATION_PREDICATES, PgTimestamptzDateCodec, PgTimestamptzDateDescriptor, PostgresAlterIndexRename, PostgresAlterPolicyRename, PostgresAlterTable, PostgresCodecDescriptor, PostgresContractSerializer, PostgresContractView, PostgresCreateIndex, PostgresCreatePolicy, PostgresCreateSchema, PostgresCreateTable, PostgresCreateType, PostgresDatabaseSchemaNode, PostgresDdlNode, PostgresDisableRowLevelSecurity, PostgresDropIndex, PostgresDropPolicy, PostgresDropType, PostgresNamespaceSchemaNode, PostgresNativeEnum, PostgresNativeEnumSchemaNode, PostgresPolicySchemaNode, PostgresRlsEnablement, PostgresRlsPolicy, PostgresRole, PostgresRoleSchemaNode, PostgresSchema, PostgresSchemaNodeKind, PostgresTableSchemaNode, PostgresTableSource, PostgresUnboundSchema, RawSqlCall, RenameCheckConstraintCall, RenameIndexCall, RenamePostgresRlsPolicyCall, SQL_CHAR_CODEC_ID, SQL_FLOAT_CODEC_ID, SQL_INT_CODEC_ID, SQL_TEXT_CODEC_ID, SQL_VARCHAR_CODEC_ID, SetDefaultCall, SetNotNullCall, TypeScriptRenderablePostgresMigration, addColumnAction, alterTable, buildBuiltinIdentityValue, buildColumnDefaultSql, buildColumnTypeSql, buildControlTableBootstrapQueries, buildExpectedFormatType, buildPostgresCodecDescriptorRegistry, buildPostgresPlanDiff, buildSchemaLookupMap, buildSignMarkerBootstrapQueries, checkExpression, coalesceSubtreeIssues, col, columnDefaultAst, columnExistsAst, columnNullabilityAst, columnTypeAst, computeContentHash, constraintExistsAst, contractToPostgresDatabaseSchemaNode, createExtension, createPostgresMigrationPlanner, createSchema, createTable, dataTransform, decodePostgresListText, definePostgresCodecs, dropDefaultAction, errorPostgresMigrationStackMissing, escapeLiteral, extensionExistsAst, fn, foreignKey, hasForeignKey, hasIndex, hasUniqueConstraint, indexExistsAst, instantNow, instantNowControlDescriptor, int4, int8, isPgEnumParams, isPostgresCodecDescriptor, isPostgresSchema, jsonb, lit, noNullValuesAst, normalizeSchemaNativeType, parsePostgresDefault, parsePostgresListText, pgBitColumn, pgBoolColumn, pgCharColumn, pgEnumDescriptor, pgFloat4Column, pgFloat8Column, pgFloatColumn, pgInetColumn, pgInt2Column, pgInt4Column, pgInt8Column, pgInt8NumberColumn, pgIntColumn, pgIntervalColumn, pgJsonColumn, pgJsonbColumn, pgNumericColumn, pgTable, pgTextColumn, pgTimestamptzDateColumn, pgTimestamptzDateDescriptor, pgTimetzColumn, pgUnboundedIntColumn, pgUuidColumn, pgVarbitColumn, pgVarcharColumn, placeholder, planIssues, policyInputFromSerialized, postgresAggregateDescriptors, postgresCodec, postgresCodecDescriptorRegistry, postgresCodecRegistry, postgresCreateNamespace, postgresError, postgresRenderCheckExpressions, postgresRenderDefault, postgresResolveDefault, primaryKey, qualifyName, qualifyTableName, quoteIdentifier, quoteQualifiedName, rawSql, renderCallsToTypeScript, renderDefaultLiteral, renderOps, resolveDdlSchemaForNamespaceStorage, resolveIdentityValue, rlsEnabledAst, rlsPolicyExistsAst, tableExistsAst, tableIsEmptyAst, tablePrimaryKeyAst, text, textArray, timestamptz, timestamptzJsDate, toRegclass, unique, validateEnumValueLength };
38
+ import { t as prisma7PostgresBinding } from "./prisma7-binding-DjpSw5G6.mjs";
39
+ export { AddCheckConstraintCall, AddColumnAction, AddColumnCall, AddForeignKeyCall, AddNativeEnumValueCall, AddNotNullColumnWithTempDefaultCall, AddPrimaryKeyCall, AddUniqueCall, AlterColumnTypeCall, CreateExtensionCall, CreateIndexCall, CreateNativeEnumTypeCall, CreatePostgresRlsPolicyCall, CreateSchemaCall, CreateTableCall, DataTransformCall, DisableRowLevelSecurityCall, DropCheckConstraintCall, DropColumnCall, DropConstraintCall, DropDefaultAction, DropDefaultCall, DropIndexCall, DropNativeEnumTypeCall, DropNotNullCall, DropPostgresRlsPolicyCall, DropTableCall, EnableRowLevelSecurityCall, INSTANT_NOW_GENERATOR_ID, PostgresMigration as Migration, MigrationCLI, PG_BIT_CODEC_ID, PG_BOOL_CODEC_ID, PG_BYTEA_CODEC_ID, PG_CHAR_CODEC_ID, PG_DATE_STRING_CODEC_ID, PG_DATE_TEMPORAL_CODEC_ID, PG_ENUM_CODEC_ID, PG_FLOAT4_CODEC_ID, PG_FLOAT8_CODEC_ID, PG_FLOAT_CODEC_ID, PG_INET_CODEC_ID, PG_INT2_CODEC_ID, PG_INT4_CODEC_ID, PG_INT8_CODEC_ID, PG_INT8_NUMBER_CODEC_ID, PG_INTERVAL_CODEC_ID, PG_INT_CODEC_ID, PG_JSONB_CODEC_ID, PG_JSON_CODEC_ID, PG_NUMERIC_CODEC_ID, PG_TEXT_ARRAY_CODEC_ID, PG_TEXT_CODEC_ID, PG_TIMESTAMPTZ_DATE_CODEC_ID, PG_TIMESTAMPTZ_STRING_CODEC_ID, PG_TIMESTAMPTZ_TEMPORAL_CODEC_ID, PG_TIMESTAMP_STRING_CODEC_ID, PG_TIMESTAMP_TEMPORAL_CODEC_ID, PG_TIMETZ_CODEC_ID, PG_TIME_STRING_CODEC_ID, PG_TIME_TEMPORAL_CODEC_ID, PG_UNBOUNDED_INT_CODEC_ID, PG_UUID_CODEC_ID, PG_VARBIT_CODEC_ID, PG_VARCHAR_CODEC_ID, PLAIN_DATE_TIME_NOW_GENERATOR_ID, POLICY_OPERATION_PREDICATES, PgTimestamptzDateCodec, PgTimestamptzDateDescriptor, PostgresAlterIndexRename, PostgresAlterPolicyRename, PostgresAlterTable, PostgresCodecDescriptor, PostgresContractSerializer, PostgresContractView, PostgresCreateIndex, PostgresCreatePolicy, PostgresCreateSchema, PostgresCreateTable, PostgresCreateType, PostgresDatabaseSchemaNode, PostgresDdlNode, PostgresDisableRowLevelSecurity, PostgresDropIndex, PostgresDropPolicy, PostgresDropType, PostgresNamespaceSchemaNode, PostgresNativeEnum, PostgresNativeEnumSchemaNode, PostgresPolicySchemaNode, PostgresRlsEnablement, PostgresRlsPolicy, PostgresRole, PostgresRoleSchemaNode, PostgresSchema, PostgresSchemaNodeKind, PostgresTableSchemaNode, PostgresTableSource, PostgresUnboundSchema, RawSqlCall, RenameCheckConstraintCall, RenameIndexCall, RenamePostgresRlsPolicyCall, SQL_CHAR_CODEC_ID, SQL_FLOAT_CODEC_ID, SQL_INT_CODEC_ID, SQL_TEXT_CODEC_ID, SQL_VARCHAR_CODEC_ID, SetDefaultCall, SetNotNullCall, TypeScriptRenderablePostgresMigration, addColumnAction, alterTable, buildBuiltinIdentityValue, buildColumnDefaultSql, buildColumnTypeSql, buildControlTableBootstrapQueries, buildExpectedFormatType, buildPostgresCodecDescriptorRegistry, buildPostgresPlanDiff, buildSchemaLookupMap, buildSignMarkerBootstrapQueries, checkExpression, coalesceSubtreeIssues, col, columnDefaultAst, columnExistsAst, columnNullabilityAst, columnTypeAst, computeContentHash, constraintExistsAst, contractToPostgresDatabaseSchemaNode, createExtension, createPostgresMigrationPlanner, createSchema, createTable, dataTransform, decodePostgresListText, definePostgresCodecs, dropDefaultAction, errorPostgresMigrationStackMissing, escapeLiteral, extensionExistsAst, fn, foreignKey, hasForeignKey, hasIndex, hasUniqueConstraint, indexExistsAst, instantNow, instantNowControlDescriptor, int4, int8, isPgEnumParams, isPostgresCodecDescriptor, isPostgresSchema, jsonb, lit, noNullValuesAst, normalizeSchemaNativeType, parsePostgresDefault, parsePostgresListText, pgBitColumn, pgBoolColumn, pgCharColumn, pgEnumDescriptor, pgFloat4Column, pgFloat8Column, pgFloatColumn, pgInetColumn, pgInt2Column, pgInt4Column, pgInt8Column, pgInt8NumberColumn, pgIntColumn, pgIntervalColumn, pgJsonColumn, pgJsonbColumn, pgNumericColumn, pgTable, pgTextColumn, pgTimestamptzDateColumn, pgTimestamptzDateDescriptor, pgTimetzColumn, pgUnboundedIntColumn, pgUuidColumn, pgVarbitColumn, pgVarcharColumn, placeholder, plainDateTimeNow, plainDateTimeNowControlDescriptor, planIssues, policyInputFromSerialized, postgresAggregateDescriptors, postgresCodec, postgresCodecDescriptorRegistry, postgresCodecRegistry, postgresCreateNamespace, postgresError, postgresRenderCheckExpressions, postgresRenderDefault, postgresResolveDefault, primaryKey, prisma7PostgresBinding, qualifyName, qualifyTableName, quoteIdentifier, quoteQualifiedName, rawSql, renderCallsToTypeScript, renderDefaultLiteral, renderOps, resolveDdlSchemaForNamespaceStorage, resolveIdentityValue, rlsEnabledAst, rlsPolicyExistsAst, tableExistsAst, tableIsEmptyAst, tablePrimaryKeyAst, text, textArray, timestamptz, timestamptzJsDate, toRegclass, unique, validateEnumValueLength };
@@ -1,3 +1,3 @@
1
- import { a as parsePostgresListText, i as instantNowControlDescriptor, n as decodePostgresListText, t as INSTANT_NOW_GENERATOR_ID } from "./list-decoder-8mZBUNe0-C9dPXUP0.mjs";
2
- import { n as postgresTargetDescriptor, t as postgresRenderDefault } from "./control--T7XaMS8.mjs";
3
- export { INSTANT_NOW_GENERATOR_ID, decodePostgresListText, postgresTargetDescriptor as default, instantNowControlDescriptor, parsePostgresListText, postgresRenderDefault };
1
+ import { a as instantNowControlDescriptor, c as plainDateTimeNowControlDescriptor, n as PLAIN_DATE_TIME_NOW_GENERATOR_ID, o as parsePostgresListText, r as decodePostgresListText, t as INSTANT_NOW_GENERATOR_ID } from "./plain-date-time-now-generator-DJ3icyVr-B-rdIVd3.mjs";
2
+ import { n as postgresTargetDescriptor, t as postgresRenderDefault } from "./control-BvK2pHHh.mjs";
3
+ export { INSTANT_NOW_GENERATOR_ID, PLAIN_DATE_TIME_NOW_GENERATOR_ID, decodePostgresListText, postgresTargetDescriptor as default, instantNowControlDescriptor, parsePostgresListText, plainDateTimeNowControlDescriptor, postgresRenderDefault };
@@ -1,4 +1,4 @@
1
- import { r as instantNowControlDescriptor, t as INSTANT_NOW_GENERATOR_ID } from "./authoring-DgeWf8RC-C-jQzf_w.mjs";
1
+ import { i as instantNowControlDescriptor, n as PLAIN_DATE_TIME_NOW_GENERATOR_ID, o as plainDateTimeNowControlDescriptor, t as INSTANT_NOW_GENERATOR_ID } from "./authoring-Beq66XGy-D-GgvlBG.mjs";
2
2
  import { n as parsePostgresListText, t as decodePostgresListText } from "./list-decoder-DXee1orj-K3y-hxiI.mjs";
3
- import { n as postgresTargetDescriptor, t as postgresRenderDefault } from "./control-BC3oXXIK.mjs";
4
- export { INSTANT_NOW_GENERATOR_ID, decodePostgresListText, postgresTargetDescriptor as default, instantNowControlDescriptor, parsePostgresListText, postgresRenderDefault };
3
+ import { n as postgresTargetDescriptor, t as postgresRenderDefault } from "./control-206OMpyA.mjs";
4
+ export { INSTANT_NOW_GENERATOR_ID, PLAIN_DATE_TIME_NOW_GENERATOR_ID, decodePostgresListText, postgresTargetDescriptor as default, instantNowControlDescriptor, parsePostgresListText, plainDateTimeNowControlDescriptor, postgresRenderDefault };
@@ -1,2 +1,2 @@
1
- import { n as postgresResolveDefault, t as parsePostgresDefault } from "./default-normalizer-B36TOul4.mjs";
1
+ import { n as postgresResolveDefault, t as parsePostgresDefault } from "./default-normalizer-D9WbKo20.mjs";
2
2
  export { parsePostgresDefault, postgresResolveDefault };
@@ -1,2 +1,2 @@
1
- import { n as postgresResolveDefault, t as parsePostgresDefault } from "./default-normalizer-Ba5ZebHM-isV86rjy.mjs";
1
+ import { n as postgresResolveDefault, t as parsePostgresDefault } from "./default-normalizer-Bjtm2F4f-uV5vvkVt.mjs";
2
2
  export { parsePostgresDefault, postgresResolveDefault };
@@ -1,2 +1,2 @@
1
- import { t as buildPostgresPlanDiff } from "./diff-database-schema-BaSP2z4y-Ch42uw-j.mjs";
1
+ import { t as buildPostgresPlanDiff } from "./diff-database-schema-BFX0ZWWK-KVfAPOLF.mjs";
2
2
  export { buildPostgresPlanDiff };
@@ -1,2 +1,2 @@
1
- import { a as planIssues, t as coalesceSubtreeIssues } from "./control-policy-BKgU_M65-BWedWA-f.mjs";
1
+ import { a as planIssues, t as coalesceSubtreeIssues } from "./control-policy-B8x7UxGf-BjTez7am.mjs";
2
2
  export { coalesceSubtreeIssues, planIssues };
@@ -1,5 +1,5 @@
1
- import { F as createExtension } from "./op-factory-call-6Jg-ycA--4AC_11Od.mjs";
1
+ import { F as createExtension } from "./op-factory-call-B3-CevCo-CSV5SL9W.mjs";
2
2
  import { t as dataTransform } from "./data-transform-ChZzy2dP-CxVCat_8.mjs";
3
- import { t as PostgresMigration } from "./postgres-migration-Cj-DvDY8-CIrWHp9I.mjs";
3
+ import { t as PostgresMigration } from "./postgres-migration-DXHNRgZA-HzAql-Bj.mjs";
4
4
  import { a as foreignKey, c as primaryKey, i as fn, l as rawSql, n as checkExpression, o as lit, r as col, s as placeholder, t as MigrationCLI, u as unique } from "./migration-PTHAY9Cv.mjs";
5
5
  export { PostgresMigration as Migration, MigrationCLI, checkExpression, col, createExtension, dataTransform, fn, foreignKey, lit, placeholder, primaryKey, rawSql, unique };
@@ -1,2 +1,2 @@
1
- import { A as RenameIndexCall, C as DropNativeEnumTypeCall, D as EnableRowLevelSecurityCall, E as DropTableCall, M as SetDefaultCall, N as SetNotNullCall, O as RawSqlCall, S as DropIndexCall, T as DropPostgresRlsPolicyCall, _ as DisableRowLevelSecurityCall, b as DropConstraintCall, c as AddUniqueCall, d as CreateIndexCall, f as CreateNativeEnumTypeCall, g as DataTransformCall, h as CreateTableCall, i as AddNativeEnumValueCall, j as RenamePostgresRlsPolicyCall, k as RenameCheckConstraintCall, l as AlterColumnTypeCall, m as CreateSchemaCall, n as AddColumnCall, o as AddNotNullColumnWithTempDefaultCall, p as CreatePostgresRlsPolicyCall, r as AddForeignKeyCall, s as AddPrimaryKeyCall, t as AddCheckConstraintCall, u as CreateExtensionCall, v as DropCheckConstraintCall, w as DropNotNullCall, x as DropDefaultCall, y as DropColumnCall } from "./op-factory-call-6Jg-ycA--4AC_11Od.mjs";
1
+ import { A as RenameIndexCall, C as DropNativeEnumTypeCall, D as EnableRowLevelSecurityCall, E as DropTableCall, M as SetDefaultCall, N as SetNotNullCall, O as RawSqlCall, S as DropIndexCall, T as DropPostgresRlsPolicyCall, _ as DisableRowLevelSecurityCall, b as DropConstraintCall, c as AddUniqueCall, d as CreateIndexCall, f as CreateNativeEnumTypeCall, g as DataTransformCall, h as CreateTableCall, i as AddNativeEnumValueCall, j as RenamePostgresRlsPolicyCall, k as RenameCheckConstraintCall, l as AlterColumnTypeCall, m as CreateSchemaCall, n as AddColumnCall, o as AddNotNullColumnWithTempDefaultCall, p as CreatePostgresRlsPolicyCall, r as AddForeignKeyCall, s as AddPrimaryKeyCall, t as AddCheckConstraintCall, u as CreateExtensionCall, v as DropCheckConstraintCall, w as DropNotNullCall, x as DropDefaultCall, y as DropColumnCall } from "./op-factory-call-B3-CevCo-CSV5SL9W.mjs";
2
2
  export { AddCheckConstraintCall, AddColumnCall, AddForeignKeyCall, AddNativeEnumValueCall, AddNotNullColumnWithTempDefaultCall, AddPrimaryKeyCall, AddUniqueCall, AlterColumnTypeCall, CreateExtensionCall, CreateIndexCall, CreateNativeEnumTypeCall, CreatePostgresRlsPolicyCall, CreateSchemaCall, CreateTableCall, DataTransformCall, DisableRowLevelSecurityCall, DropCheckConstraintCall, DropColumnCall, DropConstraintCall, DropDefaultCall, DropIndexCall, DropNativeEnumTypeCall, DropNotNullCall, DropPostgresRlsPolicyCall, DropTableCall, EnableRowLevelSecurityCall, RawSqlCall, RenameCheckConstraintCall, RenameIndexCall, RenamePostgresRlsPolicyCall, SetDefaultCall, SetNotNullCall };
@@ -1,2 +1,2 @@
1
- import { t as postgresTargetDescriptorMeta } from "./pack-D8V-43m8.mjs";
1
+ import { t as postgresTargetDescriptorMeta } from "./pack-CRA_2QjF.mjs";
2
2
  export { postgresTargetDescriptorMeta as default };
@@ -1,2 +1,2 @@
1
- import { t as postgresTargetDescriptorMeta } from "./descriptor-meta-C4i4pLQn-CmdN74uG.mjs";
1
+ import { t as postgresTargetDescriptorMeta } from "./descriptor-meta-BhJOswpM-CqvnQMC0.mjs";
2
2
  export { postgresTargetDescriptorMeta as default };
@@ -1,2 +1,2 @@
1
- import { n as buildColumnTypeSql, r as renderDefaultLiteral, t as buildColumnDefaultSql } from "./planner-ddl-builders-ijp60-JO.mjs";
1
+ import { n as buildColumnTypeSql, r as renderDefaultLiteral, t as buildColumnDefaultSql } from "./planner-ddl-builders-bBCUsq_0.mjs";
2
2
  export { buildColumnDefaultSql, buildColumnTypeSql, renderDefaultLiteral };