@prisma-next/sql-relational-core 0.5.0-dev.2 → 0.5.0-dev.21
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 +30 -0
- package/dist/{codec-types-DcEITed4.d.mts → codec-types-Dd0wpQJf.d.mts} +43 -20
- package/dist/codec-types-Dd0wpQJf.d.mts.map +1 -0
- package/dist/{errors-D3xmG4h-.mjs → errors-D6kqqjHM.mjs} +1 -1
- package/dist/{errors-D3xmG4h-.mjs.map → errors-D6kqqjHM.mjs.map} +1 -1
- package/dist/{errors-ChY_dHam.d.mts → errors-DGTx5yrY.d.mts} +2 -2
- package/dist/errors-DGTx5yrY.d.mts.map +1 -0
- package/dist/exports/ast.d.mts +11 -3
- package/dist/exports/ast.d.mts.map +1 -1
- package/dist/exports/ast.mjs +32 -1086
- package/dist/exports/ast.mjs.map +1 -1
- package/dist/exports/errors.d.mts +4 -4
- package/dist/exports/errors.mjs +1 -1
- package/dist/exports/expression.d.mts +79 -0
- package/dist/exports/expression.d.mts.map +1 -0
- package/dist/exports/expression.mjs +41 -0
- package/dist/exports/expression.mjs.map +1 -0
- package/dist/exports/plan.d.mts +3 -2
- package/dist/exports/plan.mjs.map +1 -1
- package/dist/exports/query-lane-context.d.mts +2 -2
- package/dist/exports/types.d.mts +5 -4
- package/dist/index.d.mts +10 -8
- package/dist/index.mjs +5 -3
- package/dist/plan-fzKZz634.d.mts +32 -0
- package/dist/plan-fzKZz634.d.mts.map +1 -0
- package/dist/{query-lane-context-UlR8vOkd.d.mts → query-lane-context-2K0OsuLw.d.mts} +2 -2
- package/dist/{query-lane-context-UlR8vOkd.d.mts.map → query-lane-context-2K0OsuLw.d.mts.map} +1 -1
- package/dist/sql-execution-plan-CRa8P62o.d.mts +33 -0
- package/dist/sql-execution-plan-CRa8P62o.d.mts.map +1 -0
- package/dist/types--BjM9czT.mjs +1082 -0
- package/dist/types--BjM9czT.mjs.map +1 -0
- package/dist/types-BmPWLErB.d.mts +24 -0
- package/dist/types-BmPWLErB.d.mts.map +1 -0
- package/dist/{types-C3Hg-CVz.d.mts → types-DKqt0Ynw.d.mts} +1 -1
- package/dist/{types-C3Hg-CVz.d.mts.map → types-DKqt0Ynw.d.mts.map} +1 -1
- package/dist/{types-k9pir8XY.d.mts → types-DMssjYwC.d.mts} +12 -17
- package/dist/types-DMssjYwC.d.mts.map +1 -0
- package/package.json +9 -8
- package/src/ast/adapter-types.ts +8 -0
- package/src/ast/codec-types.ts +91 -41
- package/src/exports/expression.ts +1 -0
- package/src/exports/plan.ts +1 -0
- package/src/exports/types.ts +1 -0
- package/src/expression.ts +117 -0
- package/src/index.ts +1 -0
- package/src/plan.ts +12 -11
- package/src/runtime-scope.ts +20 -0
- package/src/sql-execution-plan.ts +28 -0
- package/src/types.ts +9 -20
- package/dist/codec-types-DcEITed4.d.mts.map +0 -1
- package/dist/errors-ChY_dHam.d.mts.map +0 -1
- package/dist/plan-Cs65hb-E.d.mts +0 -28
- package/dist/plan-Cs65hb-E.d.mts.map +0 -1
- package/dist/types-k9pir8XY.d.mts.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { s as CodecRegistry } from "./codec-types-Dd0wpQJf.mjs";
|
|
2
2
|
import { Contract } from "@prisma-next/contract/types";
|
|
3
3
|
import { SqlOperationRegistry } from "@prisma-next/sql-operations";
|
|
4
4
|
import { SqlStorage } from "@prisma-next/sql-contract/types";
|
|
@@ -86,4 +86,4 @@ interface ExecutionContext<TContract extends Contract<SqlStorage> = Contract<Sql
|
|
|
86
86
|
}
|
|
87
87
|
//#endregion
|
|
88
88
|
export { JsonSchemaValidationResult as a, MutationDefaultsOptions as c, JsonSchemaValidationError as i, TypeHelperRegistry as l, ExecutionContext as n, JsonSchemaValidatorRegistry as o, JsonSchemaValidateFn as r, MutationDefaultsOp as s, AppliedMutationDefault as t };
|
|
89
|
-
//# sourceMappingURL=query-lane-context-
|
|
89
|
+
//# sourceMappingURL=query-lane-context-2K0OsuLw.d.mts.map
|
package/dist/{query-lane-context-UlR8vOkd.d.mts.map → query-lane-context-2K0OsuLw.d.mts.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query-lane-context-
|
|
1
|
+
{"version":3,"file":"query-lane-context-2K0OsuLw.d.mts","names":[],"sources":["../src/query-lane-context.ts"],"sourcesContent":[],"mappings":";;;;;;;;;AAWA;AASA;AASA;AAQA;AASiB,KAnCL,kBAAA,GAAqB,MAmCW,CAAA,MAExB,EAAA,OAAA,CAAA;AAKpB;AAEA;AAKA;AAaiB,UArDA,yBAAA,CAqDgB;EAA4B,SAAA,IAAA,EAAA,MAAA;EAAT,SAAA,OAAA,EAAA,MAAA;EAAgC,SAAA,OAAA,EAAA,MAAA;;;;;AAQlE,KApDN,0BAAA,GAoDM;EAKgB,SAAA,KAAA,EAAA,IAAA;CAKD,GAAA;EAAwC,SAAA,KAAA,EAAA,KAAA;EAAd,SAAA,MAAA,EA5Db,aA4Da,CA5DC,yBA4DD,CAAA;CAAa;;;;;KAtD5D,oBAAA,uBAA2C;;;;;;;;UAStC,2BAAA;;oBAEG;;;;KAKR,kBAAA;KAEA,sBAAA;;;;KAKA,uBAAA;eACG;;mBAEI;;;;;;;;;UAUF,mCAAmC,SAAS,cAAc,SAAS;qBAC/D;mBACF;4BACS;;;;;kBAKV;;;;;kCAKgB;;;;;iCAKD,0BAA0B,cAAc"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { d as AnyQueryAst } from "./types-DKqt0Ynw.mjs";
|
|
2
|
+
import { ExecutionPlan } from "@prisma-next/framework-components/runtime";
|
|
3
|
+
|
|
4
|
+
//#region src/sql-execution-plan.d.ts
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* SQL-domain execution plan: a query lowered to the wire-level shape that a
|
|
8
|
+
* SQL driver can run.
|
|
9
|
+
*
|
|
10
|
+
* The plan carries:
|
|
11
|
+
* - `sql` — the rendered SQL text
|
|
12
|
+
* - `params` — the bound parameter list
|
|
13
|
+
* - `ast` — optional pre-lowering AST, retained for telemetry / debugging
|
|
14
|
+
* - `meta` — family-agnostic plan metadata (target, lane, hashes, ...)
|
|
15
|
+
* - `_row` — phantom row type, propagated from the originating `SqlQueryPlan`
|
|
16
|
+
*
|
|
17
|
+
* Extends the framework-level `ExecutionPlan<Row>` marker so generic SPIs
|
|
18
|
+
* (`RuntimeExecutor<SqlExecutionPlan>`, `RuntimeMiddleware<SqlExecutionPlan>`)
|
|
19
|
+
* can be parameterized over it.
|
|
20
|
+
*
|
|
21
|
+
* Co-located with `SqlQueryPlan` (its pre-lowering counterpart) in the lanes
|
|
22
|
+
* layer because lane-level utilities (`RawTemplateFactory`, `RawFactory`,
|
|
23
|
+
* `SqlPlan`) compose against the executable shape and the lanes layer cannot
|
|
24
|
+
* depend on the runtime layer.
|
|
25
|
+
*/
|
|
26
|
+
interface SqlExecutionPlan<Row = unknown> extends ExecutionPlan<Row> {
|
|
27
|
+
readonly sql: string;
|
|
28
|
+
readonly params: readonly unknown[];
|
|
29
|
+
readonly ast?: AnyQueryAst;
|
|
30
|
+
}
|
|
31
|
+
//#endregion
|
|
32
|
+
export { SqlExecutionPlan as t };
|
|
33
|
+
//# sourceMappingURL=sql-execution-plan-CRa8P62o.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sql-execution-plan-CRa8P62o.d.mts","names":[],"sources":["../src/sql-execution-plan.ts"],"sourcesContent":[],"mappings":";;;;;;;AAuBA;;;;;;;;;;;;;;;;;;UAAiB,wCAAwC,cAAc;;;iBAGtD"}
|