@prisma/orm-target-postgres 8.0.0-rc.22-dev.13 → 8.0.0-rc.22-dev.14

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 (153) hide show
  1. package/dist/{adapter-BTT7mZNb-DgNnM6Fx.mjs → adapter-BgEU4rZ4-CnjkLewL.mjs} +3 -3
  2. package/dist/{adapter-BTT7mZNb-DgNnM6Fx.mjs.map → adapter-BgEU4rZ4-CnjkLewL.mjs.map} +1 -1
  3. package/dist/{adapter-Cqm8mgie.d.mts → adapter-dMZYwONo.d.mts} +12 -12
  4. package/dist/{adapter-Cqm8mgie.d.mts.map → adapter-dMZYwONo.d.mts.map} +1 -1
  5. package/dist/adapter.d.mts +6 -6
  6. package/dist/adapter.mjs +2 -2
  7. package/dist/adapter__adapter.d.mts +1 -1
  8. package/dist/adapter__adapter.mjs +2 -2
  9. package/dist/adapter__control.d.mts +1 -1
  10. package/dist/adapter__control.mjs +2 -2
  11. package/dist/adapter__control.mjs.map +1 -1
  12. package/dist/adapter__runtime.d.mts +1 -1
  13. package/dist/adapter__runtime.mjs +2 -2
  14. package/dist/adapter__runtime.mjs.map +1 -1
  15. package/dist/adapter__sql-renderer.d.mts +1 -1
  16. package/dist/adapter__types.d.mts +2 -2
  17. package/dist/{aggregates-C2c48ORM.d.mts → aggregates-0EfVySBb.d.mts} +11 -11
  18. package/dist/{aggregates-C2c48ORM.d.mts.map → aggregates-0EfVySBb.d.mts.map} +1 -1
  19. package/dist/{authoring-BPha5ZXb-DDzFeAur.mjs → authoring-BD4uEpBM-DIJiGq4e.mjs} +6 -4
  20. package/dist/authoring-BD4uEpBM-DIJiGq4e.mjs.map +1 -0
  21. package/dist/{contract-contributions-OLP0SDpr-eaZpGsZF.mjs → contract-contributions-DpTbtESH-CxVtT7cT.mjs} +20 -8
  22. package/dist/contract-contributions-DpTbtESH-CxVtT7cT.mjs.map +1 -0
  23. package/dist/{control-2DHRXqEz.d.mts → control-C8M0RWE6.d.mts} +6 -4
  24. package/dist/{control-2DHRXqEz.d.mts.map → control-C8M0RWE6.d.mts.map} +1 -1
  25. package/dist/{control-B3mLvrSy.d.mts → control-Ci6kSDEg.d.mts} +2 -2
  26. package/dist/{control-B3mLvrSy.d.mts.map → control-Ci6kSDEg.d.mts.map} +1 -1
  27. package/dist/{control-policy-K52VpMX0-CateWffI.mjs → control-policy-BUrgZRnC-BI-Yv8NV.mjs} +18 -6
  28. package/dist/control-policy-BUrgZRnC-BI-Yv8NV.mjs.map +1 -0
  29. package/dist/{data-transform-nGy9rz87-CE3DGlgn.d.mts → data-transform-2o0tpMs8-DADYIvEZ.d.mts} +3 -3
  30. package/dist/{data-transform-nGy9rz87-CE3DGlgn.d.mts.map → data-transform-2o0tpMs8-DADYIvEZ.d.mts.map} +1 -1
  31. package/dist/data-transform-DX9I716A.d.mts +1 -0
  32. package/dist/{descriptor-meta-iTcMZFBI-CPsGItUl.mjs → descriptor-meta-Bj9sQhJn-CMP3p6iz.mjs} +3 -3
  33. package/dist/{descriptor-meta-iTcMZFBI-CPsGItUl.mjs.map → descriptor-meta-Bj9sQhJn-CMP3p6iz.mjs.map} +1 -1
  34. package/dist/{descriptor-meta-isjjnUyM-B-Cvh2Xe.mjs → descriptor-meta-DWKp5Q1s-DplRJE9N.mjs} +3 -3
  35. package/dist/{descriptor-meta-isjjnUyM-B-Cvh2Xe.mjs.map → descriptor-meta-DWKp5Q1s-DplRJE9N.mjs.map} +1 -1
  36. package/dist/{diff-database-schema-D_vOsC7_-CtLt0OwZ.mjs → diff-database-schema-DPsDQkk4-4hkHTHE_.mjs} +10 -7
  37. package/dist/diff-database-schema-DPsDQkk4-4hkHTHE_.mjs.map +1 -0
  38. package/dist/{diff-database-schema-COp7SqEI.d.mts → diff-database-schema-rhLkiByE.d.mts} +2 -2
  39. package/dist/{diff-database-schema-COp7SqEI.d.mts.map → diff-database-schema-rhLkiByE.d.mts.map} +1 -1
  40. package/dist/{indexes-BYf6nXVv-BXwLw7fO.d.mts → indexes-ooG0J-V8-CTm1QvmZ.d.mts} +3 -3
  41. package/dist/{indexes-BYf6nXVv-BXwLw7fO.d.mts.map → indexes-ooG0J-V8-CTm1QvmZ.d.mts.map} +1 -1
  42. package/dist/{infer-psl-contract-GekjNl5K-C4ELCIth.mjs → infer-psl-contract-DR0Uie7w-CkaPSdPc.mjs} +9 -7
  43. package/dist/infer-psl-contract-DR0Uie7w-CkaPSdPc.mjs.map +1 -0
  44. package/dist/{issue-planner-CbixMGS1.d.mts → issue-planner-BlN8mK4E.d.mts} +4 -4
  45. package/dist/{issue-planner-CbixMGS1.d.mts.map → issue-planner-BlN8mK4E.d.mts.map} +1 -1
  46. package/dist/migration-Be_iuIpn.mjs.map +1 -1
  47. package/dist/{migration-XqRvlRWn.d.mts → migration-CCE5d6Hu.d.mts} +6 -6
  48. package/dist/{migration-XqRvlRWn.d.mts.map → migration-CCE5d6Hu.d.mts.map} +1 -1
  49. package/dist/{op-factory-call-DQW9c0ec-C3qv_STE.mjs → op-factory-call-Bgxtheqh-CsY_eFlX.mjs} +20 -10
  50. package/dist/op-factory-call-Bgxtheqh-CsY_eFlX.mjs.map +1 -0
  51. package/dist/{op-factory-call-fPC4Yzy6-B6JHyh7J.d.mts → op-factory-call-CG80t74g-D9tjd13N.d.mts} +9 -9
  52. package/dist/{op-factory-call-fPC4Yzy6-B6JHyh7J.d.mts.map → op-factory-call-CG80t74g-D9tjd13N.d.mts.map} +1 -1
  53. package/dist/op-factory-call-DRapuFEI.d.mts +1 -0
  54. package/dist/{pack-DDHu-CxO.d.mts → pack-BjD3oNln.d.mts} +2 -2
  55. package/dist/{pack-DDHu-CxO.d.mts.map → pack-BjD3oNln.d.mts.map} +1 -1
  56. package/dist/{planner-Cw5KV0_B.d.mts → planner-CyyWVHw4.d.mts} +3 -3
  57. package/dist/{planner-Cw5KV0_B.d.mts.map → planner-CyyWVHw4.d.mts.map} +1 -1
  58. package/dist/{planner-produced-postgres-migration-Dv5BSpUH-0NOLwcM4.mjs → planner-produced-postgres-migration-BYDwCSQf-Bjxf5uvj.mjs} +4 -4
  59. package/dist/{planner-produced-postgres-migration-Dv5BSpUH-0NOLwcM4.mjs.map → planner-produced-postgres-migration-BYDwCSQf-Bjxf5uvj.mjs.map} +1 -1
  60. package/dist/{planner-produced-postgres-migration-DgUtdqVh-DEhVIDmO.d.mts → planner-produced-postgres-migration-CDkRlHah-Cknq9LDt.d.mts} +4 -4
  61. package/dist/planner-produced-postgres-migration-CDkRlHah-Cknq9LDt.d.mts.map +1 -0
  62. package/dist/planner-produced-postgres-migration-Davk_RXL.d.mts +1 -0
  63. package/dist/planner-target-details-boDXR2s7-CExrk6rf.d.mts +21 -0
  64. package/dist/planner-target-details-boDXR2s7-CExrk6rf.d.mts.map +1 -0
  65. package/dist/{planner-CKWtXyFH-BzpDX4M9.mjs → planner-xiEt2PZE-CRK1isjH.mjs} +41 -11
  66. package/dist/planner-xiEt2PZE-CRK1isjH.mjs.map +1 -0
  67. package/dist/{postgres-contract-view-BAuuUjGY-1XcthN9K.mjs → postgres-contract-view-yDfay91x-BBinYMBq.mjs} +3 -3
  68. package/dist/{postgres-contract-view-BAuuUjGY-1XcthN9K.mjs.map → postgres-contract-view-yDfay91x-BBinYMBq.mjs.map} +1 -1
  69. package/dist/{postgres-database-schema-node-BjmJ6_Cs-LyZ0n9oj.d.mts → postgres-database-schema-node-CqEX2NPO-Be-Vk1Iw.d.mts} +19 -6
  70. package/dist/postgres-database-schema-node-CqEX2NPO-Be-Vk1Iw.d.mts.map +1 -0
  71. package/dist/{postgres-migration-MVAsm-Co-CcN0UJd7.d.mts → postgres-migration-DUgkNwUR-B3Hr27gY.d.mts} +9 -14
  72. package/dist/postgres-migration-DUgkNwUR-B3Hr27gY.d.mts.map +1 -0
  73. package/dist/{postgres-migration-uFrgXH6E-DCGpBoJ_.mjs → postgres-migration-DXKKrCKw-CDLugMuf.mjs} +11 -16
  74. package/dist/postgres-migration-DXKKrCKw-CDLugMuf.mjs.map +1 -0
  75. package/dist/{postgres-role-schema-node-DuljIQWp-D6Q5JyEs.mjs → postgres-role-schema-node-yFPLQ6U0-ZCPXs-lG.mjs} +3 -3
  76. package/dist/{postgres-role-schema-node-DuljIQWp-D6Q5JyEs.mjs.map → postgres-role-schema-node-yFPLQ6U0-ZCPXs-lG.mjs.map} +1 -1
  77. package/dist/{postgres-table-schema-node-nY6II-Uv-Bj-lgmSi.mjs → postgres-table-schema-node-OQRI_GIM-DhOVxH8-.mjs} +37 -8
  78. package/dist/postgres-table-schema-node-OQRI_GIM-DhOVxH8-.mjs.map +1 -0
  79. package/dist/{prisma7-binding-D1A_OJe2.mjs → prisma7-binding-BA8iSLxQ.mjs} +4 -4
  80. package/dist/{prisma7-binding-D1A_OJe2.mjs.map → prisma7-binding-BA8iSLxQ.mjs.map} +1 -1
  81. package/dist/{prisma7-binding-ZpDLZt_D.d.mts → prisma7-binding-VYAlkSRR.d.mts} +2 -2
  82. package/dist/{prisma7-binding-ZpDLZt_D.d.mts.map → prisma7-binding-VYAlkSRR.d.mts.map} +1 -1
  83. package/dist/{render-ops-Bl84i7ut.d.mts → render-ops-CEwI8Iyf.d.mts} +2 -2
  84. package/dist/{render-ops-Bl84i7ut.d.mts.map → render-ops-CEwI8Iyf.d.mts.map} +1 -1
  85. package/dist/{render-ops-BKDfKgOJ-DmoHztdY.mjs → render-ops-CXUeDteo-qwmXCohY.mjs} +3 -3
  86. package/dist/{render-ops-BKDfKgOJ-DmoHztdY.mjs.map → render-ops-CXUeDteo-qwmXCohY.mjs.map} +1 -1
  87. package/dist/{resolve-ddl-schema-BZzteXH1-C57Iavtu.mjs → resolve-ddl-schema-DwoTc0nu-CvyB2Tfu.mjs} +3 -8
  88. package/dist/resolve-ddl-schema-DwoTc0nu-CvyB2Tfu.mjs.map +1 -0
  89. package/dist/{runtime-K2strEv6.d.mts → runtime-SZ0CXU1B.d.mts} +2 -2
  90. package/dist/{runtime-K2strEv6.d.mts.map → runtime-SZ0CXU1B.d.mts.map} +1 -1
  91. package/dist/schema-ir-annotations-u590Zxbh.d.mts +10 -0
  92. package/dist/schema-ir-annotations-u590Zxbh.d.mts.map +1 -0
  93. package/dist/{sql-renderer-PT6pQ66O.d.mts → sql-renderer-DAkljp6a.d.mts} +2 -2
  94. package/dist/{sql-renderer-PT6pQ66O.d.mts.map → sql-renderer-DAkljp6a.d.mts.map} +1 -1
  95. package/dist/target.d.mts +20 -20
  96. package/dist/target.mjs +13 -13
  97. package/dist/target__aggregates.d.mts +1 -1
  98. package/dist/target__control.d.mts +1 -1
  99. package/dist/target__control.mjs +11 -11
  100. package/dist/target__control.mjs.map +1 -1
  101. package/dist/target__data-transform.d.mts +2 -2
  102. package/dist/target__diff-database-schema.d.mts +1 -1
  103. package/dist/target__diff-database-schema.mjs +1 -1
  104. package/dist/target__issue-planner.d.mts +1 -1
  105. package/dist/target__issue-planner.mjs +1 -1
  106. package/dist/target__migration.d.mts +3 -3
  107. package/dist/target__migration.mjs +2 -2
  108. package/dist/target__op-factory-call.d.mts +2 -2
  109. package/dist/target__op-factory-call.mjs +1 -1
  110. package/dist/target__pack.d.mts +1 -1
  111. package/dist/target__pack.mjs +1 -1
  112. package/dist/target__planner-produced-postgres-migration.d.mts +2 -2
  113. package/dist/target__planner-produced-postgres-migration.mjs +1 -1
  114. package/dist/target__planner-target-details.d.mts +1 -1
  115. package/dist/target__planner.d.mts +1 -1
  116. package/dist/target__planner.mjs +2 -2
  117. package/dist/target__prisma7-binding.d.mts +1 -1
  118. package/dist/target__prisma7-binding.mjs +1 -1
  119. package/dist/target__render-ops.d.mts +1 -1
  120. package/dist/target__render-ops.mjs +1 -1
  121. package/dist/target__runtime.mjs +1 -1
  122. package/dist/target__runtime.mjs.map +1 -1
  123. package/dist/target__schema-ir-annotations.d.mts +1 -1
  124. package/dist/target__schema-ir-annotations.mjs +1 -1
  125. package/dist/target__types.d.mts +2 -2
  126. package/dist/target__types.mjs +2 -2
  127. package/dist/{types-D6p1198n.d.mts → types-BbuQ92k_.d.mts} +2 -2
  128. package/dist/{types-D6p1198n.d.mts.map → types-BbuQ92k_.d.mts.map} +1 -1
  129. package/dist/types-D6WI1IFf.d.mts +2 -0
  130. package/dist/{types-D6lgKhE5-DVHMZPbP.d.mts → types-D6lgKhE5-DEwv-pSi.d.mts} +2 -2
  131. package/dist/{types-D6lgKhE5-DVHMZPbP.d.mts.map → types-D6lgKhE5-DEwv-pSi.d.mts.map} +1 -1
  132. package/package.json +10 -10
  133. package/dist/authoring-BPha5ZXb-DDzFeAur.mjs.map +0 -1
  134. package/dist/contract-contributions-OLP0SDpr-eaZpGsZF.mjs.map +0 -1
  135. package/dist/control-policy-K52VpMX0-CateWffI.mjs.map +0 -1
  136. package/dist/data-transform-nqkqNIb8.d.mts +0 -1
  137. package/dist/diff-database-schema-D_vOsC7_-CtLt0OwZ.mjs.map +0 -1
  138. package/dist/infer-psl-contract-GekjNl5K-C4ELCIth.mjs.map +0 -1
  139. package/dist/op-factory-call-DO-2Ul_8.d.mts +0 -1
  140. package/dist/op-factory-call-DQW9c0ec-C3qv_STE.mjs.map +0 -1
  141. package/dist/planner-CKWtXyFH-BzpDX4M9.mjs.map +0 -1
  142. package/dist/planner-produced-postgres-migration-CoX6OBqo.d.mts +0 -1
  143. package/dist/planner-produced-postgres-migration-DgUtdqVh-DEhVIDmO.d.mts.map +0 -1
  144. package/dist/planner-target-details-HkP4RrRO-D6VtK0jY.d.mts +0 -12
  145. package/dist/planner-target-details-HkP4RrRO-D6VtK0jY.d.mts.map +0 -1
  146. package/dist/postgres-database-schema-node-BjmJ6_Cs-LyZ0n9oj.d.mts.map +0 -1
  147. package/dist/postgres-migration-MVAsm-Co-CcN0UJd7.d.mts.map +0 -1
  148. package/dist/postgres-migration-uFrgXH6E-DCGpBoJ_.mjs.map +0 -1
  149. package/dist/postgres-table-schema-node-nY6II-Uv-Bj-lgmSi.mjs.map +0 -1
  150. package/dist/resolve-ddl-schema-BZzteXH1-C57Iavtu.mjs.map +0 -1
  151. package/dist/schema-ir-annotations-BygaWBiC.d.mts +0 -15
  152. package/dist/schema-ir-annotations-BygaWBiC.d.mts.map +0 -1
  153. package/dist/types-oaZIR8i0.d.mts +0 -2
@@ -1,7 +1,8 @@
1
1
  import { blindCast } from "@prisma/orm-framework/utils/casts";
2
2
  import { freezeNode } from "@prisma/orm-framework/components/ir";
3
+ import { invariant } from "@prisma/orm-framework/utils/assertions";
3
4
  import { PrimaryKey, SqlCheckConstraintIR, SqlColumnIR, SqlForeignKeyIR, SqlIndexIR, SqlSchemaIRNode, SqlUniqueIR, assertNode, relationalNodeEntityKind, relationalNodeGranularity } from "@prisma/orm-family-sql/schema-ir/types";
4
- //#region ../../../3-targets/postgres/1-target/dist/postgres-table-schema-node-nY6II-Uv.mjs
5
+ //#region ../../../3-targets/postgres/1-target/dist/postgres-table-schema-node-OQRI_GIM.mjs
5
6
  /**
6
7
  * The `nodeKind` discriminant for each Postgres schema-diff node. Each node
7
8
  * carries a unique value; the static `is`/`assert` guards compare against these
@@ -87,16 +88,19 @@ function postgresDiffSubjectEntityKind(nodeKind) {
87
88
  return isPostgresSchemaNodeKind(nodeKind) ? postgresNodeEntityKind(nodeKind) : relationalNodeEntityKind(nodeKind);
88
89
  }
89
90
  /**
90
- * Schema-diff node for an installed Postgres extension. An extension's name is unique in the whole database, so the node sits on the database root and pairs by name alone; the schema holding its objects is compared, so an extension in another schema is one mismatch rather than a missing and an extra extension.
91
+ * Schema-diff node for a Postgres extension. An extension's name is unique in the whole database, so the node sits on the database root and pairs by name alone; its location is compared, so an extension in another schema is one mismatch rather than a missing and an extra extension. An extension the contract leaves to the search path matches an installed one in any schema on the installed node's search path, and any contract-side node, since only a connection decides where it is. An extension a contract declares in a schema never matches one an earlier contract left to the search path, because it may be in any schema on it: the planner moves it with a checked `ALTER EXTENSION … SET SCHEMA`, which the runner skips when it is already there.
91
92
  */
92
93
  var PostgresExtensionSchemaNode = class PostgresExtensionSchemaNode extends SqlSchemaIRNode {
93
94
  nodeKind = PostgresSchemaNodeKind.extension;
94
95
  name;
95
- schemaName;
96
+ location;
96
97
  constructor(input) {
97
98
  super();
98
99
  this.name = input.name;
99
- this.schemaName = input.schemaName;
100
+ this.location = input.location.kind === "installed" ? Object.freeze({
101
+ ...input.location,
102
+ searchPath: Object.freeze([...input.location.searchPath])
103
+ }) : Object.freeze({ ...input.location });
100
104
  if (input.control !== void 0) this.control = input.control;
101
105
  freezeNode(this);
102
106
  }
@@ -109,14 +113,28 @@ var PostgresExtensionSchemaNode = class PostgresExtensionSchemaNode extends SqlS
109
113
  isEqualTo(other) {
110
114
  const node = blindCast(other);
111
115
  PostgresExtensionSchemaNode.assert(node);
112
- return this.name === node.name && this.schemaName === node.schemaName;
116
+ if (this.name !== node.name) return false;
117
+ if (this.location.kind === "searchPath") return node.location.kind !== "installed" || isOnSearchPath(node.location);
118
+ if (node.location.kind === "searchPath") return false;
119
+ return this.location.schemaName === node.location.schemaName;
113
120
  }
114
121
  explainMismatch(actual) {
115
122
  if (actual === void 0) return void 0;
116
123
  const node = blindCast(actual);
117
124
  if (!PostgresExtensionSchemaNode.is(node)) return void 0;
125
+ if (this.location.kind === "searchPath") {
126
+ invariant(node.location.kind === "installed", "an extension left to the search path differs only from an installed extension");
127
+ return {
128
+ text: `extension "${this.name}" ${offSearchPathText(node.location)}. ${searchPathFix(node.location)}`,
129
+ cause: "differs"
130
+ };
131
+ }
132
+ if (node.location.kind === "searchPath") return {
133
+ text: `extension "${this.name}" was left to the search path, so it may be in any schema on it, and the contract declares it in schema "${this.location.schemaName}"`,
134
+ cause: "differs"
135
+ };
118
136
  return {
119
- text: `extension "${this.name}" is installed in schema "${node.schemaName}", and the contract declares it in schema "${this.schemaName}"`,
137
+ text: `extension "${this.name}" is installed in schema "${node.location.schemaName}", and the contract declares it in schema "${this.location.schemaName}"`,
120
138
  cause: "differs"
121
139
  };
122
140
  }
@@ -127,6 +145,17 @@ var PostgresExtensionSchemaNode = class PostgresExtensionSchemaNode extends SqlS
127
145
  assertNode(node, "PostgresExtensionSchemaNode", PostgresExtensionSchemaNode.is);
128
146
  }
129
147
  };
148
+ function isOnSearchPath(location) {
149
+ return location.searchPath.includes(location.schemaName);
150
+ }
151
+ /** Names the schema an extension is installed in and the search path that does not include it. */
152
+ function offSearchPathText(location) {
153
+ return `is installed in schema "${location.schemaName}", which is not on the search path (${location.searchPath.join(", ")})`;
154
+ }
155
+ /** What fixes an extension installed in a schema off the search path. */
156
+ function searchPathFix(location) {
157
+ return `Add schema "${location.schemaName}" to the connection's search_path, or reinstall the extension in a schema on it.`;
158
+ }
130
159
  /**
131
160
  * Schema-diff leaf node for a native Postgres enum type.
132
161
  *
@@ -251,6 +280,6 @@ var PostgresTableSchemaNode = class PostgresTableSchemaNode extends SqlSchemaIRN
251
280
  }
252
281
  };
253
282
  //#endregion
254
- export { postgresDiffSubjectEntityKind as a, PostgresTableSchemaNode as i, PostgresNativeEnumSchemaNode as n, postgresDiffSubjectGranularity as o, PostgresSchemaNodeKind as r, postgresNodeEntityKind as s, PostgresExtensionSchemaNode as t };
283
+ export { offSearchPathText as a, postgresNodeEntityKind as c, PostgresTableSchemaNode as i, searchPathFix as l, PostgresNativeEnumSchemaNode as n, postgresDiffSubjectEntityKind as o, PostgresSchemaNodeKind as r, postgresDiffSubjectGranularity as s, PostgresExtensionSchemaNode as t };
255
284
 
256
- //# sourceMappingURL=postgres-table-schema-node-nY6II-Uv-Bj-lgmSi.mjs.map
285
+ //# sourceMappingURL=postgres-table-schema-node-OQRI_GIM-DhOVxH8-.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"postgres-table-schema-node-OQRI_GIM-DhOVxH8-.mjs","names":[],"sources":["../../../../3-targets/postgres/1-target/dist/postgres-table-schema-node-OQRI_GIM.mjs"],"sourcesContent":["import { blindCast } from \"@internal/utils/casts\";\nimport { freezeNode } from \"@internal/framework-components/ir\";\nimport { invariant } from \"@internal/utils/assertions\";\nimport { PrimaryKey, SqlCheckConstraintIR, SqlColumnIR, SqlForeignKeyIR, SqlIndexIR, SqlSchemaIRNode, SqlUniqueIR, assertNode, relationalNodeEntityKind, relationalNodeGranularity } from \"@internal/sql-schema-ir/types\";\n//#region src/core/schema-ir/schema-node-kinds.ts\n/**\n* The `nodeKind` discriminant for each Postgres schema-diff node. Each node\n* carries a unique value; the static `is`/`assert` guards compare against these\n* identifiers rather than spelling the string inline or using `instanceof`. The\n* field is an enumerable own property carried on every node instance.\n*/\nconst PostgresSchemaNodeKind = {\n\tdatabase: \"postgres-database\",\n\tnamespace: \"postgres-namespace\",\n\ttable: \"postgres-table\",\n\tpolicy: \"postgres-policy\",\n\trole: \"postgres-role\",\n\tnativeEnum: \"postgres-native-enum\",\n\textension: \"postgres-extension\"\n};\n/**\n* The one real map from a Postgres-specific `nodeKind` to the\n* framework-neutral {@link DiffSubjectGranularity} its diff issues carry —\n* resolution is by `nodeKind` equality against this map, never a\n* `nodeKind`-suffix string match and never anything stamped on the node.\n*/\nconst POSTGRES_NODE_GRANULARITY = {\n\t[PostgresSchemaNodeKind.database]: \"structural\",\n\t[PostgresSchemaNodeKind.namespace]: \"namespace\",\n\t[PostgresSchemaNodeKind.table]: \"entity\",\n\t[PostgresSchemaNodeKind.policy]: \"structural\",\n\t[PostgresSchemaNodeKind.role]: \"structural\",\n\t[PostgresSchemaNodeKind.nativeEnum]: \"entity\",\n\t[PostgresSchemaNodeKind.extension]: \"entity\"\n};\nfunction isPostgresSchemaNodeKind(nodeKind) {\n\treturn Object.hasOwn(POSTGRES_NODE_GRANULARITY, nodeKind);\n}\n/** Looks up the subject granularity for a Postgres-specific `nodeKind`. */\nfunction postgresNodeGranularity(nodeKind) {\n\treturn POSTGRES_NODE_GRANULARITY[nodeKind];\n}\n/**\n* The subject granularity for any node kind that appears in a Postgres diff\n* tree — the tree mixes Postgres-specific kinds (database/namespace/table/\n* policy/role) with the relational leaf kinds (columns, constraints, indexes,\n* …), so this dispatches to whichever family/target map owns the kind. Called\n* on demand by consumers (the family verdict, the framework aggregate's\n* unclaimed-elements sweep, via the {@link\n* import('@internal/framework-components/control').SchemaSubjectClassifierCapable}\n* capability) — never stamped onto the issue or the node.\n*/\nfunction postgresDiffSubjectGranularity(nodeKind) {\n\treturn isPostgresSchemaNodeKind(nodeKind) ? postgresNodeGranularity(nodeKind) : relationalNodeGranularity(nodeKind);\n}\n/**\n* The map from a Postgres-specific `nodeKind` to its storage `entityKind` — the\n* same vocabulary the contract storage's `entries` dictionary keys use. The\n* whole-table and native-enum kinds each have an entity of their own;\n* database/namespace/policy/role nodes map to nothing here (a namespace is\n* addressed by id, not by an `entries` kind; policies and roles are\n* structural, never a sibling space's unclaimed entity).\n*\n* The native enum keys under its PHYSICAL type name in `entries.native_enum`\n* (ADR 221), so its diff node's `typeName` addresses the entity on the generic\n* coordinate directly — no by-type-name walk needed. This lets the framework's\n* unclaimed-elements sweep classify enum ownership the same coordinate way it\n* classifies tables.\n*/\nconst POSTGRES_NODE_ENTITY_KIND = {\n\t[PostgresSchemaNodeKind.table]: \"table\",\n\t[PostgresSchemaNodeKind.nativeEnum]: \"native_enum\",\n\t[PostgresSchemaNodeKind.extension]: \"extension\"\n};\n/** Looks up the storage entityKind for a Postgres-specific `nodeKind`. */\nfunction postgresNodeEntityKind(nodeKind) {\n\treturn POSTGRES_NODE_ENTITY_KIND[nodeKind];\n}\n/**\n* The storage `entityKind` for any node kind that appears in a Postgres diff\n* tree — sibling of {@link postgresDiffSubjectGranularity}, dispatching the\n* same way to whichever family/target map owns the kind. Called on demand by\n* the framework aggregate's unclaimed-elements sweep via the {@link\n* import('@internal/framework-components/control').SchemaSubjectClassifierCapable}\n* capability — never stamped onto the issue or the node.\n*/\nfunction postgresDiffSubjectEntityKind(nodeKind) {\n\treturn isPostgresSchemaNodeKind(nodeKind) ? postgresNodeEntityKind(nodeKind) : relationalNodeEntityKind(nodeKind);\n}\n//#endregion\n//#region src/core/schema-ir/postgres-extension-schema-node.ts\n/**\n* Schema-diff node for a Postgres extension. An extension's name is unique in the whole database, so the node sits on the database root and pairs by name alone; its location is compared, so an extension in another schema is one mismatch rather than a missing and an extra extension. An extension the contract leaves to the search path matches an installed one in any schema on the installed node's search path, and any contract-side node, since only a connection decides where it is. An extension a contract declares in a schema never matches one an earlier contract left to the search path, because it may be in any schema on it: the planner moves it with a checked `ALTER EXTENSION … SET SCHEMA`, which the runner skips when it is already there.\n*/\nvar PostgresExtensionSchemaNode = class PostgresExtensionSchemaNode extends SqlSchemaIRNode {\n\tnodeKind = PostgresSchemaNodeKind.extension;\n\tname;\n\tlocation;\n\tconstructor(input) {\n\t\tsuper();\n\t\tthis.name = input.name;\n\t\tthis.location = input.location.kind === \"installed\" ? Object.freeze({\n\t\t\t...input.location,\n\t\t\tsearchPath: Object.freeze([...input.location.searchPath])\n\t\t}) : Object.freeze({ ...input.location });\n\t\tif (input.control !== void 0) this.control = input.control;\n\t\tfreezeNode(this);\n\t}\n\tget id() {\n\t\treturn this.name;\n\t}\n\tchildren() {\n\t\treturn [];\n\t}\n\tisEqualTo(other) {\n\t\tconst node = blindCast(other);\n\t\tPostgresExtensionSchemaNode.assert(node);\n\t\tif (this.name !== node.name) return false;\n\t\tif (this.location.kind === \"searchPath\") return node.location.kind !== \"installed\" || isOnSearchPath(node.location);\n\t\tif (node.location.kind === \"searchPath\") return false;\n\t\treturn this.location.schemaName === node.location.schemaName;\n\t}\n\texplainMismatch(actual) {\n\t\tif (actual === void 0) return void 0;\n\t\tconst node = blindCast(actual);\n\t\tif (!PostgresExtensionSchemaNode.is(node)) return void 0;\n\t\tif (this.location.kind === \"searchPath\") {\n\t\t\tinvariant(node.location.kind === \"installed\", \"an extension left to the search path differs only from an installed extension\");\n\t\t\treturn {\n\t\t\t\ttext: `extension \"${this.name}\" ${offSearchPathText(node.location)}. ${searchPathFix(node.location)}`,\n\t\t\t\tcause: \"differs\"\n\t\t\t};\n\t\t}\n\t\tif (node.location.kind === \"searchPath\") return {\n\t\t\ttext: `extension \"${this.name}\" was left to the search path, so it may be in any schema on it, and the contract declares it in schema \"${this.location.schemaName}\"`,\n\t\t\tcause: \"differs\"\n\t\t};\n\t\treturn {\n\t\t\ttext: `extension \"${this.name}\" is installed in schema \"${node.location.schemaName}\", and the contract declares it in schema \"${this.location.schemaName}\"`,\n\t\t\tcause: \"differs\"\n\t\t};\n\t}\n\tstatic is(node) {\n\t\treturn node.nodeKind === PostgresSchemaNodeKind.extension;\n\t}\n\tstatic assert(node) {\n\t\tassertNode(node, \"PostgresExtensionSchemaNode\", PostgresExtensionSchemaNode.is);\n\t}\n};\nfunction isOnSearchPath(location) {\n\treturn location.searchPath.includes(location.schemaName);\n}\n/** Names the schema an extension is installed in and the search path that does not include it. */\nfunction offSearchPathText(location) {\n\treturn `is installed in schema \"${location.schemaName}\", which is not on the search path (${location.searchPath.join(\", \")})`;\n}\n/** What fixes an extension installed in a schema off the search path. */\nfunction searchPathFix(location) {\n\treturn `Add schema \"${location.schemaName}\" to the connection's search_path, or reinstall the extension in a schema on it.`;\n}\n//#endregion\n//#region src/core/schema-ir/postgres-native-enum-schema-node.ts\n/**\n* Schema-diff leaf node for a native Postgres enum type.\n*\n* This is a derived, transient node walked by the differ — it is NEVER\n* serialized. Both sides derive it on the namespace node: the expected side\n* from the contract's hydrated `entries.native_enum` entities, the actual\n* side from the adapter's introspected `nativeEnums`.\n*\n* Enum types are schema-scoped, so identity is (namespace, type name): the\n* namespace coordinate comes from tree position (the differ pairs enum nodes\n* only inside an already-paired namespace) and `id` carries the type name,\n* prefixed with the entries-kind vocabulary (`native_enum:<typeName>`) so it\n* cannot collide with a sibling table of the same name — the same\n* sibling-prefix convention relational column nodes use (`column:<name>`).\n*\n* `isEqualTo` compares members POSITIONALLY — `['a','b'] ≠ ['b','a']` —\n* because Postgres enum sort order is semantic. `control` is contract\n* metadata, not database state, and does not participate in equality.\n*/\nvar PostgresNativeEnumSchemaNode = class PostgresNativeEnumSchemaNode extends SqlSchemaIRNode {\n\tnodeKind = PostgresSchemaNodeKind.nativeEnum;\n\ttypeName;\n\tnamespaceId;\n\tmembers;\n\tconstructor(input) {\n\t\tsuper();\n\t\tthis.typeName = input.typeName;\n\t\tthis.namespaceId = input.namespaceId;\n\t\tthis.members = Object.freeze([...input.members]);\n\t\tif (input.control !== void 0) this.control = input.control;\n\t\tfreezeNode(this);\n\t}\n\tget id() {\n\t\treturn `native_enum:${this.typeName}`;\n\t}\n\tchildren() {\n\t\treturn [];\n\t}\n\tisEqualTo(other) {\n\t\tconst node = blindCast(other);\n\t\tPostgresNativeEnumSchemaNode.assert(node);\n\t\treturn this.typeName === node.typeName && this.members.length === node.members.length && this.members.every((member, index) => member === node.members[index]);\n\t}\n\tstatic is(node) {\n\t\treturn node.nodeKind === PostgresSchemaNodeKind.nativeEnum;\n\t}\n\tstatic assert(node) {\n\t\tassertNode(node, \"PostgresNativeEnumSchemaNode\", PostgresNativeEnumSchemaNode.is);\n\t}\n};\n//#endregion\n//#region src/core/schema-ir/postgres-table-schema-node.ts\n/**\n* Postgres-specific table schema-diff node. Carries all `SqlTableIR` fields\n* plus `policies`, and implements `DiffableNode` so the table instance is\n* directly the diff-tree node — no separate wrapper needed.\n*\n* Extends `SqlSchemaIRNode` directly rather than `SqlTableIR` because\n* `SqlTableIR` calls `freezeNode` in its own constructor, which prevents\n* subclass field initialisation.\n*\n* `id` is the table name. `isEqualTo` compares id + `rlsEnabled` — the\n* table's one own diffable attribute; all other structural drift is\n* expressed by its children. `children()` returns every column, the primary\n* key (when present), every foreign key, unique, index, and check constraint,\n* plus the policy nodes — one flat list, so a drifted column and a drifted\n* policy are both reported by the same walk. Order is deterministic (object\n* key order for columns, array order for the rest) so two structurally equal\n* tables always produce the same child list.\n*/\nvar PostgresTableSchemaNode = class PostgresTableSchemaNode extends SqlSchemaIRNode {\n\tnodeKind = PostgresSchemaNodeKind.table;\n\tname;\n\tcolumns;\n\tforeignKeys;\n\tuniques;\n\tindexes;\n\tpolicies;\n\trlsEnabled;\n\tconstructor(input) {\n\t\tsuper();\n\t\tthis.name = input.name;\n\t\tthis.rlsEnabled = input.rlsEnabled;\n\t\tthis.columns = Object.freeze(Object.fromEntries(Object.entries(input.columns).map(([key, col]) => [key, col instanceof SqlColumnIR ? col : new SqlColumnIR(col)])));\n\t\tthis.foreignKeys = Object.freeze(input.foreignKeys.map((fk) => fk instanceof SqlForeignKeyIR ? fk : new SqlForeignKeyIR(fk)));\n\t\tthis.uniques = Object.freeze(input.uniques.map((u) => u instanceof SqlUniqueIR ? u : new SqlUniqueIR(u)));\n\t\tthis.indexes = Object.freeze(input.indexes.map((i) => i instanceof SqlIndexIR ? i : new SqlIndexIR(i)));\n\t\tif (input.primaryKey !== void 0) this.primaryKey = input.primaryKey instanceof PrimaryKey ? input.primaryKey : new PrimaryKey(input.primaryKey);\n\t\tif (input.annotations !== void 0) this.annotations = input.annotations;\n\t\tif (input.checks !== void 0 && input.checks.length > 0) this.checks = Object.freeze(input.checks.map((c) => c instanceof SqlCheckConstraintIR ? c : new SqlCheckConstraintIR(c)));\n\t\tthis.policies = Object.freeze([...input.policies ?? []]);\n\t\tfreezeNode(this);\n\t}\n\tget id() {\n\t\treturn this.name;\n\t}\n\t/**\n\t* Equal iff the ids (names) match AND `rlsEnabled` matches — the table's\n\t* one own attribute in the diff; all other structural drift is expressed\n\t* by children. A paired `not-equal` therefore always means enablement\n\t* drift, which the planner maps to ENABLE/DISABLE ROW LEVEL SECURITY.\n\t*/\n\tisEqualTo(other) {\n\t\tconst node = blindCast(other);\n\t\tPostgresTableSchemaNode.assert(node);\n\t\treturn this.id === node.id && this.rlsEnabled === node.rlsEnabled;\n\t}\n\tchildren() {\n\t\treturn [\n\t\t\t...Object.values(this.columns),\n\t\t\t...this.primaryKey ? [this.primaryKey] : [],\n\t\t\t...this.foreignKeys,\n\t\t\t...this.uniques,\n\t\t\t...this.indexes,\n\t\t\t...this.checks ?? [],\n\t\t\t...this.policies\n\t\t];\n\t}\n\tstatic is(node) {\n\t\treturn node.nodeKind === PostgresSchemaNodeKind.table;\n\t}\n\tstatic assert(node) {\n\t\tassertNode(node, \"PostgresTableSchemaNode\", PostgresTableSchemaNode.is);\n\t}\n};\n//#endregion\nexport { searchPathFix as a, postgresDiffSubjectGranularity as c, offSearchPathText as i, postgresNodeEntityKind as l, PostgresNativeEnumSchemaNode as n, PostgresSchemaNodeKind as o, PostgresExtensionSchemaNode as r, postgresDiffSubjectEntityKind as s, PostgresTableSchemaNode as t };\n\n//# sourceMappingURL=postgres-table-schema-node-OQRI_GIM.mjs.map"],"mappings":";;;;;;;;;;;AAWA,MAAM,yBAAyB;CAC9B,UAAU;CACV,WAAW;CACX,OAAO;CACP,QAAQ;CACR,MAAM;CACN,YAAY;CACZ,WAAW;AACZ;;;;;;;AAOA,MAAM,4BAA4B;EAChC,uBAAuB,WAAW;EAClC,uBAAuB,YAAY;EACnC,uBAAuB,QAAQ;EAC/B,uBAAuB,SAAS;EAChC,uBAAuB,OAAO;EAC9B,uBAAuB,aAAa;EACpC,uBAAuB,YAAY;AACrC;AACA,SAAS,yBAAyB,UAAU;CAC3C,OAAO,OAAO,OAAO,2BAA2B,QAAQ;AACzD;;AAEA,SAAS,wBAAwB,UAAU;CAC1C,OAAO,0BAA0B;AAClC;;;;;;;;;;;AAWA,SAAS,+BAA+B,UAAU;CACjD,OAAO,yBAAyB,QAAQ,IAAI,wBAAwB,QAAQ,IAAI,0BAA0B,QAAQ;AACnH;;;;;;;;;;;;;;;AAeA,MAAM,4BAA4B;EAChC,uBAAuB,QAAQ;EAC/B,uBAAuB,aAAa;EACpC,uBAAuB,YAAY;AACrC;;AAEA,SAAS,uBAAuB,UAAU;CACzC,OAAO,0BAA0B;AAClC;;;;;;;;;AASA,SAAS,8BAA8B,UAAU;CAChD,OAAO,yBAAyB,QAAQ,IAAI,uBAAuB,QAAQ,IAAI,yBAAyB,QAAQ;AACjH;;;;AAMA,IAAI,8BAA8B,MAAM,oCAAoC,gBAAgB;CAC3F,WAAW,uBAAuB;CAClC;CACA;CACA,YAAY,OAAO;EAClB,MAAM;E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O,KAAK,OAAO;GAC7B,GAAG,KAAK,aAAa,CAAC,KAAK,UAAU,IAAI,CAAC;GAC1C,GAAG,KAAK;GACR,GAAG,KAAK;GACR,GAAG,KAAK;GACR,GAAG,KAAK,UAAU,CAAC;GACnB,GAAG,KAAK;EACT;CACD;CACA,OAAO,GAAG,MAAM;EACf,OAAO,KAAK,aAAa,uBAAuB;CACjD;CACA,OAAO,OAAO,MAAM;EACnB,WAAW,MAAM,2BAA2B,wBAAwB,EAAE;CACvE;AACD"}
@@ -2,14 +2,14 @@ import { r as inlineLiteral } from "./sql-utils-VXrIh8dJ-DVxo_Ygp.mjs";
2
2
  import { A as pgJson, G as pgTimestamptz, U as pgTimestamp, V as pgTime, et as postgresDataTypes, j as pgJsonb, p as pgBytea, q as pgTimetz, rt as postgresYearText, v as pgDate } from "./data-types-B47LbZ3z-DRVqjvQZ.mjs";
3
3
  import { v as postgresCreateNamespace } from "./postgres-schema-BBWgs4fX-DWdYxNi8.mjs";
4
4
  import { t as postgresDataTypeEntries } from "./data-type-entries-dmLDRSOf-BJADXpXD.mjs";
5
- import { n as prisma7PostgresTypeMap, t as postgresTargetDescriptorMeta } from "./descriptor-meta-isjjnUyM-B-Cvh2Xe.mjs";
5
+ import { n as prisma7PostgresTypeMap, t as postgresTargetDescriptorMeta } from "./descriptor-meta-DWKp5Q1s-DplRJE9N.mjs";
6
6
  import { n as defaultPrimaryKeyName, t as defaultForeignKeyName } from "./default-constraint-names-Cz9Yoeim-sUzOGvIm.mjs";
7
- import { d as createPostgresDefaultMapping, h as noInferredDefaults, m as noColumnDefaults, u as buildPslDocumentAst } from "./infer-psl-contract-GekjNl5K-C4ELCIth.mjs";
7
+ import { d as createPostgresDefaultMapping, h as noInferredDefaults, m as noColumnDefaults, u as buildPslDocumentAst } from "./infer-psl-contract-DR0Uie7w-CkaPSdPc.mjs";
8
8
  import { InternalError } from "@prisma/orm-framework/utils/internal-error";
9
9
  import { isSqlDataType, renderSqlTypeName } from "@prisma/orm-family-sql/contract/data-type";
10
+ import { flatPslModels } from "@prisma/orm-framework/components/psl-ast";
10
11
  import { SqlSchemaIR, SqlTableIR } from "@prisma/orm-family-sql/schema-ir/types";
11
12
  import { toModelName } from "@prisma/orm-family-sql/family/psl-infer";
12
- import { flatPslModels } from "@prisma/orm-framework/components/psl-ast";
13
13
  //#region ../../../3-targets/postgres/1-target/dist/prisma7-binding.mjs
14
14
  const RFC_3339 = /^(\d{4}-\d{2}-\d{2})[Tt ](\d{2}:\d{2}:\d{2}(?:\.\d+)?)([Zz]|[+-]\d{2}:\d{2})$/;
15
15
  /**
@@ -270,4 +270,4 @@ const prisma7PostgresBinding = {
270
270
  //#endregion
271
271
  export { prisma7PostgresBinding as t };
272
272
 
273
- //# sourceMappingURL=prisma7-binding-D1A_OJe2.mjs.map
273
+ //# sourceMappingURL=prisma7-binding-BA8iSLxQ.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"prisma7-binding-D1A_OJe2.mjs","names":[],"sources":["../../../../3-targets/postgres/1-target/dist/prisma7-binding.mjs"],"sourcesContent":["import { G as postgresDataTypes, I as pgTimestamptz, M as pgTime, P as pgTimestamp, R as pgTimetz, S as pgJsonb, Y as postgresYearText, s as pgBytea, u as pgDate, x as pgJson } from \"./data-types-B47LbZ3z.mjs\";\nimport { r as inlineLiteral } from \"./sql-utils-VXrIh8dJ.mjs\";\nimport { t as postgresDataTypeEntries } from \"./data-type-entries-dmLDRSOf.mjs\";\nimport { i as postgresCreateNamespace } from \"./postgres-schema-BBWgs4fX.mjs\";\nimport { n as prisma7PostgresTypeMap, t as postgresTargetDescriptorMeta } from \"./descriptor-meta-isjjnUyM.mjs\";\nimport { n as defaultPrimaryKeyName, t as defaultForeignKeyName } from \"./default-constraint-names-Cz9Yoeim.mjs\";\nimport { i as noInferredDefaults, r as createPostgresDefaultMapping, t as buildPslDocumentAst, u as noColumnDefaults } from \"./infer-psl-contract-GekjNl5K.mjs\";\nimport { isSqlDataType, renderSqlTypeName } from \"@internal/sql-contract/data-type\";\nimport { InternalError } from \"@internal/utils/internal-error\";\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})$/;\n/**\n* What a Prisma 7 `DateTime` default, such as `2024-01-02T03:04:05.123+02:00`, means on a column of `dataType`, as the body of the type's tag: `date` keeps the written date, `time` and `timestamp` the written wall-clock time without the offset, `timetz` the time with the written offset, and `timestamptz` the written instant, offset included. The tag reads the body as Postgres reads the default Prisma 7 writes. `undefined` for text that is not an RFC 3339 date and time, or a type that is not a date or time type.\n*/\nfunction prisma7TemporalTagBody(text, dataType) {\n\tconst match = RFC_3339.exec(text);\n\tif (match === null) return void 0;\n\tconst [, date = \"\", clock = \"\", zone = \"\"] = match;\n\tconst offset = zone.toUpperCase();\n\tswitch (dataType) {\n\t\tcase pgDate.id: return date;\n\t\tcase pgTime.id: return clock;\n\t\tcase pgTimetz.id: return `${clock}${offset}`;\n\t\tcase pgTimestamp.id: return `${date}T${clock}`;\n\t\tcase pgTimestamptz.id: return `${date}T${clock}${offset}`;\n\t\tdefault: return;\n\t}\n}\nconst MICROSECONDS_PER_SECOND = 1000000n;\nconst POSTGRES_EPOCH_MS = Date.UTC(2e3, 0, 1);\n/**\n* The value PostgreSQL stores for a Prisma 7 `DateTime` default with more fraction digits than a column of `dataType` with `precision` holds, written in the same RFC 3339 form: the fraction is first rounded to microseconds as PostgreSQL reads text, then to `precision` digits as it rounds a value for its column, a tie going away from midnight on 2000-01-01, PostgreSQL's epoch. `undefined` when the column holds the text as written, or for a date column, which keeps only the date.\n*/\nfunction prisma7TemporalStored(text, dataType, precision) {\n\tconst match = RFC_3339.exec(text);\n\tif (match === null || dataType === pgDate.id) return void 0;\n\tconst [, date = \"\", clock = \"\", zone = \"\"] = match;\n\tconst [hms = \"\", fraction = \"\"] = clock.split(\".\");\n\tif (fraction.length <= precision) return void 0;\n\tconst [year, month, day] = date.split(\"-\").map(Number);\n\tconst [hour, minute, second] = hms.split(\":\").map(Number);\n\tconst wallMs = (/* @__PURE__ */ new Date(0)).setUTCFullYear(year ?? 0, (month ?? 1) - 1, day ?? 1);\n\tconst wall = (BigInt(wallMs - POSTGRES_EPOCH_MS) / 1000n + BigInt((hour ?? 0) * 3600 + (minute ?? 0) * 60 + (second ?? 0))) * MICROSECONDS_PER_SECOND + microsecondsOf(fraction);\n\tconst instant = dataType === pgTimestamptz.id ? wall - offsetMicroseconds(zone) : wall;\n\tconst tieGoesEarlier = (dataType === pgTimestamp.id || dataType === pgTimestamptz.id) && instant < 0n;\n\treturn `${printedWall(roundedTo(wall, 10n ** BigInt(6 - precision), tieGoesEarlier), precision)}${zone}`;\n}\n/** PostgreSQL reads the fraction of a second as a double and rounds it to whole microseconds. */\nfunction microsecondsOf(fraction) {\n\tif (fraction.length <= 6) return BigInt(fraction.padEnd(6, \"0\"));\n\tconst scaled = Number(`0.${fraction}`) * 1e6;\n\tconst floor = Math.floor(scaled);\n\tconst rest = scaled - floor;\n\tconst rounded = rest > .5 || rest === .5 && floor % 2 === 1 ? floor + 1 : floor;\n\treturn BigInt(rounded);\n}\nfunction offsetMicroseconds(zone) {\n\tconst offset = /^([+-])(\\d{2}):(\\d{2})$/.exec(zone);\n\tif (offset === null) return 0n;\n\tconst [, sign, hours = \"0\", minutes = \"0\"] = offset;\n\tconst seconds = BigInt(Number(hours) * 3600 + Number(minutes) * 60);\n\treturn (sign === \"-\" ? -seconds : seconds) * MICROSECONDS_PER_SECOND;\n}\nfunction roundedTo(value, step, tieGoesEarlier) {\n\tconst rest = (value % step + step) % step;\n\tconst below = value - rest;\n\tconst twice = rest * 2n;\n\tif (twice > step || twice === step && !tieGoesEarlier) return below + step;\n\treturn below;\n}\nfunction printedWall(microseconds, precision) {\n\tconst rest = (microseconds % MICROSECONDS_PER_SECOND + MICROSECONDS_PER_SECOND) % MICROSECONDS_PER_SECOND;\n\tconst seconds = (microseconds - rest) / MICROSECONDS_PER_SECOND;\n\tconst at = new Date(POSTGRES_EPOCH_MS + Number(seconds) * 1e3);\n\tconst two = (n) => String(n).padStart(2, \"0\");\n\treturn `${`${String(at.getUTCFullYear()).padStart(4, \"0\")}-${two(at.getUTCMonth() + 1)}-${two(at.getUTCDate())}`}T${`${two(at.getUTCHours())}:${two(at.getUTCMinutes())}:${two(at.getUTCSeconds())}`}${precision === 0 ? \"\" : `.${String(rest).padStart(6, \"0\").slice(0, precision)}`}`;\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\ttypeText: \"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\ttypeText: \"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\tcolumnTypes: () => ({\n\t\t\tpath: [\"Int\"],\n\t\t\targs: [],\n\t\t\texplicit: {\n\t\t\t\tpath: [\"Int4\"],\n\t\t\t\tvalues: []\n\t\t\t}\n\t\t}),\n\t\tdefaultMapping: createPostgresDefaultMapping(),\n\t\tdefaultOf: noInferredDefaults,\n\t\tcolumnDefaults: noColumnDefaults\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\n/** The date and time types a Prisma 7 `DateTime` default can be written on. */\nconst DATE_TIME_TYPES = /* @__PURE__ */ new Set([\n\tpgTimestamp.id,\n\tpgTimestamptz.id,\n\tpgDate.id,\n\tpgTime.id,\n\tpgTimetz.id\n]);\nconst ENTRIES = postgresDataTypeEntries();\n/** The tag the authoring entry of `dataType` writes its values with. */\nfunction tagOf(dataType) {\n\tconst written = ENTRIES[dataType]?.written;\n\treturn written?.kind === \"tag\" ? written.tag : void 0;\n}\n/** A date or time column without a precision holds microseconds. */\nfunction precisionOf(typeParams) {\n\tconst precision = typeParams?.[\"precision\"];\n\treturn typeof precision === \"number\" ? precision : 6;\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}\n/** The column's type as a migration writes it, such as `timestamp(6)`. */\nfunction writtenTypeName(dataType, typeParams) {\n\tconst type = postgresDataTypes.find((candidate) => candidate.id === dataType);\n\tif (type === void 0 || !isSqlDataType(type)) throw new InternalError(`The Postgres target registers no SQL data type \"${dataType}\".`);\n\treturn renderSqlTypeName(type, typeParams ?? {});\n}\n/** The SQL expression of a literal default, written as DDL writes the value: one literal, or for a list an array of them cast to an array of the column type. A date or time is written with the year text PostgreSQL reads. */\nfunction literalDefaultExpression(stored, column) {\n\tconst typeName = writtenTypeName(column.dataType, column.typeParams);\n\tconst text = (value) => typeof value === \"string\" && DATE_TIME_TYPES.has(column.dataType) ? postgresYearText(value) : value;\n\treturn Array.isArray(stored) ? inlineLiteral(stored.map(text), `${typeName}[]`) : inlineLiteral(text(stored), typeName);\n}\n/**\n* What the Postgres target supplies to the Prisma 7 interpreter. A `Bytes` or\n* `DateTime` default is read through the tag its column type's authoring entry\n* writes, as the current schema language reads it: a `Bytes` default's base64\n* as the hex body of `bytea`, and a `DateTime` default as the body of the date\n* or time tag that keeps what the written value means on the column.\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\textensions: {\n\t\tpreviewFeature: \"postgresqlExtensions\",\n\t\tentityKind: \"extension\",\n\t\tpacks: {\n\t\t\tvector: {\n\t\t\t\tid: \"pgvector\",\n\t\t\t\timportName: \"pgvector\",\n\t\t\t\timportPath: \"@prisma/orm-extension-pgvector/control\"\n\t\t\t},\n\t\t\tpostgis: {\n\t\t\t\tid: \"postgis\",\n\t\t\t\timportName: \"postgis\",\n\t\t\t\timportPath: \"@prisma/orm-extension-postgis/control\"\n\t\t\t},\n\t\t\tpg_search: {\n\t\t\t\tid: \"paradedb\",\n\t\t\t\timportName: \"paradedb\",\n\t\t\t\timportPath: \"@prisma/orm-extension-paradedb/control\"\n\t\t\t},\n\t\t\tcitext: {\n\t\t\t\tid: \"citext\",\n\t\t\t\timportName: \"citext\",\n\t\t\t\timportPath: \"@prisma/orm-postgres-contrib/citext/control\"\n\t\t\t}\n\t\t}\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\tdefaultConstraintNames: {\n\t\tprimaryKey: defaultPrimaryKeyName,\n\t\tforeignKey: defaultForeignKeyName\n\t},\n\tjunctionRelationFieldNames,\n\tliteralDefaultExpression,\n\tliteralDefaultForm: ({ dataType, typeParams }) => {\n\t\tif (dataType === pgJson.id || dataType === pgJsonb.id) return { kind: \"json\" };\n\t\tconst tag = tagOf(dataType);\n\t\tif (tag === void 0) return void 0;\n\t\tif (dataType === pgBytea.id) return {\n\t\t\tkind: \"tag\",\n\t\t\ttag,\n\t\t\tbody: base64ToHex\n\t\t};\n\t\tif (!DATE_TIME_TYPES.has(dataType)) return void 0;\n\t\treturn {\n\t\t\tkind: \"tag\",\n\t\t\ttag,\n\t\t\tbody: (text) => prisma7TemporalTagBody(text, dataType),\n\t\t\tfinerThanColumn: (text) => {\n\t\t\t\tconst heldDigits = precisionOf(typeParams);\n\t\t\t\tconst stored = prisma7TemporalStored(text, dataType, heldDigits);\n\t\t\t\treturn stored === void 0 ? void 0 : {\n\t\t\t\t\theldDigits,\n\t\t\t\t\tstored\n\t\t\t\t};\n\t\t\t}\n\t\t};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,wBAAwB;EACvB,YAAY;EACZ,YAAY;CACb;CACA;CACA;CACA,qBAAqB,EAAE,UAAU,iBAAiB;EACjD,IAAI,aAAa,OAAO,MAAM,aAAa,QAAQ,IAAI,OAAO,EAAE,MAAM,OAAO;EAC7E,MAAM,MAAM,MAAM,QAAQ;EAC1B,IAAI,QAAQ,KAAK,GAAG,OAAO,KAAK;EAChC,IAAI,aAAa,QAAQ,IAAI,OAAO;GACnC,MAAM;GACN;GACA,MAAM;EACP;EACA,IAAI,CAAC,gBAAgB,IAAI,QAAQ,GAAG,OAAO,KAAK;EAChD,OAAO;GACN,MAAM;GACN;GACA,OAAO,SAAS,uBAAuB,MAAM,QAAQ;GACrD,kBAAkB,SAAS;IAC1B,MAAM,aAAa,YAAY,UAAU;IACzC,MAAM,SAAS,sBAAsB,MAAM,UAAU,UAAU;IAC/D,OAAO,WAAW,KAAK,IAAI,KAAK,IAAI;KACnC;KACA;IACD;GACD;EACD;CACD;AACD"}
1
+ {"version":3,"file":"prisma7-binding-BA8iSLxQ.mjs","names":[],"sources":["../../../../3-targets/postgres/1-target/dist/prisma7-binding.mjs"],"sourcesContent":["import { G as postgresDataTypes, I as pgTimestamptz, M as pgTime, P as pgTimestamp, R as pgTimetz, S as pgJsonb, Y as postgresYearText, s as pgBytea, u as pgDate, x as pgJson } from \"./data-types-B47LbZ3z.mjs\";\nimport { r as inlineLiteral } from \"./sql-utils-VXrIh8dJ.mjs\";\nimport { t as postgresDataTypeEntries } from \"./data-type-entries-dmLDRSOf.mjs\";\nimport { i as postgresCreateNamespace } from \"./postgres-schema-BBWgs4fX.mjs\";\nimport { n as prisma7PostgresTypeMap, t as postgresTargetDescriptorMeta } from \"./descriptor-meta-DWKp5Q1s.mjs\";\nimport { n as defaultPrimaryKeyName, t as defaultForeignKeyName } from \"./default-constraint-names-Cz9Yoeim.mjs\";\nimport { i as noInferredDefaults, r as createPostgresDefaultMapping, t as buildPslDocumentAst, u as noColumnDefaults } from \"./infer-psl-contract-DR0Uie7w.mjs\";\nimport { isSqlDataType, renderSqlTypeName } from \"@internal/sql-contract/data-type\";\nimport { InternalError } from \"@internal/utils/internal-error\";\nimport { flatPslModels } from \"@internal/framework-components/psl-ast\";\nimport { SqlSchemaIR, SqlTableIR } from \"@internal/sql-schema-ir/types\";\nimport { toModelName } from \"@internal/family-sql/psl-infer\";\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})$/;\n/**\n* What a Prisma 7 `DateTime` default, such as `2024-01-02T03:04:05.123+02:00`, means on a column of `dataType`, as the body of the type's tag: `date` keeps the written date, `time` and `timestamp` the written wall-clock time without the offset, `timetz` the time with the written offset, and `timestamptz` the written instant, offset included. The tag reads the body as Postgres reads the default Prisma 7 writes. `undefined` for text that is not an RFC 3339 date and time, or a type that is not a date or time type.\n*/\nfunction prisma7TemporalTagBody(text, dataType) {\n\tconst match = RFC_3339.exec(text);\n\tif (match === null) return void 0;\n\tconst [, date = \"\", clock = \"\", zone = \"\"] = match;\n\tconst offset = zone.toUpperCase();\n\tswitch (dataType) {\n\t\tcase pgDate.id: return date;\n\t\tcase pgTime.id: return clock;\n\t\tcase pgTimetz.id: return `${clock}${offset}`;\n\t\tcase pgTimestamp.id: return `${date}T${clock}`;\n\t\tcase pgTimestamptz.id: return `${date}T${clock}${offset}`;\n\t\tdefault: return;\n\t}\n}\nconst MICROSECONDS_PER_SECOND = 1000000n;\nconst POSTGRES_EPOCH_MS = Date.UTC(2e3, 0, 1);\n/**\n* The value PostgreSQL stores for a Prisma 7 `DateTime` default with more fraction digits than a column of `dataType` with `precision` holds, written in the same RFC 3339 form: the fraction is first rounded to microseconds as PostgreSQL reads text, then to `precision` digits as it rounds a value for its column, a tie going away from midnight on 2000-01-01, PostgreSQL's epoch. `undefined` when the column holds the text as written, or for a date column, which keeps only the date.\n*/\nfunction prisma7TemporalStored(text, dataType, precision) {\n\tconst match = RFC_3339.exec(text);\n\tif (match === null || dataType === pgDate.id) return void 0;\n\tconst [, date = \"\", clock = \"\", zone = \"\"] = match;\n\tconst [hms = \"\", fraction = \"\"] = clock.split(\".\");\n\tif (fraction.length <= precision) return void 0;\n\tconst [year, month, day] = date.split(\"-\").map(Number);\n\tconst [hour, minute, second] = hms.split(\":\").map(Number);\n\tconst wallMs = (/* @__PURE__ */ new Date(0)).setUTCFullYear(year ?? 0, (month ?? 1) - 1, day ?? 1);\n\tconst wall = (BigInt(wallMs - POSTGRES_EPOCH_MS) / 1000n + BigInt((hour ?? 0) * 3600 + (minute ?? 0) * 60 + (second ?? 0))) * MICROSECONDS_PER_SECOND + microsecondsOf(fraction);\n\tconst instant = dataType === pgTimestamptz.id ? wall - offsetMicroseconds(zone) : wall;\n\tconst tieGoesEarlier = (dataType === pgTimestamp.id || dataType === pgTimestamptz.id) && instant < 0n;\n\treturn `${printedWall(roundedTo(wall, 10n ** BigInt(6 - precision), tieGoesEarlier), precision)}${zone}`;\n}\n/** PostgreSQL reads the fraction of a second as a double and rounds it to whole microseconds. */\nfunction microsecondsOf(fraction) {\n\tif (fraction.length <= 6) return BigInt(fraction.padEnd(6, \"0\"));\n\tconst scaled = Number(`0.${fraction}`) * 1e6;\n\tconst floor = Math.floor(scaled);\n\tconst rest = scaled - floor;\n\tconst rounded = rest > .5 || rest === .5 && floor % 2 === 1 ? floor + 1 : floor;\n\treturn BigInt(rounded);\n}\nfunction offsetMicroseconds(zone) {\n\tconst offset = /^([+-])(\\d{2}):(\\d{2})$/.exec(zone);\n\tif (offset === null) return 0n;\n\tconst [, sign, hours = \"0\", minutes = \"0\"] = offset;\n\tconst seconds = BigInt(Number(hours) * 3600 + Number(minutes) * 60);\n\treturn (sign === \"-\" ? -seconds : seconds) * MICROSECONDS_PER_SECOND;\n}\nfunction roundedTo(value, step, tieGoesEarlier) {\n\tconst rest = (value % step + step) % step;\n\tconst below = value - rest;\n\tconst twice = rest * 2n;\n\tif (twice > step || twice === step && !tieGoesEarlier) return below + step;\n\treturn below;\n}\nfunction printedWall(microseconds, precision) {\n\tconst rest = (microseconds % MICROSECONDS_PER_SECOND + MICROSECONDS_PER_SECOND) % MICROSECONDS_PER_SECOND;\n\tconst seconds = (microseconds - rest) / MICROSECONDS_PER_SECOND;\n\tconst at = new Date(POSTGRES_EPOCH_MS + Number(seconds) * 1e3);\n\tconst two = (n) => String(n).padStart(2, \"0\");\n\treturn `${`${String(at.getUTCFullYear()).padStart(4, \"0\")}-${two(at.getUTCMonth() + 1)}-${two(at.getUTCDate())}`}T${`${two(at.getUTCHours())}:${two(at.getUTCMinutes())}:${two(at.getUTCSeconds())}`}${precision === 0 ? \"\" : `.${String(rest).padStart(6, \"0\").slice(0, precision)}`}`;\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\ttypeText: \"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\ttypeText: \"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\tcolumnTypes: () => ({\n\t\t\tpath: [\"Int\"],\n\t\t\targs: [],\n\t\t\texplicit: {\n\t\t\t\tpath: [\"Int4\"],\n\t\t\t\tvalues: []\n\t\t\t}\n\t\t}),\n\t\tdefaultMapping: createPostgresDefaultMapping(),\n\t\tdefaultOf: noInferredDefaults,\n\t\tcolumnDefaults: noColumnDefaults\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\n/** The date and time types a Prisma 7 `DateTime` default can be written on. */\nconst DATE_TIME_TYPES = /* @__PURE__ */ new Set([\n\tpgTimestamp.id,\n\tpgTimestamptz.id,\n\tpgDate.id,\n\tpgTime.id,\n\tpgTimetz.id\n]);\nconst ENTRIES = postgresDataTypeEntries();\n/** The tag the authoring entry of `dataType` writes its values with. */\nfunction tagOf(dataType) {\n\tconst written = ENTRIES[dataType]?.written;\n\treturn written?.kind === \"tag\" ? written.tag : void 0;\n}\n/** A date or time column without a precision holds microseconds. */\nfunction precisionOf(typeParams) {\n\tconst precision = typeParams?.[\"precision\"];\n\treturn typeof precision === \"number\" ? precision : 6;\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}\n/** The column's type as a migration writes it, such as `timestamp(6)`. */\nfunction writtenTypeName(dataType, typeParams) {\n\tconst type = postgresDataTypes.find((candidate) => candidate.id === dataType);\n\tif (type === void 0 || !isSqlDataType(type)) throw new InternalError(`The Postgres target registers no SQL data type \"${dataType}\".`);\n\treturn renderSqlTypeName(type, typeParams ?? {});\n}\n/** The SQL expression of a literal default, written as DDL writes the value: one literal, or for a list an array of them cast to an array of the column type. A date or time is written with the year text PostgreSQL reads. */\nfunction literalDefaultExpression(stored, column) {\n\tconst typeName = writtenTypeName(column.dataType, column.typeParams);\n\tconst text = (value) => typeof value === \"string\" && DATE_TIME_TYPES.has(column.dataType) ? postgresYearText(value) : value;\n\treturn Array.isArray(stored) ? inlineLiteral(stored.map(text), `${typeName}[]`) : inlineLiteral(text(stored), typeName);\n}\n/**\n* What the Postgres target supplies to the Prisma 7 interpreter. A `Bytes` or\n* `DateTime` default is read through the tag its column type's authoring entry\n* writes, as the current schema language reads it: a `Bytes` default's base64\n* as the hex body of `bytea`, and a `DateTime` default as the body of the date\n* or time tag that keeps what the written value means on the column.\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\textensions: {\n\t\tpreviewFeature: \"postgresqlExtensions\",\n\t\tentityKind: \"extension\",\n\t\tpacks: {\n\t\t\tvector: {\n\t\t\t\tid: \"pgvector\",\n\t\t\t\timportName: \"pgvector\",\n\t\t\t\timportPath: \"@prisma/orm-extension-pgvector/control\"\n\t\t\t},\n\t\t\tpostgis: {\n\t\t\t\tid: \"postgis\",\n\t\t\t\timportName: \"postgis\",\n\t\t\t\timportPath: \"@prisma/orm-extension-postgis/control\"\n\t\t\t},\n\t\t\tpg_search: {\n\t\t\t\tid: \"paradedb\",\n\t\t\t\timportName: \"paradedb\",\n\t\t\t\timportPath: \"@prisma/orm-extension-paradedb/control\"\n\t\t\t},\n\t\t\tcitext: {\n\t\t\t\tid: \"citext\",\n\t\t\t\timportName: \"citext\",\n\t\t\t\timportPath: \"@prisma/orm-postgres-contrib/citext/control\"\n\t\t\t}\n\t\t}\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\tdefaultConstraintNames: {\n\t\tprimaryKey: defaultPrimaryKeyName,\n\t\tforeignKey: defaultForeignKeyName\n\t},\n\tjunctionRelationFieldNames,\n\tliteralDefaultExpression,\n\tliteralDefaultForm: ({ dataType, typeParams }) => {\n\t\tif (dataType === pgJson.id || dataType === pgJsonb.id) return { kind: \"json\" };\n\t\tconst tag = tagOf(dataType);\n\t\tif (tag === void 0) return void 0;\n\t\tif (dataType === pgBytea.id) return {\n\t\t\tkind: \"tag\",\n\t\t\ttag,\n\t\t\tbody: base64ToHex\n\t\t};\n\t\tif (!DATE_TIME_TYPES.has(dataType)) return void 0;\n\t\treturn {\n\t\t\tkind: \"tag\",\n\t\t\ttag,\n\t\t\tbody: (text) => prisma7TemporalTagBody(text, dataType),\n\t\t\tfinerThanColumn: (text) => {\n\t\t\t\tconst heldDigits = precisionOf(typeParams);\n\t\t\t\tconst stored = prisma7TemporalStored(text, dataType, heldDigits);\n\t\t\t\treturn stored === void 0 ? void 0 : {\n\t\t\t\t\theldDigits,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;EACN,QAAQ;EACR,MAAM;CACP;;CAEA,oBAAoB;CACpB,wBAAwB;EACvB,YAAY;EACZ,YAAY;CACb;CACA;CACA;CACA,qBAAqB,EAAE,UAAU,iBAAiB;EACjD,IAAI,aAAa,OAAO,MAAM,aAAa,QAAQ,IAAI,OAAO,EAAE,MAAM,OAAO;EAC7E,MAAM,MAAM,MAAM,QAAQ;EAC1B,IAAI,QAAQ,KAAK,GAAG,OAAO,KAAK;EAChC,IAAI,aAAa,QAAQ,IAAI,OAAO;GACnC,MAAM;GACN;GACA,MAAM;EACP;EACA,IAAI,CAAC,gBAAgB,IAAI,QAAQ,GAAG,OAAO,KAAK;EAChD,OAAO;GACN,MAAM;GACN;GACA,OAAO,SAAS,uBAAuB,MAAM,QAAQ;GACrD,kBAAkB,SAAS;IAC1B,MAAM,aAAa,YAAY,UAAU;IACzC,MAAM,SAAS,sBAAsB,MAAM,UAAU,UAAU;IAC/D,OAAO,WAAW,KAAK,IAAI,KAAK,IAAI;KACnC;KACA;IACD;GACD;EACD;CACD;AACD"}
@@ -1462,7 +1462,7 @@ declare const prisma7PostgresBinding: {
1462
1462
  }, import("@prisma/orm-framework/components/components").GeneratorFunctionContribution, ...import("@prisma/orm-framework/components/components").GeneratorFunctionContribution[]];
1463
1463
  readonly controlMutationDefaults: {
1464
1464
  readonly defaultFunctionRegistry: Map<any, any>;
1465
- readonly generatorDescriptors: readonly import("@prisma/orm-framework/components/components").MutationDefaultGeneratorDescriptor[];
1465
+ readonly generatorDescriptors: readonly import("@prisma/orm-framework/components/control").MutationDefaultGeneratorDescriptor[];
1466
1466
  };
1467
1467
  readonly types: {
1468
1468
  readonly queryOperationTypes: {
@@ -1580,4 +1580,4 @@ declare const prisma7PostgresBinding: {
1580
1580
  };
1581
1581
  //#endregion
1582
1582
  export { prisma7PostgresBinding as t };
1583
- //# sourceMappingURL=prisma7-binding-ZpDLZt_D.d.mts.map
1583
+ //# sourceMappingURL=prisma7-binding-VYAlkSRR.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"prisma7-binding-ZpDLZt_D.d.mts","names":[],"sources":["../../../../3-targets/postgres/1-target/dist/prisma7-binding.d.mts"],"mappings":";;;;;;;;;;;;;UAaU;WACC;WACA;;;;;iBAKM,sBAAsB;;iBAEtB,sBAAsB,mBAAmB;;;;;;;;iBAQzC,2BAA2B,gBAAgB;;;iBAG3C,YAAY;;iBAEZ,yBAAyB,QAAQ,WAAW;WAClD;WACA,aAAa,SAAS;;;;;;;;;cASnB;WACH;aACE;aACA;aACA;aACA,yDAAyD,iBAAiB,uBAAuB;eAC/F;SACN;eACM;SACN;eACM;SACN;eACM;SACN;eACM;SACN;eACM;SACN;eACM;QACP;QACA;;;aAGK;eACE;iBACE;mBACE;qBACE;qBACA;qBACA;uBACE;uBACA;;qBAEF;uBACE;;;;iBAIN;mBACE;qBACE;qBACA;qBACA;uBACE;yBACE;yBACA;2BACE;;;uBAGJ;yBACE;yBACA;;;;mBAIN;qBACE;qBACA;qBACA;uBACE;yBACE;yBACA;2BACE;;;uBAGJ;yBACE;yBACA;;uBAEF;yBACE;yBACA;;;;;iBAKR;mBACE;mBACA;mBACA;qBACE;uBACE;uBACA;yBACE;;;;;iBAKR;mBACE;mBACA;mBACA;qBACE;uBACE;uBACA;yBACE;;;;;iBAKR;mBACE;mBACA;mBACA;qBACE;uBACE;uBACA;yBACE;;;;;iBAKR;mBACE;mBACA;mBACA;qBACE;uBACE;uBACA;yBACE;;;;;iBAKR;mBACE;mBACA;mBACA;qBACE;uBACE;uBACA;yBACE;;;;;iBAKR;mBACE;qBACE;qBACA;qBACA;uBACE;uBACA;uBACA;;qBAEF;uBACE;uBACA;yBACE;2BACE;2BACA;;;;;mBAKR;qBACE;qBACA;qBACA;uBACE;uBACA;uBACA;;qBAEF;uBACE;uBACA;yBACE;2BACE;2BACA;;;;;;iBAMV;mBACE;qBACE;;mBAEF;mBACA;mBACA;qBACE;;;iBAGJ;mBACE;qBACE;;mBAEF;mBACA;mBACA;qBACE;;;iBAGJ;mBACE;qBACE;;mBAEF;mBACA;mBACA;qBACE;qBACA;qBACA;qBACA;;qBAEA;qBACA;qBACA;qBACA;;mBAEF;qBACE;qBACA;uBACE;yBACE;yBACA;;uBAEF;yBACE;yBACA;;;;;iBAKR;mBACE;qBACE;;mBAEF;mBACA;mBACA;qBACE;;;iBAGJ;mBACE;qBACE;;mBAEF;mBACA;mBACA;qBACE;;;iBAGJ;mBACE;qBACE;;mBAEF;mBACA;mBACA;qBACE;qBACA;qBACA;qBACA;;mBAEF;qBACE;qBACA;uBACE;yBACE;yBACA;;;;;iBAKR;mBACE;qBACE;;mBAEF;mBACA;mBACA;qBACE;qBACA;qBACA;qBACA;;mBAEF;qBACE;qBACA;uBACE;yBACE;yBACA;;;;;iBAKR;mBACE;mBACA;mBACA;qBACE;qBACA;qBACA;qBACA;qBACA;;mBAEF;qBACE;uBACE;;qBAEF;;qBAEA;uBACE;;qBAEF;;;iBAGJ;mBACE;mBACA;mBACA;qBACE;qBACA;qBACA;qBACA;qBACA;;qBAEA;qBACA;qBACA;qBACA;qBACA;;mBAEF;qBACE;uBACE;uBACA;;qBAEF;;qBAEA;uBACE;uBACA;;qBAEF;;qBAEA;uBACE;uBACA;;qBAEF;;;iBAGJ;mBACE;mBACA;mBACA;qBACE;qBACA;qBACA;qBACA;qBACA;;mBAEF;qBACE;uBACE;;qBAEF;;qBAEA;uBACE;;qBAEF;;;iBAGJ;mBACE;mBACA;mBACA;qBACE;qBACA;qBACA;qBACA;qBACA;;qBAEA;qBACA;qBACA;qBACA;;qBAEA;qBACA;qBACA;qBACA;;mBAEF;qBACE;uBACE;;qBAEF;;;iBAGJ;mBACE;mBACA;mBACA;qBACE;qBACA;qBACA;qBACA;qBACA;;qBAEA;qBACA;qBACA;qBACA;;mBAEF;qBACE;uBACE;;qBAEF;;qBAEA;uBACE;;qBAEF;;qBAEA;uBACE;;qBAEF;;;iBAGJ;mBACE;mBACA;mBACA;qBACE;qBACA;qBACA;qBACA;qBACA;;mBAEF;qBACE;uBACE;;qBAEF;;;iBAGJ;mBACE;mBACA;mBACA;qBACE;qBACA;qBACA;qBACA;qBACA;;mBAEF;qBACE;uBACE;;qBAEF;;;iBAGJ;mBACE;mBACA;mBACA;qBACE;qBACA;qBACA;qBACA;qBACA;;qBAEA;qBACA;qBACA;qBACA;qBACA;;qBAEA;qBACA;qBACA;qBACA;;mBAEF;qBACE;uBACE;uBACA;;qBAEF;qBACA;uBACE;;;qBAGF;uBACE;uBACA;;qBAEF;;qBAEA;uBACE;uBACA;;qBAEF;;qBAEA;uBACE;uBACA;;qBAEF;qBACA;uBACE;;;qBAGF;uBACE;uBACA;;qBAEF;;qBAEA;uBACE;uBACA;;qBAEF;;;iBAGJ;mBACE;mBACA;mBACA;qBACE;qBACA;qBACA;qBACA;qBACA;;qBAEA;qBACA;qBACA;qBACA;qBACA;;mBAEF;qBACE;uBACE;uBACA;;qBAEF;;qBAEA;uBACE;uBACA;;qBAEF;;;iBAGJ;mBACE;mBACA;mBACA;qBACE;qBACA;qBACA;qBACA;qBACA;;qBAEA;qBACA;qBACA;qBACA;qBACA;;qBAEA;qBACA;qBACA;qBACA;;mBAEF;qBACE;uBACE;uBACA;;qBAEF;;qBAEA;uBACE;uBACA;;qBAEF;;qBAEA;uBACE;uBACA;;qBAEF;;;iBAGJ;mBACE;mBACA;mBACA;qBACE;qBACA;qBACA;qBACA;qBACA;;qBAEA;qBACA;qBACA;qBACA;qBACA;;qBAEA;qBACA;qBACA;qBACA;;mBAEF;qBACE;uBACE;uBACA;;qBAEF;;qBAEA;uBACE;uBACA;;qBAEF;;;iBAGJ;mBACE;mBACA;mBACA;mBACA;qBACE;;;iBAGJ;mBACE;mBACA;mBACA;mBACA;qBACE;;;iBAGJ;mBACE;mBACA;mBACA;mBACA;qBACE;;;iBAGJ;mBACE;mBACA;mBACA;qBACE;;;iBAGJ;mBACE;mBACA;mBACA;mBACA;qBACE;qBACA;qBACA;qBACA;;qBAEA;qBACA;qBACA;qBACA;;mBAEF;qBACE;qBACA;uBACE;yBACE;yBACA;;uBAEF;yBACE;yBACA;;;;;iBAKR;mBACE;mBACA;mBACA;qBACE;;;iBAGJ;mBACE;mBACA;mBACA;mBACA;qBACE;;;iBAGJ;mBACE;mBACA;mBACA;mBACA;qBACE;;;iBAGJ;mBACE;mBACA;mBACA;mBACA;qBACE;;;iBAGJ;mBACE;mBACA;mBACA;mBACA;qBACE;qBACA;qBACA;qBACA;;mBAEF;qBACE;qBACA;uBACE;yBACE;yBACA;;;;;iBAKR;mBACE;mBACA;mBACA;mBACA;qBACE;qBACA;qBACA;qBACA;;mBAEF;qBACE;qBACA;uBACE;yBACE;yBACA;;;;;iBAKR;mBACE;mBACA;mBACA;mBACA;qBACE;;;iBAGJ;mBACE;mBACA;mBACA;mBACA;qBACE;;;iBAGJ;mBACE;mBACA;mBACA;mBACA;qBACE;;;iBAGJ;mBACE;mBACA;mBACA;mBACA;qBACE;;;iBAGJ;mBACE;mBACA;mBACA;qBACE;qBACA;qBACA;qBACA;;mBAEF;qBACE;qBACA;uBACE;yBACE;yBACA;;;;;iBAKR;mBACE;mBACA;mBACA;qBACE;qBACA;qBACA;qBACA;;mBAEF;qBACE;qBACA;uBACE;yBACE;yBACA;;;;;iBAKR;mBACE;mBACA;mBACA;qBACE;qBACA;qBACA;qBACA;;mBAEF;qBACE;qBACA;uBACE;yBACE;yBACA;;;;;iBAKR;mBACE;mBACA;mBACA;mBACA;qBACE;qBACA;qBACA;qBACA;;mBAEF;qBACE;qBACA;uBACE;yBACE;yBACA;;;;;iBAKR;mBACE;mBACA;mBACA;mBACA;qBACE;;;iBAGJ;mBACE;mBACA;mBACA;mBACA;qBACE;;;iBAGJ;mBACE;mBACA;mBACA;qBACE;;;iBAGJ;mBACE;mBACA;mBACA;mBACA;qBACE;;;iBAGJ;mBACE;mBACA;mBACA;qBACE;qBACA;qBACA;qBACA;;mBAEF;qBACE;qBACA;uBACE;yBACE;yBACA;;;;;iBAKR;mBACE;mBACA;mBACA;mBACA;qBACE;qBACA;qBACA;qBACA;;mBAEF;qBACE;qBACA;uBACE;yBACE;yBACA;;;;;iBAKR;mBACE;mBACA;mBACA;mBACA;qBACE;qBACA;qBACA;qBACA;;mBAEF;qBACE;qBACA;uBACE;yBACE;yBACA;;;;;iBAKR;mBACE;mBACA;mBACA;qBACE;qBACA;qBACA;qBACA;;mBAEF;qBACE;qBACA;uBACE;yBACE;yBACA;;;;;iBAKR;mBACE;mBACA;mBACA;qBACE;qBACA;qBACA;qBACA;;mBAEF;qBACE;qBACA;uBACE;yBACE;yBACA;;;;;iBAKR;mBACE;mBACA;mBACA;mBACA;qBACE;qBACA;qBACA;qBACA;;mBAEF;qBACE;qBACA;uBACE;yBACE;yBACA;;;;;iBAKR;mBACE;mBACA;mBACA;mBACA;qBACE;qBACA;qBACA;qBACA;;mBAEF;qBACE;qBACA;uBACE;yBACE;yBACA;;;;;iBAKR;mBACE;mBACA;mBACA;mBACA;qBACE;qBACA;qBACA;qBACA;;mBAEF;qBACE;qBACA;uBACE;yBACE;yBACA;;;;;iBAKR;mBACE;mBACA;mBACA;mBACA;qBACE;;;iBAGJ;mBACE;mBACA;mBACA;mBACA;qBACE;;;iBAGJ;mBACE;mBACA;mBACA;mBACA;qBACE;;;iBAGJ;mBACE;mBACA;mBACA;qBACE;qBACA;qBACA;qBACA;;mBAEF;qBACE;qBACA;uBACE;yBACE;yBACA;;;;;iBAKR;mBACE;mBACA;mBACA;mBACA;qBACE;qBACA;qBACA;qBACA;;mBAEF;qBACE;qBACA;uBACE;yBACE;yBACA;;;;;;eAMV,WAAW,SAAS,kEAAkE;eACtF,uEAAuE;eACvE,yBAAyB,SAAS;eAClC;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;YACP,UAAU,OAAO,yBAAyB,wDAAwD,2BAA2B;YAC7H,eAAe,QAAQ;cACrB;;;;iBAIG;mBACE;mBACA;mBACA,+DAA+D;YACtE;YACA;YACA;YACA;;mBAEO;YACP,UAAU,sCAAsC,wBAAwB,yBAAyB,wDAAwD,2BAA2B;YACpL,iBAAiB,QAAQ;cACvB;cACA;;;;iBAIG;mBACE;mBACA;mBACA,+DAA+D;YACtE;YACA;YACA;;mBAEO;qBACE,UAAU,sCAAsC,4BAA4B;qBAC5E;;;;eAIN;iBACE;UACP;UACA;UACA;UACA;UACA;YACE;;UAEF,aAAa;UACb;qBACW;qBACA;;UAEX;YACE,0CAA0C;cACxC;8CACgC;;;iBAG7B;UACP;UACA;UACA;UACA;UACA;YACE;;UAEF,aAAa;UACb;qBACW;qBACA;;UAEX;YACE,0CAA0C;cACxC;8CACgC;;;iBAG7B;UACP;UACA;UACA;UACA;UACA;YACE;;UAEF,aAAa;UACb;qBACW;qBACA;;UAEX;YACE,0CAA0C;cACxC;8CACgC;;;iBAG7B;UACP;UACA;UACA;UACA;UACA;YACE;;UAEF,aAAa;UACb;qBACW;qBACA;;UAEX;YACE,0CAA0C;cACxC;8CACgC;;;iBAG7B;UACP;UACA;UACA;UACA;UACA;YACE;;UAEF,aAAa;UACb;qBACW;qBACA;;UAEX;YACE,0CAA0C;cACxC;8CACgC;;;iBAG7B;UACP;UACA;UACA;UACA;UACA;YACE;;UAEF,aAAa;UACb;UACA;YACE,0CAA0C;cACxC;8CACgC;;;iBAG7B;UACP;UACA;UACA;UACA;UACA;YACE;;UAEF,aAAa;;iBAEN;UACP;UACA;UACA;UACA;UACA;YACE;;UAEF,aAAa;;;eAGR;iBACE;mBACE;mBACA;mBACA,qCAAqC;mBACrC,QAAQ,SAAS,sBAAsB,wDAAwD;YACtG;YACA,QAAQ;;;iBAGH;mBACE;mBACA;mBACA,qCAAqC;mBACrC;mBACA,QAAQ;qBACN,QAAQ;qBACR,WAAW;qBACX;qBACA;qBACA,uCAAuC;aAC/C,wDAAwD;YACzD;cACE;cACA;cACA;gBACE;gBACA;;cAEF;cACA;cACA;cACA;;;;;eAKC,wBAAwB;eACxB,0BAA0B;eAC1B,+BAA+B;eAC/B,2BAA2B;;aAE7B;eACE;eACA,YAAY,8DAA8D;iBACxE;iBACA;mBACE;mBACA,qCAAqC,sDAAsD,6CAA6C,8CAA8C;mBACtL;;;eAGJ;;eAEA;eACA,YAAY,8DAA8D;iBACxE;iBACA;mBACE;mBACA,qCAAqC,0CAA0C;mBAC/E;;;eAGJ;;eAEA;eACA,YAAY,8DAA8D;iBACxE;iBACA;mBACE;mBACA,qCAAqC,uDAAuD,6CAA6C,+CAA+C;mBACxL;;;eAGJ;2DAC4C,sFAAsF;aACpI;eACE,yBAAyB;eACzB,mFAAmF;;aAErF;eACE;iBACE;mBACE;mBACA;mBACA;;;;aAIN;aACA;aACA;aACA;aACA;aACA;aACA,mEAAmE;aACnE;eACE;eACA;;aAEF,eAAe;;aAEf,eAAe;aACf,wBAAwB;aACxB,6BAA6B;aAC7B;eACE;iBACE;iBACA;;;;WAIN,wBAAwB;WACxB;WACA;IACP,SAAS,SAAS,eAAe;IACjC,aAAa,SAAS,eAAe;IACrC;eACW;iBACE;iBACA;iBACA;;;;WAIN;aACE;aACA;;WAEF;aACE;aACA;aACA;eACE;iBACE;iBACA;iBACA;;eAEF;iBACE;iBACA;iBACA;;eAEF;iBACE;iBACA;iBACA;;eAEF;iBACE;iBACA;iBACA;;;;WAIN;aACE;aACA;aACA;aACA;aACA;aACA;;;WAGF;WACA;aACE,mBAAmB;aACnB,mBAAmB;;WAErB,mCAAmC;WACnC,iCAAiC;WACjC,uBAAuB,UAAU;aAC/B;aACA,aAAa,SAAS;;aAEtB;aACA;aACA;aACA;;aAEA;aACA;aACA,aAAa;aACb;;aAEA;aACA;aACA,OAAO;aACP,kBAAkB;MACzB;MACA"}
1
+ {"version":3,"file":"prisma7-binding-VYAlkSRR.d.mts","names":[],"sources":["../../../../3-targets/postgres/1-target/dist/prisma7-binding.d.mts"],"mappings":";;;;;;;;;;;;;UAaU;WACC;WACA;;;;;iBAKM,sBAAsB;;iBAEtB,sBAAsB,mBAAmB;;;;;;;;iBAQzC,2BAA2B,gBAAgB;;;iBAG3C,YAAY;;iBAEZ,yBAAyB,QAAQ,WAAW;WAClD;WACA,aAAa,SAAS;;;;;;;;;cASnB;WACH;aACE;aACA;aACA;aACA,yDAAyD,iBAAiB,uBAAuB;eAC/F;SACN;eACM;SACN;eACM;SACN;eACM;SACN;eACM;SACN;eACM;SACN;eACM;QACP;QACA;;;aAGK;eACE;iBACE;mBACE;qBACE;qBACA;qBACA;uBACE;uBACA;;qBAEF;uBACE;;;;iBAIN;mBACE;qBACE;qBACA;qBACA;uBACE;yBACE;yBACA;2BACE;;;uBAGJ;yBACE;yBACA;;;;mBAIN;qBACE;qBACA;qBACA;uBACE;yBACE;yBACA;2BACE;;;uBAGJ;yBACE;yBACA;;uBAEF;yBACE;yBACA;;;;;iBAKR;mBACE;mBACA;mBACA;qBACE;uBACE;uBACA;yBACE;;;;;iBAKR;mBACE;mBACA;mBACA;qBACE;uBACE;uBACA;yBACE;;;;;iBAKR;mBACE;mBACA;mBACA;qBACE;uBACE;uBACA;yBACE;;;;;iBAKR;mBACE;mBACA;mBACA;qBACE;uBACE;uBACA;yBACE;;;;;iBAKR;mBACE;mBACA;mBACA;qBACE;uBACE;uBACA;yBACE;;;;;iBAKR;mBACE;qBACE;qBACA;qBACA;uBACE;uBACA;uBACA;;qBAEF;uBACE;uBACA;yBACE;2BACE;2BACA;;;;;mBAKR;qBACE;qBACA;qBACA;uBACE;uBACA;uBACA;;qBAEF;uBACE;uBACA;yBACE;2BACE;2BACA;;;;;;iBAMV;mBACE;qBACE;;mBAEF;mBACA;mBACA;qBACE;;;iBAGJ;mBACE;qBACE;;mBAEF;mBACA;mBACA;qBACE;;;iBAGJ;mBACE;qBACE;;mBAEF;mBACA;mBACA;qBACE;qBACA;qBACA;qBACA;;qBAEA;qBACA;qBACA;qBACA;;mBAEF;qBACE;qBACA;uBACE;yBACE;yBACA;;uBAEF;yBACE;yBACA;;;;;iBAKR;mBACE;qBACE;;mBAEF;mBACA;mBACA;qBACE;;;iBAGJ;mBACE;qBACE;;mBAEF;mBACA;mBACA;qBACE;;;iBAGJ;mBACE;qBACE;;mBAEF;mBACA;mBACA;qBACE;qBACA;qBACA;qBACA;;mBAEF;qBACE;qBACA;uBACE;yBACE;yBACA;;;;;iBAKR;mBACE;qBACE;;mBAEF;mBACA;mBACA;qBACE;qBACA;qBACA;qBACA;;mBAEF;qBACE;qBACA;uBACE;yBACE;yBACA;;;;;iBAKR;mBACE;mBACA;mBACA;qBACE;qBACA;qBACA;qBACA;qBACA;;mBAEF;qBACE;uBACE;;qBAEF;;qBAEA;uBACE;;qBAEF;;;iBAGJ;mBACE;mBACA;mBACA;qBACE;qBACA;qBACA;qBACA;qBACA;;qBAEA;qBACA;qBACA;qBACA;qBACA;;mBAEF;qBACE;uBACE;uBACA;;qBAEF;;qBAEA;uBACE;uBACA;;qBAEF;;qBAEA;uBACE;uBACA;;qBAEF;;;iBAGJ;mBACE;mBACA;mBACA;qBACE;qBACA;qBACA;qBACA;qBACA;;mBAEF;qBACE;uBACE;;qBAEF;;qBAEA;uBACE;;qBAEF;;;iBAGJ;mBACE;mBACA;mBACA;qBACE;qBACA;qBACA;qBACA;qBACA;;qBAEA;qBACA;qBACA;qBACA;;qBAEA;qBACA;qBACA;qBACA;;mBAEF;qBACE;uBACE;;qBAEF;;;iBAGJ;mBACE;mBACA;mBACA;qBACE;qBACA;qBACA;qBACA;qBACA;;qBAEA;qBACA;qBACA;qBACA;;mBAEF;qBACE;uBACE;;qBAEF;;qBAEA;uBACE;;qBAEF;;qBAEA;uBACE;;qBAEF;;;iBAGJ;mBACE;mBACA;mBACA;qBACE;qBACA;qBACA;qBACA;qBACA;;mBAEF;qBACE;uBACE;;qBAEF;;;iBAGJ;mBACE;mBACA;mBACA;qBACE;qBACA;qBACA;qBACA;qBACA;;mBAEF;qBACE;uBACE;;qBAEF;;;iBAGJ;mBACE;mBACA;mBACA;qBACE;qBACA;qBACA;qBACA;qBACA;;qBAEA;qBACA;qBACA;qBACA;qBACA;;qBAEA;qBACA;qBACA;qBACA;;mBAEF;qBACE;uBACE;uBACA;;qBAEF;qBACA;uBACE;;;qBAGF;uBACE;uBACA;;qBAEF;;qBAEA;uBACE;uBACA;;qBAEF;;qBAEA;uBACE;uBACA;;qBAEF;qBACA;uBACE;;;qBAGF;uBACE;uBACA;;qBAEF;;qBAEA;uBACE;uBACA;;qBAEF;;;iBAGJ;mBACE;mBACA;mBACA;qBACE;qBACA;qBACA;qBACA;qBACA;;qBAEA;qBACA;qBACA;qBACA;qBACA;;mBAEF;qBACE;uBACE;uBACA;;qBAEF;;qBAEA;uBACE;uBACA;;qBAEF;;;iBAGJ;mBACE;mBACA;mBACA;qBACE;qBACA;qBACA;qBACA;qBACA;;qBAEA;qBACA;qBACA;qBACA;qBACA;;qBAEA;qBACA;qBACA;qBACA;;mBAEF;qBACE;uBACE;uBACA;;qBAEF;;qBAEA;uBACE;uBACA;;qBAEF;;qBAEA;uBACE;uBACA;;qBAEF;;;iBAGJ;mBACE;mBACA;mBACA;qBACE;qBACA;qBACA;qBACA;qBACA;;qBAEA;qBACA;qBACA;qBACA;qBACA;;qBAEA;qBACA;qBACA;qBACA;;mBAEF;qBACE;uBACE;uBACA;;qBAEF;;qBAEA;uBACE;uBACA;;qBAEF;;;iBAGJ;mBACE;mBACA;mBACA;mBACA;qBACE;;;iBAGJ;mBACE;mBACA;mBACA;mBACA;qBACE;;;iBAGJ;mBACE;mBACA;mBACA;mBACA;qBACE;;;iBAGJ;mBACE;mBACA;mBACA;qBACE;;;iBAGJ;mBACE;mBACA;mBACA;mBACA;qBACE;qBACA;qBACA;qBACA;;qBAEA;qBACA;qBACA;qBACA;;mBAEF;qBACE;qBACA;uBACE;yBACE;yBACA;;uBAEF;yBACE;yBACA;;;;;iBAKR;mBACE;mBACA;mBACA;qBACE;;;iBAGJ;mBACE;mBACA;mBACA;mBACA;qBACE;;;iBAGJ;mBACE;mBACA;mBACA;mBACA;qBACE;;;iBAGJ;mBACE;mBACA;mBACA;mBACA;qBACE;;;iBAGJ;mBACE;mBACA;mBACA;mBACA;qBACE;qBACA;qBACA;qBACA;;mBAEF;qBACE;qBACA;uBACE;yBACE;yBACA;;;;;iBAKR;mBACE;mBACA;mBACA;mBACA;qBACE;qBACA;qBACA;qBACA;;mBAEF;qBACE;qBACA;uBACE;yBACE;yBACA;;;;;iBAKR;mBACE;mBACA;mBACA;mBACA;qBACE;;;iBAGJ;mBACE;mBACA;mBACA;mBACA;qBACE;;;iBAGJ;mBACE;mBACA;mBACA;mBACA;qBACE;;;iBAGJ;mBACE;mBACA;mBACA;mBACA;qBACE;;;iBAGJ;mBACE;mBACA;mBACA;qBACE;qBACA;qBACA;qBACA;;mBAEF;qBACE;qBACA;uBACE;yBACE;yBACA;;;;;iBAKR;mBACE;mBACA;mBACA;qBACE;qBACA;qBACA;qBACA;;mBAEF;qBACE;qBACA;uBACE;yBACE;yBACA;;;;;iBAKR;mBACE;mBACA;mBACA;qBACE;qBACA;qBACA;qBACA;;mBAEF;qBACE;qBACA;uBACE;yBACE;yBACA;;;;;iBAKR;mBACE;mBACA;mBACA;mBACA;qBACE;qBACA;qBACA;qBACA;;mBAEF;qBACE;qBACA;uBACE;yBACE;yBACA;;;;;iBAKR;mBACE;mBACA;mBACA;mBACA;qBACE;;;iBAGJ;mBACE;mBACA;mBACA;mBACA;qBACE;;;iBAGJ;mBACE;mBACA;mBACA;qBACE;;;iBAGJ;mBACE;mBACA;mBACA;mBACA;qBACE;;;iBAGJ;mBACE;mBACA;mBACA;qBACE;qBACA;qBACA;qBACA;;mBAEF;qBACE;qBACA;uBACE;yBACE;yBACA;;;;;iBAKR;mBACE;mBACA;mBACA;mBACA;qBACE;qBACA;qBACA;qBACA;;mBAEF;qBACE;qBACA;uBACE;yBACE;yBACA;;;;;iBAKR;mBACE;mBACA;mBACA;mBACA;qBACE;qBACA;qBACA;qBACA;;mBAEF;qBACE;qBACA;uBACE;yBACE;yBACA;;;;;iBAKR;mBACE;mBACA;mBACA;qBACE;qBACA;qBACA;qBACA;;mBAEF;qBACE;qBACA;uBACE;yBACE;yBACA;;;;;iBAKR;mBACE;mBACA;mBACA;qBACE;qBACA;qBACA;qBACA;;mBAEF;qBACE;qBACA;uBACE;yBACE;yBACA;;;;;iBAKR;mBACE;mBACA;mBACA;mBACA;qBACE;qBACA;qBACA;qBACA;;mBAEF;qBACE;qBACA;uBACE;yBACE;yBACA;;;;;iBAKR;mBACE;mBACA;mBACA;mBACA;qBACE;qBACA;qBACA;qBACA;;mBAEF;qBACE;qBACA;uBACE;yBACE;yBACA;;;;;iBAKR;mBACE;mBACA;mBACA;mBACA;qBACE;qBACA;qBACA;qBACA;;mBAEF;qBACE;qBACA;uBACE;yBACE;yBACA;;;;;iBAKR;mBACE;mBACA;mBACA;mBACA;qBACE;;;iBAGJ;mBACE;mBACA;mBACA;mBACA;qBACE;;;iBAGJ;mBACE;mBACA;mBACA;mBACA;qBACE;;;iBAGJ;mBACE;mBACA;mBACA;qBACE;qBACA;qBACA;qBACA;;mBAEF;qBACE;qBACA;uBACE;yBACE;yBACA;;;;;iBAKR;mBACE;mBACA;mBACA;mBACA;qBACE;qBACA;qBACA;qBACA;;mBAEF;qBACE;qBACA;uBACE;yBACE;yBACA;;;;;;eAMV,WAAW,SAAS,kEAAkE;eACtF,uEAAuE;eACvE,yBAAyB,SAAS;eAClC;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;YACP,UAAU,OAAO,yBAAyB,wDAAwD,2BAA2B;YAC7H,eAAe,QAAQ;cACrB;;;;iBAIG;mBACE;mBACA;mBACA,+DAA+D;YACtE;YACA;YACA;YACA;;mBAEO;YACP,UAAU,sCAAsC,wBAAwB,yBAAyB,wDAAwD,2BAA2B;YACpL,iBAAiB,QAAQ;cACvB;cACA;;;;iBAIG;mBACE;mBACA;mBACA,+DAA+D;YACtE;YACA;YACA;;mBAEO;qBACE,UAAU,sCAAsC,4BAA4B;qBAC5E;;;;eAIN;iBACE;UACP;UACA;UACA;UACA;UACA;YACE;;UAEF,aAAa;UACb;qBACW;qBACA;;UAEX;YACE,0CAA0C;cACxC;8CACgC;;;iBAG7B;UACP;UACA;UACA;UACA;UACA;YACE;;UAEF,aAAa;UACb;qBACW;qBACA;;UAEX;YACE,0CAA0C;cACxC;8CACgC;;;iBAG7B;UACP;UACA;UACA;UACA;UACA;YACE;;UAEF,aAAa;UACb;qBACW;qBACA;;UAEX;YACE,0CAA0C;cACxC;8CACgC;;;iBAG7B;UACP;UACA;UACA;UACA;UACA;YACE;;UAEF,aAAa;UACb;qBACW;qBACA;;UAEX;YACE,0CAA0C;cACxC;8CACgC;;;iBAG7B;UACP;UACA;UACA;UACA;UACA;YACE;;UAEF,aAAa;UACb;qBACW;qBACA;;UAEX;YACE,0CAA0C;cACxC;8CACgC;;;iBAG7B;UACP;UACA;UACA;UACA;UACA;YACE;;UAEF,aAAa;UACb;UACA;YACE,0CAA0C;cACxC;8CACgC;;;iBAG7B;UACP;UACA;UACA;UACA;UACA;YACE;;UAEF,aAAa;;iBAEN;UACP;UACA;UACA;UACA;UACA;YACE;;UAEF,aAAa;;;eAGR;iBACE;mBACE;mBACA;mBACA,qCAAqC;mBACrC,QAAQ,SAAS,sBAAsB,wDAAwD;YACtG;YACA,Q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A;aACA,OAAO;aACP,kBAAkB;MACzB;MACA"}
@@ -1,4 +1,4 @@
1
- import { t as PostgresPlanTargetDetails } from "./planner-target-details-HkP4RrRO-D6VtK0jY.mjs";
1
+ import { t as PostgresPlanTargetDetails } from "./planner-target-details-boDXR2s7-CExrk6rf.mjs";
2
2
  import { OpFactoryCall } from "@prisma/orm-framework/components/control";
3
3
  import { SqlMigrationPlanOperation } from "@prisma/orm-family-sql/family/control";
4
4
  import { ExecuteRequestLowerer } from "@prisma/orm-family-sql/family/control-adapter";
@@ -8,4 +8,4 @@ type Op = SqlMigrationPlanOperation<PostgresPlanTargetDetails>;
8
8
  declare function renderOps(calls: readonly OpFactoryCall[], lowerer?: ExecuteRequestLowerer): (Op | Promise<Op>)[];
9
9
  //#endregion
10
10
  export { renderOps as t };
11
- //# sourceMappingURL=render-ops-Bl84i7ut.d.mts.map
11
+ //# sourceMappingURL=render-ops-CEwI8Iyf.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"render-ops-Bl84i7ut.d.mts","names":[],"sources":["../../../../3-targets/postgres/1-target/dist/render-ops.d.mts"],"mappings":";;;;;;KAKK,KAAK,0BAA0B;iBACnB,UAAU,gBAAgB,iBAAiB,UAAU,yBAAyB,KAAK,QAAQ"}
1
+ {"version":3,"file":"render-ops-CEwI8Iyf.d.mts","names":[],"sources":["../../../../3-targets/postgres/1-target/dist/render-ops.d.mts"],"mappings":";;;;;;KAKK,KAAK,0BAA0B;iBACnB,UAAU,gBAAgB,iBAAiB,UAAU,yBAAyB,KAAK,QAAQ"}
@@ -1,8 +1,8 @@
1
1
  import { u as postgresError } from "./errors-DpdPXR_L-DailcY-X.mjs";
2
- import { et as isPostgresOpFactoryCall } from "./op-factory-call-DQW9c0ec-C3qv_STE.mjs";
2
+ import { et as isPostgresOpFactoryCall } from "./op-factory-call-Bgxtheqh-CsY_eFlX.mjs";
3
3
  import { blindCast } from "@prisma/orm-framework/utils/casts";
4
4
  import { isThenable } from "@prisma/orm-framework/utils/promise";
5
- //#region ../../../3-targets/postgres/1-target/dist/render-ops-BKDfKgOJ.mjs
5
+ //#region ../../../3-targets/postgres/1-target/dist/render-ops-CXUeDteo.mjs
6
6
  /**
7
7
  * Asserts an op materialised by an `OpFactoryCall` targets postgres. The
8
8
  * extension surface lets any contributor emit calls, so this is the
@@ -38,4 +38,4 @@ function renderOps(calls, lowerer) {
38
38
  //#endregion
39
39
  export { renderOps as t };
40
40
 
41
- //# sourceMappingURL=render-ops-BKDfKgOJ-DmoHztdY.mjs.map
41
+ //# sourceMappingURL=render-ops-CXUeDteo-qwmXCohY.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"render-ops-BKDfKgOJ-DmoHztdY.mjs","names":[],"sources":["../../../../3-targets/postgres/1-target/dist/render-ops-BKDfKgOJ.mjs"],"sourcesContent":["import { u as postgresError } from \"./errors-DpdPXR_L.mjs\";\nimport { Y as isPostgresOpFactoryCall } from \"./op-factory-call-DQW9c0ec.mjs\";\nimport { blindCast } from \"@internal/utils/casts\";\nimport { isThenable } from \"@internal/utils/promise\";\n//#region src/core/migrations/render-ops.ts\n/**\n* Asserts an op materialised by an `OpFactoryCall` targets postgres. The\n* extension surface lets any contributor emit calls, so this is the\n* integration boundary where a stray non-postgres op would otherwise\n* silently flow through to postgres-shaped renderers — exactly the\n* place to fail loudly with op metadata (`id` + `target.id`).\n*/\nfunction assertPostgresOp(op, callFactoryName) {\n\tconst targetId = blindCast(op).target?.id;\n\tif (targetId !== \"postgres\") throw postgresError(\"MIGRATION.TARGET_MISMATCH\", `renderOps: expected postgres op but got target.id=\"${String(targetId)}\" for op.id=\"${op.id}\" (factoryName=\"${callFactoryName}\"). An OpFactoryCall produced an op for a different target on the postgres planner path; check the call's target binding.`, { meta: {\n\t\topId: op.id,\n\t\ttargetId: String(targetId),\n\t\tfactoryName: callFactoryName\n\t} });\n}\nfunction checkedOp(opOrPromise, callFactoryName) {\n\tif (isThenable(opOrPromise)) {\n\t\tconst checked = opOrPromise.then((op) => {\n\t\t\tassertPostgresOp(op, callFactoryName);\n\t\t\treturn op;\n\t\t});\n\t\tchecked.catch(() => void 0);\n\t\treturn checked;\n\t}\n\tassertPostgresOp(opOrPromise, callFactoryName);\n\treturn opOrPromise;\n}\nfunction renderOps(calls, lowerer) {\n\treturn calls.flatMap((c) => {\n\t\treturn (isPostgresOpFactoryCall(c) ? c.toOps(lowerer) : [blindCast(c).toOp(lowerer)]).map((opOrPromise) => checkedOp(opOrPromise, c.factoryName));\n\t});\n}\n//#endregion\nexport { renderOps as t };\n\n//# sourceMappingURL=render-ops-BKDfKgOJ.mjs.map"],"mappings":";;;;;;;;;;;;AAYA,SAAS,iBAAiB,IAAI,iBAAiB;CAC9C,MAAM,WAAW,UAAU,EAAE,CAAC,CAAC,QAAQ;CACvC,IAAI,aAAa,YAAY,MAAM,cAAc,6BAA6B,sDAAsD,OAAO,QAAQ,EAAE,eAAe,GAAG,GAAG,kBAAkB,gBAAgB,4HAA4H,EAAE,MAAM;EAC/U,MAAM,GAAG;EACT,UAAU,OAAO,QAAQ;EACzB,aAAa;CACd,EAAE,CAAC;AACJ;AACA,SAAS,UAAU,aAAa,iBAAiB;CAChD,IAAI,WAAW,WAAW,GAAG;EAC5B,MAAM,UAAU,YAAY,MAAM,OAAO;GACxC,iBAAiB,IAAI,eAAe;GACpC,OAAO;EACR,CAAC;EACD,QAAQ,YAAY,KAAK,CAAC;EAC1B,OAAO;CACR;CACA,iBAAiB,aAAa,eAAe;CAC7C,OAAO;AACR;AACA,SAAS,UAAU,OAAO,SAAS;CAClC,OAAO,MAAM,SAAS,MAAM;EAC3B,QAAQ,wBAAwB,CAAC,IAAI,EAAE,MAAM,OAAO,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,KAAK,OAAO,CAAC,EAAA,CAAG,KAAK,gBAAgB,UAAU,aAAa,EAAE,WAAW,CAAC;CACjJ,CAAC;AACF"}
1
+ {"version":3,"file":"render-ops-CXUeDteo-qwmXCohY.mjs","names":[],"sources":["../../../../3-targets/postgres/1-target/dist/render-ops-CXUeDteo.mjs"],"sourcesContent":["import { u as postgresError } from \"./errors-DpdPXR_L.mjs\";\nimport { Y as isPostgresOpFactoryCall } from \"./op-factory-call-Bgxtheqh.mjs\";\nimport { blindCast } from \"@internal/utils/casts\";\nimport { isThenable } from \"@internal/utils/promise\";\n//#region src/core/migrations/render-ops.ts\n/**\n* Asserts an op materialised by an `OpFactoryCall` targets postgres. The\n* extension surface lets any contributor emit calls, so this is the\n* integration boundary where a stray non-postgres op would otherwise\n* silently flow through to postgres-shaped renderers — exactly the\n* place to fail loudly with op metadata (`id` + `target.id`).\n*/\nfunction assertPostgresOp(op, callFactoryName) {\n\tconst targetId = blindCast(op).target?.id;\n\tif (targetId !== \"postgres\") throw postgresError(\"MIGRATION.TARGET_MISMATCH\", `renderOps: expected postgres op but got target.id=\"${String(targetId)}\" for op.id=\"${op.id}\" (factoryName=\"${callFactoryName}\"). An OpFactoryCall produced an op for a different target on the postgres planner path; check the call's target binding.`, { meta: {\n\t\topId: op.id,\n\t\ttargetId: String(targetId),\n\t\tfactoryName: callFactoryName\n\t} });\n}\nfunction checkedOp(opOrPromise, callFactoryName) {\n\tif (isThenable(opOrPromise)) {\n\t\tconst checked = opOrPromise.then((op) => {\n\t\t\tassertPostgresOp(op, callFactoryName);\n\t\t\treturn op;\n\t\t});\n\t\tchecked.catch(() => void 0);\n\t\treturn checked;\n\t}\n\tassertPostgresOp(opOrPromise, callFactoryName);\n\treturn opOrPromise;\n}\nfunction renderOps(calls, lowerer) {\n\treturn calls.flatMap((c) => {\n\t\treturn (isPostgresOpFactoryCall(c) ? c.toOps(lowerer) : [blindCast(c).toOp(lowerer)]).map((opOrPromise) => checkedOp(opOrPromise, c.factoryName));\n\t});\n}\n//#endregion\nexport { renderOps as t };\n\n//# sourceMappingURL=render-ops-CXUeDteo.mjs.map"],"mappings":";;;;;;;;;;;;AAYA,SAAS,iBAAiB,IAAI,iBAAiB;CAC9C,MAAM,WAAW,UAAU,EAAE,CAAC,CAAC,QAAQ;CACvC,IAAI,aAAa,YAAY,MAAM,cAAc,6BAA6B,sDAAsD,OAAO,QAAQ,EAAE,eAAe,GAAG,GAAG,kBAAkB,gBAAgB,4HAA4H,EAAE,MAAM;EAC/U,MAAM,GAAG;EACT,UAAU,OAAO,QAAQ;EACzB,aAAa;CACd,EAAE,CAAC;AACJ;AACA,SAAS,UAAU,aAAa,iBAAiB;CAChD,IAAI,WAAW,WAAW,GAAG;EAC5B,MAAM,UAAU,YAAY,MAAM,OAAO;GACxC,iBAAiB,IAAI,eAAe;GACpC,OAAO;EACR,CAAC;EACD,QAAQ,YAAY,KAAK,CAAC;EAC1B,OAAO;CACR;CACA,iBAAiB,aAAa,eAAe;CAC7C,OAAO;AACR;AACA,SAAS,UAAU,OAAO,SAAS;CAClC,OAAO,MAAM,SAAS,MAAM;EAC3B,QAAQ,wBAAwB,CAAC,IAAI,EAAE,MAAM,OAAO,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,KAAK,OAAO,CAAC,EAAA,CAAG,KAAK,gBAAgB,UAAU,aAAa,EAAE,WAAW,CAAC;CACjJ,CAAC;AACF"}
@@ -1,14 +1,9 @@
1
1
  import { t as DEFAULT_NAMESPACE_ID } from "./namespace-ids-xtp_ZY86-Cxc0dBbO.mjs";
2
2
  import { m as isPostgresSchema } from "./postgres-schema-BBWgs4fX-DWdYxNi8.mjs";
3
3
  import { UNBOUND_NAMESPACE_ID } from "@prisma/orm-framework/components/ir";
4
- //#region ../../../3-targets/postgres/1-target/dist/resolve-ddl-schema-BZzteXH1.mjs
4
+ //#region ../../../3-targets/postgres/1-target/dist/resolve-ddl-schema-DwoTc0nu.mjs
5
5
  /**
6
- * Given the contract's storage and a namespace id, returns the live Postgres
7
- * DDL schema name that namespace maps to. A named Postgres namespace dispatches
8
- * to its `ddlSchemaName(storage)`; the unbound sentinel resolves to
9
- * `DEFAULT_NAMESPACE_ID` (the search-path default for offline planning); a
10
- * bare object payload (used by some tests) falls back to the namespace id
11
- * itself.
6
+ * Given the contract's storage and a namespace id, returns the live Postgres DDL schema name that namespace maps to. A named Postgres namespace dispatches to its `ddlSchemaName(storage)`; the unbound sentinel resolves to `DEFAULT_NAMESPACE_ID`, the schema an unqualified table lands in under the default search path; a bare object payload (used by some tests) falls back to the namespace id itself. An extension in the unbound namespace does not go through here: it has no fixed schema, and verification finds it through the connection's search path (ADR 316).
12
7
  */
13
8
  function resolveDdlSchemaForNamespaceStorage(storage, namespaceId) {
14
9
  if (namespaceId === UNBOUND_NAMESPACE_ID) return DEFAULT_NAMESPACE_ID;
@@ -31,4 +26,4 @@ function ddlSchemaOfCallSchema(callSchemaName) {
31
26
  //#endregion
32
27
  export { emissionSchemaForNamespace as n, resolveDdlSchemaForNamespaceStorage as r, ddlSchemaOfCallSchema as t };
33
28
 
34
- //# sourceMappingURL=resolve-ddl-schema-BZzteXH1-C57Iavtu.mjs.map
29
+ //# sourceMappingURL=resolve-ddl-schema-DwoTc0nu-CvyB2Tfu.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resolve-ddl-schema-DwoTc0nu-CvyB2Tfu.mjs","names":[],"sources":["../../../../3-targets/postgres/1-target/dist/resolve-ddl-schema-DwoTc0nu.mjs"],"sourcesContent":["import { t as DEFAULT_NAMESPACE_ID } from \"./namespace-ids-xtp_ZY86.mjs\";\nimport { r as isPostgresSchema } from \"./postgres-schema-BBWgs4fX.mjs\";\nimport { UNBOUND_NAMESPACE_ID } from \"@internal/framework-components/ir\";\n//#region src/core/migrations/resolve-ddl-schema.ts\n/**\n* Given the contract's storage and a namespace id, returns the live Postgres DDL schema name that namespace maps to. A named Postgres namespace dispatches to its `ddlSchemaName(storage)`; the unbound sentinel resolves to `DEFAULT_NAMESPACE_ID`, the schema an unqualified table lands in under the default search path; a bare object payload (used by some tests) falls back to the namespace id itself. An extension in the unbound namespace does not go through here: it has no fixed schema, and verification finds it through the connection's search path (ADR 316).\n*/\nfunction resolveDdlSchemaForNamespaceStorage(storage, namespaceId) {\n\tif (namespaceId === UNBOUND_NAMESPACE_ID) return DEFAULT_NAMESPACE_ID;\n\tconst namespace = storage.namespaces[namespaceId];\n\tif (namespace && isPostgresSchema(namespace)) return namespace.ddlSchemaName(storage);\n\treturn namespaceId;\n}\n/**\n* The schema name a planned call carries for a namespace: the unbound sentinel stays as it is, so the call renders without a schema, and a named namespace resolves to its DDL schema.\n*/\nfunction emissionSchemaForNamespace(contract, namespaceId) {\n\treturn namespaceId === UNBOUND_NAMESPACE_ID ? UNBOUND_NAMESPACE_ID : resolveDdlSchemaForNamespaceStorage(contract.storage, namespaceId);\n}\n/**\n* The live DDL schema a call's schema name stands for: the unbound sentinel is `DEFAULT_NAMESPACE_ID`, and any other name is already a DDL schema.\n*/\nfunction ddlSchemaOfCallSchema(callSchemaName) {\n\treturn callSchemaName === UNBOUND_NAMESPACE_ID ? DEFAULT_NAMESPACE_ID : callSchemaName;\n}\n//#endregion\nexport { emissionSchemaForNamespace as n, resolveDdlSchemaForNamespaceStorage as r, ddlSchemaOfCallSchema as t };\n\n//# sourceMappingURL=resolve-ddl-schema-DwoTc0nu.mjs.map"],"mappings":";;;;;;;AAOA,SAAS,oCAAoC,SAAS,aAAa;CAClE,IAAI,gBAAgB,sBAAsB,OAAO;CACjD,MAAM,YAAY,QAAQ,WAAW;CACrC,IAAI,aAAa,iBAAiB,SAAS,GAAG,OAAO,UAAU,cAAc,OAAO;CACpF,OAAO;AACR;;;;AAIA,SAAS,2BAA2B,UAAU,aAAa;CAC1D,OAAO,gBAAgB,uBAAuB,uBAAuB,oCAAoC,SAAS,SAAS,WAAW;AACvI;;;;AAIA,SAAS,sBAAsB,gBAAgB;CAC9C,OAAO,mBAAmB,uBAAuB,uBAAuB;AACzE"}
@@ -1,5 +1,5 @@
1
1
  import { t as PostgresContract } from "./postgres-schema-CJvUnBU9-Bvn7zbr1.mjs";
2
- import { c as PostgresLoweredStatement } from "./types-D6lgKhE5-DVHMZPbP.mjs";
2
+ import { c as PostgresLoweredStatement } from "./types-D6lgKhE5-DEwv-pSi.mjs";
3
3
  import { Adapter, AnyQueryAst } from "@prisma/orm-family-sql/relational-core/ast";
4
4
  import { SqlRuntimeAdapterDescriptor } from "@prisma/orm-family-sql/runtime";
5
5
  import { RuntimeAdapterInstance } from "@prisma/orm-framework/components/execution";
@@ -9,4 +9,4 @@ interface SqlRuntimeAdapter extends RuntimeAdapterInstance<'sql', 'postgres'>, A
9
9
  declare const postgresRuntimeAdapterDescriptor: SqlRuntimeAdapterDescriptor<'postgres', SqlRuntimeAdapter>;
10
10
  //#endregion
11
11
  export { postgresRuntimeAdapterDescriptor as n, SqlRuntimeAdapter as t };
12
- //# sourceMappingURL=runtime-K2strEv6.d.mts.map
12
+ //# sourceMappingURL=runtime-SZ0CXU1B.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"runtime-K2strEv6.d.mts","names":[],"sources":["../../../../3-targets/postgres/2-adapter/dist/runtime.d.mts"],"mappings":";;;;;;;UAKU,0BAA0B,2CAA2C,QAAQ,aAAa,kBAAkB;cACxG,kCAAkC,wCAAwC"}
1
+ {"version":3,"file":"runtime-SZ0CXU1B.d.mts","names":[],"sources":["../../../../3-targets/postgres/2-adapter/dist/runtime.d.mts"],"mappings":";;;;;;;UAKU,0BAA0B,2CAA2C,QAAQ,aAAa,kBAAkB;cACxG,kCAAkC,wCAAwC"}
@@ -0,0 +1,10 @@
1
+ import { SqlStorage } from "@prisma/orm-family-sql/contract/types";
2
+ //#region ../../../3-targets/postgres/1-target/dist/schema-ir-annotations.d.mts
3
+ //#region src/core/migrations/resolve-ddl-schema.d.ts
4
+ /**
5
+ * Given the contract's storage and a namespace id, returns the live Postgres DDL schema name that namespace maps to. A named Postgres namespace dispatches to its `ddlSchemaName(storage)`; the unbound sentinel resolves to `DEFAULT_NAMESPACE_ID`, the schema an unqualified table lands in under the default search path; a bare object payload (used by some tests) falls back to the namespace id itself. An extension in the unbound namespace does not go through here: it has no fixed schema, and verification finds it through the connection's search path (ADR 316).
6
+ */
7
+ declare function resolveDdlSchemaForNamespaceStorage(storage: SqlStorage, namespaceId: string): string;
8
+ //#endregion
9
+ export { resolveDdlSchemaForNamespaceStorage as t };
10
+ //# sourceMappingURL=schema-ir-annotations-u590Zxbh.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schema-ir-annotations-u590Zxbh.d.mts","names":[],"sources":["../../../../3-targets/postgres/1-target/dist/schema-ir-annotations.d.mts"],"mappings":";;;;;;iBAMiB,oCAAoC,SAAS,YAAY"}
@@ -1,7 +1,7 @@
1
1
  import { t as PostgresContract } from "./postgres-schema-CJvUnBU9-Bvn7zbr1.mjs";
2
2
  import { i as PostgresCodecDescriptorRegistry } from "./codec-descriptor-nXA2rkO1-DyArG-p2.mjs";
3
3
  import "./codec-descriptor-Dp3lP7Rc.mjs";
4
- import "./types-D6lgKhE5-DVHMZPbP.mjs";
4
+ import "./types-D6lgKhE5-DEwv-pSi.mjs";
5
5
  import { AnyQueryAst, LoweredParam } from "@prisma/orm-family-sql/relational-core/ast";
6
6
  import { DataTypeLookup } from "@prisma/orm-framework/components/codec";
7
7
  import { CapabilityMatrix } from "@prisma/orm-framework/components/components";
@@ -18,4 +18,4 @@ declare function renderLoweredSql(ast: AnyQueryAst, contract: PostgresContract,
18
18
  };
19
19
  //#endregion
20
20
  export { renderLoweredSql as t };
21
- //# sourceMappingURL=sql-renderer-PT6pQ66O.d.mts.map
21
+ //# sourceMappingURL=sql-renderer-DAkljp6a.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"sql-renderer-PT6pQ66O.d.mts","names":[],"sources":["../../../../3-targets/postgres/2-adapter/dist/sql-renderer.d.mts"],"mappings":";;;;;;;;;;;;;;iBAWiB,iBAAiB,KAAK,aAAa,UAAU,kBAAkB,yBAAyB,iCAAiC,gBAAgB,gBAAgB,cAAc;WAC7K;WACA,iBAAiB"}
1
+ {"version":3,"file":"sql-renderer-DAkljp6a.d.mts","names":[],"sources":["../../../../3-targets/postgres/2-adapter/dist/sql-renderer.d.mts"],"mappings":";;;;;;;;;;;;;;iBAWiB,iBAAiB,KAAK,aAAa,UAAU,kBAAkB,yBAAyB,iCAAiC,gBAAgB,gBAAgB,cAAc;WAC7K;WACA,iBAAiB"}
package/dist/target.d.mts CHANGED
@@ -1,11 +1,11 @@
1
1
  import { n as PostgresRlsPolicyInput, r as RenderedRlsPolicyLiteral, t as PostgresRlsPolicy } from "./postgres-rls-policy-CnDxf3z9-BjpVyUnK.mjs";
2
- import { a as PostgresNamespaceSchemaNode, c as PostgresNativeEnumSchemaNodeInput, d as PostgresRoleSchemaNode, f as PostgresRoleSchemaNodeInput, i as PostgresExtensionSchemaNodeInput, l as PostgresPolicySchemaNode, m as PostgresTableSchemaNodeInput, n as PostgresDatabaseSchemaNodeInput, o as PostgresNamespaceSchemaNodeInput, p as PostgresTableSchemaNode, r as PostgresExtensionSchemaNode, s as PostgresNativeEnumSchemaNode, t as PostgresDatabaseSchemaNode, u as PostgresPolicySchemaNodeInput } from "./postgres-database-schema-node-BjmJ6_Cs-LyZ0n9oj.mjs";
2
+ import { a as PostgresNamespaceSchemaNode, c as PostgresNativeEnumSchemaNodeInput, d as PostgresRoleSchemaNode, f as PostgresRoleSchemaNodeInput, i as PostgresExtensionSchemaNodeInput, l as PostgresPolicySchemaNode, m as PostgresTableSchemaNodeInput, n as PostgresDatabaseSchemaNodeInput, o as PostgresNamespaceSchemaNodeInput, p as PostgresTableSchemaNode, r as PostgresExtensionSchemaNode, s as PostgresNativeEnumSchemaNode, t as PostgresDatabaseSchemaNode, u as PostgresPolicySchemaNodeInput } from "./postgres-database-schema-node-CqEX2NPO-Be-Vk1Iw.mjs";
3
3
  import { t as PostgresSchemaNodeKind } from "./schema-node-kinds-Baf4tcly-CI3SyVG4.mjs";
4
4
  import { t as PostgresColumnDefault } from "./types-ue6jkJyF-D79DmBTl.mjs";
5
5
  import { t as PostgresTableSource } from "./table-source-ikHOZmhD-vYcblBYv.mjs";
6
6
  import { a as PostgresNativeEnumInput, c as PostgresRole, d as PostgresUnboundSchema, f as isPostgresSchema, i as PostgresNativeEnum, l as PostgresRoleInput, n as PostgresExtension, o as PostgresRlsEnablement, p as postgresCreateNamespace, r as PostgresExtensionInput, s as PostgresRlsEnablementInput, t as PostgresContract, u as PostgresSchema } from "./postgres-schema-CJvUnBU9-Bvn7zbr1.mjs";
7
7
  import { t as postgresRenderCheckExpressions } from "./check-expressions-BLd3bGf1-CwtBWbN3.mjs";
8
- import { n as policyInputFromSerialized, t as SerializedRlsPolicy } from "./types-D6p1198n.mjs";
8
+ import { n as policyInputFromSerialized, t as SerializedRlsPolicy } from "./types-BbuQ92k_.mjs";
9
9
  import { a as PostgresCodecOptions, c as isPostgresCodecDescriptor, i as PostgresCodecDescriptorRegistry, l as postgresCodec, n as AnyPostgresCodecDescriptor, o as buildPostgresCodecDescriptorRegistry, r as PostgresCodecDescriptor, s as definePostgresCodecs, t as AdaptedPostgresCodecDescriptor } from "./codec-descriptor-nXA2rkO1-DyArG-p2.mjs";
10
10
  import "./codec-descriptor-Dp3lP7Rc.mjs";
11
11
  import { A as PG_TIMESTAMP_INSTANT_CODEC_ID, B as PG_VARCHAR_CODEC_ID, C as PG_OID_CODEC_ID, D as PG_TIMESTAMPTZ_STRING_CODEC_ID, E as PG_TIMESTAMPTZ_DATE_CODEC_ID, F as PG_TIME_TEMPORAL_CODEC_ID, G as SQL_RAW_CODEC_ID, H as SQL_CHAR_CODEC_ID, I as PG_TSQUERY_CODEC_ID, K as SQL_TEXT_CODEC_ID, L as PG_UNBOUNDED_INT_CODEC_ID, M as PG_TIMESTAMP_TEMPORAL_CODEC_ID, N as PG_TIMETZ_CODEC_ID, O as PG_TIMESTAMPTZ_TEMPORAL_CODEC_ID, P as PG_TIME_STRING_CODEC_ID, R as PG_UUID_CODEC_ID, S as PG_NUMERIC_CODEC_ID, T as PG_TEXT_CODEC_ID, U as SQL_FLOAT_CODEC_ID, V as PG_XML_CODEC_ID, W as SQL_INT_CODEC_ID, _ as PG_INTERVAL_STRING_CODEC_ID, a as PG_DATE_STRING_CODEC_ID, b as PG_JSON_CODEC_ID, c as PG_FLOAT4_CODEC_ID, d as PG_INET_CODEC_ID, f as PG_INT2_CODEC_ID, g as PG_INTERVAL_CODEC_ID, h as PG_INT8_NUMBER_CODEC_ID, i as PG_CHAR_CODEC_ID, j as PG_TIMESTAMP_STRING_CODEC_ID, k as PG_TIMESTAMP_DATE_CODEC_ID, l as PG_FLOAT8_CODEC_ID, m as PG_INT8_CODEC_ID, n as PG_BOOL_CODEC_ID, o as PG_DATE_TEMPORAL_CODEC_ID, p as PG_INT4_CODEC_ID, q as SQL_VARCHAR_CODEC_ID, r as PG_BYTEA_CODEC_ID, s as PG_ENUM_CODEC_ID, t as PG_BIT_CODEC_ID, u as PG_FLOAT_CODEC_ID, v as PG_INT_CODEC_ID, w as PG_TEXT_ARRAY_CODEC_ID, x as PG_MONEY_CODEC_ID, y as PG_JSONB_CODEC_ID, z as PG_VARBIT_CODEC_ID } from "./codec-ids-5MgmfzkI-C5V1rph6.mjs";
@@ -18,44 +18,44 @@ import "./ddl-B8nQZTWN.mjs";
18
18
  import "./codec-ids-JTQCwgBI.mjs";
19
19
  import { a as FullTextIndexCandidate, c as FullTextSearchLanguage, d as fullTextIndexProblems, f as weightGroupsOf, i as FullTextFieldsInput, n as FULL_TEXT_INDEX_TYPE, o as FullTextIndexDefinition, r as FullTextColumnCodecs, s as FullTextIndexProblem, t as DEFAULT_FULL_TEXT_SEARCH_LANGUAGE, u as describeFullTextIndexProblem } from "./full-text-index-definition-D5iBWLss-BEpqiucV.mjs";
20
20
  import { a as quoteQualifiedName, i as quoteIdentifier, n as inlineLiteral, o as renderFullTextIndexDocument, r as qualifyName, s as validateEnumValueLength, t as escapeLiteral } from "./sql-utils-Bq4nuPvy.mjs";
21
- import { t as postgresAggregateDescriptors } from "./aggregates-C2c48ORM.mjs";
21
+ import { t as postgresAggregateDescriptors } from "./aggregates-0EfVySBb.mjs";
22
22
  import { a as Numeric, c as TimestampString, d as VarBit, f as Varchar, i as JsonValue$1, l as TimestamptzString, n as Char, o as ParameterizedOutputTypesForTypeParams, r as CodecTypes, s as TimeString, t as Bit, u as Timetz } from "./codec-types-xyW4TiJD-CRDK7QcS.mjs";
23
23
  import "./codec-types-FPJG3oQH.mjs";
24
24
  import { A as jsonb, B as textArray, C as createTable, D as indexExistsAst, E as extensionInSchemaAst, F as sequenceNameAvailableAst, H as timestamptzJsDate, I as tableExistsAst, L as tableIsEmptyAst, M as pgTable, N as rlsEnabledAst, O as int4, P as rlsPolicyExistsAst, R as tablePrimaryKeyAst, S as createSchema, T as extensionExistsAst, U as toRegclass, V as timestamptz, _ as columnDefaultSequenceAst, a as IndexExistsCheckBuilder, b as columnTypeAst, c as TableExistsCheckBuilder, d as addConstraintAction, f as alterColumnTypeAction, g as columnDefaultAst, h as buildSignMarkerBootstrapQueries, i as ExtensionExistsCheckBuilder, j as noNullValuesAst, k as int8, l as TablePrimaryKeyCheckBuilder, m as buildControlTableBootstrapQueries, n as ColumnExistsCheckBuilder, o as RlsEnabledCheckBuilder, p as alterTable, r as ConstraintExistsCheckBuilder, s as RlsPolicyExistsCheckBuilder, t as ColumnDefaultCheckBuilder, u as addColumnAction, v as columnExistsAst, w as dropDefaultAction, x as constraintExistsAst, y as columnNullabilityAst, z as text } from "./contract-free-DcaYH2c5.mjs";
25
- import { t as PostgresPlanTargetDetails } from "./planner-target-details-HkP4RrRO-D6VtK0jY.mjs";
25
+ import { t as PostgresPlanTargetDetails } from "./planner-target-details-boDXR2s7-CExrk6rf.mjs";
26
26
  import { n as postgresNowGenerators, t as postgresNowGeneratorControlDescriptors } from "./date-time-now-generators-C7om6MxZ-B9S-CnE_.mjs";
27
- import { n as postgresScalarTypes, t as postgresExplicitTypes } from "./control-B3mLvrSy.mjs";
28
- import { i as dataTransform, r as DataTransformOptions, t as DataTransformClosure } from "./data-transform-nGy9rz87-CE3DGlgn.mjs";
29
- import "./data-transform-nqkqNIb8.mjs";
27
+ import { n as postgresScalarTypes, t as postgresExplicitTypes } from "./control-Ci6kSDEg.mjs";
28
+ import { i as dataTransform, r as DataTransformOptions, t as DataTransformClosure } from "./data-transform-2o0tpMs8-DADYIvEZ.mjs";
29
+ import "./data-transform-DX9I716A.mjs";
30
30
  import { A as pgText, B as pgTsquery, C as pgJsonbEnumRefusal, D as pgNumericParams, E as pgNumeric, F as pgTimestampStoredText, G as postgresDataTypeEntries, H as pgVarbit, I as pgTimestamptz, J as qualifiedEnumName, K as postgresDataTypes, L as pgTimestamptzStoredText, M as pgTime, N as pgTimeStoredText, O as pgOid, P as pgTimestamp, R as pgTimetz, S as pgJsonb, T as pgMoneyStoredText, U as pgVarchar, V as pgUuid, W as pgXml, _ as pgInt2, a as pgBitLengthParams, b as pgInterval, c as pgChar, d as pgDateStoredText, f as pgEnum, g as pgInet, h as pgFloat8, i as pgBit, j as pgTextArray, k as pgPrecisionParams, l as pgCharacterLengthParams, m as pgFloat4, n as isPgOid, o as pgBool, p as pgEnumParams, q as postgresTextDataTypes, r as moneyTextOfCents, s as pgBytea, t as createPostgresBuiltinDataTypeLookup, u as pgDate, v as pgInt4, w as pgMoney, x as pgJson, y as pgInt8, z as pgTimetzStoredText } from "./data-types-Ct7TIZq3.mjs";
31
31
  import { n as postgresResolveDefault, r as readPostgresDefault, t as PostgresReportedDefault } from "./default-normalizer-DO-cH75Q.mjs";
32
- import { t as buildPostgresPlanDiff } from "./diff-database-schema-COp7SqEI.mjs";
32
+ import { t as buildPostgresPlanDiff } from "./diff-database-schema-rhLkiByE.mjs";
33
33
  import { n as postgresError, t as errorPostgresMigrationStackMissing } from "./errors-BmsTgN1e.mjs";
34
34
  import { _ as plaintoTsquery, a as FullTextIndexReference, c as QueryOperationTypes, d as TsqueryArgument, f as TsqueryExpression, g as phrasetoTsquery, h as fullTextDocument, i as FullTextHeadlineOptions, l as QueryOperationTypesForCodecs, m as TsqueryParserOptions, n as FullTextDocumentColumn, o as FullTextMatchesOptions, p as TsqueryParser, r as FullTextDocumentGroups, s as FullTextRankOptions, t as FullTextDocument, u as TextArgument, v as toTsquery, y as websearchToTsquery } from "./operation-types-DxFsD0qF-Cu43r84y.mjs";
35
35
  import { n as PostgresTsqueryArgument, t as PostgresFullTextMethods } from "./full-text-collection-method-BRDY-2p_-ihxqGzh-.mjs";
36
36
  import { n as tsquery, t as TsqueryTag } from "./full-text-B1-jMF4Z.mjs";
37
37
  import { t as postgresCodecTraitsOf } from "./full-text-index-authoring-CN1L9C1k.mjs";
38
38
  import { i as stackDataTypes, n as alterTypeCheck, r as qualifyTableName, t as ColumnTypeCheck } from "./planner-sql-checks-Ed-WGtge-D9ByMrW4.mjs";
39
- import { A as EnableRowLevelSecurityCall, B as RenameSchemaCall, C as DropExtensionCall, D as DropPostgresRlsPolicyCall, E as DropNotNullCall, F as RemoveStoredValueCall, G as SetExtensionSchemaCall, H as RenameTableCall, I as RenameColumnCall, K as SetNotNullCall, L as RenameConstraintCall, N as RawSqlCall, O as DropSchemaCall, P as RemoveStoredKeyCall, R as RenameIndexCall, S as DropDefaultCall, T as DropNativeEnumTypeCall, U as ReplaceStoredValueCall, V as RenameStoredKeyCall, W as SetDefaultCall, _ as DeleteRowsCall, a as AddNativeEnumValueCall, b as DropColumnCall, c as AddUniqueCall, d as CreateIndexCall, f as CreateNativeEnumTypeCall, g as DataTransformCall, h as CreateTableCall, i as AddForeignKeyCall, j as FillStoredKeyCall, k as DropTableCall, l as AlterColumnTypeCall, m as CreateSchemaCall, n as AddColumnCall, o as AddPrimaryKeyCall, p as CreatePostgresRlsPolicyCall, q as SetTableSchemaCall, r as AddColumnWithTemporaryDefaultCall, s as AddRequiredColumnToEmptyTableCall, t as AddCheckConstraintCall, u as CreateExtensionCall, v as DisableRowLevelSecurityCall, w as DropIndexCall, x as DropConstraintCall, y as DropCheckConstraintCall, z as RenamePostgresRlsPolicyCall } from "./op-factory-call-fPC4Yzy6-B6JHyh7J.mjs";
40
- import { n as planIssues, t as coalesceSubtreeIssues } from "./issue-planner-CbixMGS1.mjs";
39
+ import { A as EnableRowLevelSecurityCall, B as RenameSchemaCall, C as DropExtensionCall, D as DropPostgresRlsPolicyCall, E as DropNotNullCall, F as RemoveStoredValueCall, G as SetExtensionSchemaCall, H as RenameTableCall, I as RenameColumnCall, K as SetNotNullCall, L as RenameConstraintCall, N as RawSqlCall, O as DropSchemaCall, P as RemoveStoredKeyCall, R as RenameIndexCall, S as DropDefaultCall, T as DropNativeEnumTypeCall, U as ReplaceStoredValueCall, V as RenameStoredKeyCall, W as SetDefaultCall, _ as DeleteRowsCall, a as AddNativeEnumValueCall, b as DropColumnCall, c as AddUniqueCall, d as CreateIndexCall, f as CreateNativeEnumTypeCall, g as DataTransformCall, h as CreateTableCall, i as AddForeignKeyCall, j as FillStoredKeyCall, k as DropTableCall, l as AlterColumnTypeCall, m as CreateSchemaCall, n as AddColumnCall, o as AddPrimaryKeyCall, p as CreatePostgresRlsPolicyCall, q as SetTableSchemaCall, r as AddColumnWithTemporaryDefaultCall, s as AddRequiredColumnToEmptyTableCall, t as AddCheckConstraintCall, u as CreateExtensionCall, v as DisableRowLevelSecurityCall, w as DropIndexCall, x as DropConstraintCall, y as DropCheckConstraintCall, z as RenamePostgresRlsPolicyCall } from "./op-factory-call-CG80t74g-D9tjd13N.mjs";
40
+ import { n as planIssues, t as coalesceSubtreeIssues } from "./issue-planner-BlN8mK4E.mjs";
41
41
  import { n as MARKER_LOCK_SQL, t as MARKER_LOCK_KEY } from "./marker-lock-BviIbusV.mjs";
42
42
  import { t as PostgresContractView } from "./postgres-contract-view-BFzIDwwN-hL3QLe_b.mjs";
43
- import { t as PostgresMigration } from "./postgres-migration-MVAsm-Co-CcN0UJd7.mjs";
44
- import { a as fn, c as placeholder, d as sql, f 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-XqRvlRWn.mjs";
43
+ import { t as PostgresMigration } from "./postgres-migration-DUgkNwUR-B3Hr27gY.mjs";
44
+ import { a as fn, c as placeholder, d as sql, f 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-CCE5d6Hu.mjs";
45
45
  import { n as IntrospectedTypeText, r as introspectedTypeText, t as CatalogColumnType } from "./native-type-normalizer-BaGa9eeb.mjs";
46
- import "./op-factory-call-DO-2Ul_8.mjs";
46
+ import "./op-factory-call-DRapuFEI.mjs";
47
47
  import "./operation-types-DExfW5kG.mjs";
48
- import "./pack-DDHu-CxO.mjs";
49
- import { t as TypeScriptRenderablePostgresMigration } from "./planner-produced-postgres-migration-DgUtdqVh-DEhVIDmO.mjs";
50
- import { n as createPostgresMigrationPlanner, t as contractToPostgresDatabaseSchemaNode } from "./planner-Cw5KV0_B.mjs";
48
+ import "./pack-BjD3oNln.mjs";
49
+ import { t as TypeScriptRenderablePostgresMigration } from "./planner-produced-postgres-migration-CDkRlHah-Cknq9LDt.mjs";
50
+ import { n as createPostgresMigrationPlanner, t as contractToPostgresDatabaseSchemaNode } from "./planner-CyyWVHw4.mjs";
51
51
  import { t as buildColumnTypeSql } from "./planner-ddl-builders-CPM3y7cQ.mjs";
52
52
  import { n as resolveIdentityValue, t as buildBuiltinIdentityValue } from "./planner-identity-values-Dsq989Lh.mjs";
53
- import "./planner-produced-postgres-migration-CoX6OBqo.mjs";
53
+ import "./planner-produced-postgres-migration-Davk_RXL.mjs";
54
54
  import { i as hasUniqueConstraint, n as hasForeignKey, r as hasIndex, t as buildSchemaLookupMap } from "./planner-schema-lookup-ceCNOGFf.mjs";
55
55
  import "./planner-sql-checks-rEjFx_Jv.mjs";
56
- import { t as prisma7PostgresBinding } from "./prisma7-binding-ZpDLZt_D.mjs";
57
- import { t as renderOps } from "./render-ops-Bl84i7ut.mjs";
56
+ import { t as prisma7PostgresBinding } from "./prisma7-binding-VYAlkSRR.mjs";
57
+ import { t as renderOps } from "./render-ops-CEwI8Iyf.mjs";
58
58
  import { t as renderCallsToTypeScript } from "./render-typescript-BysdXYpH.mjs";
59
59
  import { n as PostgresListDecoder, r as PostgresRuntimeTargetInstance, t as PostgresContractSerializer } from "./runtime-COkNK8R6.mjs";
60
- import { t as resolveDdlSchemaForNamespaceStorage } from "./schema-ir-annotations-BygaWBiC.mjs";
60
+ import { t as resolveDdlSchemaForNamespaceStorage } from "./schema-ir-annotations-u590Zxbh.mjs";
61
61
  export { type AdaptedPostgresCodecDescriptor, AddCheckConstraintCall, AddColumnAction, AddColumnCall, AddColumnWithTemporaryDefaultCall, AddConstraintAction, AddForeignKeyCall, AddNativeEnumValueCall, AddPrimaryKeyCall, AddRequiredColumnToEmptyTableCall, AddUniqueCall, AlterColumnTypeAction, AlterColumnTypeCall, type AlterTableActionVisitor, type AnyAlterTableAction, type AnyPostgresCodecDescriptor, type AnyPostgresDdlNode, Bit, type CatalogColumnType, Char, CodecTypes, type ColumnDefaultCheckBuilder, type ColumnExistsCheckBuilder, type ColumnTypeCheck, type ConstraintExistsCheckBuilder, type ContentHashParts, CreateExtensionCall, CreateIndexCall, type CreateIndexElements, CreateNativeEnumTypeCall, CreatePostgresRlsPolicyCall, CreateSchemaCall, CreateTableCall, DEFAULT_FULL_TEXT_SEARCH_LANGUAGE, DataTransformCall, type DataTransformClosure, type DataTransformOptions, type DdlIndexElements, DeleteRowsCall, DisableRowLevelSecurityCall, DropCheckConstraintCall, DropColumnCall, DropConstraintCall, DropDefaultAction, DropDefaultCall, DropExtensionCall, DropIndexCall, DropNativeEnumTypeCall, DropNotNullCall, DropPostgresRlsPolicyCall, DropSchemaCall, DropTableCall, EnableRowLevelSecurityCall, type ExtensionExistsCheckBuilder, FULL_TEXT_INDEX_TYPE, FillStoredKeyCall, type FullTextColumnCodecs, FullTextDocument, type FullTextDocumentColumn, type FullTextDocumentGroups, type FullTextFieldsInput, type FullTextHeadlineOptions, type FullTextIndexCandidate, type FullTextIndexDefinition, type FullTextIndexProblem, type FullTextIndexReference, type FullTextMatchesOptions, type FullTextRankOptions, type FullTextSearchLanguage, type IndexExistsCheckBuilder, type IntrospectedTypeText, type JsonValue$1 as JsonValue, MARKER_LOCK_KEY, MARKER_LOCK_SQL, 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_INTERVAL_STRING_CODEC_ID, PG_INT_CODEC_ID, PG_JSONB_CODEC_ID, PG_JSON_CODEC_ID, PG_MONEY_CODEC_ID, PG_NUMERIC_CODEC_ID, PG_OID_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_DATE_CODEC_ID, PG_TIMESTAMP_INSTANT_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_TSQUERY_CODEC_ID, PG_UNBOUNDED_INT_CODEC_ID, PG_UUID_CODEC_ID, PG_VARBIT_CODEC_ID, PG_VARCHAR_CODEC_ID, PG_XML_CODEC_ID, POLICY_COMMAND_SQL, POLICY_OPERATION_PREDICATES, ParameterizedOutputTypesForTypeParams, 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, PgIntervalStringCodec, PgIntervalStringDescriptor, type PgJsonDescriptor, type PgJsonbDescriptor, type PgMoneyDescriptor, type PgNumericDescriptor, type PgOidDescriptor, type PgTextDescriptor, PgTimestampDateCodec, PgTimestampDateDescriptor, PgTimestamptzDateCodec, PgTimestamptzDateDescriptor, type PgTimetzDescriptor, type PgUnboundedIntDescriptor, type PgUuidDescriptor, type PgVarbitDescriptor, type PgVarcharDescriptor, type PgXmlDescriptor, PostgresAlterIndexRename, PostgresAlterPolicyRename, PostgresAlterSchemaRename, PostgresAlterTable, PostgresAlterTableSetSchema, PostgresCodecDescriptor, type PostgresCodecDescriptorRegistry, type PostgresCodecOptions, type PostgresCodecRegistry, type PostgresColumnDefault, type PostgresContract, PostgresContractSerializer, PostgresContractView, PostgresCreateIndex, PostgresCreatePolicy, PostgresCreateSchema, PostgresCreateTable, PostgresCreateType, PostgresDatabaseSchemaNode, type PostgresDatabaseSchemaNodeInput, PostgresDdlNode, type PostgresDdlVisitor, PostgresDisableRowLevelSecurity, PostgresDropIndex, PostgresDropPolicy, PostgresDropSchema, PostgresDropType, PostgresExtension, type PostgresExtensionInput, PostgresExtensionSchemaNode, type PostgresExtensionSchemaNodeInput, type PostgresFullTextMethods, PostgresListDecoder, PostgresNamespaceSchemaNode, type PostgresNamespaceSchemaNodeInput, PostgresNativeEnum, type PostgresNativeEnumInput, PostgresNativeEnumSchemaNode, type PostgresNativeEnumSchemaNodeInput, type PostgresPlanTargetDetails, PostgresPolicySchemaNode, type PostgresPolicySchemaNodeInput, type PostgresReportedDefault, PostgresRlsEnablement, type PostgresRlsEnablementInput, PostgresRlsPolicy, type PostgresRlsPolicyInput, PostgresRole, type PostgresRoleInput, PostgresRoleSchemaNode, type PostgresRoleSchemaNodeInput, PostgresRuntimeTargetInstance, PostgresSchema, PostgresSchemaNodeKind, PostgresTableSchemaNode, type PostgresTableSchemaNodeInput, PostgresTableSource, type PostgresTsqueryArgument, PostgresUnboundSchema, type QueryOperationTypes, type QueryOperationTypesForCodecs, RawSqlCall, RemoveStoredKeyCall, RemoveStoredValueCall, RenameColumnCall, RenameConstraintCall, RenameIndexCall, RenamePostgresRlsPolicyCall, RenameSchemaCall, RenameStoredKeyCall, RenameTableCall, type RenderedRlsPolicyLiteral, ReplaceStoredValueCall, type RlsEnabledCheckBuilder, type RlsPolicyExistsCheckBuilder, SQL_CHAR_CODEC_ID, SQL_FLOAT_CODEC_ID, SQL_INT_CODEC_ID, SQL_RAW_CODEC_ID, SQL_TEXT_CODEC_ID, SQL_VARCHAR_CODEC_ID, type SerializedRlsPolicy, SetDefaultCall, SetExtensionSchemaCall, SetNotNullCall, SetTableSchemaCall, type TableExistsCheckBuilder, type TablePrimaryKeyCheckBuilder, type TextArgument, TimeString, TimestampString, TimestamptzString, Timetz, type TsqueryArgument, type TsqueryExpression, type TsqueryParser, type TsqueryParserOptions, type TsqueryTag, TypeScriptRenderablePostgresMigration, VarBit, Varchar, addColumnAction, addConstraintAction, alterColumnTypeAction, alterTable, alterTypeCheck, assemblePostgresCodecRegistry, assemblePostgresCodecRegistryWithBuiltins, buildBuiltinIdentityValue, buildColumnTypeSql, buildControlTableBootstrapQueries, buildPostgresCodecDescriptorRegistry, buildPostgresPlanDiff, buildSchemaLookupMap, buildSignMarkerBootstrapQueries, checkExpression, coalesceSubtreeIssues, col, columnDefaultAst, columnDefaultSequenceAst, columnExistsAst, columnNullabilityAst, columnTypeAst, computeContentHash, constraintExistsAst, contractToPostgresDatabaseSchemaNode, createExtension, createPostgresBuiltinCodecLookup, createPostgresBuiltinDataTypeLookup, createPostgresCodecRegistryWithBuiltins, createPostgresMigrationPlanner, createSchema, createTable, dataTransform, decodePostgresListText, definePostgresCodecs, describeFullTextIndexProblem, dropDefaultAction, errorPostgresMigrationStackMissing, escapeLiteral, extensionExistsAst, extensionInSchemaAst, fn, foreignKey, fullTextDocument, fullTextIndexProblems, hasForeignKey, hasIndex, hasUniqueConstraint, indexExistsAst, inlineLiteral, int4, int8, introspectedTypeText, isPgEnumParams, isPgOid, isPostgresCodecDescriptor, isPostgresSchema, jsonb, lit, moneyTextOfCents, noNullValuesAst, parsePostgresListText, pgBit, pgBitColumn, pgBitLengthParams, pgBool, pgBoolColumn, pgBytea, pgChar, pgCharColumn, pgCharacterLengthParams, pgDate, pgDateStoredText, pgEnum, pgEnumDescriptor, pgEnumParams, pgFloat4, pgFloat4Column, pgFloat8, pgFloat8Column, pgFloatColumn, pgInet, pgInetColumn, pgInt2, pgInt2Column, pgInt4, pgInt4Column, pgInt8, pgInt8Column, pgInt8NumberColumn, pgIntColumn, pgInterval, pgIntervalColumn, pgIntervalStringColumn, pgIntervalStringDescriptor, pgJson, pgJsonColumn, pgJsonb, pgJsonbColumn, pgJsonbEnumRefusal, pgMoney, pgMoneyColumn, pgMoneyStoredText, pgNumeric, pgNumericColumn, pgNumericParams, pgOid, pgOidColumn, pgPrecisionParams, pgTable, pgText, pgTextArray, pgTextColumn, pgTime, pgTimeStoredText, pgTimestamp, pgTimestampDateColumn, pgTimestampDateDescriptor, pgTimestampStoredText, pgTimestamptz, pgTimestamptzDateColumn, pgTimestamptzDateDescriptor, pgTimestamptzStoredText, pgTimetz, pgTimetzColumn, pgTimetzStoredText, pgTsquery, pgUnboundedIntColumn, pgUuid, pgUuidColumn, pgVarbit, pgVarbitColumn, pgVarchar, pgVarcharColumn, pgXml, pgXmlColumn, phrasetoTsquery, placeholder, plaintoTsquery, planIssues, policyInputFromSerialized, policyRoleList, postgresAggregateDescriptors, postgresCodec, postgresCodecDescriptorRegistry, postgresCodecRegistry, postgresCodecTraitsOf, postgresCreateNamespace, postgresDataTypeEntries, postgresDataTypes, postgresError, postgresExplicitTypes, postgresNowGeneratorControlDescriptors, postgresNowGenerators, postgresRenderCheckExpressions, postgresResolveDefault, postgresScalarTypes, postgresTextDataTypes, primaryKey, prisma7PostgresBinding, qualifiedEnumName, qualifyName, qualifyTableName, quoteIdentifier, quoteQualifiedName, rawSql, readPostgresDefault, renderCallsToTypeScript, renderFullTextIndexDocument, renderOps, resolveDdlSchemaForNamespaceStorage, resolveIdentityValue, rlsEnabledAst, rlsPolicyExistsAst, sequenceNameAvailableAst, sql, stackDataTypes, tableExistsAst, tableIsEmptyAst, tablePrimaryKeyAst, text, textArray, timestamptz, timestamptzJsDate, toRegclass, toTsquery, tsquery, unique, validateEnumValueLength, websearchToTsquery, weightGroupsOf };