@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.
- package/dist/{control-policy-DaLdbcYE.mjs → control-policy-1Tcf7Tyu.mjs} +72 -41
- package/dist/control-policy-1Tcf7Tyu.mjs.map +1 -0
- package/dist/control.mjs +3 -3
- package/dist/{diff-database-schema-oY3brcLj.mjs → diff-database-schema-Bfgshz4v.mjs} +22 -85
- package/dist/diff-database-schema-Bfgshz4v.mjs.map +1 -0
- package/dist/diff-database-schema.d.mts +12 -3
- package/dist/diff-database-schema.d.mts.map +1 -1
- package/dist/diff-database-schema.mjs +1 -1
- package/dist/issue-planner.d.mts +1 -1
- package/dist/issue-planner.d.mts.map +1 -1
- package/dist/issue-planner.mjs +1 -1
- package/dist/migration.d.mts +2 -2
- package/dist/migration.mjs +2 -2
- package/dist/{op-factory-call-CvH0JeBW.d.mts → op-factory-call-Bn9zDx4_.d.mts} +4 -7
- package/dist/op-factory-call-Bn9zDx4_.d.mts.map +1 -0
- package/dist/{op-factory-call-tBcLo_B8.mjs → op-factory-call-C38NzvQD.mjs} +12 -33
- package/dist/op-factory-call-C38NzvQD.mjs.map +1 -0
- package/dist/op-factory-call.d.mts +2 -2
- package/dist/op-factory-call.mjs +2 -2
- package/dist/{planner-ootbxGty.mjs → planner-BvUu6b9C.mjs} +11 -11
- package/dist/planner-BvUu6b9C.mjs.map +1 -0
- package/dist/{planner-produced-postgres-migration-k33bb9Sm.d.mts → planner-produced-postgres-migration-BEY1T0Xm.d.mts} +2 -2
- package/dist/{planner-produced-postgres-migration-k33bb9Sm.d.mts.map → planner-produced-postgres-migration-BEY1T0Xm.d.mts.map} +1 -1
- package/dist/{planner-produced-postgres-migration-DVsaobdV.mjs → planner-produced-postgres-migration-D7y-PEHK.mjs} +2 -2
- package/dist/{planner-produced-postgres-migration-DVsaobdV.mjs.map → planner-produced-postgres-migration-D7y-PEHK.mjs.map} +1 -1
- package/dist/planner-produced-postgres-migration.d.mts +1 -1
- package/dist/planner-produced-postgres-migration.mjs +1 -1
- package/dist/planner.d.mts +2 -2
- package/dist/planner.d.mts.map +1 -1
- package/dist/planner.mjs +2 -2
- package/dist/{postgres-database-schema-node-DJOTywwQ.d.mts → postgres-database-schema-node-CJv5bfbs.d.mts} +2 -11
- package/dist/postgres-database-schema-node-CJv5bfbs.d.mts.map +1 -0
- package/dist/{postgres-migration-ulfqRGA1.d.mts → postgres-migration-DbckK1su.d.mts} +2 -27
- package/dist/postgres-migration-DbckK1su.d.mts.map +1 -0
- package/dist/{postgres-migration-Bt3sXoID.mjs → postgres-migration-arMSWU9b.mjs} +2 -18
- package/dist/postgres-migration-arMSWU9b.mjs.map +1 -0
- package/dist/{postgres-role-schema-node-bg32e7I-.mjs → postgres-role-schema-node-Cm-j0ZGM.mjs} +2 -3
- package/dist/postgres-role-schema-node-Cm-j0ZGM.mjs.map +1 -0
- package/dist/types.d.mts +2 -3
- package/dist/types.mjs +3 -3
- package/package.json +20 -20
- package/src/core/migrations/contract-to-postgres-database-schema-node.ts +19 -99
- package/src/core/migrations/control-policy.ts +3 -4
- package/src/core/migrations/diff-database-schema.ts +3 -3
- package/src/core/migrations/issue-planner.ts +80 -41
- package/src/core/migrations/op-factory-call.ts +14 -38
- package/src/core/migrations/planner-strategies.ts +4 -5
- package/src/core/migrations/planner.ts +4 -5
- package/src/core/migrations/postgres-migration.ts +0 -60
- package/src/core/migrations/verify-postgres-namespaces.ts +1 -0
- package/src/core/schema-ir/postgres-policy-schema-node.ts +2 -12
- package/src/exports/op-factory-call.ts +0 -5
- package/src/exports/types.ts +0 -1
- package/dist/control-policy-DaLdbcYE.mjs.map +0 -1
- package/dist/diff-database-schema-oY3brcLj.mjs.map +0 -1
- package/dist/op-factory-call-CvH0JeBW.d.mts.map +0 -1
- package/dist/op-factory-call-tBcLo_B8.mjs.map +0 -1
- package/dist/planner-ootbxGty.mjs.map +0 -1
- package/dist/postgres-database-schema-node-DJOTywwQ.d.mts.map +0 -1
- package/dist/postgres-migration-Bt3sXoID.mjs.map +0 -1
- package/dist/postgres-migration-ulfqRGA1.d.mts.map +0 -1
- package/dist/postgres-role-schema-node-bg32e7I-.mjs.map +0 -1
- package/dist/schema-node-kinds-CrYzCR1i.d.mts +0 -30
- 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"}
|