@prisma-next/target-postgres 0.12.0-dev.6 → 0.12.0-dev.60

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 (168) hide show
  1. package/dist/{codec-ids-DliyCWPY.d.mts → codec-ids-B1vOchLE.d.mts} +3 -2
  2. package/dist/codec-ids-B1vOchLE.d.mts.map +1 -0
  3. package/dist/{codec-ids-C5qzBqus.mjs → codec-ids-CTikp1if.mjs} +3 -2
  4. package/dist/codec-ids-CTikp1if.mjs.map +1 -0
  5. package/dist/codec-ids.d.mts +2 -2
  6. package/dist/codec-ids.mjs +2 -2
  7. package/dist/{codec-types-BF1DXTPs.d.mts → codec-types-CnFiNML4.d.mts} +8 -9
  8. package/dist/codec-types-CnFiNML4.d.mts.map +1 -0
  9. package/dist/codec-types.d.mts +2 -2
  10. package/dist/{codecs-DuP3d9Au.d.mts → codecs-CBpEv4s5.d.mts} +33 -35
  11. package/dist/codecs-CBpEv4s5.d.mts.map +1 -0
  12. package/dist/codecs.d.mts +1 -1
  13. package/dist/codecs.mjs +37 -2
  14. package/dist/codecs.mjs.map +1 -1
  15. package/dist/contract-free.d.mts +75 -0
  16. package/dist/contract-free.d.mts.map +1 -0
  17. package/dist/contract-free.mjs +139 -0
  18. package/dist/contract-free.mjs.map +1 -0
  19. package/dist/control.d.mts +1 -1
  20. package/dist/control.mjs +62 -36
  21. package/dist/control.mjs.map +1 -1
  22. package/dist/{data-transform-CRkv2T_U.mjs → data-transform-D25tLeYU.mjs} +1 -1
  23. package/dist/{data-transform-CRkv2T_U.mjs.map → data-transform-D25tLeYU.mjs.map} +1 -1
  24. package/dist/{data-transform-CAPmAdxS.d.mts → data-transform-lq3NGdIt.d.mts} +2 -2
  25. package/dist/{data-transform-CAPmAdxS.d.mts.map → data-transform-lq3NGdIt.d.mts.map} +1 -1
  26. package/dist/data-transform.d.mts +1 -1
  27. package/dist/data-transform.mjs +1 -1
  28. package/dist/ddl.d.mts +2 -0
  29. package/dist/ddl.mjs +2 -0
  30. package/dist/{default-normalizer-DaAhmzBV.mjs → default-normalizer-DyyCHQWs.mjs} +1 -1
  31. package/dist/{default-normalizer-DaAhmzBV.mjs.map → default-normalizer-DyyCHQWs.mjs.map} +1 -1
  32. package/dist/default-normalizer.mjs +1 -1
  33. package/dist/{descriptor-meta-Uu8QaClr.mjs → descriptor-meta-DKmj-IMN.mjs} +3 -2
  34. package/dist/descriptor-meta-DKmj-IMN.mjs.map +1 -0
  35. package/dist/{descriptor-meta-runtime-DMRX39kp.mjs → descriptor-meta-runtime-My8_s4cs.mjs} +2 -2
  36. package/dist/{descriptor-meta-runtime-DMRX39kp.mjs.map → descriptor-meta-runtime-My8_s4cs.mjs.map} +1 -1
  37. package/dist/{enum-planning-DRA9LaMU.mjs → enum-planning-BCyvlFHk.mjs} +0 -0
  38. package/dist/{enum-planning-DRA9LaMU.mjs.map → enum-planning-BCyvlFHk.mjs.map} +1 -1
  39. package/dist/enum-planning.d.mts +1 -1
  40. package/dist/enum-planning.mjs +1 -1
  41. package/dist/{errors-BbnITmAD.mjs → errors-CUk87ByX.mjs} +1 -1
  42. package/dist/{errors-BbnITmAD.mjs.map → errors-CUk87ByX.mjs.map} +1 -1
  43. package/dist/errors.d.mts.map +1 -1
  44. package/dist/errors.mjs +1 -1
  45. package/dist/{issue-planner-BtaL6OfW.mjs → issue-planner-DFr4gqfy.mjs} +22 -23
  46. package/dist/issue-planner-DFr4gqfy.mjs.map +1 -0
  47. package/dist/issue-planner.d.mts +1 -1
  48. package/dist/issue-planner.d.mts.map +1 -1
  49. package/dist/issue-planner.mjs +1 -1
  50. package/dist/migration.d.mts +3 -3
  51. package/dist/migration.mjs +3 -3
  52. package/dist/{native-type-normalizer-BNEQ9VDs.mjs → native-type-normalizer-Bc9XJzWC.mjs} +1 -1
  53. package/dist/{native-type-normalizer-BNEQ9VDs.mjs.map → native-type-normalizer-Bc9XJzWC.mjs.map} +1 -1
  54. package/dist/native-type-normalizer.mjs +1 -1
  55. package/dist/nodes-Dm1XR7UL.mjs +42 -0
  56. package/dist/nodes-Dm1XR7UL.mjs.map +1 -0
  57. package/dist/nodes-Dq0ALHOk.d.mts +38 -0
  58. package/dist/nodes-Dq0ALHOk.d.mts.map +1 -0
  59. package/dist/{op-factory-call-ewOd5q6L.mjs → op-factory-call-BsqXS6Hl.mjs} +2 -2
  60. package/dist/{op-factory-call-ewOd5q6L.mjs.map → op-factory-call-BsqXS6Hl.mjs.map} +1 -1
  61. package/dist/{op-factory-call-CDlImOF_.d.mts → op-factory-call-D47zfLOp.d.mts} +3 -3
  62. package/dist/op-factory-call-D47zfLOp.d.mts.map +1 -0
  63. package/dist/op-factory-call.d.mts +1 -1
  64. package/dist/op-factory-call.mjs +1 -1
  65. package/dist/pack.d.mts +5 -6
  66. package/dist/pack.d.mts.map +1 -1
  67. package/dist/pack.mjs +1 -1
  68. package/dist/planner-C-ynXbEZ.mjs +340 -0
  69. package/dist/planner-C-ynXbEZ.mjs.map +1 -0
  70. package/dist/{planner-ddl-builders-BNMfSE9r.mjs → planner-ddl-builders-DMfNR28t.mjs} +3 -3
  71. package/dist/{planner-ddl-builders-BNMfSE9r.mjs.map → planner-ddl-builders-DMfNR28t.mjs.map} +1 -1
  72. package/dist/planner-ddl-builders.d.mts +1 -1
  73. package/dist/planner-ddl-builders.mjs +1 -1
  74. package/dist/{planner-identity-values-nhVj0hp-.mjs → planner-identity-values-BIpa5p2I.mjs} +1 -1
  75. package/dist/{planner-identity-values-nhVj0hp-.mjs.map → planner-identity-values-BIpa5p2I.mjs.map} +1 -1
  76. package/dist/planner-identity-values.mjs +1 -1
  77. package/dist/{planner-produced-postgres-migration-D_nsXbhl.mjs → planner-produced-postgres-migration-BCy50btZ.mjs} +4 -4
  78. package/dist/{planner-produced-postgres-migration-D_nsXbhl.mjs.map → planner-produced-postgres-migration-BCy50btZ.mjs.map} +1 -1
  79. package/dist/{planner-produced-postgres-migration-D02NOhVQ.d.mts → planner-produced-postgres-migration-CpsGhewL.d.mts} +3 -3
  80. package/dist/planner-produced-postgres-migration-CpsGhewL.d.mts.map +1 -0
  81. package/dist/planner-produced-postgres-migration.d.mts +1 -1
  82. package/dist/planner-produced-postgres-migration.mjs +1 -1
  83. package/dist/{planner-schema-lookup-CGxxYfnD.mjs → planner-schema-lookup-CiVaAQP-.mjs} +1 -1
  84. package/dist/{planner-schema-lookup-CGxxYfnD.mjs.map → planner-schema-lookup-CiVaAQP-.mjs.map} +1 -1
  85. package/dist/planner-schema-lookup.mjs +1 -1
  86. package/dist/{planner-sql-checks-CfEiTXoQ.mjs → planner-sql-checks-ErSyqc0x.mjs} +39 -12
  87. package/dist/planner-sql-checks-ErSyqc0x.mjs.map +1 -0
  88. package/dist/planner-sql-checks.d.mts.map +1 -1
  89. package/dist/planner-sql-checks.mjs +1 -1
  90. package/dist/{planner-target-details-a_wuOiYf.d.mts → planner-target-details-DyUHJ7MY.d.mts} +1 -1
  91. package/dist/{planner-target-details-a_wuOiYf.d.mts.map → planner-target-details-DyUHJ7MY.d.mts.map} +1 -1
  92. package/dist/planner-target-details.d.mts +2 -2
  93. package/dist/planner.d.mts +3 -2
  94. package/dist/planner.d.mts.map +1 -1
  95. package/dist/planner.mjs +1 -1
  96. package/dist/{postgres-contract-serializer-BnOboPWs.mjs → postgres-contract-serializer-DYTyXjPf.mjs} +33 -24
  97. package/dist/postgres-contract-serializer-DYTyXjPf.mjs.map +1 -0
  98. package/dist/{postgres-enum-type-CSzsvXrO.d.mts → postgres-enum-type-BVn63a89.d.mts} +1 -1
  99. package/dist/{postgres-enum-type-CSzsvXrO.d.mts.map → postgres-enum-type-BVn63a89.d.mts.map} +1 -1
  100. package/dist/{postgres-enum-type-BMgyxNyy.mjs → postgres-enum-type-DPKqCBem.mjs} +1 -1
  101. package/dist/{postgres-enum-type-BMgyxNyy.mjs.map → postgres-enum-type-DPKqCBem.mjs.map} +1 -1
  102. package/dist/{postgres-migration-DRY8V-bQ.d.mts → postgres-migration--iqDr7rB.d.mts} +3 -3
  103. package/dist/{postgres-migration-DRY8V-bQ.d.mts.map → postgres-migration--iqDr7rB.d.mts.map} +1 -1
  104. package/dist/{postgres-migration-BatbEvU6.mjs → postgres-migration-DcymFlMG.mjs} +3 -3
  105. package/dist/{postgres-migration-BatbEvU6.mjs.map → postgres-migration-DcymFlMG.mjs.map} +1 -1
  106. package/dist/{postgres-schema-BxAuNFX0.mjs → postgres-schema-BuxCxbvB.mjs} +29 -14
  107. package/dist/postgres-schema-BuxCxbvB.mjs.map +1 -0
  108. package/dist/{render-ops-XhICjX_P.mjs → render-ops-Wb6SCGmj.mjs} +1 -1
  109. package/dist/{render-ops-XhICjX_P.mjs.map → render-ops-Wb6SCGmj.mjs.map} +1 -1
  110. package/dist/render-ops.d.mts +1 -1
  111. package/dist/render-ops.mjs +1 -1
  112. package/dist/{render-typescript-K125n-RZ.mjs → render-typescript-BShM6uyS.mjs} +1 -1
  113. package/dist/{render-typescript-K125n-RZ.mjs.map → render-typescript-BShM6uyS.mjs.map} +1 -1
  114. package/dist/render-typescript.mjs +1 -1
  115. package/dist/runtime.d.mts.map +1 -1
  116. package/dist/runtime.mjs +2 -2
  117. package/dist/{shared-Do_a5ymU.d.mts → shared-C3gXQyxj.d.mts} +2 -2
  118. package/dist/{shared-Do_a5ymU.d.mts.map → shared-C3gXQyxj.d.mts.map} +1 -1
  119. package/dist/{sql-utils-CggjWNij.mjs → sql-utils-DcfMz4MQ.mjs} +1 -1
  120. package/dist/{sql-utils-CggjWNij.mjs.map → sql-utils-DcfMz4MQ.mjs.map} +1 -1
  121. package/dist/sql-utils.mjs +1 -1
  122. package/dist/{tables-DoA39Yqo.mjs → tables-CGFE4dED.mjs} +3 -3
  123. package/dist/{tables-DoA39Yqo.mjs.map → tables-CGFE4dED.mjs.map} +1 -1
  124. package/dist/{types-O40IcFV9.d.mts → types-BDKkx8MA.d.mts} +1 -1
  125. package/dist/types-BDKkx8MA.d.mts.map +1 -0
  126. package/dist/types.d.mts +16 -11
  127. package/dist/types.d.mts.map +1 -1
  128. package/dist/types.mjs +2 -2
  129. package/package.json +21 -20
  130. package/src/contract-free/columns.ts +49 -0
  131. package/src/contract-free/control-bootstrap.ts +55 -0
  132. package/src/contract-free/ddl.ts +32 -0
  133. package/src/core/ast/table-source.ts +23 -0
  134. package/src/core/codec-ids.ts +1 -0
  135. package/src/core/codecs.ts +44 -0
  136. package/src/core/ddl/nodes.ts +59 -0
  137. package/src/core/descriptor-meta.ts +1 -0
  138. package/src/core/migrations/control-policy.ts +234 -0
  139. package/src/core/migrations/issue-planner.ts +3 -3
  140. package/src/core/migrations/planner-sql-checks.ts +9 -9
  141. package/src/core/migrations/planner-strategies.ts +16 -10
  142. package/src/core/migrations/planner.ts +55 -6
  143. package/src/core/migrations/runner.ts +78 -50
  144. package/src/core/postgres-contract-serializer.ts +52 -46
  145. package/src/core/postgres-schema.ts +43 -25
  146. package/src/exports/contract-free.ts +7 -0
  147. package/src/exports/ddl.ts +7 -0
  148. package/dist/codec-ids-C5qzBqus.mjs.map +0 -1
  149. package/dist/codec-ids-DliyCWPY.d.mts.map +0 -1
  150. package/dist/codec-types-BF1DXTPs.d.mts.map +0 -1
  151. package/dist/codecs-DuP3d9Au.d.mts.map +0 -1
  152. package/dist/descriptor-meta-Uu8QaClr.mjs.map +0 -1
  153. package/dist/issue-planner-BtaL6OfW.mjs.map +0 -1
  154. package/dist/op-factory-call-CDlImOF_.d.mts.map +0 -1
  155. package/dist/planner-Bjz5pnLa.mjs +0 -177
  156. package/dist/planner-Bjz5pnLa.mjs.map +0 -1
  157. package/dist/planner-produced-postgres-migration-D02NOhVQ.d.mts.map +0 -1
  158. package/dist/planner-sql-checks-CfEiTXoQ.mjs.map +0 -1
  159. package/dist/postgres-contract-serializer-BnOboPWs.mjs.map +0 -1
  160. package/dist/postgres-schema-BxAuNFX0.mjs.map +0 -1
  161. package/dist/statement-builders-DVI5IVAa.mjs +0 -131
  162. package/dist/statement-builders-DVI5IVAa.mjs.map +0 -1
  163. package/dist/statement-builders.d.mts +0 -51
  164. package/dist/statement-builders.d.mts.map +0 -1
  165. package/dist/statement-builders.mjs +0 -2
  166. package/dist/types-O40IcFV9.d.mts.map +0 -1
  167. package/src/core/migrations/statement-builders.ts +0 -183
  168. package/src/exports/statement-builders.ts +0 -8
@@ -2,10 +2,13 @@ import type { Contract } from '@prisma-next/contract/types';
2
2
  import type {
3
3
  MigrationOperationPolicy,
4
4
  SqlMigrationPlannerPlanOptions,
5
+ SqlPlannerConflict,
5
6
  SqlPlannerFailureResult,
6
7
  } from '@prisma-next/family-sql/control';
7
8
  import {
8
9
  extractCodecControlHooks,
10
+ partitionCallsByControlPolicy,
11
+ partitionIssuesByControlPolicy,
9
12
  planFieldEventOperations,
10
13
  plannerFailure,
11
14
  } from '@prisma-next/family-sql/control';
@@ -18,10 +21,18 @@ import type {
18
21
  SchemaIssue,
19
22
  } from '@prisma-next/framework-components/control';
20
23
  import { UNBOUND_NAMESPACE_ID } from '@prisma-next/framework-components/ir';
24
+ import { blindCast } from '@prisma-next/utils/casts';
21
25
  import { parsePostgresDefault } from '../default-normalizer';
22
26
  import { normalizeSchemaNativeType } from '../native-type-normalizer';
27
+ import {
28
+ formatPostgresControlPolicySubjectLabel,
29
+ resolvePostgresCallControlPolicySubject,
30
+ resolvePostgresIssueControlPolicySubject,
31
+ resolvePostgresIssueCreationFactoryName,
32
+ } from './control-policy';
23
33
  import { createResolveExistingEnumValues } from './enum-planning';
24
34
  import { planIssues } from './issue-planner';
35
+ import type { PostgresOpFactoryCall } from './op-factory-call';
25
36
  import { TypeScriptRenderablePostgresMigration } from './planner-produced-postgres-migration';
26
37
  import { postgresPlannerStrategies } from './planner-strategies';
27
38
  import { verifyPostgresNamespacePresence } from './verify-postgres-namespaces';
@@ -52,7 +63,11 @@ export function createPostgresMigrationPlanner(): PostgresMigrationPlanner {
52
63
  * uniformly.
53
64
  */
54
65
  export type PostgresPlanResult =
55
- | { readonly kind: 'success'; readonly plan: TypeScriptRenderablePostgresMigration }
66
+ | {
67
+ readonly kind: 'success';
68
+ readonly plan: TypeScriptRenderablePostgresMigration;
69
+ readonly warnings?: readonly SqlPlannerConflict[];
70
+ }
56
71
  | SqlPlannerFailureResult;
57
72
 
58
73
  /**
@@ -131,8 +146,25 @@ export class PostgresMigrationPlanner implements MigrationPlanner<'sql', 'postgr
131
146
  const codecHooks = extractCodecControlHooks(options.frameworkComponents);
132
147
  const storageTypes = options.contract.storage.types ?? {};
133
148
 
134
- const result = planIssues({
149
+ // Input-side control-policy partition. `external` / `observed` subjects
150
+ // — and non-creation issues for `tolerated` subjects — are dropped from
151
+ // the planner's input entirely; the planner never observes them, never
152
+ // diffs them, never generates DDL for them. Suppression warnings are
153
+ // built directly from the suppressed partition (one per subject), so the
154
+ // user-visible message survives even when the planner would have failed
155
+ // to model the subject's live shape.
156
+ const issuePartition = partitionIssuesByControlPolicy({
135
157
  issues: schemaIssues,
158
+ contract: options.contract,
159
+ resolveControlPolicySubject: (issue) =>
160
+ resolvePostgresIssueControlPolicySubject(issue, options.contract),
161
+ resolveCreationFactoryName: resolvePostgresIssueCreationFactoryName,
162
+ formatSubjectLabel: (factoryName, subject) =>
163
+ formatPostgresControlPolicySubjectLabel(factoryName, subject, options.contract),
164
+ });
165
+
166
+ const result = planIssues({
167
+ issues: issuePartition.plannable,
136
168
  toContract: options.contract,
137
169
  // `fromContract` is only supplied by `migration plan`. It is `null` for
138
170
  // `db update` / `db init`, which means data-safety strategies needing
@@ -163,10 +195,26 @@ export class PostgresMigrationPlanner implements MigrationPlanner<'sql', 'postgr
163
195
  newContract: options.contract,
164
196
  codecHooks,
165
197
  });
166
- // Codec-emitted calls already conform to `OpFactoryCall` render +
167
- // toOp + importRequirements ride directly through the same emit path
168
- // as structural ops, no `RawSqlCall` wrap.
169
- const calls = [...result.value.calls, ...fieldEventOps];
198
+ // Codec hook ops are target-agnostic `OpFactoryCall`; Postgres planning
199
+ // lifts them at this integration boundary (see field-event-planner JSDoc).
200
+ const fieldEventPostgresCalls = blindCast<
201
+ readonly PostgresOpFactoryCall[],
202
+ 'Codec hook ops conform to PostgresOpFactoryCall at the app emitter boundary'
203
+ >(fieldEventOps);
204
+ const fieldEventPartition = partitionCallsByControlPolicy({
205
+ calls: fieldEventPostgresCalls,
206
+ contract: options.contract,
207
+ resolveControlPolicySubject: (call) =>
208
+ resolvePostgresCallControlPolicySubject(call, options.contract),
209
+ resolveFactoryName: (call) => call.factoryName,
210
+ formatSubjectLabel: (factoryName, subject) =>
211
+ formatPostgresControlPolicySubjectLabel(factoryName, subject, options.contract),
212
+ });
213
+ const calls = [...result.value.calls, ...fieldEventPartition.kept];
214
+ const warnings: SqlPlannerConflict[] = [
215
+ ...issuePartition.warnings,
216
+ ...fieldEventPartition.warnings,
217
+ ];
170
218
 
171
219
  return Object.freeze({
172
220
  kind: 'success' as const,
@@ -178,6 +226,7 @@ export class PostgresMigrationPlanner implements MigrationPlanner<'sql', 'postgr
178
226
  },
179
227
  options.spaceId,
180
228
  ),
229
+ ...(warnings.length > 0 ? { warnings: Object.freeze(warnings) } : {}),
181
230
  });
182
231
  }
183
232
 
@@ -1,4 +1,4 @@
1
- import type { ContractMarkerRecord } from '@prisma-next/contract/types';
1
+ import type { Contract, ContractMarkerRecord } from '@prisma-next/contract/types';
2
2
  import type {
3
3
  MigrationOperationPolicy,
4
4
  SqlControlFamilyInstance,
@@ -13,13 +13,12 @@ import type {
13
13
  } from '@prisma-next/family-sql/control';
14
14
  import { runnerFailure, runnerSuccess } from '@prisma-next/family-sql/control';
15
15
  import { verifySqlSchema } from '@prisma-next/family-sql/schema-verify';
16
- import type {
17
- ControlDriverInstance,
18
- MigrationRunnerResult,
19
- } from '@prisma-next/framework-components/control';
16
+ import type { MigrationRunnerResult } from '@prisma-next/framework-components/control';
20
17
  import { APP_SPACE_ID } from '@prisma-next/framework-components/control';
21
18
  import { UNBOUND_NAMESPACE_ID } from '@prisma-next/framework-components/ir';
19
+ import type { SqlControlDriverInstance, SqlStorage } from '@prisma-next/sql-contract/types';
22
20
  import { SqlQueryError } from '@prisma-next/sql-errors';
21
+ import type { LoweredStatement } from '@prisma-next/sql-relational-core/ast';
23
22
  import { ifDefined } from '@prisma-next/utils/defined';
24
23
  import type { Result } from '@prisma-next/utils/result';
25
24
  import { notOk, ok, okVoid } from '@prisma-next/utils/result';
@@ -27,14 +26,6 @@ import { parsePostgresDefault } from '../default-normalizer';
27
26
  import { normalizeSchemaNativeType } from '../native-type-normalizer';
28
27
  import { createResolveExistingEnumValues } from './enum-planning';
29
28
  import type { PostgresPlanTargetDetails } from './planner-target-details';
30
- import {
31
- buildLedgerInsertStatement,
32
- buildMergeMarkerStatements,
33
- ensureLedgerTableStatement,
34
- ensureMarkerTableStatement,
35
- ensurePrismaContractSchemaStatement,
36
- type SqlStatement,
37
- } from './statement-builders';
38
29
 
39
30
  interface ApplyPlanSuccessValue {
40
31
  readonly operationsExecuted: number;
@@ -107,7 +98,7 @@ class PostgresMigrationRunner implements SqlMigrationRunner<PostgresPlanTargetDe
107
98
  if (!policyCheck.ok) return policyCheck;
108
99
 
109
100
  await this.acquireLock(driver, lockKey);
110
- const ensureResult = await this.ensureControlTables(driver);
101
+ const ensureResult = await this.ensureControlTables(driver, options.destinationContract);
111
102
  if (!ensureResult.ok) return ensureResult;
112
103
  const existingMarker = await this.family.readMarker({ driver, space });
113
104
 
@@ -165,8 +156,9 @@ class PostgresMigrationRunner implements SqlMigrationRunner<PostgresPlanTargetDe
165
156
  isSelfEdge && applyValue.operationsExecuted === 0 && incomingIsSubsetOfExisting;
166
157
 
167
158
  if (!isSelfEdgeNoOp) {
168
- await this.upsertMarker(driver, options, existingMarker, space);
169
- await this.recordLedgerEntry(driver, options, existingMarker, applyValue.executedOperations);
159
+ const markerResult = await this.upsertMarker(driver, options, existingMarker, space);
160
+ if (!markerResult.ok) return markerResult;
161
+ await this.recordLedgerEntries(driver, options, applyValue.executedOperations);
170
162
  }
171
163
 
172
164
  return runnerSuccess({
@@ -176,7 +168,7 @@ class PostgresMigrationRunner implements SqlMigrationRunner<PostgresPlanTargetDe
176
168
  }
177
169
 
178
170
  async execute(options: {
179
- readonly driver: ControlDriverInstance<'sql', string>;
171
+ readonly driver: SqlControlDriverInstance<string>;
180
172
  readonly perSpaceOptions: ReadonlyArray<
181
173
  SqlMigrationRunnerExecuteOptions<PostgresPlanTargetDetails>
182
174
  >;
@@ -282,18 +274,22 @@ class PostgresMigrationRunner implements SqlMigrationRunner<PostgresPlanTargetDe
282
274
 
283
275
  private async ensureControlTables(
284
276
  driver: SqlMigrationRunnerExecuteOptions<PostgresPlanTargetDetails>['driver'],
277
+ contract: Contract<SqlStorage>,
285
278
  ): Promise<Result<void, SqlMigrationRunnerFailure>> {
286
- await this.executeStatement(driver, ensurePrismaContractSchemaStatement);
287
- // Pre-1.0 zero-range guardrail: detect a pre-cleanup single-row
288
- // marker table (no `space` column) and surface a structured failure
289
- // rather than silently auto-migrating it to the per-space shape.
290
- // See `specs/framework-mechanism.spec.md § 2`.
279
+ const lowererContext = { contract };
280
+ const bootstrapQueries = this.family.bootstrapControlTableQueries();
281
+ const [schemaQuery, ...tableQueries] = bootstrapQueries;
282
+ if (schemaQuery === undefined) {
283
+ throw new Error('Postgres control-table bootstrap must include CREATE SCHEMA');
284
+ }
285
+ await this.executeStatement(driver, this.family.lowerAst(schemaQuery, lowererContext));
291
286
  const legacyDetection = await this.detectLegacyMarkerShape(driver);
292
287
  if (!legacyDetection.ok) {
293
288
  return legacyDetection;
294
289
  }
295
- await this.executeStatement(driver, ensureMarkerTableStatement);
296
- await this.executeStatement(driver, ensureLedgerTableStatement);
290
+ for (const query of tableQueries) {
291
+ await this.executeStatement(driver, this.family.lowerAst(query, lowererContext));
292
+ }
297
293
  return okVoid();
298
294
  }
299
295
 
@@ -594,43 +590,75 @@ class PostgresMigrationRunner implements SqlMigrationRunner<PostgresPlanTargetDe
594
590
  options: SqlMigrationRunnerExecuteOptions<PostgresPlanTargetDetails>,
595
591
  existingMarker: ContractMarkerRecord | null,
596
592
  space: string,
597
- ): Promise<void> {
598
- const incomingInvariants = options.plan.providedInvariants ?? [];
599
- const writeStatements = buildMergeMarkerStatements({
600
- space,
593
+ ): Promise<Result<void, SqlMigrationRunnerFailure>> {
594
+ const destination = {
601
595
  storageHash: options.plan.destination.storageHash,
602
596
  profileHash:
603
597
  options.plan.destination.profileHash ??
604
598
  options.destinationContract.profileHash ??
605
599
  options.plan.destination.storageHash,
606
- contractJson: options.destinationContract,
607
- canonicalVersion: null,
608
- meta: {},
609
- invariants: incomingInvariants,
600
+ invariants: options.plan.providedInvariants ?? [],
601
+ };
602
+ if (!existingMarker) {
603
+ await this.family.initMarker({ driver, space, destination });
604
+ return okVoid();
605
+ }
606
+ const updated = await this.family.updateMarker({
607
+ driver,
608
+ space,
609
+ expectedFrom: existingMarker.storageHash,
610
+ destination,
610
611
  });
611
- const statement = existingMarker ? writeStatements.update : writeStatements.insert;
612
- await this.executeStatement(driver, statement);
612
+ if (!updated) {
613
+ return runnerFailure(
614
+ 'MARKER_CAS_FAILURE',
615
+ 'Marker was modified by another process during migration execution.',
616
+ {
617
+ meta: {
618
+ space,
619
+ expectedStorageHash: existingMarker.storageHash,
620
+ destinationStorageHash: options.plan.destination.storageHash,
621
+ },
622
+ },
623
+ );
624
+ }
625
+ return okVoid();
613
626
  }
614
627
 
615
- private async recordLedgerEntry(
628
+ private async recordLedgerEntries(
616
629
  driver: SqlMigrationRunnerExecuteOptions<PostgresPlanTargetDetails>['driver'],
617
630
  options: SqlMigrationRunnerExecuteOptions<PostgresPlanTargetDetails>,
618
- existingMarker: ContractMarkerRecord | null,
619
631
  executedOperations: readonly SqlMigrationPlanOperation<PostgresPlanTargetDetails>[],
620
632
  ): Promise<void> {
621
- const ledgerStatement = buildLedgerInsertStatement({
622
- originStorageHash: existingMarker?.storageHash ?? null,
623
- originProfileHash: existingMarker?.profileHash ?? null,
624
- destinationStorageHash: options.plan.destination.storageHash,
625
- destinationProfileHash:
626
- options.plan.destination.profileHash ??
627
- options.destinationContract.profileHash ??
628
- options.plan.destination.storageHash,
629
- contractJsonBefore: existingMarker?.contractJson ?? null,
630
- contractJsonAfter: options.destinationContract,
631
- operations: executedOperations,
632
- });
633
- await this.executeStatement(driver, ledgerStatement);
633
+ const plan = options.plan;
634
+ const space = plan.spaceId;
635
+ const edges = options.migrationEdges;
636
+ const totalEdgeOps = edges.reduce((sum, edge) => sum + edge.operationCount, 0);
637
+ if (totalEdgeOps !== plan.operations.length) {
638
+ throw new Error(
639
+ `Ledger write: plan.operations length (${plan.operations.length}) does not match sum of migrationEdges operationCount (${totalEdgeOps})`,
640
+ );
641
+ }
642
+ // The ledger records the operations as executed — idempotency-skipped ops
643
+ // are substituted with skip records (empty `execute`) by `applyPlan`, so the
644
+ // journal reflects what actually ran rather than the raw plan.
645
+ let offset = 0;
646
+ for (const edge of edges) {
647
+ const edgeOps = executedOperations.slice(offset, offset + edge.operationCount);
648
+ offset += edge.operationCount;
649
+ await this.family.writeLedgerEntry({
650
+ driver,
651
+ space,
652
+ entry: {
653
+ edgeId: `${edge.from}->${edge.to}`,
654
+ from: edge.from,
655
+ to: edge.to,
656
+ migrationName: edge.dirName,
657
+ migrationHash: edge.migrationHash,
658
+ operations: edgeOps,
659
+ },
660
+ });
661
+ }
634
662
  }
635
663
 
636
664
  private async acquireLock(
@@ -660,7 +688,7 @@ class PostgresMigrationRunner implements SqlMigrationRunner<PostgresPlanTargetDe
660
688
 
661
689
  private async executeStatement(
662
690
  driver: SqlMigrationRunnerExecuteOptions<PostgresPlanTargetDetails>['driver'],
663
- statement: SqlStatement,
691
+ statement: LoweredStatement,
664
692
  ): Promise<void> {
665
693
  if (statement.params.length > 0) {
666
694
  await driver.query(statement.sql, statement.params);
@@ -14,12 +14,8 @@ import {
14
14
  NamespaceBase,
15
15
  UNBOUND_NAMESPACE_ID,
16
16
  } from '@prisma-next/framework-components/ir';
17
- import type {
18
- SqlNamespaceTablesInput,
19
- SqlStorage,
20
- SqlStorageTypeEntry,
21
- StorageTable,
22
- } from '@prisma-next/sql-contract/types';
17
+ import type { SqlNamespaceTablesInput, SqlStorage } from '@prisma-next/sql-contract/types';
18
+ import { blindCast } from '@prisma-next/utils/casts';
23
19
  import type { JsonObject } from '@prisma-next/utils/json';
24
20
  import type { Type } from 'arktype';
25
21
  import { postgresAuthoringEntityTypes } from './authoring';
@@ -57,9 +53,8 @@ function collectEntityRegistryContributions(namespace: AuthoringEntityTypeNamesp
57
53
  if (isAuthoringEntityTypeDescriptor(value)) {
58
54
  if (isAuthoringEntityTypeFactoryOutput(value.output)) {
59
55
  const { factory } = value.output;
60
- entityTypeRegistry.set(
61
- value.discriminator,
62
- (raw) => factory(raw, POSTGRES_AUTHORING_CTX) as SqlStorageTypeEntry,
56
+ entityTypeRegistry.set(value.discriminator, (raw) =>
57
+ factory(raw, POSTGRES_AUTHORING_CTX),
63
58
  );
64
59
  }
65
60
  if (value.validatorSchema !== undefined) {
@@ -91,22 +86,43 @@ export class PostgresContractSerializer extends SqlContractSerializerBase<Contra
91
86
  if (raw instanceof NamespaceBase) {
92
87
  return raw;
93
88
  }
94
- const hydrated = super.hydrateSqlNamespaceEntry(nsId, raw) as {
95
- id: string;
96
- tables: Readonly<Record<string, StorageTable>>;
97
- enum?: Readonly<Record<string, PostgresEnumType>>;
98
- };
99
- const { id, tables, enum: hydratedNsEnums } = hydrated;
89
+ const hydrated = blindCast<
90
+ SqlNamespaceTablesInput,
91
+ 'super.hydrateSqlNamespaceEntry returns the tables form when raw is not a NamespaceBase'
92
+ >(super.hydrateSqlNamespaceEntry(nsId, raw));
93
+ const { id, entries } = hydrated;
94
+
95
+ // Extract the postgres-specific `type` slot directly from raw input.
96
+ // The family base handles the `table` slot; the postgres target owns `type`.
97
+ const rawRecord = raw as Record<string, unknown>;
98
+ const rawEntries = rawRecord['entries'];
99
+ let typeSlot: Record<string, PostgresEnumType> | undefined;
100
+ if (rawEntries !== null && typeof rawEntries === 'object' && !Array.isArray(rawEntries)) {
101
+ const rawTypeSlot = (rawEntries as Record<string, unknown>)['type'];
102
+ if (rawTypeSlot !== null && typeof rawTypeSlot === 'object' && !Array.isArray(rawTypeSlot)) {
103
+ const enumFactory = this.entityTypeRegistry.get('postgres-enum');
104
+ typeSlot = Object.fromEntries(
105
+ Object.entries(rawTypeSlot as Record<string, unknown>).map(([name, entry]) => [
106
+ name,
107
+ blindCast<PostgresEnumType, 'postgres-enum factory returns PostgresEnumType'>(
108
+ enumFactory !== undefined ? enumFactory(entry) : entry,
109
+ ),
110
+ ]),
111
+ );
112
+ }
113
+ }
100
114
 
101
- const emptyTables = Object.keys(tables).length === 0;
102
- const emptyEnums = !hydratedNsEnums || Object.keys(hydratedNsEnums).length === 0;
103
- if (id === UNBOUND_NAMESPACE_ID && emptyTables && emptyEnums) {
115
+ const emptyTables = Object.keys(entries.table).length === 0;
116
+ const emptyTypes = !typeSlot || Object.keys(typeSlot).length === 0;
117
+ if (id === UNBOUND_NAMESPACE_ID && emptyTables && emptyTypes) {
104
118
  return PostgresSchema.unbound;
105
119
  }
106
120
  return new PostgresSchema({
107
121
  id,
108
- tables,
109
- ...(hydratedNsEnums !== undefined ? { enum: hydratedNsEnums } : {}),
122
+ entries: {
123
+ table: entries.table,
124
+ type: typeSlot ?? {},
125
+ },
110
126
  });
111
127
  }
112
128
 
@@ -117,30 +133,18 @@ export class PostgresContractSerializer extends SqlContractSerializerBase<Contra
117
133
  if (isPostgresSchema(ns)) {
118
134
  namespacesJson[nsId] = this.serializePostgresNamespace(ns, ns.id === UNBOUND_NAMESPACE_ID);
119
135
  } else {
120
- // Family-level SqlUnboundNamespace or other family-built SQL
121
- // namespaces haven't been promoted to a PostgresSchema instance
122
- // yet (e.g. they came straight from the TS builder before a target
123
- // `createNamespace` factory ran). Serialise them as postgres-schema /
124
- // postgres-unbound-schema so the round-trip through
125
- // deserializeContract hydrates them back into PostgresSchema
126
- // instances.
127
136
  const isUnboundSlot = nsId === UNBOUND_NAMESPACE_ID;
128
- const nsEnums = (ns as { readonly enum?: Readonly<Record<string, unknown>> }).enum ?? {};
129
137
  namespacesJson[nsId] = {
130
138
  id: nsId,
131
139
  kind: isUnboundSlot ? 'postgres-unbound-schema' : 'postgres-schema',
132
- tables: Object.fromEntries(
133
- Object.entries(ns.tables).map(([tableName, table]) => [
134
- tableName,
135
- this.serializeJsonValue(table) as JsonObject,
136
- ]),
137
- ),
138
- enum: Object.fromEntries(
139
- Object.entries(nsEnums).map(([typeName, entry]) => [
140
- typeName,
141
- this.serializeJsonValue(entry) as JsonObject,
142
- ]),
143
- ),
140
+ entries: {
141
+ table: Object.fromEntries(
142
+ Object.entries(ns.entries.table).map(([tableName, table]) => [
143
+ tableName,
144
+ this.serializeJsonValue(table) as JsonObject,
145
+ ]),
146
+ ),
147
+ },
144
148
  };
145
149
  }
146
150
  }
@@ -163,18 +167,20 @@ export class PostgresContractSerializer extends SqlContractSerializerBase<Contra
163
167
 
164
168
  private serializePostgresNamespace(ns: PostgresSchema, isUnboundSlot: boolean): JsonObject {
165
169
  const tablesOut: Record<string, JsonObject> = {};
166
- for (const [tableName, table] of Object.entries(ns.tables)) {
170
+ for (const [tableName, table] of Object.entries(ns.entries.table)) {
167
171
  tablesOut[tableName] = this.serializeJsonValue(table) as JsonObject;
168
172
  }
169
- const enumOut: Record<string, JsonObject> = {};
170
- for (const [typeName, ty] of Object.entries(ns.enum)) {
171
- enumOut[typeName] = this.serializeJsonValue(ty) as JsonObject;
173
+ const typeOut: Record<string, JsonObject> = {};
174
+ for (const [typeName, ty] of Object.entries(ns.entries.type)) {
175
+ typeOut[typeName] = this.serializeJsonValue(ty) as JsonObject;
172
176
  }
173
177
  return {
174
178
  id: ns.id,
175
179
  kind: isUnboundSlot ? 'postgres-unbound-schema' : 'postgres-schema',
176
- tables: tablesOut,
177
- enum: enumOut,
180
+ entries: {
181
+ table: tablesOut,
182
+ type: typeOut,
183
+ },
178
184
  };
179
185
  }
180
186
 
@@ -4,6 +4,7 @@ import {
4
4
  UNBOUND_NAMESPACE_ID,
5
5
  } from '@prisma-next/framework-components/ir';
6
6
  import {
7
+ type PostgresEnumStorageEntry,
7
8
  type SqlNamespaceTablesInput,
8
9
  type SqlStorage,
9
10
  StorageTable,
@@ -14,8 +15,10 @@ import { escapeLiteral } from './sql-utils';
14
15
 
15
16
  export interface PostgresSchemaInput {
16
17
  readonly id: string;
17
- readonly tables?: Record<string, StorageTable | StorageTableInput>;
18
- readonly enum?: Record<string, PostgresEnumType | PostgresEnumTypeInput>;
18
+ readonly entries: {
19
+ readonly table: Record<string, StorageTable | StorageTableInput>;
20
+ readonly type: Record<string, PostgresEnumType | PostgresEnumTypeInput>;
21
+ };
19
22
  }
20
23
 
21
24
  /**
@@ -24,9 +27,10 @@ export interface PostgresSchemaInput {
24
27
  * `namespaces: Record<NamespaceId, PostgresSchema>` map populated by
25
28
  * the Postgres PSL interpreter from `namespace { … }` AST buckets.
26
29
  *
27
- * Qualifier emission is the rendering seam: DDL / SQL emission asks the
28
- * namespace for its qualifier (`"<schema>"`) or for a qualified table
29
- * name (`"<schema>"."<table>"`) and consumes the result polymorphically.
30
+ * `entries` holds entity-kind slot maps (`table`, `type`). Qualifier
31
+ * emission is the rendering seam: DDL / SQL emission asks the namespace
32
+ * for its qualifier (`"<schema>"`) or for a qualified table name
33
+ * (`"<schema>"."<table>"`) and consumes the result polymorphically.
30
34
  * The unbound singleton below overrides these methods to elide the
31
35
  * prefix entirely — call sites stay polymorphic and never branch on
32
36
  * `id === UNBOUND_NAMESPACE_ID`.
@@ -43,28 +47,32 @@ export class PostgresSchema extends NamespaceBase {
43
47
 
44
48
  declare readonly kind: 'schema';
45
49
  readonly id: string;
46
- readonly tables: Readonly<Record<string, StorageTable>>;
47
- readonly enum: Readonly<Record<string, PostgresEnumType>>;
50
+ readonly entries: Readonly<{
51
+ readonly table: Readonly<Record<string, StorageTable>>;
52
+ readonly type: Readonly<Record<string, PostgresEnumType>>;
53
+ }>;
48
54
 
49
55
  constructor(input: PostgresSchemaInput) {
50
56
  super();
51
57
  this.id = input.id;
52
- this.tables = Object.freeze(
53
- Object.fromEntries(
54
- Object.entries(input.tables ?? {}).map(([name, t]) => [
55
- name,
56
- t instanceof StorageTable ? t : new StorageTable(t),
57
- ]),
58
+ this.entries = Object.freeze({
59
+ table: Object.freeze(
60
+ Object.fromEntries(
61
+ Object.entries(input.entries.table).map(([k, v]) => [
62
+ k,
63
+ v instanceof StorageTable ? v : new StorageTable(v as StorageTableInput),
64
+ ]),
65
+ ),
58
66
  ),
59
- );
60
- this.enum = Object.freeze(
61
- Object.fromEntries(
62
- Object.entries(input.enum ?? {}).map(([name, ty]) => [
63
- name,
64
- ty instanceof PostgresEnumType ? ty : new PostgresEnumType(ty),
65
- ]),
67
+ type: Object.freeze(
68
+ Object.fromEntries(
69
+ Object.entries(input.entries.type).map(([k, v]) => [
70
+ k,
71
+ v instanceof PostgresEnumType ? v : new PostgresEnumType(v as PostgresEnumTypeInput),
72
+ ]),
73
+ ),
66
74
  ),
67
- );
75
+ });
68
76
  Object.defineProperty(this, 'kind', {
69
77
  value: 'schema',
70
78
  writable: false,
@@ -154,7 +162,7 @@ export class PostgresUnboundSchema extends PostgresSchema {
154
162
  static readonly instance: PostgresUnboundSchema = new PostgresUnboundSchema();
155
163
 
156
164
  constructor(input?: PostgresSchemaInput) {
157
- super(input ?? { id: UNBOUND_NAMESPACE_ID });
165
+ super(input ?? { id: UNBOUND_NAMESPACE_ID, entries: { table: {}, type: {} } });
158
166
  }
159
167
 
160
168
  override qualifier(): string {
@@ -196,9 +204,19 @@ export function isPostgresSchema(ns: unknown): ns is PostgresSchema {
196
204
  * by reference and trust the resulting `SqlStorage.namespaces` map to
197
205
  * be value-stable for a given input set.
198
206
  */
199
- export function postgresCreateNamespace(input: SqlNamespaceTablesInput): PostgresSchema {
207
+ export function postgresCreateNamespace(
208
+ input: SqlNamespaceTablesInput,
209
+ enumTypes?: Readonly<Record<string, PostgresEnumStorageEntry>>,
210
+ ): PostgresSchema {
211
+ const schemaInput: PostgresSchemaInput = {
212
+ id: input.id,
213
+ entries: {
214
+ table: input.entries.table,
215
+ type: (enumTypes ?? {}) as Record<string, PostgresEnumTypeInput>,
216
+ },
217
+ };
200
218
  if (input.id === UNBOUND_NAMESPACE_ID) {
201
- return new PostgresUnboundSchema(input);
219
+ return new PostgresUnboundSchema(schemaInput);
202
220
  }
203
- return new PostgresSchema(input);
221
+ return new PostgresSchema(schemaInput);
204
222
  }
@@ -0,0 +1,7 @@
1
+ export { int4, int8, jsonb, pgTable, text, textArray, timestamptz } from '../contract-free/columns';
2
+ export {
3
+ buildControlTableBootstrapQueries,
4
+ buildSignMarkerBootstrapQueries,
5
+ } from '../contract-free/control-bootstrap';
6
+ export { createSchema, createTable } from '../contract-free/ddl';
7
+ export { PostgresTableSource } from '../core/ast/table-source';
@@ -0,0 +1,7 @@
1
+ export {
2
+ type AnyPostgresDdlNode,
3
+ PostgresCreateSchema,
4
+ PostgresCreateTable,
5
+ PostgresDdlNode,
6
+ type PostgresDdlVisitor,
7
+ } from '../core/ddl/nodes';
@@ -1 +0,0 @@
1
- {"version":3,"file":"codec-ids-C5qzBqus.mjs","names":[],"sources":["../src/core/codec-ids.ts"],"sourcesContent":["export {\n SQL_CHAR_CODEC_ID,\n SQL_FLOAT_CODEC_ID,\n SQL_INT_CODEC_ID,\n SQL_TEXT_CODEC_ID,\n SQL_TIMESTAMP_CODEC_ID,\n SQL_VARCHAR_CODEC_ID,\n} from '@prisma-next/sql-relational-core/ast';\nexport const PG_TEXT_CODEC_ID = 'pg/text@1' as const;\nexport const PG_ENUM_CODEC_ID = 'pg/enum@1' as const;\nexport const PG_CHAR_CODEC_ID = 'pg/char@1' as const;\nexport const PG_VARCHAR_CODEC_ID = 'pg/varchar@1' as const;\nexport const PG_INT_CODEC_ID = 'pg/int@1' as const;\nexport const PG_INT2_CODEC_ID = 'pg/int2@1' as const;\nexport const PG_INT4_CODEC_ID = 'pg/int4@1' as const;\nexport const PG_INT8_CODEC_ID = 'pg/int8@1' as const;\nexport const PG_FLOAT_CODEC_ID = 'pg/float@1' as const;\nexport const PG_FLOAT4_CODEC_ID = 'pg/float4@1' as const;\nexport const PG_FLOAT8_CODEC_ID = 'pg/float8@1' as const;\nexport const PG_NUMERIC_CODEC_ID = 'pg/numeric@1' as const;\nexport const PG_BOOL_CODEC_ID = 'pg/bool@1' as const;\nexport const PG_BIT_CODEC_ID = 'pg/bit@1' as const;\nexport const PG_VARBIT_CODEC_ID = 'pg/varbit@1' as const;\nexport const PG_TIMESTAMP_CODEC_ID = 'pg/timestamp@1' as const;\nexport const PG_TIMESTAMPTZ_CODEC_ID = 'pg/timestamptz@1' as const;\nexport const PG_TIME_CODEC_ID = 'pg/time@1' as const;\nexport const PG_TIMETZ_CODEC_ID = 'pg/timetz@1' as const;\nexport const PG_INTERVAL_CODEC_ID = 'pg/interval@1' as const;\nexport const PG_JSON_CODEC_ID = 'pg/json@1' as const;\nexport const PG_JSONB_CODEC_ID = 'pg/jsonb@1' as const;\nexport const PG_BYTEA_CODEC_ID = 'pg/bytea@1' as const;\n"],"mappings":";;AAQA,MAAa,mBAAmB;AAChC,MAAa,mBAAmB;AAChC,MAAa,mBAAmB;AAChC,MAAa,sBAAsB;AACnC,MAAa,kBAAkB;AAC/B,MAAa,mBAAmB;AAChC,MAAa,mBAAmB;AAChC,MAAa,mBAAmB;AAChC,MAAa,oBAAoB;AACjC,MAAa,qBAAqB;AAClC,MAAa,qBAAqB;AAClC,MAAa,sBAAsB;AACnC,MAAa,mBAAmB;AAChC,MAAa,kBAAkB;AAC/B,MAAa,qBAAqB;AAClC,MAAa,wBAAwB;AACrC,MAAa,0BAA0B;AACvC,MAAa,mBAAmB;AAChC,MAAa,qBAAqB;AAClC,MAAa,uBAAuB;AACpC,MAAa,mBAAmB;AAChC,MAAa,oBAAoB;AACjC,MAAa,oBAAoB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"codec-ids-DliyCWPY.d.mts","names":[],"sources":["../src/core/codec-ids.ts"],"mappings":";;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AAgB,GAAA,EAAK,oBAAA,KAAyB,YAAA;AAAA;AAAA,cAO7D,YAAA,GAAgB,MAAA,GAAQ,YAAA,KAAiB,0CAAA,CAAA,UAAA,CAAA,YAAA,EAAA,YAAA;AAAA,cAKzC,mBAAA,SAA4B,mBAAA,CAAoB,YAAA;EAAA,SACzC,OAAA;EAAA,SACA,WAAA;EAAA,SACA,IAAA;IAAA;;;;;;;;WACA,MAAA;EAAA,SACA,YAAA,EAAY,gBAAA;IAAA;;;;EACrB,gBAAA,CAAiB,MAAA,EAAQ,YAAA;EAGzB,OAAA,CAAQ,OAAA,EAAS,YAAA,IAAgB,GAAA,EAAK,oBAAA,KAAyB,eAAA;AAAA;AAAA,cAO7D,eAAA,GAAmB,MAAA,GAAQ,YAAA,KAAiB,0CAAA,CAAA,UAAA,CAAA,eAAA,EAAA,YAAA;AAAA,cAU5C,eAAA,SAAwB,mBAAA;EAAA,SACjB,OAAA;EAAA,SACA,WAAA;EAAA,SACA,IAAA;IAAA;;;;;;;;WACA,MAAA;EAAA,SACA,YAAA,EAAY,gBAAA;EACrB,OAAA,CAAA,IAAY,GAAA,EAAK,oBAAA,KAAyB,WAAA;AAAA;AAAA,cAOxC,WAAA,QAAW,0CAAA,CAAA,UAAA,CAAA,WAAA;AAAA,cAKX,iBAAA,SAA0B,mBAAA;EAAA,SACnB,OAAA;EAAA,SACA,WAAA;EAAA,SACA,IAAA;IAAA;;;;;;;;WACA,MAAA;EAAA,SACA,YAAA,EAAY,gBAAA;EACrB,OAAA,CAAA,IAAY,GAAA,EAAK,oBAAA,KAAyB,aAAA;AAAA;AAAA,cAOxC,aAAA,QAAa,0CAAA,CAAA,UAAA,CAAA,aAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"descriptor-meta-Uu8QaClr.mjs","names":[],"sources":["../src/core/descriptor-meta.ts"],"sourcesContent":["import type { CodecTypes } from '../exports/codec-types';\nimport {\n postgresAuthoringEntityTypes,\n postgresAuthoringFieldPresets,\n postgresAuthoringTypes,\n} from './authoring';\nimport { postgresTargetDescriptorMetaRuntime } from './descriptor-meta-runtime';\n\nconst postgresTargetDescriptorMetaBase = {\n ...postgresTargetDescriptorMetaRuntime,\n authoring: {\n type: postgresAuthoringTypes,\n field: postgresAuthoringFieldPresets,\n entityTypes: postgresAuthoringEntityTypes,\n },\n} as const;\n\nexport const postgresTargetDescriptorMeta: typeof postgresTargetDescriptorMetaBase & {\n readonly __codecTypes?: CodecTypes;\n} = postgresTargetDescriptorMetaBase;\n"],"mappings":";AAiBA,MAAa,+BAET;CAVF,GAAG;CACH,WAAW;EACT,MAAM;EACN,OAAO;EACP,aAAa;CACf;AAKE"}