@prisma-next/sql-schema-ir 0.5.0 → 0.5.1
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/exports/types.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
export {
|
|
1
|
+
import { a as SqlIndexIR, c as SqlTableIR, d as SqlUniqueIR, i as SqlForeignKeyIR, l as SqlTypeMetadata, n as SqlAnnotations, o as SqlReferentialAction, r as SqlColumnIR, s as SqlSchemaIR, t as PrimaryKey, u as SqlTypeMetadataRegistry } from "../types-BNW257Ug.mjs";
|
|
2
|
+
export { PrimaryKey, SqlAnnotations, SqlColumnIR, SqlForeignKeyIR, SqlIndexIR, SqlReferentialAction, SqlSchemaIR, SqlTableIR, SqlTypeMetadata, SqlTypeMetadataRegistry, SqlUniqueIR };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
export {
|
|
1
|
+
import { a as SqlIndexIR, c as SqlTableIR, d as SqlUniqueIR, i as SqlForeignKeyIR, l as SqlTypeMetadata, n as SqlAnnotations, o as SqlReferentialAction, r as SqlColumnIR, s as SqlSchemaIR, t as PrimaryKey, u as SqlTypeMetadataRegistry } from "./types-BNW257Ug.mjs";
|
|
2
|
+
export { PrimaryKey, SqlAnnotations, SqlColumnIR, SqlForeignKeyIR, SqlIndexIR, SqlReferentialAction, SqlSchemaIR, SqlTableIR, SqlTypeMetadata, SqlTypeMetadataRegistry, SqlUniqueIR };
|
|
@@ -79,9 +79,6 @@ type SqlTableIR = {
|
|
|
79
79
|
readonly indexes: readonly SqlIndexIR[];
|
|
80
80
|
readonly annotations?: SqlAnnotations;
|
|
81
81
|
};
|
|
82
|
-
type DependencyIR = {
|
|
83
|
-
readonly id: string;
|
|
84
|
-
};
|
|
85
82
|
/**
|
|
86
83
|
* SQL Schema IR representing the complete database schema.
|
|
87
84
|
* This is the target-agnostic representation used for verification and migration planning.
|
|
@@ -89,7 +86,6 @@ type DependencyIR = {
|
|
|
89
86
|
type SqlSchemaIR = {
|
|
90
87
|
readonly tables: Record<string, SqlTableIR>;
|
|
91
88
|
readonly annotations?: SqlAnnotations;
|
|
92
|
-
readonly dependencies: readonly DependencyIR[];
|
|
93
89
|
};
|
|
94
90
|
/**
|
|
95
91
|
* SQL type metadata for control-plane and execution-plane type availability and mapping.
|
|
@@ -124,5 +120,5 @@ interface SqlTypeMetadataRegistry {
|
|
|
124
120
|
values(): IterableIterator<SqlTypeMetadata>;
|
|
125
121
|
}
|
|
126
122
|
//#endregion
|
|
127
|
-
export {
|
|
128
|
-
//# sourceMappingURL=types-
|
|
123
|
+
export { SqlIndexIR as a, SqlTableIR as c, SqlUniqueIR as d, SqlForeignKeyIR as i, SqlTypeMetadata as l, SqlAnnotations as n, SqlReferentialAction as o, SqlColumnIR as r, SqlSchemaIR as s, PrimaryKey as t, SqlTypeMetadataRegistry as u };
|
|
124
|
+
//# sourceMappingURL=types-BNW257Ug.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types-
|
|
1
|
+
{"version":3,"file":"types-BNW257Ug.d.mts","names":[],"sources":["../src/types.ts"],"mappings":";;AAWA;;;;;AASA;;;;AAAA,KATY,UAAA;EAAA,SACD,OAAA;EAAA,SACA,IAAA;AAAA;;;;;KAOC,cAAA;EAAA,UACA,SAAA;AAAA;;;AAkBZ;KAZY,WAAA;EAAA,SACD,IAAA;EAAA,SACA,UAAA;EAAA,SACA,QAAA;EAAA,SACA,OAAA;EAAA,SACA,WAAA,GAAc,cAAA;AAAA;;;;;KAOb,oBAAA;;;;KAKA,eAAA;EAAA,SACD,OAAA;EAAA,SACA,eAAA;EAAA,SACA,iBAAA;EAAA,SACA,IAAA;EAAA,SACA,QAAA,GAAW,oBAAA;EAAA,SACX,QAAA,GAAW,oBAAA;EAAA,SACX,WAAA,GAAc,cAAA;AAAA;AAMzB;;;AAAA,KAAY,WAAA;EAAA,SACD,OAAA;EAAA,SACA,IAAA;EAAA,SACA,WAAA,GAAc,cAAA;AAAA;;;AAMzB;KAAY,UAAA;EAAA,SACD,OAAA;EAAA,SACA,IAAA;EAAA,SACA,MAAA;EAAA,SACA,IAAA;EAAA,SACA,OAAA,GAAU,MAAA;EAAA,SACV,WAAA,GAAc,cAAA;AAAA;;;;;KAOb,UAAA;EAAA,SACD,IAAA;EAAA,SACA,OAAA,EAAS,MAAA,SAAe,WAAA;EAAA,SACxB,UAAA,GAAa,UAAA;EAAA,SACb,WAAA,WAAsB,eAAA;EAAA,SACtB,OAAA,WAAkB,WAAA;EAAA,SAClB,OAAA,WAAkB,UAAA;EAAA,SAClB,WAAA,GAAc,cAAA;AAAA;;;;;KAOb,WAAA;EAAA,SACD,MAAA,EAAQ,MAAA,SAAe,UAAA;EAAA,SACvB,WAAA,GAAc,cAAA;AAAA;;;;;UAOR,eAAA;EAlBY;;;;EAAA,SAuBlB,MAAA;EArB4B;;AAOvC;;EAPuC,SA2B5B,WAAA;EAnBuB;;;;;EAAA,SA0BvB,UAAA;AAAA;;;;;UAOM,uBAAA;EAzBA;;;EA6Bf,MAAA,IAAU,gBAAA,CAAiB,eAAA;AAAA"}
|
package/package.json
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prisma-next/sql-schema-ir",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.1",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"description": "SQL Schema IR types for schema introspection and verification",
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"@prisma-next/contract": "0.5.
|
|
9
|
+
"@prisma-next/contract": "0.5.1"
|
|
10
10
|
},
|
|
11
11
|
"devDependencies": {
|
|
12
12
|
"tsdown": "0.22.0",
|
|
13
13
|
"typescript": "5.9.3",
|
|
14
14
|
"vitest": "4.1.5",
|
|
15
15
|
"@prisma-next/test-utils": "0.0.1",
|
|
16
|
-
"@prisma-next/
|
|
17
|
-
"@prisma-next/
|
|
16
|
+
"@prisma-next/tsconfig": "0.0.0",
|
|
17
|
+
"@prisma-next/tsdown": "0.0.0"
|
|
18
18
|
},
|
|
19
19
|
"files": [
|
|
20
20
|
"dist",
|
package/src/exports/types.ts
CHANGED
package/src/types.ts
CHANGED
|
@@ -87,10 +87,6 @@ export type SqlTableIR = {
|
|
|
87
87
|
readonly annotations?: SqlAnnotations; // table-level metadata
|
|
88
88
|
};
|
|
89
89
|
|
|
90
|
-
export type DependencyIR = {
|
|
91
|
-
readonly id: string;
|
|
92
|
-
};
|
|
93
|
-
|
|
94
90
|
/**
|
|
95
91
|
* SQL Schema IR representing the complete database schema.
|
|
96
92
|
* This is the target-agnostic representation used for verification and migration planning.
|
|
@@ -98,7 +94,6 @@ export type DependencyIR = {
|
|
|
98
94
|
export type SqlSchemaIR = {
|
|
99
95
|
readonly tables: Record<string, SqlTableIR>;
|
|
100
96
|
readonly annotations?: SqlAnnotations; // extensible global metadata
|
|
101
|
-
readonly dependencies: readonly DependencyIR[];
|
|
102
97
|
};
|
|
103
98
|
|
|
104
99
|
/**
|