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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (148) hide show
  1. package/dist/{adapter-BIWKN0d7-B2BpKdVy.mjs → adapter-B84yJpi7-8wwdWq5R.mjs} +6 -6
  2. package/dist/{adapter-BIWKN0d7-B2BpKdVy.mjs.map → adapter-B84yJpi7-8wwdWq5R.mjs.map} +1 -1
  3. package/dist/adapter.d.mts +1 -1
  4. package/dist/adapter.mjs +5 -5
  5. package/dist/adapter__adapter.mjs +2 -2
  6. package/dist/adapter__control.d.mts +1 -1
  7. package/dist/adapter__control.mjs +4 -4
  8. package/dist/adapter__control.mjs.map +1 -1
  9. package/dist/adapter__runtime.mjs +4 -4
  10. package/dist/adapter__runtime.mjs.map +1 -1
  11. package/dist/adapter__sql-renderer.mjs +1 -1
  12. package/dist/{authoring-DOlbnTzz-BWXtiq9i.mjs → authoring-Bm8PD9ls-clXbYDiN.mjs} +209 -48
  13. package/dist/authoring-Bm8PD9ls-clXbYDiN.mjs.map +1 -0
  14. package/dist/{autoincrement-widths-D7Uub-uA-DccZpX6Q.mjs → autoincrement-widths-DkD24r-C-D4O96GJZ.mjs} +3 -3
  15. package/dist/{autoincrement-widths-D7Uub-uA-DccZpX6Q.mjs.map → autoincrement-widths-DkD24r-C-D4O96GJZ.mjs.map} +1 -1
  16. package/dist/{check-expressions-CCFJKC7N-DHEJIG2S.mjs → check-expressions-C_lM7sSK-Dtv6p3hg.mjs} +3 -3
  17. package/dist/{check-expressions-CCFJKC7N-DHEJIG2S.mjs.map → check-expressions-C_lM7sSK-Dtv6p3hg.mjs.map} +1 -1
  18. package/dist/{codec-registry-qdVGkdp_-DCI2nWSt.mjs → codec-registry-DVjibYBY-BeOUp5fk.mjs} +4 -4
  19. package/dist/{codec-registry-qdVGkdp_-DCI2nWSt.mjs.map → codec-registry-DVjibYBY-BeOUp5fk.mjs.map} +1 -1
  20. package/dist/{codecs-BcYLh1iB-Dxi2UgkJ.mjs → codecs-BqCmavY8-CC-ZbbTA.mjs} +12 -5
  21. package/dist/codecs-BqCmavY8-CC-ZbbTA.mjs.map +1 -0
  22. package/dist/{contract-contributions-DTGGTwRZ-BmYIo6M5.mjs → contract-contributions-rxCSM_1W-d9oohAzB.mjs} +16 -41
  23. package/dist/contract-contributions-rxCSM_1W-d9oohAzB.mjs.map +1 -0
  24. package/dist/{contract-free-Bjx-Ktot.mjs → contract-free-BrY8qnvY.mjs} +3 -3
  25. package/dist/{contract-free-Bjx-Ktot.mjs.map → contract-free-BrY8qnvY.mjs.map} +1 -1
  26. package/dist/{control-policy-B1Zvw6VN-DN4QDwpc.mjs → control-policy-BncmQ6LO-B8SXRfP_.mjs} +9 -9
  27. package/dist/{control-policy-B1Zvw6VN-DN4QDwpc.mjs.map → control-policy-BncmQ6LO-B8SXRfP_.mjs.map} +1 -1
  28. package/dist/{control-m9LWRUnY.d.mts → control-s1_5W_8t.d.mts} +179 -74
  29. package/dist/control-s1_5W_8t.d.mts.map +1 -0
  30. package/dist/{data-type-entries-DhUYJbVb-4NUH6vR_.mjs → data-type-entries-ZHPz2h_f-CNUmPGgf.mjs} +3 -3
  31. package/dist/{data-type-entries-DhUYJbVb-4NUH6vR_.mjs.map → data-type-entries-ZHPz2h_f-CNUmPGgf.mjs.map} +1 -1
  32. package/dist/{data-types-B7S_CHZd-C9JA40Ir.mjs → data-types-DklKHVmp-Bl-nwUa-.mjs} +21 -4
  33. package/dist/data-types-DklKHVmp-Bl-nwUa-.mjs.map +1 -0
  34. package/dist/{date-time-now-generators-C2aktlrc-uf9LqU6E.d.mts → date-time-now-generators-BZj5G1E3-BylrCrgW.d.mts} +4 -4
  35. package/dist/date-time-now-generators-BZj5G1E3-BylrCrgW.d.mts.map +1 -0
  36. package/dist/{date-time-now-generators-BrJ1cMzo-CxURsw2O.mjs → date-time-now-generators-Cc4PvFeB-XQWJz_4f.mjs} +21 -11
  37. package/dist/date-time-now-generators-Cc4PvFeB-XQWJz_4f.mjs.map +1 -0
  38. package/dist/{ddl-DiUFjVZe-DETlNlJh.mjs → ddl-LpR9foVX-YBmyKx74.mjs} +3 -3
  39. package/dist/{ddl-DiUFjVZe-DETlNlJh.mjs.map → ddl-LpR9foVX-YBmyKx74.mjs.map} +1 -1
  40. package/dist/{descriptor-meta-CGRsMMdO-tQxNSE_j.mjs → descriptor-meta-C2F_xt0P-D7gfqNS0.mjs} +17 -12
  41. package/dist/descriptor-meta-C2F_xt0P-D7gfqNS0.mjs.map +1 -0
  42. package/dist/{descriptor-meta-I7Ih-0hE-CrOjEir4.mjs → descriptor-meta-C2YuDfV8-B_u19j25.mjs} +4 -4
  43. package/dist/{descriptor-meta-I7Ih-0hE-CrOjEir4.mjs.map → descriptor-meta-C2YuDfV8-B_u19j25.mjs.map} +1 -1
  44. package/dist/{diff-database-schema-ASDRsuei-3Yro3-Tw.mjs → diff-database-schema-CcR7BN-A-BuftnIR2.mjs} +9 -9
  45. package/dist/{diff-database-schema-ASDRsuei-3Yro3-Tw.mjs.map → diff-database-schema-CcR7BN-A-BuftnIR2.mjs.map} +1 -1
  46. package/dist/{errors-Di_apgWJ-BLXRTfFj.mjs → errors-DG6xgXgr-Cb1XcPcb.mjs} +6 -5
  47. package/dist/errors-DG6xgXgr-Cb1XcPcb.mjs.map +1 -0
  48. package/dist/{full-text-CcHf5wkL.mjs → full-text-7szWl7EC.mjs} +3 -3
  49. package/dist/{full-text-CcHf5wkL.mjs.map → full-text-7szWl7EC.mjs.map} +1 -1
  50. package/dist/{full-text-index-definition-B0kQDs_M-8N6Slj3l.mjs → full-text-index-definition-BRNRSgZK-l_2TBarg.mjs} +3 -3
  51. package/dist/{full-text-index-definition-B0kQDs_M-8N6Slj3l.mjs.map → full-text-index-definition-BRNRSgZK-l_2TBarg.mjs.map} +1 -1
  52. package/dist/{full-text-parsers-hI_qtk-Q-DqTMF4n2.mjs → full-text-parsers-Dd5DOdBA-BTeOSzUj.mjs} +4 -4
  53. package/dist/{full-text-parsers-hI_qtk-Q-DqTMF4n2.mjs.map → full-text-parsers-Dd5DOdBA-BTeOSzUj.mjs.map} +1 -1
  54. package/dist/{full-text-search-document-7AKd6oOw-S-rsh3SZ.mjs → full-text-search-document-DWzECXD--BqrLGXsX.mjs} +5 -5
  55. package/dist/{full-text-search-document-7AKd6oOw-S-rsh3SZ.mjs.map → full-text-search-document-DWzECXD--BqrLGXsX.mjs.map} +1 -1
  56. package/dist/{index-types-DfnDGeQU-BWcrd_SP.mjs → index-types-5g7gXoWK-CBvkTIbr.mjs} +3 -3
  57. package/dist/{index-types-DfnDGeQU-BWcrd_SP.mjs.map → index-types-5g7gXoWK-CBvkTIbr.mjs.map} +1 -1
  58. package/dist/{infer-psl-contract-BZnLgJj6-EjqMFHxE.mjs → infer-psl-contract-CT9H9Xnw-l2pNPAyO.mjs} +70 -17
  59. package/dist/infer-psl-contract-CT9H9Xnw-l2pNPAyO.mjs.map +1 -0
  60. package/dist/migration-Be_iuIpn.mjs.map +1 -1
  61. package/dist/{native-type-normalizer-BpTZ6sm1.mjs → native-type-normalizer-DgHcQkwl.mjs} +2 -2
  62. package/dist/{native-type-normalizer-BpTZ6sm1.mjs.map → native-type-normalizer-DgHcQkwl.mjs.map} +1 -1
  63. package/dist/{op-factory-call-CUu2s6l7-CaAVzTwP.mjs → op-factory-call-BRaCqnFh-avSVdAgI.mjs} +8 -8
  64. package/dist/{op-factory-call-CUu2s6l7-CaAVzTwP.mjs.map → op-factory-call-BRaCqnFh-avSVdAgI.mjs.map} +1 -1
  65. package/dist/{pack-DKR4BRIY.d.mts → pack-BPopDUvg.d.mts} +183 -99
  66. package/dist/pack-BPopDUvg.d.mts.map +1 -0
  67. package/dist/{planner-C69ALB15-CasiGSdJ.mjs → planner-BsLpyYHC-IEpACcdS.mjs} +10 -10
  68. package/dist/{planner-C69ALB15-CasiGSdJ.mjs.map → planner-BsLpyYHC-IEpACcdS.mjs.map} +1 -1
  69. package/dist/{planner-ddl-builders-BHvruDX3-Sw7yWuWE.mjs → planner-ddl-builders-Dmr6ph8i-5FWxE6Wu.mjs} +3 -3
  70. package/dist/{planner-ddl-builders-BHvruDX3-Sw7yWuWE.mjs.map → planner-ddl-builders-Dmr6ph8i-5FWxE6Wu.mjs.map} +1 -1
  71. package/dist/{planner-identity-values-Cp0Cvrg7-BxMk9Qaf.mjs → planner-identity-values-BwYhwYeo-CaSwyXgC.mjs} +3 -3
  72. package/dist/{planner-identity-values-Cp0Cvrg7-BxMk9Qaf.mjs.map → planner-identity-values-BwYhwYeo-CaSwyXgC.mjs.map} +1 -1
  73. package/dist/{planner-produced-postgres-migration-BGo--l2b-ww24WTkY.mjs → planner-produced-postgres-migration-CU7D_5IE-Cv-o4-Hh.mjs} +4 -4
  74. package/dist/{planner-produced-postgres-migration-BGo--l2b-ww24WTkY.mjs.map → planner-produced-postgres-migration-CU7D_5IE-Cv-o4-Hh.mjs.map} +1 -1
  75. package/dist/{planner-sql-checks-Dhx-R5GJ-GyHfROia.mjs → planner-sql-checks-DOGD6v7y-BWkRMsXt.mjs} +19 -10
  76. package/dist/{planner-sql-checks-Dhx-R5GJ-GyHfROia.mjs.map → planner-sql-checks-DOGD6v7y-BWkRMsXt.mjs.map} +1 -1
  77. package/dist/{postgres-codec-traits-Cpq3LqzZ-D_WitJjX.mjs → postgres-codec-traits-BhLP9ipO-D5kVsAxr.mjs} +3 -3
  78. package/dist/{postgres-codec-traits-Cpq3LqzZ-D_WitJjX.mjs.map → postgres-codec-traits-BhLP9ipO-D5kVsAxr.mjs.map} +1 -1
  79. package/dist/{postgres-contract-view-CvoOn_Xj-Dr0DQlVT.mjs → postgres-contract-view-DBmVHV5m-DDZR3cBh.mjs} +8 -8
  80. package/dist/{postgres-contract-view-CvoOn_Xj-Dr0DQlVT.mjs.map → postgres-contract-view-DBmVHV5m-DDZR3cBh.mjs.map} +1 -1
  81. package/dist/{postgres-migration-69O9MUBt-BQ1_mj4S.mjs → postgres-migration-DrLpuKus-DOU9Rbkb.mjs} +11 -11
  82. package/dist/{postgres-migration-69O9MUBt-BQ1_mj4S.mjs.map → postgres-migration-DrLpuKus-DOU9Rbkb.mjs.map} +1 -1
  83. package/dist/{postgres-schema-CNNW8eA3-CwosQz5e.mjs → postgres-schema-CEGf780E-cyGo2Sii.mjs} +4 -4
  84. package/dist/{postgres-schema-CNNW8eA3-CwosQz5e.mjs.map → postgres-schema-CEGf780E-cyGo2Sii.mjs.map} +1 -1
  85. package/dist/{prisma7-binding-DFb9yHdO.d.mts → prisma7-binding-BNc7RE11.d.mts} +190 -99
  86. package/dist/prisma7-binding-BNc7RE11.d.mts.map +1 -0
  87. package/dist/{prisma7-binding-CcrXBBbM.mjs → prisma7-binding-BvvPWMwt.mjs} +27 -9
  88. package/dist/prisma7-binding-BvvPWMwt.mjs.map +1 -0
  89. package/dist/{render-ops-Dr6RDk6z-CSGJsR6N.mjs → render-ops-CbRkpwwx-C6wSWcTl.mjs} +4 -4
  90. package/dist/{render-ops-Dr6RDk6z-CSGJsR6N.mjs.map → render-ops-CbRkpwwx-C6wSWcTl.mjs.map} +1 -1
  91. package/dist/{resolve-ddl-schema-p68Q5F1u-DZAQNXpi.mjs → resolve-ddl-schema-BhOYD95_-DhUQYNLi.mjs} +3 -3
  92. package/dist/{resolve-ddl-schema-p68Q5F1u-DZAQNXpi.mjs.map → resolve-ddl-schema-BhOYD95_-DhUQYNLi.mjs.map} +1 -1
  93. package/dist/{runtime-DGgnFCG7.d.mts → runtime-BbPgK4gH.d.mts} +2 -2
  94. package/dist/{runtime-DGgnFCG7.d.mts.map → runtime-BbPgK4gH.d.mts.map} +1 -1
  95. package/dist/{sql-renderer-BdWJPa5F-DUvahuXZ.mjs → sql-renderer-BdWJPa5F-B8cdiqmK.mjs} +3 -3
  96. package/dist/{sql-renderer-BdWJPa5F-DUvahuXZ.mjs.map → sql-renderer-BdWJPa5F-B8cdiqmK.mjs.map} +1 -1
  97. package/dist/{sql-utils-CnnGiZBc.d.mts → sql-utils-Bq4nuPvy.d.mts} +6 -2
  98. package/dist/{sql-utils-CnnGiZBc.d.mts.map → sql-utils-Bq4nuPvy.d.mts.map} +1 -1
  99. package/dist/{sql-utils-0j_6QstU-DAfnt5Mu.mjs → sql-utils-ylvfJ1RJ-03xGdSLI.mjs} +34 -4
  100. package/dist/sql-utils-ylvfJ1RJ-03xGdSLI.mjs.map +1 -0
  101. package/dist/target.d.mts +7 -7
  102. package/dist/target.mjs +32 -32
  103. package/dist/target__codecs.mjs +2 -2
  104. package/dist/target__contract-free.mjs +3 -3
  105. package/dist/target__control.d.mts +2 -2
  106. package/dist/target__control.mjs +38 -25
  107. package/dist/target__control.mjs.map +1 -1
  108. package/dist/target__data-types.mjs +2 -2
  109. package/dist/target__diff-database-schema.mjs +1 -1
  110. package/dist/target__errors.mjs +1 -1
  111. package/dist/target__full-text-index-authoring.mjs +2 -2
  112. package/dist/target__full-text.mjs +2 -2
  113. package/dist/target__issue-planner.mjs +1 -1
  114. package/dist/target__migration.mjs +2 -2
  115. package/dist/target__native-type-normalizer.mjs +1 -1
  116. package/dist/target__op-factory-call.mjs +1 -1
  117. package/dist/target__pack.d.mts +1 -1
  118. package/dist/target__pack.mjs +1 -1
  119. package/dist/target__planner-ddl-builders.mjs +1 -1
  120. package/dist/target__planner-identity-values.mjs +1 -1
  121. package/dist/target__planner-produced-postgres-migration.mjs +1 -1
  122. package/dist/target__planner-sql-checks.mjs +1 -1
  123. package/dist/target__planner.mjs +2 -2
  124. package/dist/target__prisma7-binding.d.mts +1 -1
  125. package/dist/target__prisma7-binding.mjs +1 -1
  126. package/dist/target__render-ops.mjs +1 -1
  127. package/dist/target__runtime.d.mts +2 -2
  128. package/dist/target__runtime.mjs +7 -7
  129. package/dist/target__runtime.mjs.map +1 -1
  130. package/dist/target__schema-ir-annotations.mjs +1 -1
  131. package/dist/target__sql-utils.d.mts +2 -2
  132. package/dist/target__sql-utils.mjs +4 -4
  133. package/dist/target__types.mjs +2 -2
  134. package/package.json +9 -9
  135. package/dist/authoring-DOlbnTzz-BWXtiq9i.mjs.map +0 -1
  136. package/dist/codecs-BcYLh1iB-Dxi2UgkJ.mjs.map +0 -1
  137. package/dist/contract-contributions-DTGGTwRZ-BmYIo6M5.mjs.map +0 -1
  138. package/dist/control-m9LWRUnY.d.mts.map +0 -1
  139. package/dist/data-types-B7S_CHZd-C9JA40Ir.mjs.map +0 -1
  140. package/dist/date-time-now-generators-BrJ1cMzo-CxURsw2O.mjs.map +0 -1
  141. package/dist/date-time-now-generators-C2aktlrc-uf9LqU6E.d.mts.map +0 -1
  142. package/dist/descriptor-meta-CGRsMMdO-tQxNSE_j.mjs.map +0 -1
  143. package/dist/errors-Di_apgWJ-BLXRTfFj.mjs.map +0 -1
  144. package/dist/infer-psl-contract-BZnLgJj6-EjqMFHxE.mjs.map +0 -1
  145. package/dist/pack-DKR4BRIY.d.mts.map +0 -1
  146. package/dist/prisma7-binding-CcrXBBbM.mjs.map +0 -1
  147. package/dist/prisma7-binding-DFb9yHdO.d.mts.map +0 -1
  148. package/dist/sql-utils-0j_6QstU-DAfnt5Mu.mjs.map +0 -1
@@ -1,5 +1,5 @@
1
- import { s as codecDescriptors } from "./codecs-BcYLh1iB-Dxi2UgkJ.mjs";
2
- //#region ../../../3-targets/postgres/1-target/dist/postgres-codec-traits-Cpq3LqzZ.mjs
1
+ import { s as codecDescriptors } from "./codecs-BqCmavY8-CC-ZbbTA.mjs";
2
+ //#region ../../../3-targets/postgres/1-target/dist/postgres-codec-traits-BhLP9ipO.mjs
3
3
  const TRAITS_BY_CODEC_ID = new Map(codecDescriptors.map((descriptor) => [descriptor.codecId, descriptor.traits]));
4
4
  /** The traits of a Postgres codec, or `undefined` for a codec the target does not register. */
5
5
  function postgresCodecTraitsOf(codecId) {
@@ -8,4 +8,4 @@ function postgresCodecTraitsOf(codecId) {
8
8
  //#endregion
9
9
  export { postgresCodecTraitsOf as t };
10
10
 
11
- //# sourceMappingURL=postgres-codec-traits-Cpq3LqzZ-D_WitJjX.mjs.map
11
+ //# sourceMappingURL=postgres-codec-traits-BhLP9ipO-D5kVsAxr.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"postgres-codec-traits-Cpq3LqzZ-D_WitJjX.mjs","names":[],"sources":["../../../../3-targets/postgres/1-target/dist/postgres-codec-traits-Cpq3LqzZ.mjs"],"sourcesContent":["import { t as codecDescriptors } from \"./codecs-BcYLh1iB.mjs\";\n//#region src/core/postgres-codec-traits.ts\nconst TRAITS_BY_CODEC_ID = new Map(codecDescriptors.map((descriptor) => [descriptor.codecId, descriptor.traits]));\n/** The traits of a Postgres codec, or `undefined` for a codec the target does not register. */\nfunction postgresCodecTraitsOf(codecId) {\n\treturn TRAITS_BY_CODEC_ID.get(codecId);\n}\n//#endregion\nexport { postgresCodecTraitsOf as t };\n\n//# sourceMappingURL=postgres-codec-traits-Cpq3LqzZ.mjs.map"],"mappings":";;AAEA,MAAM,qBAAqB,IAAI,IAAI,iBAAiB,KAAK,eAAe,CAAC,WAAW,SAAS,WAAW,MAAM,CAAC,CAAC;;AAEhH,SAAS,sBAAsB,SAAS;CACvC,OAAO,mBAAmB,IAAI,OAAO;AACtC"}
1
+ {"version":3,"file":"postgres-codec-traits-BhLP9ipO-D5kVsAxr.mjs","names":[],"sources":["../../../../3-targets/postgres/1-target/dist/postgres-codec-traits-BhLP9ipO.mjs"],"sourcesContent":["import { t as codecDescriptors } from \"./codecs-BqCmavY8.mjs\";\n//#region src/core/postgres-codec-traits.ts\nconst TRAITS_BY_CODEC_ID = new Map(codecDescriptors.map((descriptor) => [descriptor.codecId, descriptor.traits]));\n/** The traits of a Postgres codec, or `undefined` for a codec the target does not register. */\nfunction postgresCodecTraitsOf(codecId) {\n\treturn TRAITS_BY_CODEC_ID.get(codecId);\n}\n//#endregion\nexport { postgresCodecTraitsOf as t };\n\n//# sourceMappingURL=postgres-codec-traits-BhLP9ipO.mjs.map"],"mappings":";;AAEA,MAAM,qBAAqB,IAAI,IAAI,iBAAiB,KAAK,eAAe,CAAC,WAAW,SAAS,WAAW,MAAM,CAAC,CAAC;;AAEhH,SAAS,sBAAsB,SAAS;CACvC,OAAO,mBAAmB,IAAI,OAAO;AACtC"}
@@ -1,10 +1,10 @@
1
1
  import { C as PG_TEXT_CODEC_ID, v as PG_INT_CODEC_ID } from "./codec-ids-D0wjQdEW-EypD_iZj.mjs";
2
- import { Z as postgresTextDataTypes, i as createPostgresBuiltinDataTypeLookup } from "./data-types-B7S_CHZd-C9JA40Ir.mjs";
3
- import { r as createPostgresBuiltinCodecLookup } from "./codec-registry-qdVGkdp_-DCI2nWSt.mjs";
4
- import { a as assertFullTextIndexes } from "./full-text-index-definition-B0kQDs_M-8N6Slj3l.mjs";
5
- import { _ as roleEntityKind, c as PostgresSchema, f as nativeEnumEntityKind, g as rlsEnablementEntityKind, p as policyEntityKind } from "./postgres-schema-CNNW8eA3-CwosQz5e.mjs";
6
- import { t as postgresCodecTraitsOf } from "./postgres-codec-traits-Cpq3LqzZ-D_WitJjX.mjs";
7
- import { n as postgresAuthoringEntityTypes } from "./authoring-DOlbnTzz-BWXtiq9i.mjs";
2
+ import { Z as postgresTextDataTypes, i as createPostgresBuiltinDataTypeLookup } from "./data-types-DklKHVmp-Bl-nwUa-.mjs";
3
+ import { r as createPostgresBuiltinCodecLookup } from "./codec-registry-DVjibYBY-BeOUp5fk.mjs";
4
+ import { a as assertFullTextIndexes } from "./full-text-index-definition-BRNRSgZK-l_2TBarg.mjs";
5
+ import { _ as roleEntityKind, c as PostgresSchema, f as nativeEnumEntityKind, g as rlsEnablementEntityKind, p as policyEntityKind } from "./postgres-schema-CEGf780E-cyGo2Sii.mjs";
6
+ import { t as postgresCodecTraitsOf } from "./postgres-codec-traits-BhLP9ipO-D5kVsAxr.mjs";
7
+ import { n as postgresAuthoringEntityTypes } from "./authoring-Bm8PD9ls-clXbYDiN.mjs";
8
8
  import { requiredSchemaKeys } from "@prisma/orm-framework/components/codec";
9
9
  import { blindCast } from "@prisma/orm-framework/utils/casts";
10
10
  import { InternalError } from "@prisma/orm-framework/utils/internal-error";
@@ -14,7 +14,7 @@ import { buildSqlSchemaQualifiedView } from "@prisma/orm-family-sql/contract/con
14
14
  import { createPreserveEmptyPredicate } from "@prisma/orm-framework/contract/hashing-utils";
15
15
  import { SqlContractSerializerBase } from "@prisma/orm-family-sql/family/ir";
16
16
  import { sqlContractCanonicalizationHooks } from "@prisma/orm-family-sql/contract/canonicalization-hooks";
17
- //#region ../../../3-targets/postgres/1-target/dist/postgres-contract-view-CvoOn_Xj.mjs
17
+ //#region ../../../3-targets/postgres/1-target/dist/postgres-contract-view-DBmVHV5m.mjs
18
18
  const POSTGRES_CODEC_LOOKUP = createPostgresBuiltinCodecLookup();
19
19
  /** The context entity hydration runs in. Hydration reads stored contract JSON and never a written value, so its data types carry no authoring entries, which keeps the PSL readers out of the runtime. */
20
20
  const POSTGRES_AUTHORING_CTX = {
@@ -154,4 +154,4 @@ const PostgresContractView = {
154
154
  //#endregion
155
155
  export { PostgresContractView as n, PostgresContractSerializer as t };
156
156
 
157
- //# sourceMappingURL=postgres-contract-view-CvoOn_Xj-Dr0DQlVT.mjs.map
157
+ //# sourceMappingURL=postgres-contract-view-DBmVHV5m-DDZR3cBh.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"postgres-contract-view-CvoOn_Xj-Dr0DQlVT.mjs","names":[],"sources":["../../../../3-targets/postgres/1-target/dist/postgres-contract-view-CvoOn_Xj.mjs"],"sourcesContent":["import { C as PG_TEXT_CODEC_ID, v as PG_INT_CODEC_ID } from \"./codec-ids-D0wjQdEW.mjs\";\nimport { B as postgresTextDataTypes, t as createPostgresBuiltinDataTypeLookup } from \"./data-types-B7S_CHZd.mjs\";\nimport { r as createPostgresBuiltinCodecLookup } from \"./codec-registry-qdVGkdp_.mjs\";\nimport { n as assertFullTextIndexes } from \"./full-text-index-definition-B0kQDs_M.mjs\";\nimport { t as postgresCodecTraitsOf } from \"./postgres-codec-traits-Cpq3LqzZ.mjs\";\nimport { a as nativeEnumEntityKind, c as roleEntityKind, o as policyEntityKind, s as rlsEnablementEntityKind, t as PostgresSchema } from \"./postgres-schema-CNNW8eA3.mjs\";\nimport { n as postgresAuthoringEntityTypes } from \"./authoring-DOlbnTzz.mjs\";\nimport { requiredSchemaKeys } from \"@internal/framework-components/codec\";\nimport { blindCast } from \"@internal/utils/casts\";\nimport { InternalError } from \"@internal/utils/internal-error\";\nimport { UNBOUND_NAMESPACE_ID } from \"@internal/framework-components/ir\";\nimport { isAuthoringEntityTypeDescriptor } from \"@internal/framework-components/authoring\";\nimport { buildSqlSchemaQualifiedView } from \"@internal/sql-contract/contract-view\";\nimport { createPreserveEmptyPredicate } from \"@internal/contract/hashing-utils\";\nimport { SqlContractSerializerBase } from \"@internal/family-sql/ir\";\nimport { sqlContractCanonicalizationHooks } from \"@internal/sql-contract/canonicalization-hooks\";\n//#region src/core/postgres-contract-serializer.ts\nconst POSTGRES_CODEC_LOOKUP = createPostgresBuiltinCodecLookup();\n/** The context entity hydration runs in. Hydration reads stored contract JSON and never a written value, so its data types carry no authoring entries, which keeps the PSL readers out of the runtime. */\nconst POSTGRES_AUTHORING_CTX = {\n\tfamily: \"sql\",\n\ttarget: \"postgres\",\n\tcodecLookup: POSTGRES_CODEC_LOOKUP,\n\tdataTypes: {\n\t\tentries: {},\n\t\tlookup: createPostgresBuiltinDataTypeLookup(),\n\t\tdataTypeOfCodec: (codecId) => POSTGRES_CODEC_LOOKUP.descriptorFor(codecId)?.dataType,\n\t\ttextDataTypes: postgresTextDataTypes\n\t},\n\tenumInferenceCodecs: {\n\t\ttext: PG_TEXT_CODEC_ID,\n\t\tint: PG_INT_CODEC_ID\n\t}\n};\nfunction isAuthoringEntityTypeFactoryOutput(output) {\n\treturn typeof output === \"object\" && output !== null && \"factory\" in output && typeof output.factory === \"function\";\n}\n/**\n* Walks a pack's entity-type namespace tree and emits hydration factories\n* keyed by the descriptor's `discriminator`. Used for `storage.types`\n* (codec-triple hydration). Namespace entries hydration dispatches by\n* entries key, not discriminator — handled by `hydrateNamespaceEntities`.\n*/\nfunction collectStorageTypesHydrators(namespace) {\n\tconst registry = /* @__PURE__ */ new Map();\n\tconst walk = (node) => {\n\t\tfor (const value of Object.values(node)) {\n\t\t\tif (isAuthoringEntityTypeDescriptor(value)) {\n\t\t\t\tif (isAuthoringEntityTypeFactoryOutput(value.output)) {\n\t\t\t\t\tconst { factory } = value.output;\n\t\t\t\t\tregistry.set(value.discriminator, (raw) => factory(raw, POSTGRES_AUTHORING_CTX));\n\t\t\t\t}\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif (typeof value === \"object\" && value !== null) walk(value);\n\t\t}\n\t};\n\twalk(namespace);\n\treturn registry;\n}\n/**\n* The canonicalization walk drops a field whose value equals its type's\n* default, which for a required field of an entity kind means the emitted\n* contract fails that kind's own schema on the next read (a RESTRICTIVE\n* policy's `permissive: false` is the live case). The set of fields that must\n* survive is therefore the required keys of the registered entity kinds —\n* read off the schemas rather than listed by hand, so a kind that gains a\n* required field is covered the day it gains one.\n*/\nfunction requiredEntityFieldsSurviveDefaults(kinds) {\n\treturn createPreserveEmptyPredicate(kinds.flatMap((kind) => requiredKeysOf(kind.schema).map((key) => [\n\t\t\"storage\",\n\t\t\"namespaces\",\n\t\t\"*\",\n\t\t\"entries\",\n\t\tkind.kind,\n\t\t\"*\",\n\t\tkey\n\t])));\n}\nfunction requiredKeysOf(schema) {\n\tconst keys = requiredSchemaKeys(schema);\n\tif (keys === void 0) throw new InternalError(\"entity-kind schema does not expose arktype object props; the required-field preserve set cannot be derived\");\n\treturn keys;\n}\nvar PostgresContractSerializer = class extends SqlContractSerializerBase {\n\tshouldPreserveEmpty;\n\tconstructor(extraPackEntityKinds = []) {\n\t\tconst storageTypesHydrators = collectStorageTypesHydrators(postgresAuthoringEntityTypes);\n\t\tconst entityKinds = [\n\t\t\tpolicyEntityKind,\n\t\t\troleEntityKind,\n\t\t\trlsEnablementEntityKind,\n\t\t\tnativeEnumEntityKind,\n\t\t\t...extraPackEntityKinds\n\t\t];\n\t\tsuper(storageTypesHydrators, entityKinds);\n\t\tconst preserveRequired = requiredEntityFieldsSurviveDefaults(entityKinds);\n\t\tthis.shouldPreserveEmpty = (path) => preserveRequired(path) || sqlContractCanonicalizationHooks.shouldPreserveEmpty(path);\n\t}\n\thydrateSqlNamespaceEntry(nsId, raw) {\n\t\tconst { id, entries } = blindCast(super.hydrateSqlNamespaceEntry(nsId, raw));\n\t\tconst allSlotsEmpty = Object.values(entries).every((slot) => slot === void 0 || Object.keys(slot).length === 0);\n\t\tif (id === UNBOUND_NAMESPACE_ID && allSlotsEmpty) return PostgresSchema.unbound;\n\t\tconst valueSetSlot = entries[\"valueSet\"];\n\t\tconst hasValueSets = valueSetSlot !== void 0 && Object.keys(valueSetSlot).length > 0;\n\t\tconst schema = new PostgresSchema({\n\t\t\tid,\n\t\t\tentries: {\n\t\t\t\t...entries,\n\t\t\t\ttable: entries[\"table\"] ?? {},\n\t\t\t\t...hasValueSets ? { valueSet: valueSetSlot } : {}\n\t\t\t}\n\t\t});\n\t\tfor (const table of Object.values(schema.table)) assertFullTextIndexes(table, postgresCodecTraitsOf);\n\t\treturn schema;\n\t}\n\tserializeContract(contract) {\n\t\tconst { storage, ...rest } = contract;\n\t\tconst namespacesJson = {};\n\t\tfor (const [nsId, ns] of Object.entries(storage.namespaces)) {\n\t\t\tconst isUnboundSlot = ns.id === UNBOUND_NAMESPACE_ID;\n\t\t\tnamespacesJson[nsId] = {\n\t\t\t\tid: ns.id,\n\t\t\t\tkind: isUnboundSlot ? \"postgres-unbound-schema\" : \"postgres-schema\",\n\t\t\t\tentries: this.serializeNamespaceEntries(ns.entries)\n\t\t\t};\n\t\t}\n\t\tconst storageOut = {\n\t\t\tstorageHash: String(storage.storageHash),\n\t\t\tnamespaces: namespacesJson\n\t\t};\n\t\tif (storage.types !== void 0) {\n\t\t\tconst typesOut = {};\n\t\t\tfor (const [name, entry] of Object.entries(storage.types)) typesOut[name] = this.serializeJsonObject(entry);\n\t\t\tstorageOut[\"types\"] = typesOut;\n\t\t}\n\t\treturn blindCast({\n\t\t\t...rest,\n\t\t\tstorage: storageOut\n\t\t});\n\t}\n};\n//#endregion\n//#region src/core/postgres-contract-view.ts\nconst PostgresContractView = {\n\t/** Wrap an already-deserialized Postgres contract in a schema-qualified view. */\n\tfrom(contract) {\n\t\treturn buildSqlSchemaQualifiedView(contract);\n\t},\n\t/** Deserialize a Postgres contract JSON envelope and wrap it in a view. */\n\tfromJson(json) {\n\t\treturn buildSqlSchemaQualifiedView(new PostgresContractSerializer().deserializeContract(json));\n\t}\n};\n//#endregion\nexport { PostgresContractSerializer as n, PostgresContractView as t };\n\n//# sourceMappingURL=postgres-contract-view-CvoOn_Xj.mjs.map"],"mappings":"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"}
1
+ {"version":3,"file":"postgres-contract-view-DBmVHV5m-DDZR3cBh.mjs","names":[],"sources":["../../../../3-targets/postgres/1-target/dist/postgres-contract-view-DBmVHV5m.mjs"],"sourcesContent":["import { C as PG_TEXT_CODEC_ID, v as PG_INT_CODEC_ID } from \"./codec-ids-D0wjQdEW.mjs\";\nimport { B as postgresTextDataTypes, t as createPostgresBuiltinDataTypeLookup } from \"./data-types-DklKHVmp.mjs\";\nimport { r as createPostgresBuiltinCodecLookup } from \"./codec-registry-DVjibYBY.mjs\";\nimport { n as assertFullTextIndexes } from \"./full-text-index-definition-BRNRSgZK.mjs\";\nimport { t as postgresCodecTraitsOf } from \"./postgres-codec-traits-BhLP9ipO.mjs\";\nimport { a as nativeEnumEntityKind, c as roleEntityKind, o as policyEntityKind, s as rlsEnablementEntityKind, t as PostgresSchema } from \"./postgres-schema-CEGf780E.mjs\";\nimport { n as postgresAuthoringEntityTypes } from \"./authoring-Bm8PD9ls.mjs\";\nimport { requiredSchemaKeys } from \"@internal/framework-components/codec\";\nimport { blindCast } from \"@internal/utils/casts\";\nimport { InternalError } from \"@internal/utils/internal-error\";\nimport { UNBOUND_NAMESPACE_ID } from \"@internal/framework-components/ir\";\nimport { isAuthoringEntityTypeDescriptor } from \"@internal/framework-components/authoring\";\nimport { buildSqlSchemaQualifiedView } from \"@internal/sql-contract/contract-view\";\nimport { createPreserveEmptyPredicate } from \"@internal/contract/hashing-utils\";\nimport { SqlContractSerializerBase } from \"@internal/family-sql/ir\";\nimport { sqlContractCanonicalizationHooks } from \"@internal/sql-contract/canonicalization-hooks\";\n//#region src/core/postgres-contract-serializer.ts\nconst POSTGRES_CODEC_LOOKUP = createPostgresBuiltinCodecLookup();\n/** The context entity hydration runs in. Hydration reads stored contract JSON and never a written value, so its data types carry no authoring entries, which keeps the PSL readers out of the runtime. */\nconst POSTGRES_AUTHORING_CTX = {\n\tfamily: \"sql\",\n\ttarget: \"postgres\",\n\tcodecLookup: POSTGRES_CODEC_LOOKUP,\n\tdataTypes: {\n\t\tentries: {},\n\t\tlookup: createPostgresBuiltinDataTypeLookup(),\n\t\tdataTypeOfCodec: (codecId) => POSTGRES_CODEC_LOOKUP.descriptorFor(codecId)?.dataType,\n\t\ttextDataTypes: postgresTextDataTypes\n\t},\n\tenumInferenceCodecs: {\n\t\ttext: PG_TEXT_CODEC_ID,\n\t\tint: PG_INT_CODEC_ID\n\t}\n};\nfunction isAuthoringEntityTypeFactoryOutput(output) {\n\treturn typeof output === \"object\" && output !== null && \"factory\" in output && typeof output.factory === \"function\";\n}\n/**\n* Walks a pack's entity-type namespace tree and emits hydration factories\n* keyed by the descriptor's `discriminator`. Used for `storage.types`\n* (codec-triple hydration). Namespace entries hydration dispatches by\n* entries key, not discriminator — handled by `hydrateNamespaceEntities`.\n*/\nfunction collectStorageTypesHydrators(namespace) {\n\tconst registry = /* @__PURE__ */ new Map();\n\tconst walk = (node) => {\n\t\tfor (const value of Object.values(node)) {\n\t\t\tif (isAuthoringEntityTypeDescriptor(value)) {\n\t\t\t\tif (isAuthoringEntityTypeFactoryOutput(value.output)) {\n\t\t\t\t\tconst { factory } = value.output;\n\t\t\t\t\tregistry.set(value.discriminator, (raw) => factory(raw, POSTGRES_AUTHORING_CTX));\n\t\t\t\t}\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif (typeof value === \"object\" && value !== null) walk(value);\n\t\t}\n\t};\n\twalk(namespace);\n\treturn registry;\n}\n/**\n* The canonicalization walk drops a field whose value equals its type's\n* default, which for a required field of an entity kind means the emitted\n* contract fails that kind's own schema on the next read (a RESTRICTIVE\n* policy's `permissive: false` is the live case). The set of fields that must\n* survive is therefore the required keys of the registered entity kinds —\n* read off the schemas rather than listed by hand, so a kind that gains a\n* required field is covered the day it gains one.\n*/\nfunction requiredEntityFieldsSurviveDefaults(kinds) {\n\treturn createPreserveEmptyPredicate(kinds.flatMap((kind) => requiredKeysOf(kind.schema).map((key) => [\n\t\t\"storage\",\n\t\t\"namespaces\",\n\t\t\"*\",\n\t\t\"entries\",\n\t\tkind.kind,\n\t\t\"*\",\n\t\tkey\n\t])));\n}\nfunction requiredKeysOf(schema) {\n\tconst keys = requiredSchemaKeys(schema);\n\tif (keys === void 0) throw new InternalError(\"entity-kind schema does not expose arktype object props; the required-field preserve set cannot be derived\");\n\treturn keys;\n}\nvar PostgresContractSerializer = class extends SqlContractSerializerBase {\n\tshouldPreserveEmpty;\n\tconstructor(extraPackEntityKinds = []) {\n\t\tconst storageTypesHydrators = collectStorageTypesHydrators(postgresAuthoringEntityTypes);\n\t\tconst entityKinds = [\n\t\t\tpolicyEntityKind,\n\t\t\troleEntityKind,\n\t\t\trlsEnablementEntityKind,\n\t\t\tnativeEnumEntityKind,\n\t\t\t...extraPackEntityKinds\n\t\t];\n\t\tsuper(storageTypesHydrators, entityKinds);\n\t\tconst preserveRequired = requiredEntityFieldsSurviveDefaults(entityKinds);\n\t\tthis.shouldPreserveEmpty = (path) => preserveRequired(path) || sqlContractCanonicalizationHooks.shouldPreserveEmpty(path);\n\t}\n\thydrateSqlNamespaceEntry(nsId, raw) {\n\t\tconst { id, entries } = blindCast(super.hydrateSqlNamespaceEntry(nsId, raw));\n\t\tconst allSlotsEmpty = Object.values(entries).every((slot) => slot === void 0 || Object.keys(slot).length === 0);\n\t\tif (id === UNBOUND_NAMESPACE_ID && allSlotsEmpty) return PostgresSchema.unbound;\n\t\tconst valueSetSlot = entries[\"valueSet\"];\n\t\tconst hasValueSets = valueSetSlot !== void 0 && Object.keys(valueSetSlot).length > 0;\n\t\tconst schema = new PostgresSchema({\n\t\t\tid,\n\t\t\tentries: {\n\t\t\t\t...entries,\n\t\t\t\ttable: entries[\"table\"] ?? {},\n\t\t\t\t...hasValueSets ? { valueSet: valueSetSlot } : {}\n\t\t\t}\n\t\t});\n\t\tfor (const table of Object.values(schema.table)) assertFullTextIndexes(table, postgresCodecTraitsOf);\n\t\treturn schema;\n\t}\n\tserializeContract(contract) {\n\t\tconst { storage, ...rest } = contract;\n\t\tconst namespacesJson = {};\n\t\tfor (const [nsId, ns] of Object.entries(storage.namespaces)) {\n\t\t\tconst isUnboundSlot = ns.id === UNBOUND_NAMESPACE_ID;\n\t\t\tnamespacesJson[nsId] = {\n\t\t\t\tid: ns.id,\n\t\t\t\tkind: isUnboundSlot ? \"postgres-unbound-schema\" : \"postgres-schema\",\n\t\t\t\tentries: this.serializeNamespaceEntries(ns.entries)\n\t\t\t};\n\t\t}\n\t\tconst storageOut = {\n\t\t\tstorageHash: String(storage.storageHash),\n\t\t\tnamespaces: namespacesJson\n\t\t};\n\t\tif (storage.types !== void 0) {\n\t\t\tconst typesOut = {};\n\t\t\tfor (const [name, entry] of Object.entries(storage.types)) typesOut[name] = this.serializeJsonObject(entry);\n\t\t\tstorageOut[\"types\"] = typesOut;\n\t\t}\n\t\treturn blindCast({\n\t\t\t...rest,\n\t\t\tstorage: storageOut\n\t\t});\n\t}\n};\n//#endregion\n//#region src/core/postgres-contract-view.ts\nconst PostgresContractView = {\n\t/** Wrap an already-deserialized Postgres contract in a schema-qualified view. */\n\tfrom(contract) {\n\t\treturn buildSqlSchemaQualifiedView(contract);\n\t},\n\t/** Deserialize a Postgres contract JSON envelope and wrap it in a view. */\n\tfromJson(json) {\n\t\treturn buildSqlSchemaQualifiedView(new PostgresContractSerializer().deserializeContract(json));\n\t}\n};\n//#endregion\nexport { PostgresContractSerializer as n, PostgresContractView as t };\n\n//# sourceMappingURL=postgres-contract-view-DBmVHV5m.mjs.map"],"mappings":"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"}
@@ -1,16 +1,16 @@
1
- import { l as postgresError, n as errorPostgresMigrationStackMissing } from "./errors-Di_apgWJ-BLXRTfFj.mjs";
2
- import { i as PostgresRlsPolicy } from "./postgres-schema-CNNW8eA3-CwosQz5e.mjs";
1
+ import { l as postgresError, n as errorPostgresMigrationStackMissing } from "./errors-DG6xgXgr-Cb1XcPcb.mjs";
2
+ import { i as PostgresRlsPolicy } from "./postgres-schema-CEGf780E-cyGo2Sii.mjs";
3
3
  import { n as PostgresSchemaNodeKind, r as PostgresTableSchemaNode } from "./postgres-table-schema-node-BBkitBQh-Dll8iaZT.mjs";
4
4
  import { n as PostgresNamespaceSchemaNode, r as PostgresPolicySchemaNode, t as PostgresDatabaseSchemaNode } from "./postgres-role-schema-node-B8Z5i5D--BzOKm4N1.mjs";
5
5
  import { t as postgresResolveDefault } from "./default-normalizer-BqK6XxdC-2OUb2ybG.mjs";
6
- import { n as emissionSchemaForNamespace, r as resolveDdlSchemaForNamespaceStorage, t as ddlSchemaOfCallSchema } from "./resolve-ddl-schema-p68Q5F1u-DZAQNXpi.mjs";
6
+ import { n as emissionSchemaForNamespace, r as resolveDdlSchemaForNamespaceStorage, t as ddlSchemaOfCallSchema } from "./resolve-ddl-schema-BhOYD95_-DhUQYNLi.mjs";
7
7
  import { n as defaultPrimaryKeyName, r as defaultUniqueName, t as defaultForeignKeyName } from "./default-constraint-names-Cz9Yoeim-sUzOGvIm.mjs";
8
- import { i as hasAutoincrementDefault } from "./autoincrement-widths-D7Uub-uA-DccZpX6Q.mjs";
9
- import { a as stackDataTypes, o as writtenColumnType } from "./planner-sql-checks-Dhx-R5GJ-GyHfROia.mjs";
10
- import { A as RemoveStoredValueCall, B as SetNotNullCall, C as DropNativeEnumTypeCall, D as DropTableCall, E as DropSchemaCall, F as RenameSchemaCall, H as alterColumnTypeCallText, I as RenameTableCall, K as installExtension, L as ReplaceStoredValueCall, M as RenameConstraintCall, N as RenameIndexCall, O as EnableRowLevelSecurityCall, P as RenamePostgresRlsPolicyCall, S as DropIndexCall, T as DropPostgresRlsPolicyCall, V as SetTableSchemaCall, Y as renameTableStatement, _ as DisableRowLevelSecurityCall, a as AddNativeEnumValueCall, b as DropConstraintCall, c as AddUniqueCall, d as CreateIndexCall, f as CreateNativeEnumTypeCall, h as CreateTableCall, i as AddForeignKeyCall, j as RenameColumnCall, l as AlterColumnTypeCall, m as CreateSchemaCall, n as AddColumnCall, o as AddPrimaryKeyCall, p as CreatePostgresRlsPolicyCall, r as AddColumnWithTemporaryDefaultCall, s as AddRequiredColumnToEmptyTableCall, t as AddCheckConstraintCall, v as DropCheckConstraintCall, w as DropNotNullCall, x as DropDefaultCall, y as DropColumnCall, z as SetDefaultCall } from "./op-factory-call-CUu2s6l7-CaAVzTwP.mjs";
11
- import { l as resolveNamespaceIdForDdlSchema, r as issueNode } from "./control-policy-B1Zvw6VN-DN4QDwpc.mjs";
12
- import { n as contractToPostgresDatabaseSchemaNode, t as buildPostgresPlanDiff } from "./diff-database-schema-ASDRsuei-3Yro3-Tw.mjs";
13
- import { n as PostgresContractView } from "./postgres-contract-view-CvoOn_Xj-Dr0DQlVT.mjs";
8
+ import { i as hasAutoincrementDefault } from "./autoincrement-widths-DkD24r-C-D4O96GJZ.mjs";
9
+ import { a as stackDataTypes, o as writtenColumnType } from "./planner-sql-checks-DOGD6v7y-BWkRMsXt.mjs";
10
+ import { A as RemoveStoredValueCall, B as SetNotNullCall, C as DropNativeEnumTypeCall, D as DropTableCall, E as DropSchemaCall, F as RenameSchemaCall, H as alterColumnTypeCallText, I as RenameTableCall, K as installExtension, L as ReplaceStoredValueCall, M as RenameConstraintCall, N as RenameIndexCall, O as EnableRowLevelSecurityCall, P as RenamePostgresRlsPolicyCall, S as DropIndexCall, T as DropPostgresRlsPolicyCall, V as SetTableSchemaCall, Y as renameTableStatement, _ as DisableRowLevelSecurityCall, a as AddNativeEnumValueCall, b as DropConstraintCall, c as AddUniqueCall, d as CreateIndexCall, f as CreateNativeEnumTypeCall, h as CreateTableCall, i as AddForeignKeyCall, j as RenameColumnCall, l as AlterColumnTypeCall, m as CreateSchemaCall, n as AddColumnCall, o as AddPrimaryKeyCall, p as CreatePostgresRlsPolicyCall, r as AddColumnWithTemporaryDefaultCall, s as AddRequiredColumnToEmptyTableCall, t as AddCheckConstraintCall, v as DropCheckConstraintCall, w as DropNotNullCall, x as DropDefaultCall, y as DropColumnCall, z as SetDefaultCall } from "./op-factory-call-BRaCqnFh-avSVdAgI.mjs";
11
+ import { l as resolveNamespaceIdForDdlSchema, r as issueNode } from "./control-policy-BncmQ6LO-B8SXRfP_.mjs";
12
+ import { n as contractToPostgresDatabaseSchemaNode, t as buildPostgresPlanDiff } from "./diff-database-schema-CcR7BN-A-BuftnIR2.mjs";
13
+ import { n as PostgresContractView } from "./postgres-contract-view-DBmVHV5m-DDZR3cBh.mjs";
14
14
  import { t as dataTransform } from "./data-transform-h9agBu_c-RlC5A7aY.mjs";
15
15
  import { blindCast } from "@prisma/orm-framework/utils/casts";
16
16
  import { UNBOUND_NAMESPACE_ID } from "@prisma/orm-framework/components/ir";
@@ -25,7 +25,7 @@ import { resolveColumnRenameAgainst, resolveTableRenameAgainst, sqlTypeLookupsOf
25
25
  import { errorMigrationOperationOptionRemoved } from "@prisma/orm-framework/errors/migration";
26
26
  import { Migration } from "@prisma/orm-family-sql/family/migration";
27
27
  import { MigrationContractViews } from "@prisma/orm-toolchain/migration-tools/migration";
28
- //#region ../../../3-targets/postgres/1-target/dist/postgres-migration-69O9MUBt.mjs
28
+ //#region ../../../3-targets/postgres/1-target/dist/postgres-migration-DrLpuKus.mjs
29
29
  /**
30
30
  * The Postgres schema tree a contract describes, as the planner's "from" side:
31
31
  * the target descriptor's `migrations.contractToSchema` hook and the trees
@@ -1330,4 +1330,4 @@ function createIndexExtrasOf(extras, index) {
1330
1330
  //#endregion
1331
1331
  export { postgresColumnRenameCall as a, postgresTableRenameByHand as c, renderRenameTableCall as d, pairIndexRenames as i, postgresTableRenameCall as l, createWorkingSchema as n, postgresContractToSchema as o, pairCheckRenames as r, postgresSchemaTables as s, PostgresMigration as t, renameTableByHandStatements as u };
1332
1332
 
1333
- //# sourceMappingURL=postgres-migration-69O9MUBt-BQ1_mj4S.mjs.map
1333
+ //# sourceMappingURL=postgres-migration-DrLpuKus-DOU9Rbkb.mjs.map