@prisma-next/target-postgres 0.15.0-dev.13 → 0.15.0-dev.2

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 (64) hide show
  1. package/dist/{control-policy-DaLdbcYE.mjs → control-policy-1Tcf7Tyu.mjs} +72 -41
  2. package/dist/control-policy-1Tcf7Tyu.mjs.map +1 -0
  3. package/dist/control.mjs +3 -3
  4. package/dist/{diff-database-schema-oY3brcLj.mjs → diff-database-schema-Bfgshz4v.mjs} +22 -85
  5. package/dist/diff-database-schema-Bfgshz4v.mjs.map +1 -0
  6. package/dist/diff-database-schema.d.mts +12 -3
  7. package/dist/diff-database-schema.d.mts.map +1 -1
  8. package/dist/diff-database-schema.mjs +1 -1
  9. package/dist/issue-planner.d.mts +1 -1
  10. package/dist/issue-planner.d.mts.map +1 -1
  11. package/dist/issue-planner.mjs +1 -1
  12. package/dist/migration.d.mts +2 -2
  13. package/dist/migration.mjs +2 -2
  14. package/dist/{op-factory-call-CvH0JeBW.d.mts → op-factory-call-Bn9zDx4_.d.mts} +4 -7
  15. package/dist/op-factory-call-Bn9zDx4_.d.mts.map +1 -0
  16. package/dist/{op-factory-call-tBcLo_B8.mjs → op-factory-call-C38NzvQD.mjs} +12 -33
  17. package/dist/op-factory-call-C38NzvQD.mjs.map +1 -0
  18. package/dist/op-factory-call.d.mts +2 -2
  19. package/dist/op-factory-call.mjs +2 -2
  20. package/dist/{planner-ootbxGty.mjs → planner-BvUu6b9C.mjs} +11 -11
  21. package/dist/planner-BvUu6b9C.mjs.map +1 -0
  22. package/dist/{planner-produced-postgres-migration-k33bb9Sm.d.mts → planner-produced-postgres-migration-BEY1T0Xm.d.mts} +2 -2
  23. package/dist/{planner-produced-postgres-migration-k33bb9Sm.d.mts.map → planner-produced-postgres-migration-BEY1T0Xm.d.mts.map} +1 -1
  24. package/dist/{planner-produced-postgres-migration-DVsaobdV.mjs → planner-produced-postgres-migration-D7y-PEHK.mjs} +2 -2
  25. package/dist/{planner-produced-postgres-migration-DVsaobdV.mjs.map → planner-produced-postgres-migration-D7y-PEHK.mjs.map} +1 -1
  26. package/dist/planner-produced-postgres-migration.d.mts +1 -1
  27. package/dist/planner-produced-postgres-migration.mjs +1 -1
  28. package/dist/planner.d.mts +2 -2
  29. package/dist/planner.d.mts.map +1 -1
  30. package/dist/planner.mjs +2 -2
  31. package/dist/{postgres-database-schema-node-DJOTywwQ.d.mts → postgres-database-schema-node-CJv5bfbs.d.mts} +2 -11
  32. package/dist/postgres-database-schema-node-CJv5bfbs.d.mts.map +1 -0
  33. package/dist/{postgres-migration-ulfqRGA1.d.mts → postgres-migration-DbckK1su.d.mts} +2 -27
  34. package/dist/postgres-migration-DbckK1su.d.mts.map +1 -0
  35. package/dist/{postgres-migration-Bt3sXoID.mjs → postgres-migration-arMSWU9b.mjs} +2 -18
  36. package/dist/postgres-migration-arMSWU9b.mjs.map +1 -0
  37. package/dist/{postgres-role-schema-node-bg32e7I-.mjs → postgres-role-schema-node-Cm-j0ZGM.mjs} +2 -3
  38. package/dist/postgres-role-schema-node-Cm-j0ZGM.mjs.map +1 -0
  39. package/dist/types.d.mts +2 -3
  40. package/dist/types.mjs +3 -3
  41. package/package.json +20 -20
  42. package/src/core/migrations/contract-to-postgres-database-schema-node.ts +19 -99
  43. package/src/core/migrations/control-policy.ts +3 -4
  44. package/src/core/migrations/diff-database-schema.ts +3 -3
  45. package/src/core/migrations/issue-planner.ts +80 -41
  46. package/src/core/migrations/op-factory-call.ts +14 -38
  47. package/src/core/migrations/planner-strategies.ts +4 -5
  48. package/src/core/migrations/planner.ts +4 -5
  49. package/src/core/migrations/postgres-migration.ts +0 -60
  50. package/src/core/migrations/verify-postgres-namespaces.ts +1 -0
  51. package/src/core/schema-ir/postgres-policy-schema-node.ts +2 -12
  52. package/src/exports/op-factory-call.ts +0 -5
  53. package/src/exports/types.ts +0 -1
  54. package/dist/control-policy-DaLdbcYE.mjs.map +0 -1
  55. package/dist/diff-database-schema-oY3brcLj.mjs.map +0 -1
  56. package/dist/op-factory-call-CvH0JeBW.d.mts.map +0 -1
  57. package/dist/op-factory-call-tBcLo_B8.mjs.map +0 -1
  58. package/dist/planner-ootbxGty.mjs.map +0 -1
  59. package/dist/postgres-database-schema-node-DJOTywwQ.d.mts.map +0 -1
  60. package/dist/postgres-migration-Bt3sXoID.mjs.map +0 -1
  61. package/dist/postgres-migration-ulfqRGA1.d.mts.map +0 -1
  62. package/dist/postgres-role-schema-node-bg32e7I-.mjs.map +0 -1
  63. package/dist/schema-node-kinds-CrYzCR1i.d.mts +0 -30
  64. package/dist/schema-node-kinds-CrYzCR1i.d.mts.map +0 -1
@@ -1,30 +0,0 @@
1
- import { SqlSchemaIRNode } from "@prisma-next/sql-schema-ir/types";
2
- import { DiffableNode } from "@prisma-next/framework-components/control";
3
-
4
- //#region src/core/schema-ir/schema-node-kinds.d.ts
5
- /**
6
- * A Postgres schema-diff-tree node: a `SqlSchemaIRNode` that also implements
7
- * `DiffableNode` (the five `Postgres*SchemaNode` classes). `SqlSchemaIRNode`
8
- * alone is not a `DiffableNode` — its relational subclasses (`SqlColumnIR`, …)
9
- * carry no `id`/`isEqualTo`/`children` — so this intersection is the honest node
10
- * type the differ produces and the planner consumes (`SchemaDiff<SqlSchemaDiffNode>`).
11
- */
12
- type SqlSchemaDiffNode = SqlSchemaIRNode & DiffableNode;
13
- /**
14
- * The `nodeKind` discriminant for each Postgres schema-diff node. Each node
15
- * carries a unique value; the static `is`/`assert` guards compare against these
16
- * identifiers rather than spelling the string inline or using `instanceof`. The
17
- * field is an enumerable own property carried on every node instance.
18
- */
19
- declare const PostgresSchemaNodeKind: {
20
- readonly database: "postgres-database";
21
- readonly namespace: "postgres-namespace";
22
- readonly table: "postgres-table";
23
- readonly policy: "postgres-policy";
24
- readonly role: "postgres-role";
25
- readonly nativeEnum: "postgres-native-enum";
26
- };
27
- type PostgresSchemaNodeKind = (typeof PostgresSchemaNodeKind)[keyof typeof PostgresSchemaNodeKind];
28
- //#endregion
29
- export { SqlSchemaDiffNode as n, PostgresSchemaNodeKind as t };
30
- //# sourceMappingURL=schema-node-kinds-CrYzCR1i.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"schema-node-kinds-CrYzCR1i.d.mts","names":[],"sources":["../src/core/schema-ir/schema-node-kinds.ts"],"mappings":";;;;;;AAiBA;;;;AAA8D;KAAlD,iBAAA,GAAoB,eAAA,GAAkB,YAAY;;;;;;;cAQjD,sBAAA;EAAA;;;;;;;KASD,sBAAA,WACF,sBAAA,eAAqC,sBAAsB"}