@prisma-next/compat-prisma 0.1.0-pr.32.8 → 0.1.0-pr.34.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.
@@ -1,61 +1,7 @@
1
- import { ContractBase } from '@prisma-next/contract/types';
1
+ import { SqlContract, SqlStorage } from '@prisma-next/sql-contract/types';
2
2
  import { schema } from '@prisma-next/sql-relational-core/schema';
3
3
  import { Runtime, RuntimeContext } from '@prisma-next/sql-runtime';
4
4
 
5
- type StorageColumn = {
6
- readonly nativeType: string;
7
- readonly codecId: string;
8
- readonly nullable: boolean;
9
- };
10
- type PrimaryKey = {
11
- readonly columns: readonly string[];
12
- readonly name?: string;
13
- };
14
- type UniqueConstraint = {
15
- readonly columns: readonly string[];
16
- readonly name?: string;
17
- };
18
- type Index = {
19
- readonly columns: readonly string[];
20
- readonly name?: string;
21
- };
22
- type ForeignKeyReferences = {
23
- readonly table: string;
24
- readonly columns: readonly string[];
25
- };
26
- type ForeignKey = {
27
- readonly columns: readonly string[];
28
- readonly references: ForeignKeyReferences;
29
- readonly name?: string;
30
- };
31
- type StorageTable = {
32
- readonly columns: Record<string, StorageColumn>;
33
- readonly primaryKey?: PrimaryKey;
34
- readonly uniques: ReadonlyArray<UniqueConstraint>;
35
- readonly indexes: ReadonlyArray<Index>;
36
- readonly foreignKeys: ReadonlyArray<ForeignKey>;
37
- };
38
- type SqlStorage = {
39
- readonly tables: Record<string, StorageTable>;
40
- };
41
- type SqlMappings = {
42
- readonly modelToTable?: Record<string, string>;
43
- readonly tableToModel?: Record<string, string>;
44
- readonly fieldToColumn?: Record<string, Record<string, string>>;
45
- readonly columnToField?: Record<string, Record<string, string>>;
46
- readonly codecTypes: Record<string, {
47
- readonly output: unknown;
48
- }>;
49
- readonly operationTypes: Record<string, Record<string, unknown>>;
50
- };
51
- type SqlContract<S extends SqlStorage = SqlStorage, M extends Record<string, unknown> = Record<string, unknown>, R extends Record<string, unknown> = Record<string, unknown>, Map extends SqlMappings = SqlMappings> = ContractBase & {
52
- readonly targetFamily: string;
53
- readonly storage: S;
54
- readonly models: M;
55
- readonly relations: R;
56
- readonly mappings: Map;
57
- };
58
-
59
5
  interface PrismaClientOptions {
60
6
  readonly contract: SqlContract<SqlStorage>;
61
7
  readonly runtime?: Runtime;
package/package.json CHANGED
@@ -1,18 +1,19 @@
1
1
  {
2
2
  "name": "@prisma-next/compat-prisma",
3
- "version": "0.1.0-pr.32.8",
3
+ "version": "0.1.0-pr.34.1",
4
4
  "type": "module",
5
5
  "sideEffects": false,
6
6
  "files": [
7
7
  "dist"
8
8
  ],
9
9
  "dependencies": {
10
- "@prisma-next/contract": "0.1.0-pr.32.8",
11
- "@prisma-next/sql-runtime": "0.1.0-pr.32.8",
12
- "@prisma-next/sql-relational-core": "0.1.0-pr.32.8",
13
- "@prisma-next/sql-lane": "0.1.0-pr.32.8",
14
- "@prisma-next/driver-postgres": "0.1.0-pr.32.8",
15
- "@prisma-next/adapter-postgres": "0.1.0-pr.32.8"
10
+ "@prisma-next/adapter-postgres": "0.1.0-pr.34.1",
11
+ "@prisma-next/contract": "0.1.0-pr.34.1",
12
+ "@prisma-next/driver-postgres": "0.1.0-pr.34.1",
13
+ "@prisma-next/sql-contract": "0.1.0-pr.34.1",
14
+ "@prisma-next/sql-lane": "0.1.0-pr.34.1",
15
+ "@prisma-next/sql-relational-core": "0.1.0-pr.34.1",
16
+ "@prisma-next/sql-runtime": "0.1.0-pr.34.1"
16
17
  },
17
18
  "devDependencies": {
18
19
  "@prisma/dev": "^0.1.1",
@@ -22,6 +23,7 @@
22
23
  "typescript": "^5.9.3",
23
24
  "vite-tsconfig-paths": "^5.1.4",
24
25
  "vitest": "^2.1.1",
26
+ "@prisma-next/sql-contract-ts": "0.1.0-pr.34.1",
25
27
  "@prisma-next/test-utils": "0.0.1"
26
28
  },
27
29
  "exports": {
@@ -36,6 +38,6 @@
36
38
  "test:coverage": "vitest run --coverage",
37
39
  "typecheck": "tsc --project tsconfig.json --noEmit",
38
40
  "lint": "biome check . --config-path ../../../biome.json --error-on-warnings",
39
- "clean": "node ../../scripts/clean.mjs"
41
+ "clean": "node ../../../scripts/clean.mjs"
40
42
  }
41
43
  }