@prisma-next/postgres 0.5.0-dev.85 → 0.5.0-dev.87
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/README.md +12 -0
- package/dist/contract-builder.d.mts +2 -0
- package/dist/contract-builder.mjs +2 -0
- package/dist/family.d.mts +2 -0
- package/dist/family.mjs +2 -0
- package/dist/target.d.mts +2 -0
- package/dist/target.mjs +2 -0
- package/package.json +19 -18
- package/src/exports/contract-builder.ts +21 -0
- package/src/exports/family.ts +1 -0
- package/src/exports/target.ts +1 -0
package/README.md
CHANGED
|
@@ -83,6 +83,18 @@ When URL binding is used, pool timeouts are configurable via `poolOptions`:
|
|
|
83
83
|
- `poolOptions.connectionTimeoutMillis` (default `20_000`)
|
|
84
84
|
- `poolOptions.idleTimeoutMillis` (default `30_000`)
|
|
85
85
|
|
|
86
|
+
### `@prisma-next/postgres/contract-builder`
|
|
87
|
+
|
|
88
|
+
Re-exports the TypeScript contract authoring DSL (`defineContract`, `field`, `model`, `rel`, ...) so a generated `prisma/contract.ts` can author its contract using only this facade package.
|
|
89
|
+
|
|
90
|
+
### `@prisma-next/postgres/family`
|
|
91
|
+
|
|
92
|
+
Re-exports the SQL family pack (the value passed as `family:` to `defineContract`).
|
|
93
|
+
|
|
94
|
+
### `@prisma-next/postgres/target`
|
|
95
|
+
|
|
96
|
+
Re-exports the Postgres target pack (the value passed as `target:` to `defineContract`).
|
|
97
|
+
|
|
86
98
|
### `@prisma-next/postgres/serverless`
|
|
87
99
|
|
|
88
100
|
`@prisma-next/postgres/serverless` exposes `postgresServerless(...)` for per-request runtimes. The returned client exposes only:
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { ComposedAuthoringHelpers, ContractDefinition, ContractInput, ContractModelBuilder, FieldNode, ForeignKeyNode, IndexNode, ModelNode, PrimaryKeyNode, RelationNode, ScalarFieldBuilder, UniqueConstraintNode, buildSqlContractFromDefinition, defineContract, field, model, rel } from "@prisma-next/sql-contract-ts/contract-builder";
|
|
2
|
+
export { type ComposedAuthoringHelpers, type ContractDefinition, type ContractInput, type ContractModelBuilder, type FieldNode, type ForeignKeyNode, type IndexNode, type ModelNode, type PrimaryKeyNode, type RelationNode, type ScalarFieldBuilder, type UniqueConstraintNode, buildSqlContractFromDefinition, defineContract, field, model, rel };
|
package/dist/family.mjs
ADDED
package/dist/target.mjs
ADDED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prisma-next/postgres",
|
|
3
|
-
"version": "0.5.0-dev.
|
|
3
|
+
"version": "0.5.0-dev.87",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -8,21 +8,21 @@
|
|
|
8
8
|
"dependencies": {
|
|
9
9
|
"pathe": "^2.0.3",
|
|
10
10
|
"pg": "8.20.0",
|
|
11
|
-
"@prisma-next/config": "0.5.0-dev.
|
|
12
|
-
"@prisma-next/
|
|
13
|
-
"@prisma-next/family-sql": "0.5.0-dev.
|
|
14
|
-
"@prisma-next/framework-components": "0.5.0-dev.
|
|
15
|
-
"@prisma-next/
|
|
16
|
-
"@prisma-next/
|
|
17
|
-
"@prisma-next/
|
|
18
|
-
"@prisma-next/
|
|
19
|
-
"@prisma-next/sql-
|
|
20
|
-
"@prisma-next/sql-
|
|
21
|
-
"@prisma-next/sql-relational-core": "0.5.0-dev.
|
|
22
|
-
"@prisma-next/sql-
|
|
23
|
-
"@prisma-next/
|
|
24
|
-
"@prisma-next/
|
|
25
|
-
"@prisma-next/utils": "0.5.0-dev.
|
|
11
|
+
"@prisma-next/config": "0.5.0-dev.87",
|
|
12
|
+
"@prisma-next/driver-postgres": "0.5.0-dev.87",
|
|
13
|
+
"@prisma-next/family-sql": "0.5.0-dev.87",
|
|
14
|
+
"@prisma-next/framework-components": "0.5.0-dev.87",
|
|
15
|
+
"@prisma-next/sql-contract": "0.5.0-dev.87",
|
|
16
|
+
"@prisma-next/contract": "0.5.0-dev.87",
|
|
17
|
+
"@prisma-next/sql-contract-psl": "0.5.0-dev.87",
|
|
18
|
+
"@prisma-next/adapter-postgres": "0.5.0-dev.87",
|
|
19
|
+
"@prisma-next/sql-orm-client": "0.5.0-dev.87",
|
|
20
|
+
"@prisma-next/sql-contract-ts": "0.5.0-dev.87",
|
|
21
|
+
"@prisma-next/sql-relational-core": "0.5.0-dev.87",
|
|
22
|
+
"@prisma-next/sql-builder": "0.5.0-dev.87",
|
|
23
|
+
"@prisma-next/sql-runtime": "0.5.0-dev.87",
|
|
24
|
+
"@prisma-next/target-postgres": "0.5.0-dev.87",
|
|
25
|
+
"@prisma-next/utils": "0.5.0-dev.87"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@types/pg": "8.20.0",
|
|
@@ -47,12 +47,13 @@
|
|
|
47
47
|
},
|
|
48
48
|
"exports": {
|
|
49
49
|
"./config": "./dist/config.mjs",
|
|
50
|
+
"./contract-builder": "./dist/contract-builder.mjs",
|
|
51
|
+
"./family": "./dist/family.mjs",
|
|
50
52
|
"./runtime": "./dist/runtime.mjs",
|
|
51
53
|
"./serverless": "./dist/serverless.mjs",
|
|
54
|
+
"./target": "./dist/target.mjs",
|
|
52
55
|
"./package.json": "./package.json"
|
|
53
56
|
},
|
|
54
|
-
"main": "./dist/runtime.mjs",
|
|
55
|
-
"module": "./dist/runtime.mjs",
|
|
56
57
|
"types": "./dist/runtime.d.mts",
|
|
57
58
|
"scripts": {
|
|
58
59
|
"build": "tsdown",
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export type {
|
|
2
|
+
ComposedAuthoringHelpers,
|
|
3
|
+
ContractDefinition,
|
|
4
|
+
ContractInput,
|
|
5
|
+
ContractModelBuilder,
|
|
6
|
+
FieldNode,
|
|
7
|
+
ForeignKeyNode,
|
|
8
|
+
IndexNode,
|
|
9
|
+
ModelNode,
|
|
10
|
+
PrimaryKeyNode,
|
|
11
|
+
RelationNode,
|
|
12
|
+
ScalarFieldBuilder,
|
|
13
|
+
UniqueConstraintNode,
|
|
14
|
+
} from '@prisma-next/sql-contract-ts/contract-builder';
|
|
15
|
+
export {
|
|
16
|
+
buildSqlContractFromDefinition,
|
|
17
|
+
defineContract,
|
|
18
|
+
field,
|
|
19
|
+
model,
|
|
20
|
+
rel,
|
|
21
|
+
} from '@prisma-next/sql-contract-ts/contract-builder';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from '@prisma-next/family-sql/pack';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from '@prisma-next/target-postgres/pack';
|