@prisma/orm-sqlite 8.0.0-rc.1-dev.45 → 8.0.0-rc.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/README.md +4 -4
- package/dist/runtime.d.mts +1 -1
- package/dist/{sqlite-BXwKNfX4-BdouPatr.d.mts → sqlite-CjWZostj-Cprd7rkt.d.mts} +4 -4
- package/dist/sqlite-CjWZostj-Cprd7rkt.d.mts.map +1 -0
- package/dist/static.d.mts +1 -1
- package/package.json +9 -12
- package/dist/bin__prisma-next.mjs +0 -3
- package/dist/sqlite-BXwKNfX4-BdouPatr.d.mts.map +0 -1
package/README.md
CHANGED
|
@@ -12,7 +12,7 @@ The one package a SQLite application installs. It wires the framework, the SQL f
|
|
|
12
12
|
├── @prisma/orm-framework contracts, components, runtime core
|
|
13
13
|
├── @prisma/orm-family-sql SQL contract, lanes, ORM client, runtime
|
|
14
14
|
├── @prisma/orm-target-sqlite target descriptor + adapter + driver
|
|
15
|
-
└── @prisma/orm-toolchain
|
|
15
|
+
└── @prisma/orm-toolchain ORM command family for the `prisma` CLI, emitter, config loader
|
|
16
16
|
```
|
|
17
17
|
|
|
18
18
|
The driver is Node's built-in `node:sqlite`, so there is no native module to compile.
|
|
@@ -23,7 +23,7 @@ The driver is Node's built-in `node:sqlite`, so there is no native module to com
|
|
|
23
23
|
| --- | --- |
|
|
24
24
|
| `/runtime` | `sqlite(path)` — the lazy query client |
|
|
25
25
|
| `/static` | statically composed runtime for pre-wired deployments |
|
|
26
|
-
| `/config` | `defineConfig` for `prisma
|
|
26
|
+
| `/config` | `defineConfig` for `prisma.config.ts` |
|
|
27
27
|
| `/contract-builder` | `defineContract` and SQLite contract authoring |
|
|
28
28
|
| `/migration`, `/control` | migration planning and the control client |
|
|
29
29
|
|
|
@@ -39,9 +39,9 @@ Generated contract files import their types from the facade, so an application n
|
|
|
39
39
|
|
|
40
40
|
These forward; they do not copy. `@prisma/orm-sqlite/contract/types` and `@prisma/orm-framework/contract/types` are the same module, so shared registries and `instanceof` checks hold across the boundary.
|
|
41
41
|
|
|
42
|
-
## The
|
|
42
|
+
## The CLI
|
|
43
43
|
|
|
44
|
-
|
|
44
|
+
This package ships no bin. The ORM commands run inside the unified `prisma` CLI, which mounts the command family published at `@prisma/orm-toolchain/cli`.
|
|
45
45
|
|
|
46
46
|
## Responsibilities
|
|
47
47
|
|
package/dist/runtime.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as SqliteOptionsWithContractJson, c as sqlite, i as SqliteOptionsWithContract, n as SqliteOptions, r as SqliteOptionsBase, s as SqliteTargetId, t as SqliteClient } from "./sqlite-
|
|
1
|
+
import { a as SqliteOptionsWithContractJson, c as sqlite, i as SqliteOptionsWithContract, n as SqliteOptions, r as SqliteOptionsBase, s as SqliteTargetId, t as SqliteClient } from "./sqlite-CjWZostj-Cprd7rkt.mjs";
|
|
2
2
|
import { Runtime, SqlRuntimeBase } from "@prisma/orm-family-sql/runtime";
|
|
3
3
|
import "@prisma/orm-target-sqlite/driver/runtime";
|
|
4
4
|
import { Contract } from "@prisma/orm-framework/contract/types";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { UNBOUND_NAMESPACE_ID } from "@prisma/orm-framework/components/ir";
|
|
2
|
-
import { BindSiteParams, Declaration, ExecutionContext, ParamsFromDeclaration,
|
|
2
|
+
import { BindSiteParams, Declaration, ExecutionContext, ParamsFromDeclaration, PreparedFor, Runtime, SqlExecutionStackWithDriver, SqlMiddleware, SqlRuntimeExtensionDescriptor, TransactionContext, VerifyMarkerOption } from "@prisma/orm-family-sql/runtime";
|
|
3
3
|
import { NamespacedEnums } from "@prisma/orm-framework/contract/enum-accessor";
|
|
4
4
|
import { CodecTypesBase, RawSqlTag } from "@prisma/orm-family-sql/relational-core/expression";
|
|
5
5
|
import { orm } from "@prisma/orm-family-sql/orm-client";
|
|
@@ -7,7 +7,7 @@ import { Contract } from "@prisma/orm-framework/contract/types";
|
|
|
7
7
|
import { ExtractCodecTypes, SqlStorage } from "@prisma/orm-family-sql/contract/types";
|
|
8
8
|
import { Db } from "@prisma/orm-family-sql/builder/types";
|
|
9
9
|
import { SqlQueryPlan } from "@prisma/orm-family-sql/relational-core/plan";
|
|
10
|
-
//#region ../../../3-extensions/sqlite/dist/sqlite-
|
|
10
|
+
//#region ../../../3-extensions/sqlite/dist/sqlite-CjWZostj.d.mts
|
|
11
11
|
//#region src/static/sqlite-static.d.ts
|
|
12
12
|
type UnboundSql$1<TContract extends Contract<SqlStorage>> = Db<TContract>[typeof UNBOUND_NAMESPACE_ID];
|
|
13
13
|
type UnboundEnums<TContract extends Contract<SqlStorage>> = NamespacedEnums<TContract>[typeof UNBOUND_NAMESPACE_ID];
|
|
@@ -45,7 +45,7 @@ interface SqliteClient<TContract extends Contract<SqlStorage>> {
|
|
|
45
45
|
readonly path: string;
|
|
46
46
|
}): Promise<Runtime>;
|
|
47
47
|
runtime(): Runtime;
|
|
48
|
-
prepare<D extends Declaration<CT>, Row, CT extends CodecTypesBase = ExtractCodecTypes<TContract
|
|
48
|
+
prepare<D extends Declaration<CT>, Row, CT extends CodecTypesBase = ExtractCodecTypes<TContract>>(declaration: D, callback: (sql: UnboundSql<TContract>, params: BindSiteParams<D>) => SqlQueryPlan<Row>): Promise<PreparedFor<ParamsFromDeclaration<D, CT>, Row>>;
|
|
49
49
|
transaction<R>(fn: (tx: SqliteTransactionContext<TContract>) => PromiseLike<R>): Promise<R>;
|
|
50
50
|
close(): Promise<void>;
|
|
51
51
|
[Symbol.asyncDispose](): Promise<void>;
|
|
@@ -73,4 +73,4 @@ declare function sqlite<TContract extends Contract<SqlStorage>>(options: SqliteO
|
|
|
73
73
|
declare function sqlite<TContract extends Contract<SqlStorage>>(options: SqliteOptionsWithContractJson<TContract>): SqliteClient<TContract>;
|
|
74
74
|
//#endregion
|
|
75
75
|
export { SqliteOptionsWithContractJson as a, sqlite as c, SqliteOptionsWithContract as i, sqliteStatic as l, SqliteOptions as n, SqliteStaticContext as o, SqliteOptionsBase as r, SqliteTargetId as s, SqliteClient as t };
|
|
76
|
-
//# sourceMappingURL=sqlite-
|
|
76
|
+
//# sourceMappingURL=sqlite-CjWZostj-Cprd7rkt.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sqlite-CjWZostj-Cprd7rkt.d.mts","names":[],"sources":["../../../../3-extensions/sqlite/dist/sqlite-CjWZostj.d.mts"],"mappings":";;;;;;;;;;;KAUK,aAAa,kBAAkB,SAAS,eAAe,GAAG,kBAAkB;KAC5E,aAAa,kBAAkB,SAAS,eAAe,gBAAgB,kBAAkB;UACpF,oBAAoB,kBAAkB,SAAS;WAC9C,SAAS,iBAAiB;WAC1B,UAAU;WACV,OAAO,aAAa;WACpB,KAAK,aAAa;WAClB,KAAK;;iBAEC,aAAa,kBAAkB,SAAS,aAAa;WAC3D;WACA,sBAAsB,8BAA8B;IAC3D,oBAAoB;;;KAGnB;KACA,UAAU,kBAAkB,SAAS,eAAe,kBAAkB,IAAI;KAC1E,WAAW,kBAAkB,SAAS,eAAe,GAAG,kBAAkB;KAC1E,WAAW,kBAAkB,SAAS,eAAe,UAAU,kBAAkB;UAC5E,yBAAyB,kBAAkB,SAAS,qBAAqB;WACxE,KAAK,WAAW;WAChB,KAAK,WAAW;WAChB,OAAO,oBAAoB;;UAE5B,aAAa,kBAAkB,SAAS;WACvC,KAAK,WAAW;WAChB,KAAK,WAAW;WAChB,OAAO,oBAAoB;WAC3B,KAAK;WACL,SAAS,iBAAiB;WAC1B,UAAU;WACV,OAAO,4BAA4B;EAC5C,QAAQ;aACG;MACP,QAAQ;EACZ,WAAW;EACX,QAAQ,UAAU,YAAY,KAAK,KAAK,WAAW,iBAAiB,kBAAkB,YAAY,aAAa,GAAG,WAAW,KAAK,WAAW,YAAY,QAAQ,eAAe,OAAO,aAAa,OAAO,QAAQ,YAAY,sBAAsB,GAAG,KAAK;EAC7P,YAAY,GAAG,KAAK,IAAI,yBAAyB,eAAe,YAAY,KAAK,QAAQ;EACzF,SAAS;GACR,OAAO,iBAAiB;;UAEjB;WACC,sBAAsB,8BAA8B;WACpD,sBAAsB;WACtB,eAAe;;KAErB,0BAA0B,kBAAkB,SAAS;WAC/C;IACP;WACO,UAAU;WACV;;KAEN,8BAA8B,kBAAkB,SAAS;WACnD;WACA,YAAY;IACnB;WACO;WACA;;KAEN,cAAc,kBAAkB,SAAS,eAAe,0BAA0B,aAAa,8BAA8B;iBACjH,OAAO,kBAAkB,SAAS,aAAa,SAAS,0BAA0B,aAAa,aAAa;iBAC5G,OAAO,kBAAkB,SAAS,aAAa,SAAS,8BAA8B,aAAa,aAAa"}
|
package/dist/static.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { l as sqliteStatic, o as SqliteStaticContext } from "./sqlite-
|
|
1
|
+
import { l as sqliteStatic, o as SqliteStaticContext } from "./sqlite-CjWZostj-Cprd7rkt.mjs";
|
|
2
2
|
export { type SqliteStaticContext, sqliteStatic as default };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prisma/orm-sqlite",
|
|
3
|
-
"version": "8.0.0-rc.
|
|
3
|
+
"version": "8.0.0-rc.2",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -9,16 +9,16 @@
|
|
|
9
9
|
"dist"
|
|
10
10
|
],
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@prisma/orm-family-sql": "8.0.0-rc.
|
|
13
|
-
"@prisma/orm-framework": "8.0.0-rc.
|
|
14
|
-
"@prisma/orm-target-sqlite": "8.0.0-rc.
|
|
15
|
-
"@prisma/orm-toolchain": "8.0.0-rc.
|
|
12
|
+
"@prisma/orm-family-sql": "8.0.0-rc.2",
|
|
13
|
+
"@prisma/orm-framework": "8.0.0-rc.2",
|
|
14
|
+
"@prisma/orm-target-sqlite": "8.0.0-rc.2",
|
|
15
|
+
"@prisma/orm-toolchain": "8.0.0-rc.2",
|
|
16
16
|
"pathe": "^2.0.3"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
|
-
"@internal/sqlite": "8.0.0-rc.
|
|
20
|
-
"@repo/tsconfig": "8.0.0-rc.
|
|
21
|
-
"@repo/tsdown": "8.0.0-rc.
|
|
19
|
+
"@internal/sqlite": "8.0.0-rc.2",
|
|
20
|
+
"@repo/tsconfig": "8.0.0-rc.2",
|
|
21
|
+
"@repo/tsdown": "8.0.0-rc.2",
|
|
22
22
|
"tsdown": "0.22.14",
|
|
23
23
|
"typescript": "5.9.3"
|
|
24
24
|
},
|
|
@@ -39,7 +39,6 @@
|
|
|
39
39
|
"./adapter/runtime": "./dist/adapter__runtime.mjs",
|
|
40
40
|
"./adapter/sql-renderer": "./dist/adapter__sql-renderer.mjs",
|
|
41
41
|
"./adapter/types": "./dist/adapter__types.mjs",
|
|
42
|
-
"./bin/prisma-next": "./dist/bin__prisma-next.mjs",
|
|
43
42
|
"./builder": "./dist/builder.mjs",
|
|
44
43
|
"./builder/runtime": "./dist/builder__runtime.mjs",
|
|
45
44
|
"./builder/types": "./dist/builder__types.mjs",
|
|
@@ -98,6 +97,7 @@
|
|
|
98
97
|
"./family-contract/validators": "./dist/family-contract__validators.mjs",
|
|
99
98
|
"./family-contract/value-set-derivation-hook": "./dist/family-contract__value-set-derivation-hook.mjs",
|
|
100
99
|
"./family-runtime": "./dist/family-runtime.mjs",
|
|
100
|
+
"./family-runtime/internal/prepared-query": "./dist/family-runtime__internal__prepared-query.mjs",
|
|
101
101
|
"./migration": "./dist/migration.mjs",
|
|
102
102
|
"./migration-tools/aggregate": "./dist/migration-tools__aggregate.mjs",
|
|
103
103
|
"./migration-tools/contract-snapshot-store": "./dist/migration-tools__contract-snapshot-store.mjs",
|
|
@@ -157,9 +157,6 @@
|
|
|
157
157
|
"./vite-plugin-contract-emit": "./dist/vite-plugin-contract-emit.mjs",
|
|
158
158
|
"./package.json": "./package.json"
|
|
159
159
|
},
|
|
160
|
-
"bin": {
|
|
161
|
-
"prisma-next": "./dist/bin__prisma-next.mjs"
|
|
162
|
-
},
|
|
163
160
|
"repository": {
|
|
164
161
|
"type": "git",
|
|
165
162
|
"url": "https://github.com/prisma/prisma.git",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"sqlite-BXwKNfX4-BdouPatr.d.mts","names":[],"sources":["../../../../3-extensions/sqlite/dist/sqlite-BXwKNfX4.d.mts"],"mappings":";;;;;;;;;;;KAUK,aAAa,kBAAkB,SAAS,eAAe,GAAG,kBAAkB;KAC5E,aAAa,kBAAkB,SAAS,eAAe,gBAAgB,kBAAkB;UACpF,oBAAoB,kBAAkB,SAAS;WAC9C,SAAS,iBAAiB;WAC1B,UAAU;WACV,OAAO,aAAa;WACpB,KAAK,aAAa;WAClB,KAAK;;iBAEC,aAAa,kBAAkB,SAAS,aAAa;WAC3D;WACA,sBAAsB,8BAA8B;IAC3D,oBAAoB;;;KAGnB;KACA,UAAU,kBAAkB,SAAS,eAAe,kBAAkB,IAAI;KAC1E,WAAW,kBAAkB,SAAS,eAAe,GAAG,kBAAkB;KAC1E,WAAW,kBAAkB,SAAS,eAAe,UAAU,kBAAkB;UAC5E,yBAAyB,kBAAkB,SAAS,qBAAqB;WACxE,KAAK,WAAW;WAChB,KAAK,WAAW;WAChB,OAAO,oBAAoB;;UAE5B,aAAa,kBAAkB,SAAS;WACvC,KAAK,WAAW;WAChB,KAAK,WAAW;WAChB,OAAO,oBAAoB;WAC3B,KAAK;WACL,SAAS,iBAAiB;WAC1B,UAAU;WACV,OAAO,4BAA4B;EAC5C,QAAQ;aACG;MACP,QAAQ;EACZ,WAAW;EACX,QAAQ,UAAU,YAAY,KAAK,KAAK,WAAW,iBAAiB,kBAAkB,aAAa,gBAAgB,aAAa,GAAG,WAAW,KAAK,WAAW,YAAY,QAAQ,eAAe,OAAO,aAAa,OAAO,QAAQ,kBAAkB,sBAAsB,GAAG,KAAK;EACpR,YAAY,GAAG,KAAK,IAAI,yBAAyB,eAAe,YAAY,KAAK,QAAQ;EACzF,SAAS;GACR,OAAO,iBAAiB;;UAEjB;WACC,sBAAsB,8BAA8B;WACpD,sBAAsB;WACtB,eAAe;;KAErB,0BAA0B,kBAAkB,SAAS;WAC/C;IACP;WACO,UAAU;WACV;;KAEN,8BAA8B,kBAAkB,SAAS;WACnD;WACA,YAAY;IACnB;WACO;WACA;;KAEN,cAAc,kBAAkB,SAAS,eAAe,0BAA0B,aAAa,8BAA8B;iBACjH,OAAO,kBAAkB,SAAS,aAAa,SAAS,0BAA0B,aAAa,aAAa;iBAC5G,OAAO,kBAAkB,SAAS,aAAa,SAAS,8BAA8B,aAAa,aAAa"}
|