@prisma-next/postgres 0.12.0-dev.32 → 0.12.0-dev.34
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.mjs +1 -1
- package/dist/control.mjs.map +1 -1
- package/package.json +21 -21
- package/src/exports/control.ts +1 -1
package/dist/control.mjs
CHANGED
|
@@ -9,7 +9,7 @@ import { createControlClient } from "@prisma-next/cli/control-api";
|
|
|
9
9
|
* Control-API facade for Postgres.
|
|
10
10
|
*
|
|
11
11
|
* Collapses the five-package wiring required to drive control-side
|
|
12
|
-
* operations (`dbInit`, `dbUpdate`, `dbVerify`, `
|
|
12
|
+
* operations (`dbInit`, `dbUpdate`, `dbVerify`, `migrate`, …) into
|
|
13
13
|
* a single `createPostgresControlClient()` call. Mirrors what
|
|
14
14
|
* `@prisma-next/postgres/runtime` did for the query side.
|
|
15
15
|
*/
|
package/dist/control.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"control.mjs","names":[],"sources":["../src/exports/control.ts"],"sourcesContent":["/**\n * Control-API facade for Postgres.\n *\n * Collapses the five-package wiring required to drive control-side\n * operations (`dbInit`, `dbUpdate`, `dbVerify`, `
|
|
1
|
+
{"version":3,"file":"control.mjs","names":[],"sources":["../src/exports/control.ts"],"sourcesContent":["/**\n * Control-API facade for Postgres.\n *\n * Collapses the five-package wiring required to drive control-side\n * operations (`dbInit`, `dbUpdate`, `dbVerify`, `migrate`, …) into\n * a single `createPostgresControlClient()` call. Mirrors what\n * `@prisma-next/postgres/runtime` did for the query side.\n */\n\nimport postgresAdapter from '@prisma-next/adapter-postgres/control';\nimport {\n type ControlClient,\n type ControlClientOptions,\n createControlClient,\n} from '@prisma-next/cli/control-api';\nimport postgresDriver from '@prisma-next/driver-postgres/control';\nimport sql from '@prisma-next/family-sql/control';\nimport postgres from '@prisma-next/target-postgres/control';\nimport { ifDefined } from '@prisma-next/utils/defined';\n\nexport interface PostgresControlClientOptions {\n /**\n * Default Postgres connection string. When set, operations like `dbInit`\n * auto-connect without an explicit `connect()` call. Equivalent to the\n * `connection` field on the underlying `ControlClientOptions`.\n */\n readonly connection?: string;\n /**\n * Composed extension descriptors. Pass the same descriptors here that\n * the contract was authored against.\n */\n readonly extensionPacks?: ControlClientOptions['extensionPacks'];\n}\n\nexport function createPostgresControlClient(\n options: PostgresControlClientOptions = {},\n): ControlClient {\n const clientOptions: ControlClientOptions = {\n family: sql,\n target: postgres,\n adapter: postgresAdapter,\n driver: postgresDriver,\n ...ifDefined('connection', options.connection),\n ...ifDefined('extensionPacks', options.extensionPacks),\n };\n return createControlClient(clientOptions);\n}\n\nexport type { ControlClient };\n"],"mappings":";;;;;;;;;;;;;;;AAkCA,SAAgB,4BACd,UAAwC,CAAC,GAC1B;CASf,OAAO,oBAAoB;EAPzB,QAAQ;EACR,QAAQ;EACR,SAAS;EACT,QAAQ;EACR,GAAG,UAAU,cAAc,QAAQ,UAAU;EAC7C,GAAG,UAAU,kBAAkB,QAAQ,cAAc;CAEhB,CAAC;AAC1C"}
|
package/package.json
CHANGED
|
@@ -1,35 +1,35 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prisma-next/postgres",
|
|
3
|
-
"version": "0.12.0-dev.
|
|
3
|
+
"version": "0.12.0-dev.34",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"description": "One-liner lazy Postgres client composition for Prisma Next",
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"@prisma-next/adapter-postgres": "0.12.0-dev.
|
|
10
|
-
"@prisma-next/cli": "0.12.0-dev.
|
|
11
|
-
"@prisma-next/config": "0.12.0-dev.
|
|
12
|
-
"@prisma-next/contract": "0.12.0-dev.
|
|
13
|
-
"@prisma-next/driver-postgres": "0.12.0-dev.
|
|
14
|
-
"@prisma-next/family-sql": "0.12.0-dev.
|
|
15
|
-
"@prisma-next/framework-components": "0.12.0-dev.
|
|
16
|
-
"@prisma-next/sql-contract": "0.12.0-dev.
|
|
17
|
-
"@prisma-next/sql-contract-psl": "0.12.0-dev.
|
|
18
|
-
"@prisma-next/sql-contract-ts": "0.12.0-dev.
|
|
19
|
-
"@prisma-next/sql-builder": "0.12.0-dev.
|
|
20
|
-
"@prisma-next/sql-orm-client": "0.12.0-dev.
|
|
21
|
-
"@prisma-next/sql-relational-core": "0.12.0-dev.
|
|
22
|
-
"@prisma-next/sql-runtime": "0.12.0-dev.
|
|
23
|
-
"@prisma-next/target-postgres": "0.12.0-dev.
|
|
24
|
-
"@prisma-next/utils": "0.12.0-dev.
|
|
9
|
+
"@prisma-next/adapter-postgres": "0.12.0-dev.34",
|
|
10
|
+
"@prisma-next/cli": "0.12.0-dev.34",
|
|
11
|
+
"@prisma-next/config": "0.12.0-dev.34",
|
|
12
|
+
"@prisma-next/contract": "0.12.0-dev.34",
|
|
13
|
+
"@prisma-next/driver-postgres": "0.12.0-dev.34",
|
|
14
|
+
"@prisma-next/family-sql": "0.12.0-dev.34",
|
|
15
|
+
"@prisma-next/framework-components": "0.12.0-dev.34",
|
|
16
|
+
"@prisma-next/sql-contract": "0.12.0-dev.34",
|
|
17
|
+
"@prisma-next/sql-contract-psl": "0.12.0-dev.34",
|
|
18
|
+
"@prisma-next/sql-contract-ts": "0.12.0-dev.34",
|
|
19
|
+
"@prisma-next/sql-builder": "0.12.0-dev.34",
|
|
20
|
+
"@prisma-next/sql-orm-client": "0.12.0-dev.34",
|
|
21
|
+
"@prisma-next/sql-relational-core": "0.12.0-dev.34",
|
|
22
|
+
"@prisma-next/sql-runtime": "0.12.0-dev.34",
|
|
23
|
+
"@prisma-next/target-postgres": "0.12.0-dev.34",
|
|
24
|
+
"@prisma-next/utils": "0.12.0-dev.34",
|
|
25
25
|
"pathe": "^2.0.3",
|
|
26
26
|
"pg": "8.20.0"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
|
-
"@prisma-next/psl-parser": "0.12.0-dev.
|
|
30
|
-
"@prisma-next/test-utils": "0.12.0-dev.
|
|
31
|
-
"@prisma-next/tsconfig": "0.12.0-dev.
|
|
32
|
-
"@prisma-next/tsdown": "0.12.0-dev.
|
|
29
|
+
"@prisma-next/psl-parser": "0.12.0-dev.34",
|
|
30
|
+
"@prisma-next/test-utils": "0.12.0-dev.34",
|
|
31
|
+
"@prisma-next/tsconfig": "0.12.0-dev.34",
|
|
32
|
+
"@prisma-next/tsdown": "0.12.0-dev.34",
|
|
33
33
|
"@types/pg": "8.20.0",
|
|
34
34
|
"tsdown": "0.22.0",
|
|
35
35
|
"typescript": "5.9.3",
|
package/src/exports/control.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Control-API facade for Postgres.
|
|
3
3
|
*
|
|
4
4
|
* Collapses the five-package wiring required to drive control-side
|
|
5
|
-
* operations (`dbInit`, `dbUpdate`, `dbVerify`, `
|
|
5
|
+
* operations (`dbInit`, `dbUpdate`, `dbVerify`, `migrate`, …) into
|
|
6
6
|
* a single `createPostgresControlClient()` call. Mirrors what
|
|
7
7
|
* `@prisma-next/postgres/runtime` did for the query side.
|
|
8
8
|
*/
|