@prisma/orm-family-sql 8.0.0-rc.1-dev.41 → 8.0.0-rc.1-dev.42
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/{aggregate-descriptor-registry-DSap8YyW.mjs → aggregate-descriptor-registry-CTo0ry7h.mjs} +2 -2
- package/dist/{aggregate-descriptor-registry-DSap8YyW.mjs.map → aggregate-descriptor-registry-CTo0ry7h.mjs.map} +1 -1
- package/dist/{ast-B-eeN74F.mjs → ast-BJdOHZrL.mjs} +2 -2
- package/dist/{ast-B-eeN74F.mjs.map → ast-BJdOHZrL.mjs.map} +1 -1
- package/dist/{ast-DRbUiQ-9.d.mts → ast-D8qqdDX_.d.mts} +5 -82
- package/dist/ast-D8qqdDX_.d.mts.map +1 -0
- package/dist/builder.d.mts +2 -2
- package/dist/builder__runtime.d.mts +6 -6
- package/dist/builder__runtime.mjs +2 -2
- package/dist/builder__types.d.mts +2 -2
- package/dist/{control-DI9DC2AS.d.mts → control-DssujEJW.d.mts} +7 -6
- package/dist/control-DssujEJW.d.mts.map +1 -0
- package/dist/{control-adapter-C99J7aEF-DsxImHyk.d.mts → control-adapter-C99J7aEF-Vx9xXYOy.d.mts} +5 -4
- package/dist/control-adapter-C99J7aEF-Vx9xXYOy.d.mts.map +1 -0
- package/dist/control-adapter-CLID4Q6Z.d.mts +1 -0
- package/dist/{db-C5jmOFPM-BGm-QfKd.d.mts → db-C5jmOFPM-Cd-fni61.d.mts} +6 -6
- package/dist/{db-C5jmOFPM-BGm-QfKd.d.mts.map → db-C5jmOFPM-Cd-fni61.d.mts.map} +1 -1
- package/dist/{ddl-types-CnLSuwXa-Bv46yIe9.d.mts → ddl-types-BtT82FGO-Du_-9SlZ.d.mts} +3 -3
- package/dist/{ddl-types-CnLSuwXa-Bv46yIe9.d.mts.map → ddl-types-BtT82FGO-Du_-9SlZ.d.mts.map} +1 -1
- package/dist/{diff-DVvZXmFv.d.mts → diff-pl1Xal4J.d.mts} +3 -3
- package/dist/{diff-DVvZXmFv.d.mts.map → diff-pl1Xal4J.d.mts.map} +1 -1
- package/dist/driver-types-BQtRkOJ0-Bv2RPSfr.d.mts +81 -0
- package/dist/driver-types-BQtRkOJ0-Bv2RPSfr.d.mts.map +1 -0
- package/dist/{expression-CYVKobXp.mjs → expression-D30W-gkF.mjs} +2 -2
- package/dist/{expression-CYVKobXp.mjs.map → expression-D30W-gkF.mjs.map} +1 -1
- package/dist/{expression-D7H1kyVG.d.mts → expression-Q_yaDQPb.d.mts} +2 -2
- package/dist/{expression-D7H1kyVG.d.mts.map → expression-Q_yaDQPb.d.mts.map} +1 -1
- package/dist/family.d.mts +7 -7
- package/dist/family__control-adapter.d.mts +2 -2
- package/dist/family__control.d.mts +2 -2
- package/dist/family__diff.d.mts +2 -2
- package/dist/family__migration.d.mts +1 -1
- package/dist/family__runtime.d.mts +1 -1
- package/dist/index-DIHXLCbY.d.mts +84 -0
- package/dist/index-DIHXLCbY.d.mts.map +1 -0
- package/dist/{middleware-Bp5oIYM0-Ek8bISDH.d.mts → middleware-BS7u8VFR-DyUcAFid.d.mts} +3 -3
- package/dist/{middleware-Bp5oIYM0-Ek8bISDH.d.mts.map → middleware-BS7u8VFR-DyUcAFid.d.mts.map} +1 -1
- package/dist/middleware-Cy_OqpBi.d.mts +1 -0
- package/dist/{migration-Dtymew3g.d.mts → migration-CGlaINey.d.mts} +2 -2
- package/dist/{migration-Dtymew3g.d.mts.map → migration-CGlaINey.d.mts.map} +1 -1
- package/dist/orm-client.d.mts +7 -7
- package/dist/orm-client.mjs +32 -49
- package/dist/orm-client.mjs.map +1 -1
- package/dist/{plan-DfLDIdep-6R1mLkcW.d.mts → plan-BC_trt1i-In5gOKCT.d.mts} +3 -3
- package/dist/plan-BC_trt1i-In5gOKCT.d.mts.map +1 -0
- package/dist/plan-DrOMooQt.d.mts +2 -0
- package/dist/prepared-query-BDLztUzY-CaDR0Rqc.mjs +14 -0
- package/dist/prepared-query-BDLztUzY-CaDR0Rqc.mjs.map +1 -0
- package/dist/{index-Ddquditw.d.mts → prepared-statement-z9bBbTph-BlzhaRTY.d.mts} +96 -142
- package/dist/prepared-statement-z9bBbTph-BlzhaRTY.d.mts.map +1 -0
- package/dist/query-lane-context-D62vkQhf.d.mts +1 -0
- package/dist/{query-lane-context-DyDSQVS--CyCznt67.d.mts → query-lane-context-gwWUcacE-DdWNrc8q.d.mts} +3 -3
- package/dist/{query-lane-context-DyDSQVS--CyCznt67.d.mts.map → query-lane-context-gwWUcacE-DdWNrc8q.d.mts.map} +1 -1
- package/dist/relational-core.d.mts +12 -11
- package/dist/relational-core.mjs +3 -3
- package/dist/relational-core__aggregate-descriptor-registry.d.mts +1 -1
- package/dist/relational-core__aggregate-descriptor-registry.mjs +1 -1
- package/dist/relational-core__ast.d.mts +4 -3
- package/dist/relational-core__ast.mjs +2 -2
- package/dist/relational-core__codec-descriptor-registry.d.mts +2 -2
- package/dist/relational-core__contract-free.d.mts +2 -2
- package/dist/relational-core__contract-free.mjs +1 -1
- package/dist/relational-core__contract-free.mjs.map +1 -1
- package/dist/relational-core__expression.d.mts +1 -1
- package/dist/relational-core__expression.mjs +1 -1
- package/dist/relational-core__middleware.d.mts +2 -2
- package/dist/relational-core__plan.d.mts +3 -3
- package/dist/relational-core__query-lane-context.d.mts +2 -2
- package/dist/relational-core__types.d.mts +2 -2
- package/dist/{runtime-CjXCGPS4.d.mts → runtime-cPrAp99G.d.mts} +3 -2
- package/dist/runtime-cPrAp99G.d.mts.map +1 -0
- package/dist/runtime.d.mts +5 -4
- package/dist/runtime.mjs +187 -130
- package/dist/runtime.mjs.map +1 -1
- package/dist/runtime__internal__prepared-query.d.mts +2 -0
- package/dist/runtime__internal__prepared-query.mjs +2 -0
- package/dist/{sql-execution-plan-qxvHnFcA-HjRSS3l9.d.mts → sql-execution-plan-D0ZTnszb-DnCRtfQO.d.mts} +3 -3
- package/dist/sql-execution-plan-D0ZTnszb-DnCRtfQO.d.mts.map +1 -0
- package/dist/types-0c4HyrXd.d.mts +1 -0
- package/dist/{types-CSP6WmWn-DVuxsZJW.mjs → types-B7_v-z12-De5tf8LE.mjs} +3 -3
- package/dist/types-B7_v-z12-De5tf8LE.mjs.map +1 -0
- package/dist/{types-CLN9Y3BH-BHUrV7MD.d.mts → types-C9FZXc9Q-C6LM1k-O.d.mts} +14 -11
- package/dist/types-C9FZXc9Q-C6LM1k-O.d.mts.map +1 -0
- package/dist/{types-ZzeQKmYD-kI_QWHEx.d.mts → types-DH6Sqzxu-DfzaLX0o.d.mts} +3 -3
- package/dist/{types-ZzeQKmYD-kI_QWHEx.d.mts.map → types-DH6Sqzxu-DfzaLX0o.d.mts.map} +1 -1
- package/dist/{types-IqZMLrFC-Dk3bHKmk.d.mts → types-IqZMLrFC-B0YziCVx.d.mts} +2 -2
- package/dist/{types-IqZMLrFC-Dk3bHKmk.d.mts.map → types-IqZMLrFC-B0YziCVx.d.mts.map} +1 -1
- package/package.json +19 -18
- package/dist/ast-DRbUiQ-9.d.mts.map +0 -1
- package/dist/control-DI9DC2AS.d.mts.map +0 -1
- package/dist/control-adapter-BdOcXTOm.d.mts +0 -1
- package/dist/control-adapter-C99J7aEF-DsxImHyk.d.mts.map +0 -1
- package/dist/index-Ddquditw.d.mts.map +0 -1
- package/dist/middleware-aFpB1ZhU.d.mts +0 -1
- package/dist/plan-DfLDIdep-6R1mLkcW.d.mts.map +0 -1
- package/dist/plan-HWPzzUxh.d.mts +0 -2
- package/dist/query-lane-context-qfJzguc9.d.mts +0 -1
- package/dist/runtime-CjXCGPS4.d.mts.map +0 -1
- package/dist/sql-execution-plan-qxvHnFcA-HjRSS3l9.d.mts.map +0 -1
- package/dist/types-4u1EPYY6.d.mts +0 -1
- package/dist/types-CLN9Y3BH-BHUrV7MD.d.mts.map +0 -1
- package/dist/types-CSP6WmWn-DVuxsZJW.mjs.map +0 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { c as SqlStorage } from "./sql-storage-8LqxeLAY-DH4DdUXx.mjs";
|
|
2
2
|
import "./types-UcHa2cTe.mjs";
|
|
3
|
-
import { m as AnyQueryAst } from "./types-
|
|
3
|
+
import { m as AnyQueryAst } from "./types-DH6Sqzxu-DfzaLX0o.mjs";
|
|
4
4
|
import { Contract } from "@prisma/orm-framework/contract/types";
|
|
5
5
|
import { QueryPlan } from "@prisma/orm-framework/components/runtime";
|
|
6
|
-
//#region ../../../2-sql/4-lanes/relational-core/dist/plan-
|
|
6
|
+
//#region ../../../2-sql/4-lanes/relational-core/dist/plan-BC_trt1i.d.mts
|
|
7
7
|
//#region src/plan.d.ts
|
|
8
8
|
/**
|
|
9
9
|
* SQL query plan produced by lanes before lowering.
|
|
@@ -42,4 +42,4 @@ interface SqlQueryPlan<Row = unknown> extends QueryPlan<Row> {
|
|
|
42
42
|
declare function planFromAst<Row = unknown>(ast: AnyQueryAst, contract: Contract<SqlStorage>, laneId?: string): SqlQueryPlan<Row>;
|
|
43
43
|
//#endregion
|
|
44
44
|
export { planFromAst as n, SqlQueryPlan as t };
|
|
45
|
-
//# sourceMappingURL=plan-
|
|
45
|
+
//# sourceMappingURL=plan-BC_trt1i-In5gOKCT.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plan-BC_trt1i-In5gOKCT.d.mts","names":[],"sources":["../../../../2-sql/4-lanes/relational-core/dist/plan-BC_trt1i.d.mts"],"mappings":";;;;;;;;;;;;;;;;;;;;UAkBU,aAAa,uBAAuB,UAAU;WAC7C,KAAK;WACL;;;;;;;;;;;;;;;;;;;iBAmBM,YAAY,eAAe,KAAK,aAAa,UAAU,SAAS,aAAa,kBAAkB,aAAa"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { invariant } from "@prisma/orm-framework/utils/assertions";
|
|
2
|
+
//#region ../../../2-sql/5-runtime/dist/prepared-query-BDLztUzY.mjs
|
|
3
|
+
const preparedStatementQuery = Symbol("preparedStatementQuery");
|
|
4
|
+
function isPreparedStatementQueryTarget(target) {
|
|
5
|
+
return preparedStatementQuery in target;
|
|
6
|
+
}
|
|
7
|
+
function runPreparedQuery(target, statement, params, options) {
|
|
8
|
+
invariant(isPreparedStatementQueryTarget(target), "RuntimeQueryable is missing the prepared statement query bridge");
|
|
9
|
+
return target[preparedStatementQuery](statement, params, options);
|
|
10
|
+
}
|
|
11
|
+
//#endregion
|
|
12
|
+
export { runPreparedQuery as n, preparedStatementQuery as t };
|
|
13
|
+
|
|
14
|
+
//# sourceMappingURL=prepared-query-BDLztUzY-CaDR0Rqc.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prepared-query-BDLztUzY-CaDR0Rqc.mjs","names":[],"sources":["../../../../2-sql/5-runtime/dist/prepared-query-BDLztUzY.mjs"],"sourcesContent":["import { invariant } from \"@internal/utils/assertions\";\n//#region src/prepared/prepared-query.ts\nconst preparedStatementQuery = Symbol(\"preparedStatementQuery\");\nfunction isPreparedStatementQueryTarget(target) {\n\treturn preparedStatementQuery in target;\n}\nfunction runPreparedQuery(target, statement, params, options) {\n\tinvariant(isPreparedStatementQueryTarget(target), \"RuntimeQueryable is missing the prepared statement query bridge\");\n\treturn target[preparedStatementQuery](statement, params, options);\n}\n//#endregion\nexport { runPreparedQuery as n, preparedStatementQuery as t };\n\n//# sourceMappingURL=prepared-query-BDLztUzY.mjs.map"],"mappings":";;AAEA,MAAM,yBAAyB,OAAO,wBAAwB;AAC9D,SAAS,+BAA+B,QAAQ;CAC/C,OAAO,0BAA0B;AAClC;AACA,SAAS,iBAAiB,QAAQ,WAAW,QAAQ,SAAS;CAC7D,UAAU,+BAA+B,MAAM,GAAG,iEAAiE;CACnH,OAAO,OAAO,uBAAuB,CAAC,WAAW,QAAQ,OAAO;AACjE"}
|
|
@@ -1,23 +1,24 @@
|
|
|
1
1
|
import { c as SqlStorage } from "./sql-storage-8LqxeLAY-DH4DdUXx.mjs";
|
|
2
2
|
import "./types-UcHa2cTe.mjs";
|
|
3
3
|
import { r as SqlOperationDescriptors } from "./index-C5I8D-MB.mjs";
|
|
4
|
-
import { Et as SqlCodecCallContext, O as ContractCodecRegistry, T as CodecRef$1, lt as LoweredParam, m as AnyQueryAst, ut as LoweredStatement, x as Codec$1 } from "./types-
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { t as
|
|
9
|
-
import "./plan-
|
|
10
|
-
import
|
|
11
|
-
import "./query-lane-context-
|
|
12
|
-
import
|
|
13
|
-
import "./middleware-
|
|
14
|
-
import
|
|
15
|
-
import "./types-
|
|
4
|
+
import { Et as SqlCodecCallContext, O as ContractCodecRegistry, T as CodecRef$1, lt as LoweredParam, m as AnyQueryAst, ut as LoweredStatement, x as Codec$1 } from "./types-DH6Sqzxu-DfzaLX0o.mjs";
|
|
5
|
+
import { c as SqlQueryable, i as SqlDriver, l as SqlStatementStats, r as SqlConnection } from "./driver-types-BQtRkOJ0-Bv2RPSfr.mjs";
|
|
6
|
+
import { o as MarkerReadResult, t as Adapter } from "./ast-D8qqdDX_.mjs";
|
|
7
|
+
import { a as Expression, i as CodecValue, o as RawCodecInferer, r as CodecTypesBase } from "./expression-Q_yaDQPb.mjs";
|
|
8
|
+
import { t as SqlExecutionPlan } from "./sql-execution-plan-D0ZTnszb-DnCRtfQO.mjs";
|
|
9
|
+
import { t as SqlQueryPlan } from "./plan-BC_trt1i-In5gOKCT.mjs";
|
|
10
|
+
import "./plan-DrOMooQt.mjs";
|
|
11
|
+
import { r as ExecutionContext } from "./query-lane-context-gwWUcacE-DdWNrc8q.mjs";
|
|
12
|
+
import "./query-lane-context-D62vkQhf.mjs";
|
|
13
|
+
import { i as SqlParamRefMutator } from "./middleware-BS7u8VFR-DyUcAFid.mjs";
|
|
14
|
+
import "./middleware-Cy_OqpBi.mjs";
|
|
15
|
+
import { y as RuntimeScope } from "./types-C9FZXc9Q-C6LM1k-O.mjs";
|
|
16
|
+
import "./types-0c4HyrXd.mjs";
|
|
16
17
|
import { Contract, JsonValue, PlanMeta } from "@prisma/orm-framework/contract/types";
|
|
17
18
|
import { AnyCodecDescriptor, CodecDescriptor } from "@prisma/orm-framework/components/codec";
|
|
18
|
-
import { AfterExecuteResult,
|
|
19
|
+
import { AfterExecuteResult, AfterQueryResult, AsyncIterableResult, ExecuteInterceptResult, ExecutionPlan, QueryInterceptResult, RuntimeCore, RuntimeExecuteOptions, RuntimeLog, RuntimeMiddleware, RuntimeMiddlewareContext } from "@prisma/orm-framework/components/runtime";
|
|
19
20
|
import { ExecutionStack, RuntimeAdapterDescriptor, RuntimeAdapterInstance, RuntimeDriverDescriptor, RuntimeDriverInstance, RuntimeExtensionDescriptor, RuntimeExtensionInstance, RuntimeTargetDescriptor, RuntimeTargetInstance } from "@prisma/orm-framework/components/execution";
|
|
20
|
-
//#region ../../../2-sql/5-runtime/dist/prepared-statement-
|
|
21
|
+
//#region ../../../2-sql/5-runtime/dist/prepared-statement-z9bBbTph.d.mts
|
|
21
22
|
//#region src/codecs/encoding.d.ts
|
|
22
23
|
interface ParamMetadata {
|
|
23
24
|
readonly codec: CodecRef$1 | undefined;
|
|
@@ -68,7 +69,7 @@ interface SqlMiddleware<TCodecMap extends Record<string, unknown> = Record<strin
|
|
|
68
69
|
* and run unchanged.
|
|
69
70
|
*
|
|
70
71
|
* Lifecycle position:
|
|
71
|
-
* `beforeCompile → lowerSqlPlan →
|
|
72
|
+
* `beforeCompile → lowerSqlPlan → beforeQuery → encodeParams → interceptQuery → driver query`.
|
|
72
73
|
*
|
|
73
74
|
* The plan handed in is the SQL execution plan after lowering but
|
|
74
75
|
* *before* parameter encoding: `plan.params[i]` is the user-domain
|
|
@@ -78,14 +79,43 @@ interface SqlMiddleware<TCodecMap extends Record<string, unknown> = Record<strin
|
|
|
78
79
|
* `params.replaceValue` / `replaceValues` are visible to encode,
|
|
79
80
|
* which then renders the mutated value through the column's codec.
|
|
80
81
|
*
|
|
81
|
-
* `ctx.signal` carries the per-
|
|
82
|
+
* `ctx.signal` carries the per-operation `AbortSignal` (ADR 207);
|
|
83
|
+
* middleware that wraps a network SDK forwards `ctx.signal` to
|
|
84
|
+
* that SDK. Cooperative cancellation: a body that ignores the
|
|
85
|
+
* signal still surfaces `RUNTIME.ABORTED { phase: 'beforeQuery' }`
|
|
86
|
+
* promptly via the runtime's race against the signal.
|
|
87
|
+
*/
|
|
88
|
+
beforeQuery?(plan: SqlExecutionPlan, ctx: SqlMiddlewareContext, params?: SqlParamRefMutator<TCodecMap>): void | Promise<void>;
|
|
89
|
+
interceptQuery?(plan: SqlExecutionPlan, ctx: SqlMiddlewareContext): Promise<QueryInterceptResult | undefined>;
|
|
90
|
+
onRow?(row: Record<string, unknown>, plan: SqlExecutionPlan, ctx: SqlMiddlewareContext): Promise<void>;
|
|
91
|
+
afterQuery?(plan: SqlExecutionPlan, result: AfterQueryResult, ctx: SqlMiddlewareContext): Promise<void>;
|
|
92
|
+
/**
|
|
93
|
+
* Mutate `ParamRef.value` slots before encode runs. The third
|
|
94
|
+
* `params` argument is a {@link SqlParamRefMutator} scoped to value
|
|
95
|
+
* slots only — SQL strings, projections, and `ParamRef` membership
|
|
96
|
+
* are not mutable. Existing `(plan)` and `(plan, ctx)` middleware
|
|
97
|
+
* bodies that ignore the additional argument continue to compile
|
|
98
|
+
* and run unchanged.
|
|
99
|
+
*
|
|
100
|
+
* Lifecycle position:
|
|
101
|
+
* `beforeCompile → lowerSqlPlan → beforeExecute → encodeParams → interceptExecute → driver execute`.
|
|
102
|
+
*
|
|
103
|
+
* The plan handed in is the SQL execution plan after lowering but
|
|
104
|
+
* *before* parameter encoding: `plan.params[i]` is the user-domain
|
|
105
|
+
* value the mutator's `entries()` iterator surfaces (e.g. an
|
|
106
|
+
* `EncryptedEnvelopeBase` for a cipherstash-codec'd column, or a
|
|
107
|
+
* plain JS value for non-codec'd ParamRefs). Mutations applied via
|
|
108
|
+
* `params.replaceValue` / `replaceValues` are visible to encode,
|
|
109
|
+
* which then renders the mutated value through the column's codec.
|
|
110
|
+
*
|
|
111
|
+
* `ctx.signal` carries the per-operation `AbortSignal` (ADR 207);
|
|
82
112
|
* middleware that wraps a network SDK forwards `ctx.signal` to
|
|
83
113
|
* that SDK. Cooperative cancellation: a body that ignores the
|
|
84
114
|
* signal still surfaces `RUNTIME.ABORTED { phase: 'beforeExecute' }`
|
|
85
115
|
* promptly via the runtime's race against the signal.
|
|
86
116
|
*/
|
|
87
117
|
beforeExecute?(plan: SqlExecutionPlan, ctx: SqlMiddlewareContext, params?: SqlParamRefMutator<TCodecMap>): void | Promise<void>;
|
|
88
|
-
|
|
118
|
+
interceptExecute?(plan: SqlExecutionPlan, ctx: SqlMiddlewareContext): Promise<ExecuteInterceptResult | undefined>;
|
|
89
119
|
afterExecute?(plan: SqlExecutionPlan, result: AfterExecuteResult, ctx: SqlMiddlewareContext): Promise<void>;
|
|
90
120
|
}
|
|
91
121
|
//#endregion
|
|
@@ -126,13 +156,15 @@ interface PreparedStatement<Params, Row> {
|
|
|
126
156
|
readonly ast: AnyQueryAst;
|
|
127
157
|
readonly meta: PlanMeta;
|
|
128
158
|
readonly slots: readonly LoweredParam[];
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
159
|
+
readonly _params?: Params;
|
|
160
|
+
readonly _row?: Row;
|
|
161
|
+
query(target: RuntimeQueryable, params: Params, options?: RuntimeExecuteOptions): AsyncIterableResult<Row>;
|
|
162
|
+
}
|
|
163
|
+
//#endregion
|
|
164
|
+
//#region src/prepared/prepared-query.d.ts
|
|
165
|
+
declare const preparedStatementQuery: unique symbol;
|
|
166
|
+
interface PreparedStatementQueryTarget extends RuntimeQueryable {
|
|
167
|
+
[preparedStatementQuery]<Params, Row>(statement: PreparedStatement<Params, Row>, params: Params, options?: RuntimeExecuteOptions): AsyncIterableResult<Row>;
|
|
136
168
|
}
|
|
137
169
|
//#endregion
|
|
138
170
|
//#region src/runtime-spi.d.ts
|
|
@@ -258,7 +290,7 @@ declare function createExecutionContext<TContract extends Contract<SqlStorage> =
|
|
|
258
290
|
}): ExecutionContext<TContract>;
|
|
259
291
|
//#endregion
|
|
260
292
|
//#region src/sql-runtime.d.ts
|
|
261
|
-
type Log
|
|
293
|
+
type Log = RuntimeLog;
|
|
262
294
|
interface RuntimeOptions<TContract extends Contract<SqlStorage> = Contract<SqlStorage>> {
|
|
263
295
|
readonly context: ExecutionContext<TContract>;
|
|
264
296
|
readonly adapter: Adapter<AnyQueryAst, Contract<SqlStorage>, LoweredStatement>;
|
|
@@ -266,7 +298,7 @@ interface RuntimeOptions<TContract extends Contract<SqlStorage> = Contract<SqlSt
|
|
|
266
298
|
readonly verifyMarker?: VerifyMarkerOption;
|
|
267
299
|
readonly middleware?: readonly SqlMiddleware[];
|
|
268
300
|
readonly mode?: 'strict' | 'permissive';
|
|
269
|
-
readonly log?: Log
|
|
301
|
+
readonly log?: Log;
|
|
270
302
|
}
|
|
271
303
|
/**
|
|
272
304
|
* SQL-family runtime interface. Named `Runtime` (not `SqlRuntime`) by deliberate exception
|
|
@@ -302,15 +334,7 @@ interface RuntimeTransaction extends RuntimeQueryable {
|
|
|
302
334
|
commit(): Promise<void>;
|
|
303
335
|
rollback(): Promise<void>;
|
|
304
336
|
}
|
|
305
|
-
interface RuntimeQueryable extends RuntimeScope {
|
|
306
|
-
/**
|
|
307
|
-
* Run a prepared statement against this scope. Required for the explicit
|
|
308
|
-
* `PreparedStatement.execute(target, params)` API — every scope (top-level
|
|
309
|
-
* runtime, connection, transaction) routes prepared executions through the
|
|
310
|
-
* `SqlQueryable` it is backed by.
|
|
311
|
-
*/
|
|
312
|
-
executePrepared<Params, Row>(ps: PreparedStatement<Params, Row>, params: Params, options?: RuntimeExecuteOptions): AsyncIterableResult<Row>;
|
|
313
|
-
}
|
|
337
|
+
interface RuntimeQueryable extends RuntimeScope {}
|
|
314
338
|
interface TransactionContext extends RuntimeQueryable {
|
|
315
339
|
readonly invalidated: boolean;
|
|
316
340
|
}
|
|
@@ -338,15 +362,14 @@ declare abstract class SqlRuntimeBase<TContract extends Contract<SqlStorage> = C
|
|
|
338
362
|
* with encoded parameters ready for the driver.
|
|
339
363
|
*
|
|
340
364
|
* Implementation note: SQL splits lower-then-encode across
|
|
341
|
-
* {@link lowerToDraft} + {@link encodeDraftParams} so the
|
|
342
|
-
*
|
|
343
|
-
*
|
|
344
|
-
*
|
|
345
|
-
*
|
|
346
|
-
*
|
|
347
|
-
*
|
|
348
|
-
*
|
|
349
|
-
* `beforeExecute` lands between the two halves.
|
|
365
|
+
* {@link lowerToDraft} + {@link encodeDraftParams} so the selected
|
|
366
|
+
* operation's middleware chain can run between them:
|
|
367
|
+
* {@link prepareQueryExecution} uses `runBeforeQueryChain` for `query()`,
|
|
368
|
+
* while {@link prepareExecuteExecution} uses `runBeforeExecuteChain` for
|
|
369
|
+
* `execute()` (cipherstash bulk-encrypt, for example, mutates pre-encode
|
|
370
|
+
* `ParamRef.value` slots). This protected hook composes the two back into
|
|
371
|
+
* the cross-family `lower()` shape `RuntimeCore` expects. The production
|
|
372
|
+
* operation methods use the matching split form before driver execution.
|
|
350
373
|
*
|
|
351
374
|
* `ctx: SqlCodecCallContext` is forwarded to `encodeParams` so
|
|
352
375
|
* per-query cancellation reaches every codec body during parameter
|
|
@@ -355,33 +378,34 @@ declare abstract class SqlRuntimeBase<TContract extends Contract<SqlStorage> = C
|
|
|
355
378
|
*/
|
|
356
379
|
protected lower(plan: SqlQueryPlan, ctx: SqlCodecCallContext): Promise<SqlExecutionPlan>;
|
|
357
380
|
/**
|
|
358
|
-
* AST → pre-encode draft
|
|
359
|
-
* `params` populated with the
|
|
360
|
-
* collected from `ParamRef` nodes. No
|
|
361
|
-
* yet; consumers can mutate `params` via the
|
|
362
|
-
* before {@link encodeDraftParams} runs.
|
|
381
|
+
* AST → pre-encode draft for the selected `query()` or `execute()` operation.
|
|
382
|
+
* The returned plan has `sql` rendered and `params` populated with the
|
|
383
|
+
* user-domain values the lowering site collected from `ParamRef` nodes. No
|
|
384
|
+
* codec encode has happened yet; consumers can mutate `params` via the
|
|
385
|
+
* `SqlParamRefMutator` before {@link encodeDraftParams} runs.
|
|
363
386
|
*/
|
|
364
387
|
private lowerToDraft;
|
|
365
388
|
/**
|
|
366
|
-
* Encode a draft plan's params
|
|
367
|
-
*
|
|
368
|
-
* sees. Errors surface as
|
|
369
|
-
* {@link encodeParams}.
|
|
389
|
+
* Encode a draft plan's params for the selected `query()` or `execute()`
|
|
390
|
+
* operation through the per-column codecs and freeze the result into the
|
|
391
|
+
* final `SqlExecutionPlan` the driver sees. Errors surface as
|
|
392
|
+
* `RUNTIME.ENCODE_FAILED` envelopes from {@link encodeParams}.
|
|
370
393
|
*/
|
|
371
394
|
private encodeDraftParams;
|
|
372
|
-
/**
|
|
373
|
-
* Default driver invocation required by the abstract `RuntimeCore` contract. Every production path overrides `execute()` and routes through `executeAgainstQueryable`, so this hook is defensive only — subclasses that delegate back to `super.execute()` would land here.
|
|
374
|
-
*/
|
|
395
|
+
/** Default query invocation required by the abstract `RuntimeCore` contract. */
|
|
375
396
|
protected runDriver(exec: SqlExecutionPlan): AsyncIterable<Record<string, unknown>>;
|
|
397
|
+
protected runExecute(exec: SqlExecutionPlan): Promise<SqlStatementStats>;
|
|
376
398
|
/**
|
|
377
399
|
* SQL pre-compile hook. Runs the registered middleware `beforeCompile` chain over the plan's draft (AST + meta). Returns the original plan unchanged when no middleware rewrote the AST; otherwise returns a new plan carrying the rewritten AST and meta. The AST is the authoritative source of execution metadata, so a rewrite needs no sidecar reconciliation here — the lowering adapter and the encoder both walk the rewritten
|
|
378
400
|
* AST directly.
|
|
379
401
|
*/
|
|
380
402
|
protected runBeforeCompile(plan: SqlQueryPlan): Promise<SqlQueryPlan>;
|
|
381
|
-
|
|
403
|
+
private compilePlan;
|
|
404
|
+
query<Row>(plan: (SqlExecutionPlan<unknown> | SqlQueryPlan<unknown>) & {
|
|
382
405
|
readonly _row?: Row;
|
|
383
406
|
}, options?: RuntimeExecuteOptions): AsyncIterableResult<Row>;
|
|
384
|
-
|
|
407
|
+
execute(plan: SqlExecutionPlan<unknown> | SqlQueryPlan<unknown>, options?: RuntimeExecuteOptions): Promise<SqlStatementStats>;
|
|
408
|
+
[preparedStatementQuery]<Params, Row>(ps: PreparedStatement<Params, Row>, params: Params, options?: RuntimeExecuteOptions): AsyncIterableResult<Row>;
|
|
385
409
|
/**
|
|
386
410
|
* Returns the raw driver connection. The connection is a `SqlQueryable` — SQL
|
|
387
411
|
* issued on it runs below the middleware/codec/telemetry pipeline. It carries
|
|
@@ -389,19 +413,19 @@ declare abstract class SqlRuntimeBase<TContract extends Contract<SqlStorage> = C
|
|
|
389
413
|
* disposal.
|
|
390
414
|
*/
|
|
391
415
|
protected acquireRawConnection(): Promise<SqlConnection>;
|
|
416
|
+
private setupDriverExecution;
|
|
392
417
|
private streamRows;
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
protected
|
|
418
|
+
private createQueryContexts;
|
|
419
|
+
private prepareQueryExecution;
|
|
420
|
+
private prepareExecuteExecution;
|
|
421
|
+
private prepareOperation;
|
|
422
|
+
/** Query rows against a caller-supplied queryable through the shared preparation pipeline. */
|
|
423
|
+
protected queryAgainstQueryable<Row>(plan: SqlExecutionPlan<unknown> | SqlQueryPlan<unknown>, queryable: SqlQueryable, options?: RuntimeExecuteOptions): AsyncIterableResult<Row>;
|
|
424
|
+
/** Execute statistics against a caller-supplied queryable through the shared preparation pipeline. */
|
|
425
|
+
protected executeStatisticsAgainstQueryable(plan: SqlExecutionPlan<unknown> | SqlQueryPlan<unknown>, queryable: SqlQueryable, options?: RuntimeExecuteOptions): Promise<SqlStatementStats>;
|
|
399
426
|
prepare<D extends Declaration<CT>, Row, CT extends CodecTypesBase = CodecTypesBase>(declaration: D, callback: PrepareCallback<D, Row>): Promise<PreparedStatement<ParamsFromDeclaration<D, CT>, Row>>;
|
|
400
|
-
/**
|
|
401
|
-
|
|
402
|
-
* the full middleware/codec/telemetry pipeline.
|
|
403
|
-
*/
|
|
404
|
-
protected executePreparedAgainstQueryable<P, Row>(ps: PreparedStatementImpl<P, Row>, userParams: Record<string, unknown>, queryable: SqlQueryable, options?: RuntimeExecuteOptions): AsyncIterableResult<Row>;
|
|
427
|
+
/** Query prepared rows against a caller-supplied queryable through the full pipeline. */
|
|
428
|
+
protected runPreparedQueryAgainstQueryable<P, Row>(ps: PreparedStatementImpl<P, Row>, userParams: unknown, queryable: SqlQueryable, options?: RuntimeExecuteOptions): AsyncIterableResult<Row>;
|
|
405
429
|
connection(): Promise<RuntimeConnection>;
|
|
406
430
|
private wrapTransaction;
|
|
407
431
|
telemetry(): RuntimeTelemetryEvent | null;
|
|
@@ -433,78 +457,8 @@ declare class PreparedStatementImpl<Params, Row> implements PreparedStatement<Pa
|
|
|
433
457
|
readonly decodeContext: DecodeContext;
|
|
434
458
|
readonly paramMetadata: readonly ParamMetadata[];
|
|
435
459
|
constructor(internals: PreparedStatementInternals);
|
|
436
|
-
|
|
460
|
+
query(target: RuntimeQueryable, params: Params, options?: RuntimeExecuteOptions): AsyncIterableResult<Row>;
|
|
437
461
|
}
|
|
438
462
|
//#endregion
|
|
439
|
-
|
|
440
|
-
//#
|
|
441
|
-
/**
|
|
442
|
-
* Build a contract-free {@link ContractCodecRegistry} that resolves codecs
|
|
443
|
-
* purely from AST-supplied {@link import('@prisma/orm-framework/components/codec').CodecRef}s
|
|
444
|
-
* against a target's descriptor registry.
|
|
445
|
-
*
|
|
446
|
-
* Dispatch is driven entirely by `CodecRef`s embedded in AST nodes; no
|
|
447
|
-
* contract walk is needed. `forColumn` always returns `undefined` — this
|
|
448
|
-
* registry carries no column-to-codec mappings.
|
|
449
|
-
*/
|
|
450
|
-
declare function createAstCodecRegistry(descriptors: CodecDescriptorRegistry): ContractCodecRegistry;
|
|
451
|
-
//#endregion
|
|
452
|
-
//#region src/codecs/validation.d.ts
|
|
453
|
-
declare function extractCodecIds(contract: Contract<SqlStorage>): Set<string>;
|
|
454
|
-
declare function validateContractCodecMappings(registry: CodecDescriptorRegistry, contract: Contract<SqlStorage>): void;
|
|
455
|
-
declare function validateCodecRegistryCompleteness(registry: CodecDescriptorRegistry, contract: Contract<SqlStorage>): void;
|
|
456
|
-
//#endregion
|
|
457
|
-
//#region src/lower-sql-plan.d.ts
|
|
458
|
-
/**
|
|
459
|
-
* Lowers a SQL query plan to an executable Plan by calling the adapter's lower method.
|
|
460
|
-
*
|
|
461
|
-
* Ad-hoc lowerings produce only `{kind: 'literal'}` slots; this helper
|
|
462
|
-
* unwraps them into the bare-value array `SqlExecutionPlan` exposes.
|
|
463
|
-
* Encountering a `{kind: 'bind'}` slot here means the caller passed an
|
|
464
|
-
* AST containing `PreparedParamRef` to the ad-hoc execute path — that's a
|
|
465
|
-
* caller error, surfaced as `RUNTIME.PREPARE_BIND_ON_ADHOC`.
|
|
466
|
-
*/
|
|
467
|
-
declare function lowerSqlPlan<Row>(adapter: Adapter<AnyQueryAst, Contract<SqlStorage>, LoweredStatement>, contract: Contract<SqlStorage>, queryPlan: SqlQueryPlan<Row>): SqlExecutionPlan<Row>;
|
|
468
|
-
//#endregion
|
|
469
|
-
//#region src/middleware/budgets.d.ts
|
|
470
|
-
interface BudgetsOptions {
|
|
471
|
-
readonly maxRows?: number;
|
|
472
|
-
readonly defaultTableRows?: number;
|
|
473
|
-
readonly tableRows?: Record<string, number>;
|
|
474
|
-
readonly maxLatencyMs?: number;
|
|
475
|
-
readonly severities?: {
|
|
476
|
-
readonly rowCount?: 'warn' | 'error';
|
|
477
|
-
readonly latency?: 'warn' | 'error';
|
|
478
|
-
};
|
|
479
|
-
}
|
|
480
|
-
declare function budgets(options?: BudgetsOptions): SqlMiddleware;
|
|
481
|
-
//#endregion
|
|
482
|
-
//#region src/middleware/lints.d.ts
|
|
483
|
-
interface LintsOptions {
|
|
484
|
-
readonly severities?: {
|
|
485
|
-
readonly selectStar?: 'warn' | 'error';
|
|
486
|
-
readonly noLimit?: 'warn' | 'error';
|
|
487
|
-
readonly deleteWithoutWhere?: 'warn' | 'error';
|
|
488
|
-
readonly updateWithoutWhere?: 'warn' | 'error';
|
|
489
|
-
readonly readOnlyMutation?: 'warn' | 'error';
|
|
490
|
-
};
|
|
491
|
-
readonly fallbackWhenAstMissing?: 'raw' | 'skip';
|
|
492
|
-
}
|
|
493
|
-
/**
|
|
494
|
-
* AST-first lint middleware for SQL plans. When `plan.ast` is a SQL QueryAst, inspects
|
|
495
|
-
* the AST structurally. When `plan.ast` is missing, falls back to raw heuristic
|
|
496
|
-
* guardrails or skips linting depending on `fallbackWhenAstMissing`.
|
|
497
|
-
*
|
|
498
|
-
* Rules (AST-based):
|
|
499
|
-
* - DELETE without WHERE: blocks execution (configurable severity, default error)
|
|
500
|
-
* - UPDATE without WHERE: blocks execution (configurable severity, default error)
|
|
501
|
-
* - Unbounded SELECT: warn/error (severity from noLimit)
|
|
502
|
-
* - SELECT * intent: warn/error (severity from selectStar)
|
|
503
|
-
*
|
|
504
|
-
* Fallback: When ast is missing, `fallbackWhenAstMissing: 'raw'` uses heuristic
|
|
505
|
-
* SQL parsing; `'skip'` skips all lints. Default is `'raw'`.
|
|
506
|
-
*/
|
|
507
|
-
declare function lints(options?: LintsOptions): SqlMiddleware;
|
|
508
|
-
//#endregion
|
|
509
|
-
export { RuntimeQueryable as A, SqlRuntimeDriverInstance as B, PreparedStatementImpl as C, RuntimeFamilyAdapter as D, RuntimeConnection as E, SqlMiddleware as F, TelemetryOutcome as G, SqlRuntimeExtensionInstance as H, SqlMiddlewareContext as I, createExecutionContext as J, TransactionContext as K, SqlRuntimeAdapterDescriptor as L, RuntimeTransaction as M, SqlExecutionStack as N, RuntimeMutationDefaultGenerator as O, SqlExecutionStackWithDriver as P, withTransaction as Q, SqlRuntimeAdapterInstance as R, PreparedStatement as S, Runtime as T, SqlRuntimeTargetDescriptor as U, SqlRuntimeExtensionDescriptor as V, SqlStaticContributions as W, deriveParamMetadata as X, createSqlExecutionStack as Y, encodeParamsWithMetadata as Z, GeneratorStability as _, budgets as a, ParamsFromDeclaration as b, lints as c, validateContractCodecMappings as d, BindSiteParams as f, DeclaredNullable as g, DeclaredCodecId as h, Log as i, RuntimeTelemetryEvent as j, RuntimeParameterizedCodecDescriptor as k, lowerSqlPlan as l, Declaration as m, BudgetsOptions as n, createAstCodecRegistry as o, ConnectionProvider as p, VerifyMarkerOption as q, LintsOptions as r, extractCodecIds as s, AfterExecuteResult$1 as t, validateCodecRegistryCompleteness as u, MarkerReader as v, PreparedStatementInternals as w, PrepareCallback as x, ParamSpec as y, SqlRuntimeBase as z };
|
|
510
|
-
//# sourceMappingURL=index-Ddquditw.d.mts.map
|
|
463
|
+
export { SqlRuntimeDriverInstance as A, deriveParamMetadata as B, SqlExecutionStack as C, SqlRuntimeAdapterDescriptor as D, SqlMiddlewareContext as E, TelemetryOutcome as F, preparedStatementQuery as H, TransactionContext as I, VerifyMarkerOption as L, SqlRuntimeExtensionInstance as M, SqlRuntimeTargetDescriptor as N, SqlRuntimeAdapterInstance as O, SqlStaticContributions as P, createExecutionContext as R, RuntimeTransaction as S, SqlMiddleware as T, withTransaction as U, encodeParamsWithMetadata as V, RuntimeFamilyAdapter as _, DeclaredNullable as a, RuntimeQueryable as b, ParamSpec as c, PreparedStatement as d, PreparedStatementImpl as f, RuntimeConnection as g, Runtime as h, DeclaredCodecId as i, SqlRuntimeExtensionDescriptor as j, SqlRuntimeBase as k, ParamsFromDeclaration as l, PreparedStatementQueryTarget as m, ConnectionProvider as n, GeneratorStability as o, PreparedStatementInternals as p, Declaration as r, MarkerReader as s, BindSiteParams as t, PrepareCallback as u, RuntimeMutationDefaultGenerator as v, SqlExecutionStackWithDriver as w, RuntimeTelemetryEvent as x, RuntimeParameterizedCodecDescriptor as y, createSqlExecutionStack as z };
|
|
464
|
+
//# sourceMappingURL=prepared-statement-z9bBbTph-BlzhaRTY.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prepared-statement-z9bBbTph-BlzhaRTY.d.mts","names":[],"sources":["../../../../2-sql/5-runtime/dist/prepared-statement-z9bBbTph.d.mts"],"mappings":"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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./query-lane-context-gwWUcacE-DdWNrc8q.mjs";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { c as SqlStorage } from "./sql-storage-8LqxeLAY-DH4DdUXx.mjs";
|
|
2
2
|
import "./types-UcHa2cTe.mjs";
|
|
3
3
|
import { a as SqlOperationRegistry } from "./index-C5I8D-MB.mjs";
|
|
4
|
-
import { O as ContractCodecRegistry, s as AnyExpression } from "./types-
|
|
4
|
+
import { O as ContractCodecRegistry, s as AnyExpression } from "./types-DH6Sqzxu-DfzaLX0o.mjs";
|
|
5
5
|
import { Contract } from "@prisma/orm-framework/contract/types";
|
|
6
6
|
import { AggregateDescriptor, AggregateResultNullability } from "@prisma/orm-framework/components/components";
|
|
7
7
|
import { CodecDescriptor, CodecRef } from "@prisma/orm-framework/components/codec";
|
|
8
|
-
//#region ../../../2-sql/4-lanes/relational-core/dist/query-lane-context-
|
|
8
|
+
//#region ../../../2-sql/4-lanes/relational-core/dist/query-lane-context-gwWUcacE.d.mts
|
|
9
9
|
//#region src/aggregate-descriptor.d.ts
|
|
10
10
|
/**
|
|
11
11
|
* What a lowering hook is handed: the expression being aggregated (absent for operations that consume no value) and the codec of that expression.
|
|
@@ -148,4 +148,4 @@ interface ExecutionContext<TContract extends Contract<SqlStorage> = Contract<Sql
|
|
|
148
148
|
}
|
|
149
149
|
//#endregion
|
|
150
150
|
export { MutationDefaultsOptions as a, SqlAggregateDescriptorRegistry as c, TypeHelperRegistry as d, isSqlAggregateDescriptor as f, MutationDefaultsOp as i, SqlAggregateLowering as l, CodecDescriptorRegistry as n, ResolvedSqlAggregate as o, ExecutionContext as r, SqlAggregateDescriptor as s, AppliedMutationDefault as t, SqlAggregateLoweringContext as u };
|
|
151
|
-
//# sourceMappingURL=query-lane-context-
|
|
151
|
+
//# sourceMappingURL=query-lane-context-gwWUcacE-DdWNrc8q.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query-lane-context-
|
|
1
|
+
{"version":3,"file":"query-lane-context-gwWUcacE-DdWNrc8q.d.mts","names":[],"sources":["../../../../2-sql/4-lanes/relational-core/dist/query-lane-context-gwWUcacE.d.mts"],"mappings":";;;;;;;;;;;;UAUU;WACC,MAAM;WACN,YAAY;;;;;;;KAOlB,wBAAwB,SAAS,gCAAgC;;;;;;;;KAQjE,yBAAyB;WACnB,QAAQ;;;iBAGF,yBAAyB,iBAAiB,SAAS;;;;;;UAM1D;;;;EAIR,cAAc,kBAAkB;;;;;;;;;;;;;;EAchC,kBAAkB,qBAAqB,eAAe,iBAAiB;;;;EAIvE,UAAU,iBAAiB;;;;EAI3B,aAAa,8BAA8B;;;;;;;KAOxC,uBAAuB;WACjB;WACA,QAAQ;WACR,OAAO;;;;;;;UAOR;;;;;;EAMR,QAAQ,mBAAmB,QAAQ,WAAW;;EAE9C,UAAU,iBAAiB;;;;;KAKxB,qBAAqB;KACrB;KACA;WACM;WACA;;KAEN;WACM,IAAI;WACJ;;;;;;;;WAQA;WACA,QAAQ;;;;;WAKR,oBAAoB;;;;;;;UAOrB,iBAAiB,kBAAkB,SAAS,cAAc,SAAS;WAClE,UAAU;;;;WAIV,gBAAgB;;;;WAIhB,kBAAkB;;;;WAIlB,sBAAsB;WACtB,iBAAiB;;;;WAIjB,OAAO;;;;EAIhB,sBAAsB,SAAS,0BAA0B,cAAc"}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import { $ as JoinAst, A as DeleteAst, At as TableRef, B as ExistsExpr, Bt as isQueryAst, C as CodecDescriptor$1, Ct as RawSqlLiteral, D as ColumnRef, Dt as SqlCodecInstanceContext, E as CodecTrait$1, Et as SqlCodecCallContext, F as DescriptorCodecTraits, Ft as WindowFn, G as ExtractCodecTypes, H as ExpressionFolder, Ht as queryAstKinds, I as Direction, It as WindowFuncExpr, J as FunctionSourceAlias, K as FunctionCallExpr, L as DoNothingConflictAction, Lt as aggregateFnNames, M as DescriptorCodecId, Mt as ToWhereExpr, N as DescriptorCodecInput, Nt as UpdateAst, O as ContractCodecRegistry, Ot as SqlColumnRef, P as DescriptorCodecJson, Pt as WhereArg, Q as InsertValue, R as DoUpdateSetConflictAction, Rt as frozenCodecRef, S as CodecCallContext$1, St as RawSqlExpr, T as CodecRef$1, Tt as SelectAstOptions, U as ExpressionRewriter, Ut as whereExprKinds, V as ExprVisitor, Vt as isWhereExpr, W as ExpressionSource, X as InsertAst, Y as IdentifierRef, Z as InsertOnConflict, _ as BinaryOp, _t as ParamRef, a as AndExpr, at as JsonValueProjectionVisitor, b as CastExpr, bt as ProjectionItem, c as AnyFromSource, ct as LiteralExpr, d as AnyJsonValueProjection, dt as NativeJsonValueProjection, et as JoinOnExpr, f as AnyOperationArg, ft as NotExpr, g as BinaryExpr, gt as OrderByItem, h as AstRewriter, ht as OrExpr, i as AggregateOpFn, it as JsonObjectExpr, j as DerivedTableSource, jt as TableSource, k as DefaultValueExpr, kt as SubqueryExpr, l as AnyInsertOnConflictAction, lt as LoweredParam, m as AnyQueryAst, mt as OperationExpr, n as AggregateExpr, nt as JsonDocumentProjection, o as AnyCodecDescriptor, ot as LimitOffsetValue, p as AnyParamRef, pt as NullCheckExpr, q as FunctionSource, r as AggregateFn, rt as JsonObjectEntry, s as AnyExpression, st as ListExpression, t as AggregateCountFn, tt as JsonArrayAggExpr, u as AnyInsertValue, ut as LoweredStatement, v as CaseBranch, vt as PreparedParamRef, w as CodecJsonValueProjection, wt as SelectAst, x as Codec$1, xt as RawExpr, y as CaseExpr, yt as ProjectionExpr, z as EqColJoinOn, zt as isAggregateFn } from "./types-
|
|
2
|
-
import { a as
|
|
3
|
-
import {
|
|
4
|
-
import { a as
|
|
5
|
-
import { t as
|
|
6
|
-
import {
|
|
7
|
-
import "./plan-
|
|
8
|
-
import
|
|
9
|
-
import "./query-lane-context-
|
|
10
|
-
import
|
|
11
|
-
import {
|
|
1
|
+
import { $ as JoinAst, A as DeleteAst, At as TableRef, B as ExistsExpr, Bt as isQueryAst, C as CodecDescriptor$1, Ct as RawSqlLiteral, D as ColumnRef, Dt as SqlCodecInstanceContext, E as CodecTrait$1, Et as SqlCodecCallContext, F as DescriptorCodecTraits, Ft as WindowFn, G as ExtractCodecTypes, H as ExpressionFolder, Ht as queryAstKinds, I as Direction, It as WindowFuncExpr, J as FunctionSourceAlias, K as FunctionCallExpr, L as DoNothingConflictAction, Lt as aggregateFnNames, M as DescriptorCodecId, Mt as ToWhereExpr, N as DescriptorCodecInput, Nt as UpdateAst, O as ContractCodecRegistry, Ot as SqlColumnRef, P as DescriptorCodecJson, Pt as WhereArg, Q as InsertValue, R as DoUpdateSetConflictAction, Rt as frozenCodecRef, S as CodecCallContext$1, St as RawSqlExpr, T as CodecRef$1, Tt as SelectAstOptions, U as ExpressionRewriter, Ut as whereExprKinds, V as ExprVisitor, Vt as isWhereExpr, W as ExpressionSource, X as InsertAst, Y as IdentifierRef, Z as InsertOnConflict, _ as BinaryOp, _t as ParamRef, a as AndExpr, at as JsonValueProjectionVisitor, b as CastExpr, bt as ProjectionItem, c as AnyFromSource, ct as LiteralExpr, d as AnyJsonValueProjection, dt as NativeJsonValueProjection, et as JoinOnExpr, f as AnyOperationArg, ft as NotExpr, g as BinaryExpr, gt as OrderByItem, h as AstRewriter, ht as OrExpr, i as AggregateOpFn, it as JsonObjectExpr, j as DerivedTableSource, jt as TableSource, k as DefaultValueExpr, kt as SubqueryExpr, l as AnyInsertOnConflictAction, lt as LoweredParam, m as AnyQueryAst, mt as OperationExpr, n as AggregateExpr, nt as JsonDocumentProjection, o as AnyCodecDescriptor, ot as LimitOffsetValue, p as AnyParamRef, pt as NullCheckExpr, q as FunctionSource, r as AggregateFn, rt as JsonObjectEntry, s as AnyExpression, st as ListExpression, t as AggregateCountFn, tt as JsonArrayAggExpr, u as AnyInsertValue, ut as LoweredStatement, v as CaseBranch, vt as PreparedParamRef, w as CodecJsonValueProjection, wt as SelectAst, x as Codec$1, xt as RawExpr, y as CaseExpr, yt as ProjectionExpr, z as EqColJoinOn, zt as isAggregateFn } from "./types-DH6Sqzxu-DfzaLX0o.mjs";
|
|
2
|
+
import { a as SqlDriverState, c as SqlQueryable, i as SqlDriver, l as SqlStatementStats, n as PreparedStatementHandle, o as SqlExecuteRequest, r as SqlConnection, s as SqlExplainResult, t as PreparedExecuteRequest, u as SqlTransaction } from "./driver-types-BQtRkOJ0-Bv2RPSfr.mjs";
|
|
3
|
+
import { a as DdlColumnDefaultVisitor, c as DdlTableConstraint, d as LiteralColumnDefault, f as PrimaryKeyConstraint, i as DdlColumnDefault, l as ForeignKeyConstraint, m as isDdlNode, n as CheckExpressionConstraint, o as DdlColumnRenderContext, p as UniqueConstraint, r as DdlColumn, s as DdlNode, t as AnyDdlColumnDefault, u as FunctionColumnDefault } from "./ddl-types-BtT82FGO-Du_-9SlZ.mjs";
|
|
4
|
+
import { $ as sqlVarcharColumn, A as sqlCharEncode, B as sqlIntDescriptor, C as SqlVarcharCodec, D as sqlCharColumn, E as compact, F as sqlFloatDescriptor, G as sqlTextEncode, H as sqlTextColumn, I as sqlFloatEncode, J as sqlTimestampDecodeJson, K as sqlTimestampColumn, L as sqlFloatEncodeJson, M as sqlFloatColumn, N as sqlFloatDecode, O as sqlCharDecode, P as sqlFloatDecodeJson, Q as sqlTimestampRenderOutputType, R as sqlIntColumn, S as SqlTimestampDescriptor, T as collectOrderedParamRefs, U as sqlTextDecode, V as sqlIntEncode, W as sqlTextDescriptor, X as sqlTimestampEncode, Y as sqlTimestampDescriptor, Z as sqlTimestampEncodeJson, _ as SqlIntCodec, a as LowererContext, b as SqlTextDescriptor, c as SQL_FLOAT_CODEC_ID, d as SQL_TIMESTAMP_CODEC_ID, et as sqlVarcharDecode, f as SQL_VARCHAR_CODEC_ID, g as SqlFloatDescriptor, h as SqlFloatCodec, i as Lowerer, j as sqlCharRenderOutputType, k as sqlCharDescriptor, l as SQL_INT_CODEC_ID, m as SqlCharDescriptor, n as AdapterProfile, nt as sqlVarcharEncode, o as MarkerReadResult, p as SqlCharCodec, q as sqlTimestampDecode, r as AdapterTarget, rt as sqlVarcharRenderOutputType, s as SQL_CHAR_CODEC_ID, t as Adapter, tt as sqlVarcharDescriptor, u as SQL_TEXT_CODEC_ID, v as SqlIntDescriptor, w as SqlVarcharDescriptor, x as SqlTimestampCodec, y as SqlTextCodec, z as sqlIntDecode } from "./ast-D8qqdDX_.mjs";
|
|
5
|
+
import { a as Expression, c as RawSqlTag, d as TraitExpression, f as buildOperation, g as toExpr, h as param, i as CodecValue, l as ScalarListExpression, m as createRawSql, n as CodecExpression, o as RawCodecInferer, p as codecOf, r as CodecTypesBase, s as RawSqlBuilder, t as BuildOperationSpec, u as ScopeField } from "./expression-Q_yaDQPb.mjs";
|
|
6
|
+
import { t as SqlExecutionPlan } from "./sql-execution-plan-D0ZTnszb-DnCRtfQO.mjs";
|
|
7
|
+
import { n as planFromAst, t as SqlQueryPlan } from "./plan-BC_trt1i-In5gOKCT.mjs";
|
|
8
|
+
import "./plan-DrOMooQt.mjs";
|
|
9
|
+
import { a as MutationDefaultsOptions, c as SqlAggregateDescriptorRegistry, d as TypeHelperRegistry, i as MutationDefaultsOp, n as CodecDescriptorRegistry, o as ResolvedSqlAggregate, r as ExecutionContext, t as AppliedMutationDefault } from "./query-lane-context-gwWUcacE-DdWNrc8q.mjs";
|
|
10
|
+
import "./query-lane-context-D62vkQhf.mjs";
|
|
11
|
+
import { a as SqlParamRefMutatorInternal, i as SqlParamRefMutator, n as ParamRefEntryUnion, o as createSqlParamRefMutator, r as ParamRefHandle, t as ParamRefEntry } from "./middleware-BS7u8VFR-DyUcAFid.mjs";
|
|
12
|
+
import { C as TableDef, E as TablesOf, S as SqlPlan, T as TableMetadata, _ as RawTemplateFactory, a as ColumnsOf, b as SqlBuilderOptions, c as META, d as ModelMetadata, f as OperationTypeSignature, g as RawFunctionOptions, h as RawFactory, i as ColumnResolutionContract, l as Meta, m as OperationsForTypeId, n as BuildParamsMap, o as ComputeColumnJsType, p as OperationTypes, r as CodecTypes, s as Expr, t as BuildOptions, u as ModelDef, v as RawTemplateOptions, w as TableKey, x as SqlOrmPlan, y as RuntimeScope } from "./types-C9FZXc9Q-C6LM1k-O.mjs";
|
|
12
13
|
export { Adapter, AdapterProfile, AdapterTarget, AggregateCountFn, AggregateExpr, AggregateFn, AggregateOpFn, AndExpr, AnyCodecDescriptor, AnyDdlColumnDefault, AnyExpression, AnyFromSource, AnyInsertOnConflictAction, AnyInsertValue, AnyJsonValueProjection, AnyOperationArg, AnyParamRef, AnyQueryAst, AppliedMutationDefault, AstRewriter, BinaryExpr, BinaryOp, BuildOperationSpec, BuildOptions, BuildParamsMap, CaseBranch, CaseExpr, CastExpr, CheckExpressionConstraint, Codec$1 as Codec, type CodecCallContext$1 as CodecCallContext, type CodecDescriptor$1 as CodecDescriptor, CodecDescriptorRegistry, CodecExpression, CodecJsonValueProjection, type CodecRef$1 as CodecRef, type CodecTrait$1 as CodecTrait, CodecTypes, CodecTypesBase, CodecValue, ColumnRef, ColumnResolutionContract, ColumnsOf, ComputeColumnJsType, ContractCodecRegistry, DdlColumn, DdlColumnDefault, DdlColumnDefaultVisitor, DdlColumnRenderContext, DdlNode, DdlTableConstraint, DefaultValueExpr, DeleteAst, DerivedTableSource, DescriptorCodecId, DescriptorCodecInput, DescriptorCodecJson, DescriptorCodecTraits, Direction, DoNothingConflictAction, DoUpdateSetConflictAction, EqColJoinOn, ExecutionContext, ExistsExpr, Expr, ExprVisitor, Expression, ExpressionFolder, ExpressionRewriter, ExpressionSource, ExtractCodecTypes, ForeignKeyConstraint, FunctionCallExpr, FunctionColumnDefault, FunctionSource, FunctionSourceAlias, IdentifierRef, InsertAst, InsertOnConflict, InsertValue, JoinAst, JoinOnExpr, JsonArrayAggExpr, JsonDocumentProjection, JsonObjectEntry, JsonObjectExpr, JsonValueProjectionVisitor, LimitOffsetValue, ListExpression, LiteralColumnDefault, LiteralExpr, LoweredParam, LoweredStatement, Lowerer, LowererContext, META, MarkerReadResult, Meta, ModelDef, ModelMetadata, MutationDefaultsOp, MutationDefaultsOptions, NativeJsonValueProjection, NotExpr, NullCheckExpr, OperationExpr, OperationTypeSignature, OperationTypes, OperationsForTypeId, OrExpr, OrderByItem, ParamRef, type ParamRefEntry, type ParamRefEntryUnion, type ParamRefHandle, PreparedExecuteRequest, PreparedParamRef, PreparedStatementHandle, PrimaryKeyConstraint, ProjectionExpr, ProjectionItem, RawCodecInferer, RawExpr, RawFactory, RawFunctionOptions, RawSqlBuilder, RawSqlExpr, RawSqlLiteral, RawSqlTag, RawTemplateFactory, RawTemplateOptions, ResolvedSqlAggregate, type RuntimeScope, SQL_CHAR_CODEC_ID, SQL_FLOAT_CODEC_ID, SQL_INT_CODEC_ID, SQL_TEXT_CODEC_ID, SQL_TIMESTAMP_CODEC_ID, SQL_VARCHAR_CODEC_ID, ScalarListExpression, ScopeField, SelectAst, SelectAstOptions, SqlAggregateDescriptorRegistry, SqlBuilderOptions, SqlCharCodec, SqlCharDescriptor, SqlCodecCallContext, SqlCodecInstanceContext, SqlColumnRef, SqlConnection, SqlDriver, SqlDriverState, SqlExecuteRequest, type SqlExecutionPlan, SqlExplainResult, SqlFloatCodec, SqlFloatDescriptor, SqlIntCodec, SqlIntDescriptor, type SqlOrmPlan, type SqlParamRefMutator, type SqlParamRefMutatorInternal, SqlPlan, SqlQueryPlan, SqlQueryable, SqlStatementStats, SqlTextCodec, SqlTextDescriptor, SqlTimestampCodec, SqlTimestampDescriptor, SqlTransaction, SqlVarcharCodec, SqlVarcharDescriptor, SubqueryExpr, TableDef, TableKey, TableMetadata, TableRef, TableSource, TablesOf, ToWhereExpr, TraitExpression, TypeHelperRegistry, UniqueConstraint, UpdateAst, WhereArg, WindowFn, WindowFuncExpr, aggregateFnNames, buildOperation, codecOf, collectOrderedParamRefs, compact, createRawSql, createSqlParamRefMutator, frozenCodecRef, isAggregateFn, isDdlNode, isQueryAst, isWhereExpr, param, planFromAst, queryAstKinds, sqlCharColumn, sqlCharDecode, sqlCharDescriptor, sqlCharEncode, sqlCharRenderOutputType, sqlFloatColumn, sqlFloatDecode, sqlFloatDecodeJson, sqlFloatDescriptor, sqlFloatEncode, sqlFloatEncodeJson, sqlIntColumn, sqlIntDecode, sqlIntDescriptor, sqlIntEncode, sqlTextColumn, sqlTextDecode, sqlTextDescriptor, sqlTextEncode, sqlTimestampColumn, sqlTimestampDecode, sqlTimestampDecodeJson, sqlTimestampDescriptor, sqlTimestampEncode, sqlTimestampEncodeJson, sqlTimestampRenderOutputType, sqlVarcharColumn, sqlVarcharDecode, sqlVarcharDescriptor, sqlVarcharEncode, sqlVarcharRenderOutputType, toExpr, whereExprKinds };
|
package/dist/relational-core.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { A as PreparedParamRef, B as frozenCodecRef, C as LiteralExpr, D as OrExpr, E as OperationExpr, F as SubqueryExpr, G as whereExprKinds, H as isQueryAst, I as TableSource, L as UpdateAst, M as RawExpr, N as RawSqlExpr, O as OrderByItem, P as SelectAst, R as WindowFuncExpr, S as ListExpression, T as NullCheckExpr, U as isWhereExpr, V as isAggregateFn, W as queryAstKinds, _ as InsertAst, a as CastExpr, b as JsonArrayAggExpr, c as DeleteAst, d as DoUpdateSetConflictAction, f as EqColJoinOn, g as IdentifierRef, h as FunctionSource, i as CaseExpr, j as ProjectionItem, k as ParamRef, l as DerivedTableSource, m as FunctionCallExpr, n as AndExpr, o as ColumnRef, p as ExistsExpr, r as BinaryExpr, s as DefaultValueExpr, t as AggregateExpr, u as DoNothingConflictAction, v as InsertOnConflict, w as NotExpr, x as JsonObjectExpr, y as JoinAst, z as aggregateFnNames } from "./types-
|
|
1
|
+
import { A as PreparedParamRef, B as frozenCodecRef, C as LiteralExpr, D as OrExpr, E as OperationExpr, F as SubqueryExpr, G as whereExprKinds, H as isQueryAst, I as TableSource, L as UpdateAst, M as RawExpr, N as RawSqlExpr, O as OrderByItem, P as SelectAst, R as WindowFuncExpr, S as ListExpression, T as NullCheckExpr, U as isWhereExpr, V as isAggregateFn, W as queryAstKinds, _ as InsertAst, a as CastExpr, b as JsonArrayAggExpr, c as DeleteAst, d as DoUpdateSetConflictAction, f as EqColJoinOn, g as IdentifierRef, h as FunctionSource, i as CaseExpr, j as ProjectionItem, k as ParamRef, l as DerivedTableSource, m as FunctionCallExpr, n as AndExpr, o as ColumnRef, p as ExistsExpr, r as BinaryExpr, s as DefaultValueExpr, t as AggregateExpr, u as DoNothingConflictAction, v as InsertOnConflict, w as NotExpr, x as JsonObjectExpr, y as JoinAst, z as aggregateFnNames } from "./types-B7_v-z12-De5tf8LE.mjs";
|
|
2
2
|
import { a as ForeignKeyConstraint, c as PrimaryKeyConstraint, i as DdlNode, l as UniqueConstraint, n as DdlColumn, o as FunctionColumnDefault, r as DdlColumnDefault, s as LiteralColumnDefault, t as CheckExpressionConstraint, u as isDdlNode } from "./ddl-types-BGdnAbXo-DKPHPUGx.mjs";
|
|
3
3
|
import { n as compact, t as collectOrderedParamRefs } from "./util-DQQgv2j1-D6INZaRG.mjs";
|
|
4
|
-
import { A as sqlFloatDescriptor, B as sqlTextEncode, C as sqlCharDecode, D as sqlFloatColumn, E as sqlCharRenderOutputType, F as sqlIntDescriptor, G as sqlTimestampEncode, H as sqlTimestampDecode, I as sqlIntEncode, J as sqlVarcharColumn, K as sqlTimestampEncodeJson, L as sqlTextColumn, M as sqlFloatEncodeJson, N as sqlIntColumn, O as sqlFloatDecode, P as sqlIntDecode, Q as sqlVarcharRenderOutputType, R as sqlTextDecode, S as sqlCharColumn, T as sqlCharEncode, U as sqlTimestampDecodeJson, V as sqlTimestampColumn, W as sqlTimestampDescriptor, X as sqlVarcharDescriptor, Y as sqlVarcharDecode, Z as sqlVarcharEncode, _ as SqlTextDescriptor, a as SQL_FLOAT_CODEC_ID, b as SqlVarcharCodec, c as SQL_TIMESTAMP_CODEC_ID, d as SqlCharDescriptor, f as SqlFloatCodec, g as SqlTextCodec, h as SqlIntDescriptor, i as SQL_CHAR_CODEC_ID, j as sqlFloatEncode, k as sqlFloatDecodeJson, l as SQL_VARCHAR_CODEC_ID, m as SqlIntCodec, n as JsonDocumentProjection, o as SQL_INT_CODEC_ID, p as SqlFloatDescriptor, q as sqlTimestampRenderOutputType, r as NativeJsonValueProjection, s as SQL_TEXT_CODEC_ID, t as CodecJsonValueProjection, u as SqlCharCodec, v as SqlTimestampCodec, w as sqlCharDescriptor, x as SqlVarcharDescriptor, y as SqlTimestampDescriptor, z as sqlTextDescriptor } from "./ast-
|
|
5
|
-
import { a as toExpr, i as param, n as codecOf, r as createRawSql, t as buildOperation } from "./expression-
|
|
4
|
+
import { A as sqlFloatDescriptor, B as sqlTextEncode, C as sqlCharDecode, D as sqlFloatColumn, E as sqlCharRenderOutputType, F as sqlIntDescriptor, G as sqlTimestampEncode, H as sqlTimestampDecode, I as sqlIntEncode, J as sqlVarcharColumn, K as sqlTimestampEncodeJson, L as sqlTextColumn, M as sqlFloatEncodeJson, N as sqlIntColumn, O as sqlFloatDecode, P as sqlIntDecode, Q as sqlVarcharRenderOutputType, R as sqlTextDecode, S as sqlCharColumn, T as sqlCharEncode, U as sqlTimestampDecodeJson, V as sqlTimestampColumn, W as sqlTimestampDescriptor, X as sqlVarcharDescriptor, Y as sqlVarcharDecode, Z as sqlVarcharEncode, _ as SqlTextDescriptor, a as SQL_FLOAT_CODEC_ID, b as SqlVarcharCodec, c as SQL_TIMESTAMP_CODEC_ID, d as SqlCharDescriptor, f as SqlFloatCodec, g as SqlTextCodec, h as SqlIntDescriptor, i as SQL_CHAR_CODEC_ID, j as sqlFloatEncode, k as sqlFloatDecodeJson, l as SQL_VARCHAR_CODEC_ID, m as SqlIntCodec, n as JsonDocumentProjection, o as SQL_INT_CODEC_ID, p as SqlFloatDescriptor, q as sqlTimestampRenderOutputType, r as NativeJsonValueProjection, s as SQL_TEXT_CODEC_ID, t as CodecJsonValueProjection, u as SqlCharCodec, v as SqlTimestampCodec, w as sqlCharDescriptor, x as SqlVarcharDescriptor, y as SqlTimestampDescriptor, z as sqlTextDescriptor } from "./ast-BJdOHZrL.mjs";
|
|
5
|
+
import { a as toExpr, i as param, n as codecOf, r as createRawSql, t as buildOperation } from "./expression-D30W-gkF.mjs";
|
|
6
6
|
import { t as createSqlParamRefMutator } from "./middleware-CMr4CHNz-DHIUdxlm.mjs";
|
|
7
7
|
import { t as planFromAst } from "./plan-CkpcgUaM.mjs";
|
|
8
8
|
export { AggregateExpr, AndExpr, BinaryExpr, CaseExpr, CastExpr, CheckExpressionConstraint, CodecJsonValueProjection, ColumnRef, DdlColumn, DdlColumnDefault, DdlNode, DefaultValueExpr, DeleteAst, DerivedTableSource, DoNothingConflictAction, DoUpdateSetConflictAction, EqColJoinOn, ExistsExpr, ForeignKeyConstraint, FunctionCallExpr, FunctionColumnDefault, FunctionSource, IdentifierRef, InsertAst, InsertOnConflict, JoinAst, JsonArrayAggExpr, JsonDocumentProjection, JsonObjectExpr, ListExpression, LiteralColumnDefault, LiteralExpr, NativeJsonValueProjection, NotExpr, NullCheckExpr, OperationExpr, OrExpr, OrderByItem, ParamRef, PreparedParamRef, PrimaryKeyConstraint, ProjectionItem, RawExpr, RawSqlExpr, SQL_CHAR_CODEC_ID, SQL_FLOAT_CODEC_ID, SQL_INT_CODEC_ID, SQL_TEXT_CODEC_ID, SQL_TIMESTAMP_CODEC_ID, SQL_VARCHAR_CODEC_ID, SelectAst, SqlCharCodec, SqlCharDescriptor, SqlFloatCodec, SqlFloatDescriptor, SqlIntCodec, SqlIntDescriptor, SqlTextCodec, SqlTextDescriptor, SqlTimestampCodec, SqlTimestampDescriptor, SqlVarcharCodec, SqlVarcharDescriptor, SubqueryExpr, TableSource, UniqueConstraint, UpdateAst, WindowFuncExpr, aggregateFnNames, buildOperation, codecOf, collectOrderedParamRefs, compact, createRawSql, createSqlParamRefMutator, frozenCodecRef, isAggregateFn, isDdlNode, isQueryAst, isWhereExpr, param, planFromAst, queryAstKinds, sqlCharColumn, sqlCharDecode, sqlCharDescriptor, sqlCharEncode, sqlCharRenderOutputType, sqlFloatColumn, sqlFloatDecode, sqlFloatDecodeJson, sqlFloatDescriptor, sqlFloatEncode, sqlFloatEncodeJson, sqlIntColumn, sqlIntDecode, sqlIntDescriptor, sqlIntEncode, sqlTextColumn, sqlTextDecode, sqlTextDescriptor, sqlTextEncode, sqlTimestampColumn, sqlTimestampDecode, sqlTimestampDecodeJson, sqlTimestampDescriptor, sqlTimestampEncode, sqlTimestampEncodeJson, sqlTimestampRenderOutputType, sqlVarcharColumn, sqlVarcharDecode, sqlVarcharDescriptor, sqlVarcharEncode, sqlVarcharRenderOutputType, toExpr, whereExprKinds };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as SqlAggregateDescriptorRegistry, f as isSqlAggregateDescriptor, l as SqlAggregateLowering, n as CodecDescriptorRegistry, s as SqlAggregateDescriptor, u as SqlAggregateLoweringContext } from "./query-lane-context-
|
|
1
|
+
import { c as SqlAggregateDescriptorRegistry, f as isSqlAggregateDescriptor, l as SqlAggregateLowering, n as CodecDescriptorRegistry, s as SqlAggregateDescriptor, u as SqlAggregateLoweringContext } from "./query-lane-context-gwWUcacE-DdWNrc8q.mjs";
|
|
2
2
|
//#region ../../../2-sql/4-lanes/relational-core/dist/exports/aggregate-descriptor-registry.d.mts
|
|
3
3
|
//#region src/aggregate-descriptor-registry.d.ts
|
|
4
4
|
/**
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as isSqlAggregateDescriptor, t as buildSqlAggregateDescriptorRegistry } from "./aggregate-descriptor-registry-
|
|
1
|
+
import { n as isSqlAggregateDescriptor, t as buildSqlAggregateDescriptorRegistry } from "./aggregate-descriptor-registry-CTo0ry7h.mjs";
|
|
2
2
|
export { buildSqlAggregateDescriptorRegistry, isSqlAggregateDescriptor };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { $ as JoinAst, A as DeleteAst, At as TableRef, B as ExistsExpr, Bt as isQueryAst, C as CodecDescriptor$1, Ct as RawSqlLiteral, D as ColumnRef, Dt as SqlCodecInstanceContext, E as CodecTrait$1, Et as SqlCodecCallContext, F as DescriptorCodecTraits, Ft as WindowFn, G as ExtractCodecTypes, H as ExpressionFolder, Ht as queryAstKinds, I as Direction, It as WindowFuncExpr, J as FunctionSourceAlias, K as FunctionCallExpr, L as DoNothingConflictAction, Lt as aggregateFnNames, M as DescriptorCodecId, Mt as ToWhereExpr, N as DescriptorCodecInput, Nt as UpdateAst, O as ContractCodecRegistry, Ot as SqlColumnRef, P as DescriptorCodecJson, Pt as WhereArg, Q as InsertValue, R as DoUpdateSetConflictAction, Rt as frozenCodecRef, S as CodecCallContext$1, St as RawSqlExpr, T as CodecRef$1, Tt as SelectAstOptions, U as ExpressionRewriter, Ut as whereExprKinds, V as ExprVisitor, Vt as isWhereExpr, W as ExpressionSource, X as InsertAst, Y as IdentifierRef, Z as InsertOnConflict, _ as BinaryOp, _t as ParamRef, a as AndExpr, at as JsonValueProjectionVisitor, b as CastExpr, bt as ProjectionItem, c as AnyFromSource, ct as LiteralExpr, d as AnyJsonValueProjection, dt as NativeJsonValueProjection, et as JoinOnExpr, f as AnyOperationArg, ft as NotExpr, g as BinaryExpr, gt as OrderByItem, h as AstRewriter, ht as OrExpr, i as AggregateOpFn, it as JsonObjectExpr, j as DerivedTableSource, jt as TableSource, k as DefaultValueExpr, kt as SubqueryExpr, l as AnyInsertOnConflictAction, lt as LoweredParam, m as AnyQueryAst, mt as OperationExpr, n as AggregateExpr, nt as JsonDocumentProjection, o as AnyCodecDescriptor, ot as LimitOffsetValue, p as AnyParamRef, pt as NullCheckExpr, q as FunctionSource, r as AggregateFn, rt as JsonObjectEntry, s as AnyExpression, st as ListExpression, t as AggregateCountFn, tt as JsonArrayAggExpr, u as AnyInsertValue, ut as LoweredStatement, v as CaseBranch, vt as PreparedParamRef, w as CodecJsonValueProjection, wt as SelectAst, x as Codec$1, xt as RawExpr, y as CaseExpr, yt as ProjectionExpr, z as EqColJoinOn, zt as isAggregateFn } from "./types-
|
|
2
|
-
import { a as
|
|
3
|
-
import {
|
|
1
|
+
import { $ as JoinAst, A as DeleteAst, At as TableRef, B as ExistsExpr, Bt as isQueryAst, C as CodecDescriptor$1, Ct as RawSqlLiteral, D as ColumnRef, Dt as SqlCodecInstanceContext, E as CodecTrait$1, Et as SqlCodecCallContext, F as DescriptorCodecTraits, Ft as WindowFn, G as ExtractCodecTypes, H as ExpressionFolder, Ht as queryAstKinds, I as Direction, It as WindowFuncExpr, J as FunctionSourceAlias, K as FunctionCallExpr, L as DoNothingConflictAction, Lt as aggregateFnNames, M as DescriptorCodecId, Mt as ToWhereExpr, N as DescriptorCodecInput, Nt as UpdateAst, O as ContractCodecRegistry, Ot as SqlColumnRef, P as DescriptorCodecJson, Pt as WhereArg, Q as InsertValue, R as DoUpdateSetConflictAction, Rt as frozenCodecRef, S as CodecCallContext$1, St as RawSqlExpr, T as CodecRef$1, Tt as SelectAstOptions, U as ExpressionRewriter, Ut as whereExprKinds, V as ExprVisitor, Vt as isWhereExpr, W as ExpressionSource, X as InsertAst, Y as IdentifierRef, Z as InsertOnConflict, _ as BinaryOp, _t as ParamRef, a as AndExpr, at as JsonValueProjectionVisitor, b as CastExpr, bt as ProjectionItem, c as AnyFromSource, ct as LiteralExpr, d as AnyJsonValueProjection, dt as NativeJsonValueProjection, et as JoinOnExpr, f as AnyOperationArg, ft as NotExpr, g as BinaryExpr, gt as OrderByItem, h as AstRewriter, ht as OrExpr, i as AggregateOpFn, it as JsonObjectExpr, j as DerivedTableSource, jt as TableSource, k as DefaultValueExpr, kt as SubqueryExpr, l as AnyInsertOnConflictAction, lt as LoweredParam, m as AnyQueryAst, mt as OperationExpr, n as AggregateExpr, nt as JsonDocumentProjection, o as AnyCodecDescriptor, ot as LimitOffsetValue, p as AnyParamRef, pt as NullCheckExpr, q as FunctionSource, r as AggregateFn, rt as JsonObjectEntry, s as AnyExpression, st as ListExpression, t as AggregateCountFn, tt as JsonArrayAggExpr, u as AnyInsertValue, ut as LoweredStatement, v as CaseBranch, vt as PreparedParamRef, w as CodecJsonValueProjection, wt as SelectAst, x as Codec$1, xt as RawExpr, y as CaseExpr, yt as ProjectionExpr, z as EqColJoinOn, zt as isAggregateFn } from "./types-DH6Sqzxu-DfzaLX0o.mjs";
|
|
2
|
+
import { a as SqlDriverState, c as SqlQueryable, i as SqlDriver, l as SqlStatementStats, n as PreparedStatementHandle, o as SqlExecuteRequest, r as SqlConnection, s as SqlExplainResult, t as PreparedExecuteRequest, u as SqlTransaction } from "./driver-types-BQtRkOJ0-Bv2RPSfr.mjs";
|
|
3
|
+
import { a as DdlColumnDefaultVisitor, c as DdlTableConstraint, d as LiteralColumnDefault, f as PrimaryKeyConstraint, i as DdlColumnDefault, l as ForeignKeyConstraint, m as isDdlNode, n as CheckExpressionConstraint, o as DdlColumnRenderContext, p as UniqueConstraint, r as DdlColumn, s as DdlNode, t as AnyDdlColumnDefault, u as FunctionColumnDefault } from "./ddl-types-BtT82FGO-Du_-9SlZ.mjs";
|
|
4
|
+
import { $ as sqlVarcharColumn, A as sqlCharEncode, B as sqlIntDescriptor, C as SqlVarcharCodec, D as sqlCharColumn, E as compact, F as sqlFloatDescriptor, G as sqlTextEncode, H as sqlTextColumn, I as sqlFloatEncode, J as sqlTimestampDecodeJson, K as sqlTimestampColumn, L as sqlFloatEncodeJson, M as sqlFloatColumn, N as sqlFloatDecode, O as sqlCharDecode, P as sqlFloatDecodeJson, Q as sqlTimestampRenderOutputType, R as sqlIntColumn, S as SqlTimestampDescriptor, T as collectOrderedParamRefs, U as sqlTextDecode, V as sqlIntEncode, W as sqlTextDescriptor, X as sqlTimestampEncode, Y as sqlTimestampDescriptor, Z as sqlTimestampEncodeJson, _ as SqlIntCodec, a as LowererContext, b as SqlTextDescriptor, c as SQL_FLOAT_CODEC_ID, d as SQL_TIMESTAMP_CODEC_ID, et as sqlVarcharDecode, f as SQL_VARCHAR_CODEC_ID, g as SqlFloatDescriptor, h as SqlFloatCodec, i as Lowerer, j as sqlCharRenderOutputType, k as sqlCharDescriptor, l as SQL_INT_CODEC_ID, m as SqlCharDescriptor, n as AdapterProfile, nt as sqlVarcharEncode, o as MarkerReadResult, p as SqlCharCodec, q as sqlTimestampDecode, r as AdapterTarget, rt as sqlVarcharRenderOutputType, s as SQL_CHAR_CODEC_ID, t as Adapter, tt as sqlVarcharDescriptor, u as SQL_TEXT_CODEC_ID, v as SqlIntDescriptor, w as SqlVarcharDescriptor, x as SqlTimestampCodec, y as SqlTextCodec, z as sqlIntDecode } from "./ast-D8qqdDX_.mjs";
|
|
4
5
|
export { Adapter, AdapterProfile, AdapterTarget, AggregateCountFn, AggregateExpr, AggregateFn, AggregateOpFn, AndExpr, AnyCodecDescriptor, AnyDdlColumnDefault, AnyExpression, AnyFromSource, AnyInsertOnConflictAction, AnyInsertValue, AnyJsonValueProjection, AnyOperationArg, AnyParamRef, AnyQueryAst, AstRewriter, BinaryExpr, BinaryOp, CaseBranch, CaseExpr, CastExpr, CheckExpressionConstraint, Codec$1 as Codec, type CodecCallContext$1 as CodecCallContext, type CodecDescriptor$1 as CodecDescriptor, CodecJsonValueProjection, type CodecRef$1 as CodecRef, type CodecTrait$1 as CodecTrait, ColumnRef, ContractCodecRegistry, DdlColumn, DdlColumnDefault, DdlColumnDefaultVisitor, DdlColumnRenderContext, DdlNode, DdlTableConstraint, DefaultValueExpr, DeleteAst, DerivedTableSource, DescriptorCodecId, DescriptorCodecInput, DescriptorCodecJson, DescriptorCodecTraits, Direction, DoNothingConflictAction, DoUpdateSetConflictAction, EqColJoinOn, ExistsExpr, ExprVisitor, ExpressionFolder, ExpressionRewriter, ExpressionSource, ExtractCodecTypes, ForeignKeyConstraint, FunctionCallExpr, FunctionColumnDefault, FunctionSource, FunctionSourceAlias, IdentifierRef, InsertAst, InsertOnConflict, InsertValue, JoinAst, JoinOnExpr, JsonArrayAggExpr, JsonDocumentProjection, JsonObjectEntry, JsonObjectExpr, JsonValueProjectionVisitor, LimitOffsetValue, ListExpression, LiteralColumnDefault, LiteralExpr, LoweredParam, LoweredStatement, Lowerer, LowererContext, MarkerReadResult, NativeJsonValueProjection, NotExpr, NullCheckExpr, OperationExpr, OrExpr, OrderByItem, ParamRef, PreparedExecuteRequest, PreparedParamRef, PreparedStatementHandle, PrimaryKeyConstraint, ProjectionExpr, ProjectionItem, RawExpr, RawSqlExpr, RawSqlLiteral, SQL_CHAR_CODEC_ID, SQL_FLOAT_CODEC_ID, SQL_INT_CODEC_ID, SQL_TEXT_CODEC_ID, SQL_TIMESTAMP_CODEC_ID, SQL_VARCHAR_CODEC_ID, SelectAst, SelectAstOptions, SqlCharCodec, SqlCharDescriptor, SqlCodecCallContext, SqlCodecInstanceContext, SqlColumnRef, SqlConnection, SqlDriver, SqlDriverState, SqlExecuteRequest, SqlExplainResult, SqlFloatCodec, SqlFloatDescriptor, SqlIntCodec, SqlIntDescriptor, SqlQueryable, SqlStatementStats, SqlTextCodec, SqlTextDescriptor, SqlTimestampCodec, SqlTimestampDescriptor, SqlTransaction, SqlVarcharCodec, SqlVarcharDescriptor, SubqueryExpr, TableRef, TableSource, ToWhereExpr, UniqueConstraint, UpdateAst, WhereArg, WindowFn, WindowFuncExpr, aggregateFnNames, collectOrderedParamRefs, compact, frozenCodecRef, isAggregateFn, isDdlNode, isQueryAst, isWhereExpr, queryAstKinds, sqlCharColumn, sqlCharDecode, sqlCharDescriptor, sqlCharEncode, sqlCharRenderOutputType, sqlFloatColumn, sqlFloatDecode, sqlFloatDecodeJson, sqlFloatDescriptor, sqlFloatEncode, sqlFloatEncodeJson, sqlIntColumn, sqlIntDecode, sqlIntDescriptor, sqlIntEncode, sqlTextColumn, sqlTextDecode, sqlTextDescriptor, sqlTextEncode, sqlTimestampColumn, sqlTimestampDecode, sqlTimestampDecodeJson, sqlTimestampDescriptor, sqlTimestampEncode, sqlTimestampEncodeJson, sqlTimestampRenderOutputType, sqlVarcharColumn, sqlVarcharDecode, sqlVarcharDescriptor, sqlVarcharEncode, sqlVarcharRenderOutputType, whereExprKinds };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as PreparedParamRef, B as frozenCodecRef, C as LiteralExpr, D as OrExpr, E as OperationExpr, F as SubqueryExpr, G as whereExprKinds, H as isQueryAst, I as TableSource, L as UpdateAst, M as RawExpr, N as RawSqlExpr, O as OrderByItem, P as SelectAst, R as WindowFuncExpr, S as ListExpression, T as NullCheckExpr, U as isWhereExpr, V as isAggregateFn, W as queryAstKinds, _ as InsertAst, a as CastExpr, b as JsonArrayAggExpr, c as DeleteAst, d as DoUpdateSetConflictAction, f as EqColJoinOn, g as IdentifierRef, h as FunctionSource, i as CaseExpr, j as ProjectionItem, k as ParamRef, l as DerivedTableSource, m as FunctionCallExpr, n as AndExpr, o as ColumnRef, p as ExistsExpr, r as BinaryExpr, s as DefaultValueExpr, t as AggregateExpr, u as DoNothingConflictAction, v as InsertOnConflict, w as NotExpr, x as JsonObjectExpr, y as JoinAst, z as aggregateFnNames } from "./types-
|
|
1
|
+
import { A as PreparedParamRef, B as frozenCodecRef, C as LiteralExpr, D as OrExpr, E as OperationExpr, F as SubqueryExpr, G as whereExprKinds, H as isQueryAst, I as TableSource, L as UpdateAst, M as RawExpr, N as RawSqlExpr, O as OrderByItem, P as SelectAst, R as WindowFuncExpr, S as ListExpression, T as NullCheckExpr, U as isWhereExpr, V as isAggregateFn, W as queryAstKinds, _ as InsertAst, a as CastExpr, b as JsonArrayAggExpr, c as DeleteAst, d as DoUpdateSetConflictAction, f as EqColJoinOn, g as IdentifierRef, h as FunctionSource, i as CaseExpr, j as ProjectionItem, k as ParamRef, l as DerivedTableSource, m as FunctionCallExpr, n as AndExpr, o as ColumnRef, p as ExistsExpr, r as BinaryExpr, s as DefaultValueExpr, t as AggregateExpr, u as DoNothingConflictAction, v as InsertOnConflict, w as NotExpr, x as JsonObjectExpr, y as JoinAst, z as aggregateFnNames } from "./types-B7_v-z12-De5tf8LE.mjs";
|
|
2
2
|
import { a as ForeignKeyConstraint, c as PrimaryKeyConstraint, i as DdlNode, l as UniqueConstraint, n as DdlColumn, o as FunctionColumnDefault, r as DdlColumnDefault, s as LiteralColumnDefault, t as CheckExpressionConstraint, u as isDdlNode } from "./ddl-types-BGdnAbXo-DKPHPUGx.mjs";
|
|
3
3
|
import { n as compact, t as collectOrderedParamRefs } from "./util-DQQgv2j1-D6INZaRG.mjs";
|
|
4
|
-
import { A as sqlFloatDescriptor, B as sqlTextEncode, C as sqlCharDecode, D as sqlFloatColumn, E as sqlCharRenderOutputType, F as sqlIntDescriptor, G as sqlTimestampEncode, H as sqlTimestampDecode, I as sqlIntEncode, J as sqlVarcharColumn, K as sqlTimestampEncodeJson, L as sqlTextColumn, M as sqlFloatEncodeJson, N as sqlIntColumn, O as sqlFloatDecode, P as sqlIntDecode, Q as sqlVarcharRenderOutputType, R as sqlTextDecode, S as sqlCharColumn, T as sqlCharEncode, U as sqlTimestampDecodeJson, V as sqlTimestampColumn, W as sqlTimestampDescriptor, X as sqlVarcharDescriptor, Y as sqlVarcharDecode, Z as sqlVarcharEncode, _ as SqlTextDescriptor, a as SQL_FLOAT_CODEC_ID, b as SqlVarcharCodec, c as SQL_TIMESTAMP_CODEC_ID, d as SqlCharDescriptor, f as SqlFloatCodec, g as SqlTextCodec, h as SqlIntDescriptor, i as SQL_CHAR_CODEC_ID, j as sqlFloatEncode, k as sqlFloatDecodeJson, l as SQL_VARCHAR_CODEC_ID, m as SqlIntCodec, n as JsonDocumentProjection, o as SQL_INT_CODEC_ID, p as SqlFloatDescriptor, q as sqlTimestampRenderOutputType, r as NativeJsonValueProjection, s as SQL_TEXT_CODEC_ID, t as CodecJsonValueProjection, u as SqlCharCodec, v as SqlTimestampCodec, w as sqlCharDescriptor, x as SqlVarcharDescriptor, y as SqlTimestampDescriptor, z as sqlTextDescriptor } from "./ast-
|
|
4
|
+
import { A as sqlFloatDescriptor, B as sqlTextEncode, C as sqlCharDecode, D as sqlFloatColumn, E as sqlCharRenderOutputType, F as sqlIntDescriptor, G as sqlTimestampEncode, H as sqlTimestampDecode, I as sqlIntEncode, J as sqlVarcharColumn, K as sqlTimestampEncodeJson, L as sqlTextColumn, M as sqlFloatEncodeJson, N as sqlIntColumn, O as sqlFloatDecode, P as sqlIntDecode, Q as sqlVarcharRenderOutputType, R as sqlTextDecode, S as sqlCharColumn, T as sqlCharEncode, U as sqlTimestampDecodeJson, V as sqlTimestampColumn, W as sqlTimestampDescriptor, X as sqlVarcharDescriptor, Y as sqlVarcharDecode, Z as sqlVarcharEncode, _ as SqlTextDescriptor, a as SQL_FLOAT_CODEC_ID, b as SqlVarcharCodec, c as SQL_TIMESTAMP_CODEC_ID, d as SqlCharDescriptor, f as SqlFloatCodec, g as SqlTextCodec, h as SqlIntDescriptor, i as SQL_CHAR_CODEC_ID, j as sqlFloatEncode, k as sqlFloatDecodeJson, l as SQL_VARCHAR_CODEC_ID, m as SqlIntCodec, n as JsonDocumentProjection, o as SQL_INT_CODEC_ID, p as SqlFloatDescriptor, q as sqlTimestampRenderOutputType, r as NativeJsonValueProjection, s as SQL_TEXT_CODEC_ID, t as CodecJsonValueProjection, u as SqlCharCodec, v as SqlTimestampCodec, w as sqlCharDescriptor, x as SqlVarcharDescriptor, y as SqlTimestampDescriptor, z as sqlTextDescriptor } from "./ast-BJdOHZrL.mjs";
|
|
5
5
|
export { AggregateExpr, AndExpr, BinaryExpr, CaseExpr, CastExpr, CheckExpressionConstraint, CodecJsonValueProjection, ColumnRef, DdlColumn, DdlColumnDefault, DdlNode, DefaultValueExpr, DeleteAst, DerivedTableSource, DoNothingConflictAction, DoUpdateSetConflictAction, EqColJoinOn, ExistsExpr, ForeignKeyConstraint, FunctionCallExpr, FunctionColumnDefault, FunctionSource, IdentifierRef, InsertAst, InsertOnConflict, JoinAst, JsonArrayAggExpr, JsonDocumentProjection, JsonObjectExpr, ListExpression, LiteralColumnDefault, LiteralExpr, NativeJsonValueProjection, NotExpr, NullCheckExpr, OperationExpr, OrExpr, OrderByItem, ParamRef, PreparedParamRef, PrimaryKeyConstraint, ProjectionItem, RawExpr, RawSqlExpr, SQL_CHAR_CODEC_ID, SQL_FLOAT_CODEC_ID, SQL_INT_CODEC_ID, SQL_TEXT_CODEC_ID, SQL_TIMESTAMP_CODEC_ID, SQL_VARCHAR_CODEC_ID, SelectAst, SqlCharCodec, SqlCharDescriptor, SqlFloatCodec, SqlFloatDescriptor, SqlIntCodec, SqlIntDescriptor, SqlTextCodec, SqlTextDescriptor, SqlTimestampCodec, SqlTimestampDescriptor, SqlVarcharCodec, SqlVarcharDescriptor, SubqueryExpr, TableSource, UniqueConstraint, UpdateAst, WindowFuncExpr, aggregateFnNames, collectOrderedParamRefs, compact, frozenCodecRef, isAggregateFn, isDdlNode, isQueryAst, isWhereExpr, queryAstKinds, sqlCharColumn, sqlCharDecode, sqlCharDescriptor, sqlCharEncode, sqlCharRenderOutputType, sqlFloatColumn, sqlFloatDecode, sqlFloatDecodeJson, sqlFloatDescriptor, sqlFloatEncode, sqlFloatEncodeJson, sqlIntColumn, sqlIntDecode, sqlIntDescriptor, sqlIntEncode, sqlTextColumn, sqlTextDecode, sqlTextDescriptor, sqlTextEncode, sqlTimestampColumn, sqlTimestampDecode, sqlTimestampDecodeJson, sqlTimestampDescriptor, sqlTimestampEncode, sqlTimestampEncodeJson, sqlTimestampRenderOutputType, sqlVarcharColumn, sqlVarcharDecode, sqlVarcharDescriptor, sqlVarcharEncode, sqlVarcharRenderOutputType, whereExprKinds };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { c as SqlStorage } from "./sql-storage-8LqxeLAY-DH4DdUXx.mjs";
|
|
2
2
|
import "./types-UcHa2cTe.mjs";
|
|
3
|
-
import { o as AnyCodecDescriptor$1 } from "./types-
|
|
4
|
-
import { n as CodecDescriptorRegistry } from "./query-lane-context-
|
|
3
|
+
import { o as AnyCodecDescriptor$1 } from "./types-DH6Sqzxu-DfzaLX0o.mjs";
|
|
4
|
+
import { n as CodecDescriptorRegistry } from "./query-lane-context-gwWUcacE-DdWNrc8q.mjs";
|
|
5
5
|
import { CodecRef } from "@prisma/orm-framework/components/codec";
|
|
6
6
|
//#region ../../../2-sql/4-lanes/relational-core/dist/exports/codec-descriptor-registry.d.mts
|
|
7
7
|
//#region src/codec-descriptor-registry.d.ts
|