@prisma/orm-family-sql 8.0.0-rc.23-dev.8 → 8.0.0-rc.23-dev.10
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-CkybswmO.mjs → aggregate-descriptor-registry-DM1hmlq-.mjs} +2 -2
- package/dist/{aggregate-descriptor-registry-CkybswmO.mjs.map → aggregate-descriptor-registry-DM1hmlq-.mjs.map} +1 -1
- package/dist/{ast-C3itulLi.mjs → ast-BO3Wgbrl.mjs} +2 -2
- package/dist/ast-BO3Wgbrl.mjs.map +1 -0
- package/dist/{ast-BopvCTVF.d.mts → ast-CrnvUofJ.d.mts} +3 -3
- package/dist/{ast-BopvCTVF.d.mts.map → ast-CrnvUofJ.d.mts.map} +1 -1
- package/dist/builder.d.mts +3 -3
- package/dist/builder__runtime.d.mts +7 -7
- package/dist/builder__runtime.mjs +24 -15
- package/dist/builder__runtime.mjs.map +1 -1
- package/dist/builder__types.d.mts +5 -5
- package/dist/collection-methods-B6AtdlXI.d.mts +1 -0
- package/dist/{collection-methods-B82cPkgc-DY10b2Cq.d.mts → collection-methods-p_bnn5LM-B8bdfRNR.d.mts} +3 -3
- package/dist/{collection-methods-B82cPkgc-DY10b2Cq.d.mts.map → collection-methods-p_bnn5LM-B8bdfRNR.d.mts.map} +1 -1
- package/dist/{config-types-BSn4oo7q.mjs → config-types-DUvOG4yN.mjs} +2 -2
- package/dist/{config-types-BSn4oo7q.mjs.map → config-types-DUvOG4yN.mjs.map} +1 -1
- package/dist/{contract-builder-m9XW9MgR.mjs → contract-builder-Drywaj7K.mjs} +3 -3
- package/dist/{contract-builder-m9XW9MgR.mjs.map → contract-builder-Drywaj7K.mjs.map} +1 -1
- package/dist/contract-prisma7__provider.mjs +5 -5
- package/dist/contract-psl.mjs +1 -1
- package/dist/contract-psl__attribute-specs.mjs +1 -1
- package/dist/contract-psl__provider.mjs +2 -2
- package/dist/contract-ts.mjs +3 -3
- package/dist/contract-ts__config-types.mjs +1 -1
- package/dist/contract-ts__contract-builder.mjs +2 -2
- package/dist/contract.mjs +1 -1
- package/dist/contract__validators.mjs +1 -1
- package/dist/{control-DcEzEBvW.mjs → control-BJWi318s.mjs} +5 -5
- package/dist/{control-DcEzEBvW.mjs.map → control-BJWi318s.mjs.map} +1 -1
- package/dist/{control--kGmu2Ez.d.mts → control-C0Jp0muh.d.mts} +7 -7
- package/dist/{control--kGmu2Ez.d.mts.map → control-C0Jp0muh.d.mts.map} +1 -1
- package/dist/{control-adapter-BfyLe7rh-DSiEx96z.d.mts → control-adapter-BfyLe7rh-0LQGA2VV.d.mts} +4 -4
- package/dist/{control-adapter-BfyLe7rh-DSiEx96z.d.mts.map → control-adapter-BfyLe7rh-0LQGA2VV.d.mts.map} +1 -1
- package/dist/{control-adapter-xJwgaSsO.d.mts → control-adapter-DMrjnUFj.d.mts} +2 -2
- package/dist/{control-adapter-xJwgaSsO.d.mts.map → control-adapter-DMrjnUFj.d.mts.map} +1 -1
- package/dist/{db-D1d75IvM-C88quYVJ.d.mts → db-DfYeGVcu-NRittTYE.d.mts} +18 -11
- package/dist/db-DfYeGVcu-NRittTYE.d.mts.map +1 -0
- package/dist/{ddl-types-BeA1kjV1-BUcW52Dx.d.mts → ddl-types-D22OYeFy-Be5-W-5z.d.mts} +3 -3
- package/dist/{ddl-types-BeA1kjV1-BUcW52Dx.d.mts.map → ddl-types-D22OYeFy-Be5-W-5z.d.mts.map} +1 -1
- package/dist/{derived-checks-zjkmqsa_-D7VKKK_q.mjs → derived-checks-zjkmqsa_-BZv7VzY0.mjs} +2 -2
- package/dist/{derived-checks-zjkmqsa_-D7VKKK_q.mjs.map → derived-checks-zjkmqsa_-BZv7VzY0.mjs.map} +1 -1
- package/dist/{diff-bSfcDUpu.d.mts → diff-BBEq2-E2.d.mts} +2 -2
- package/dist/{diff-bSfcDUpu.d.mts.map → diff-BBEq2-E2.d.mts.map} +1 -1
- package/dist/errors.mjs +70 -1
- package/dist/errors.mjs.map +1 -0
- package/dist/{exports-WNaGWaJR-CVNygh-P.mjs → exports-WNaGWaJR-C6wltYlN.mjs} +3 -3
- package/dist/{exports-WNaGWaJR-CVNygh-P.mjs.map → exports-WNaGWaJR-C6wltYlN.mjs.map} +1 -1
- package/dist/expression-CMV-f0HM.d.mts +2 -0
- package/dist/{expression-DGu7PRyk-Do_Q7JGF.d.mts → expression-DSAx-7Ri-C4W_nQ6T.d.mts} +4 -4
- package/dist/expression-DSAx-7Ri-C4W_nQ6T.d.mts.map +1 -0
- package/dist/{expression-4Y1d1hJ_-p9KkcaqT.d.mts → expression-DmvKA8dE-D29cLTJG.d.mts} +84 -10
- package/dist/expression-DmvKA8dE-D29cLTJG.d.mts.map +1 -0
- package/dist/{expression-impl-DtbmFnnz-Dal0IYDE.mjs → expression-impl-DHdjzqE3-Cd9gP7oC.mjs} +16 -9
- package/dist/expression-impl-DHdjzqE3-Cd9gP7oC.mjs.map +1 -0
- package/dist/family.d.mts +7 -7
- package/dist/family.mjs +4 -4
- package/dist/family__control-adapter.d.mts +2 -2
- package/dist/family__control.d.mts +2 -2
- package/dist/family__control.mjs +2 -2
- package/dist/family__diff.d.mts +1 -1
- package/dist/family__ir.mjs +1 -1
- package/dist/family__migration.d.mts +1 -1
- package/dist/family__pack.d.mts +1 -1
- package/dist/family__pack.mjs +2 -2
- package/dist/functions-CLrZo2Gj.d.mts +1 -0
- package/dist/{functions-DO1k8KLB.mjs → functions-Cl_egJ2w.mjs} +3 -3
- package/dist/{functions-DO1k8KLB.mjs.map → functions-Cl_egJ2w.mjs.map} +1 -1
- package/dist/{generator-functions-Hy4pDDr9-DkN0qbPW.mjs → generator-functions-Hy4pDDr9-CAx4Z7af.mjs} +3 -3
- package/dist/{generator-functions-Hy4pDDr9-DkN0qbPW.mjs.map → generator-functions-Hy4pDDr9-CAx4Z7af.mjs.map} +1 -1
- package/dist/{index-reference--2lpz6Um-CtLxcswa.d.mts → index-reference-2EXdtnBp-BxO97DG1.d.mts} +3 -3
- package/dist/{index-reference--2lpz6Um-CtLxcswa.d.mts.map → index-reference-2EXdtnBp-BxO97DG1.d.mts.map} +1 -1
- package/dist/index-reference-C4a-sIjK.d.mts +1 -0
- package/dist/{index-2YUqocwr.d.mts → index-rlHk9lB3.d.mts} +17 -17
- package/dist/{index-2YUqocwr.d.mts.map → index-rlHk9lB3.d.mts.map} +1 -1
- package/dist/{interpreter-CVd521dx-B3prmAMy.mjs → interpreter-CVd521dx-PDiCxDLC.mjs} +4 -4
- package/dist/{interpreter-CVd521dx-B3prmAMy.mjs.map → interpreter-CVd521dx-PDiCxDLC.mjs.map} +1 -1
- package/dist/{middleware-JfHt_Ax8-rWWdDxnq.d.mts → middleware-4P5tDL8a-C1UaoUUN.d.mts} +3 -3
- package/dist/{middleware-JfHt_Ax8-rWWdDxnq.d.mts.map → middleware-4P5tDL8a-C1UaoUUN.d.mts.map} +1 -1
- package/dist/middleware-DDOdMwm4.d.mts +1 -0
- package/dist/{migration-OXM3LDdT.d.mts → migration-CkdSQ8g8.d.mts} +2 -2
- package/dist/{migration-OXM3LDdT.d.mts.map → migration-CkdSQ8g8.d.mts.map} +1 -1
- package/dist/orm-client.d.mts +22 -22
- package/dist/orm-client.d.mts.map +1 -1
- package/dist/orm-client.mjs +1399 -1278
- package/dist/orm-client.mjs.map +1 -1
- package/dist/{pack-Bn5P2Nak.d.mts → pack-7m3efDkY.d.mts} +2 -2
- package/dist/{pack-Bn5P2Nak.d.mts.map → pack-7m3efDkY.d.mts.map} +1 -1
- package/dist/{plan-CMqVpPq6-Aoza6Dp2.d.mts → plan-49sl7WSN-C22ZPSE9.d.mts} +3 -3
- package/dist/{plan-CMqVpPq6-Aoza6Dp2.d.mts.map → plan-49sl7WSN-C22ZPSE9.d.mts.map} +1 -1
- package/dist/plan-BEnXVtn1.d.mts +2 -0
- package/dist/{psl-field-resolution-GN4iup8d-CcMRk9It.mjs → psl-field-resolution-GN4iup8d-BSjTCYks.mjs} +3 -3
- package/dist/{psl-field-resolution-GN4iup8d-CcMRk9It.mjs.map → psl-field-resolution-GN4iup8d-BSjTCYks.mjs.map} +1 -1
- package/dist/query-lane-context-CNY3sTaF.d.mts +1 -0
- package/dist/{query-lane-context-vp4wQJQD-DNtizzS5.d.mts → query-lane-context-DRO74vm5-BbGhhycI.d.mts} +5 -5
- package/dist/{query-lane-context-vp4wQJQD-DNtizzS5.d.mts.map → query-lane-context-DRO74vm5-BbGhhycI.d.mts.map} +1 -1
- package/dist/relational-core.d.mts +13 -13
- package/dist/relational-core.mjs +4 -4
- 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 -4
- package/dist/relational-core__ast.mjs +3 -3
- package/dist/relational-core__codec-descriptor-registry.d.mts +2 -2
- package/dist/relational-core__collection-methods.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 +4 -4
- package/dist/relational-core__expression.mjs +1 -1
- package/dist/relational-core__functions.d.mts +2 -1
- package/dist/relational-core__functions.mjs +1 -1
- package/dist/relational-core__index-reference.d.mts +2 -2
- 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.d.mts +4 -4
- package/dist/runtime.mjs +1 -1
- package/dist/runtime__internal__prepared-query.d.mts +1 -1
- package/dist/{sql-contract-serializer-sMY3prTx-BfYfhVR_.mjs → sql-contract-serializer-sMY3prTx-D_K7uFJk.mjs} +2 -2
- package/dist/{sql-contract-serializer-sMY3prTx-BfYfhVR_.mjs.map → sql-contract-serializer-sMY3prTx-D_K7uFJk.mjs.map} +1 -1
- package/dist/{sql-execution-plan-CN-FEwrR-BEJ0-g83.d.mts → sql-execution-plan-BeuM3CeD-DIzyMDsA.d.mts} +3 -3
- package/dist/sql-execution-plan-BeuM3CeD-DIzyMDsA.d.mts.map +1 -0
- package/dist/{transaction-state-DR3nKTmH-Bs2EUG8r.d.mts → transaction-state-DR3nKTmH-DO1YOoZJ.d.mts} +9 -9
- package/dist/{transaction-state-DR3nKTmH-Bs2EUG8r.d.mts.map → transaction-state-DR3nKTmH-DO1YOoZJ.d.mts.map} +1 -1
- package/dist/{types-COXfSNOP-BKkP-EG1.d.mts → types-COXfSNOP-CA6F1reR.d.mts} +2 -2
- package/dist/{types-COXfSNOP-BKkP-EG1.d.mts.map → types-COXfSNOP-CA6F1reR.d.mts.map} +1 -1
- package/dist/types-CSORxTRT.d.mts +1 -0
- package/dist/{types-ijhejJhK-BqfwP5Cc.d.mts → types-DeimCJiI-CVQS7KCu.d.mts} +12 -9
- package/dist/types-DeimCJiI-CVQS7KCu.d.mts.map +1 -0
- package/dist/{types-DiPbLKXV-BFa2YXa4.d.mts → types-DpgxiOSn-DrRvhBfy.d.mts} +6 -6
- package/dist/{types-DiPbLKXV-BFa2YXa4.d.mts.map → types-DpgxiOSn-DrRvhBfy.d.mts.map} +1 -1
- package/dist/{types-BkTuhW3Z-BJfTjcxS.mjs → types-wn1bXh0b-CJPAJi22.mjs} +34 -6
- package/dist/types-wn1bXh0b-CJPAJi22.mjs.map +1 -0
- package/dist/{validators-qcQteqs2.mjs → validators-CWcdf_jZ.mjs} +6 -6
- package/dist/validators-CWcdf_jZ.mjs.map +1 -0
- package/package.json +18 -18
- package/dist/ast-C3itulLi.mjs.map +0 -1
- package/dist/collection-methods-Bmr-a58b.d.mts +0 -1
- package/dist/db-D1d75IvM-C88quYVJ.d.mts.map +0 -1
- package/dist/dist-CB2NpcCs.mjs +0 -71
- package/dist/dist-CB2NpcCs.mjs.map +0 -1
- package/dist/expression-4Y1d1hJ_-p9KkcaqT.d.mts.map +0 -1
- package/dist/expression-BV_SJGPu.d.mts +0 -2
- package/dist/expression-DGu7PRyk-Do_Q7JGF.d.mts.map +0 -1
- package/dist/expression-impl-DtbmFnnz-Dal0IYDE.mjs.map +0 -1
- package/dist/functions-LZT-hFcE.d.mts +0 -73
- package/dist/functions-LZT-hFcE.d.mts.map +0 -1
- package/dist/index-reference-BPcC09GP.d.mts +0 -1
- package/dist/middleware-Dp3CD7yZ.d.mts +0 -1
- package/dist/plan-DINEcqC1.d.mts +0 -2
- package/dist/query-lane-context-D0Yc3E72.d.mts +0 -1
- package/dist/sql-execution-plan-CN-FEwrR-BEJ0-g83.d.mts.map +0 -1
- package/dist/types-B62vy44g.d.mts +0 -1
- package/dist/types-BkTuhW3Z-BJfTjcxS.mjs.map +0 -1
- package/dist/types-ijhejJhK-BqfwP5Cc.d.mts.map +0 -1
- package/dist/validators-qcQteqs2.mjs.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { c as AnyExpression } from "./types-
|
|
2
|
-
import {
|
|
3
|
-
//#region ../../../2-sql-family/4-lanes/relational-core/dist/expression-
|
|
1
|
+
import { c as AnyExpression } from "./types-DeimCJiI-CVQS7KCu.mjs";
|
|
2
|
+
import { D as ScopeField, c as Expression } from "./expression-DmvKA8dE-D29cLTJG.mjs";
|
|
3
|
+
//#region ../../../2-sql-family/4-lanes/relational-core/dist/expression-DSAx-7Ri.d.mts
|
|
4
4
|
//#region src/expression-impl.d.ts
|
|
5
5
|
/**
|
|
6
6
|
* Runtime wrapper around a relational-core AST expression node. Carries ScopeField metadata (codecId, nullable) so aggregate-like combinators can propagate the input codec onto their result.
|
|
@@ -19,4 +19,4 @@ declare class ExpressionImpl<T extends ScopeField = ScopeField> implements Expre
|
|
|
19
19
|
}
|
|
20
20
|
//#endregion
|
|
21
21
|
export { ExpressionImpl as t };
|
|
22
|
-
//# sourceMappingURL=expression-
|
|
22
|
+
//# sourceMappingURL=expression-DSAx-7Ri-C4W_nQ6T.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"expression-DSAx-7Ri-C4W_nQ6T.d.mts","names":[],"sources":["../../../../2-sql-family/4-lanes/relational-core/dist/expression-DSAx-7Ri.d.mts"],"mappings":";;;;;;;;;;;cAUc,eAAe,UAAU,aAAa,uBAAuB,WAAW;mBACnE;mBACA;WACR,YAAY;EACrB,YAAY,KAAK,eAAe,YAAY,GAAG,gBAAgB;EAC/D,YAAY;EACZ,sBAAsB"}
|
|
@@ -1,13 +1,78 @@
|
|
|
1
1
|
import { l as SqlStorage } from "./sql-storage-B_AM6tU1-BOPQxXo7.mjs";
|
|
2
|
-
import { w as QueryOperationReturn } from "./types-DNTLudNR-DiVulPhL.mjs";
|
|
2
|
+
import { D as QueryOperationTypesBase, w as QueryOperationReturn } from "./types-DNTLudNR-DiVulPhL.mjs";
|
|
3
3
|
import "./types-CXRxo_TK.mjs";
|
|
4
|
-
import { t as SqlLoweringSpec } from "./index-BWWwt5hB.mjs";
|
|
5
|
-
import { At as
|
|
4
|
+
import { i as SqlOperationEntry, t as SqlLoweringSpec } from "./index-BWWwt5hB.mjs";
|
|
5
|
+
import { At as RawQueryAst, E as CodecRef$1, Nt as RawSqlLiteral, Pt as SelectAst, Q as InsertAst, Ut as UpdateAst, c as AnyExpression, j as DeleteAst, jt as RawQueryColumn, wt as ParamRef } from "./types-DeimCJiI-CVQS7KCu.mjs";
|
|
6
6
|
import { l as SqlStatementStats } from "./driver-types-Bobm0hWv-B9rTP8XQ.mjs";
|
|
7
|
-
import { n as SqlQueryPlan } from "./plan-
|
|
7
|
+
import { n as SqlQueryPlan } from "./plan-49sl7WSN-C22ZPSE9.mjs";
|
|
8
8
|
import { Contract } from "@prisma/orm-framework/contract/types";
|
|
9
9
|
import { ParamSpec } from "@prisma/orm-framework/operations";
|
|
10
|
-
//#region ../../../2-sql-family/4-lanes/relational-core/dist/expression-
|
|
10
|
+
//#region ../../../2-sql-family/4-lanes/relational-core/dist/expression-DmvKA8dE.d.mts
|
|
11
|
+
//#region src/functions.d.ts
|
|
12
|
+
type BooleanCodecType = {
|
|
13
|
+
codecId: 'pg/bool@1';
|
|
14
|
+
nullable: boolean;
|
|
15
|
+
};
|
|
16
|
+
declare const SubqueryMarker: unique symbol;
|
|
17
|
+
type Subquery<RowType extends Record<string, ScopeField>> = {
|
|
18
|
+
[SubqueryMarker]: RowType;
|
|
19
|
+
buildAst(): SelectAst;
|
|
20
|
+
getRowFields(): Record<string, ScopeField>;
|
|
21
|
+
};
|
|
22
|
+
/** What the function surface reads from a query context: the codec types and the registered query operations. */
|
|
23
|
+
type FunctionsContext = {
|
|
24
|
+
readonly codecTypes: CodecTypesBase;
|
|
25
|
+
readonly queryOperationTypes: QueryOperationTypesBase;
|
|
26
|
+
};
|
|
27
|
+
type DeriveExtFunctions<OT extends QueryOperationTypesBase> = { [K in keyof OT]: OT[K]['impl']; };
|
|
28
|
+
type BuiltinFunctions<CT extends Record<string, {
|
|
29
|
+
readonly input: unknown;
|
|
30
|
+
}>> = {
|
|
31
|
+
eq: <CodecId extends string>(a: CodecExpression<CodecId, boolean, CT> | null, b: CodecExpression<CodecId, boolean, CT> | null) => Expression<BooleanCodecType>;
|
|
32
|
+
ne: <CodecId extends string, N extends boolean>(a: CodecExpression<CodecId, N, CT> | null, b: CodecExpression<CodecId, N, CT> | null) => Expression<BooleanCodecType>;
|
|
33
|
+
gt: <CodecId extends string, N extends boolean>(a: CodecExpression<CodecId, N, CT>, b: CodecExpression<CodecId, N, CT>) => Expression<BooleanCodecType>;
|
|
34
|
+
gte: <CodecId extends string, N extends boolean>(a: CodecExpression<CodecId, N, CT>, b: CodecExpression<CodecId, N, CT>) => Expression<BooleanCodecType>;
|
|
35
|
+
lt: <CodecId extends string, N extends boolean>(a: CodecExpression<CodecId, N, CT>, b: CodecExpression<CodecId, N, CT>) => Expression<BooleanCodecType>;
|
|
36
|
+
lte: <CodecId extends string, N extends boolean>(a: CodecExpression<CodecId, N, CT>, b: CodecExpression<CodecId, N, CT>) => Expression<BooleanCodecType>;
|
|
37
|
+
and: (...ands: CodecExpression<'pg/bool@1', boolean, CT>[]) => Expression<BooleanCodecType>;
|
|
38
|
+
or: (...ors: CodecExpression<'pg/bool@1', boolean, CT>[]) => Expression<BooleanCodecType>;
|
|
39
|
+
exists: (subquery: Subquery<Record<string, ScopeField>>) => Expression<BooleanCodecType>;
|
|
40
|
+
notExists: (subquery: Subquery<Record<string, ScopeField>>) => Expression<BooleanCodecType>;
|
|
41
|
+
in: {
|
|
42
|
+
<CodecId extends string>(expr: Expression<{
|
|
43
|
+
codecId: CodecId;
|
|
44
|
+
nullable: boolean;
|
|
45
|
+
}>, subquery: Subquery<Record<string, {
|
|
46
|
+
codecId: CodecId;
|
|
47
|
+
nullable: boolean;
|
|
48
|
+
}>>): Expression<BooleanCodecType>;
|
|
49
|
+
<CodecId extends string>(expr: Expression<{
|
|
50
|
+
codecId: CodecId;
|
|
51
|
+
nullable: boolean;
|
|
52
|
+
}>, values: Array<CodecExpression<CodecId, boolean, CT>>): Expression<BooleanCodecType>;
|
|
53
|
+
};
|
|
54
|
+
notIn: {
|
|
55
|
+
<CodecId extends string>(expr: Expression<{
|
|
56
|
+
codecId: CodecId;
|
|
57
|
+
nullable: boolean;
|
|
58
|
+
}>, subquery: Subquery<Record<string, {
|
|
59
|
+
codecId: CodecId;
|
|
60
|
+
nullable: boolean;
|
|
61
|
+
}>>): Expression<BooleanCodecType>;
|
|
62
|
+
<CodecId extends string>(expr: Expression<{
|
|
63
|
+
codecId: CodecId;
|
|
64
|
+
nullable: boolean;
|
|
65
|
+
}>, values: Array<CodecExpression<CodecId, boolean, CT>>): Expression<BooleanCodecType>;
|
|
66
|
+
};
|
|
67
|
+
readonly raw: RawSqlTag;
|
|
68
|
+
};
|
|
69
|
+
/** The functions a query's callbacks receive: the built-in ones and every query operation the contract's target and extensions register. */
|
|
70
|
+
type Functions<QC extends FunctionsContext> = BuiltinFunctions<QC['codecTypes']> & DeriveExtFunctions<QC['queryOperationTypes']>;
|
|
71
|
+
/**
|
|
72
|
+
* The function surface for a contract: the built-in functions, and each registered query operation's implementation under its name.
|
|
73
|
+
*/
|
|
74
|
+
declare function createFunctions<QC extends FunctionsContext>(operations: Readonly<Record<string, SqlOperationEntry>>, rawCodecInferer: RawCodecInferer): Functions<QC>;
|
|
75
|
+
//#endregion
|
|
11
76
|
//#region src/expression.d.ts
|
|
12
77
|
type ScopeField = {
|
|
13
78
|
codecId: string;
|
|
@@ -262,10 +327,19 @@ type RawSqlTag = (strings: TemplateStringsArray, ...values: RawSqlInterpolation[
|
|
|
262
327
|
type RawSqlStatementTag = (strings: TemplateStringsArray, ...values: RawSqlInterpolation[]) => RawSqlStatementBuilder;
|
|
263
328
|
/** Interpolations that occupy a single position in the parts list. */
|
|
264
329
|
type RawExprInterpolation = Expression<ScopeField> | ParamRef | RawSqlLiteral;
|
|
265
|
-
|
|
266
|
-
type
|
|
330
|
+
declare const RowReturningStatementMarker: unique symbol;
|
|
331
|
+
type RowReturningStatement<RowType extends Record<string, ScopeField>> = {
|
|
332
|
+
readonly [RowReturningStatementMarker]?: RowType;
|
|
333
|
+
buildAst(): InsertAst | UpdateAst | DeleteAst;
|
|
334
|
+
};
|
|
335
|
+
/**
|
|
336
|
+
* Interpolations a raw template accepts. A {@link RawRowQuery} splices its own
|
|
337
|
+
* parts in; a builder query or a row-returning builder mutation lands as one
|
|
338
|
+
* statement AST part.
|
|
339
|
+
*/
|
|
340
|
+
type RawSqlInterpolation = RawExprInterpolation | RawRowQuery | Subquery<Record<string, ScopeField>> | RowReturningStatement<Record<string, ScopeField>>;
|
|
267
341
|
/**
|
|
268
|
-
* Create a tagged-template builder for raw SQL. The returned tag accepts SQL string fragments interleaved with typed {@link Expression}, {@link ParamRef}, row-returning {@link RawRowQuery}, or bare {@link RawSqlLiteral} interpolations. Call `.returns(spec)` on the result to obtain a typed {@link Expression} whose AST is a {@link RawExpr}.
|
|
342
|
+
* Create a tagged-template builder for raw SQL. The returned tag accepts SQL string fragments interleaved with typed {@link Expression}, {@link ParamRef}, row-returning {@link RawRowQuery}, builder query ({@link Subquery}), row-returning builder mutation ({@link RowReturningStatement}), or bare {@link RawSqlLiteral} interpolations. Call `.returns(spec)` on the result to obtain a typed {@link Expression} whose AST is a {@link RawExpr}.
|
|
269
343
|
*
|
|
270
344
|
* Supplied with a {@link RawPlanContext}, the tag also terminates in statement position: `.returnsRow(spec)` and `.affectedCount()` mint a {@link SqlQueryPlan} whose AST is a {@link RawQueryAst}. The context is stated once, here, so authoring sites carry nothing but the template and its terminator.
|
|
271
345
|
*
|
|
@@ -274,5 +348,5 @@ type RawSqlInterpolation = RawExprInterpolation | RawRowQuery;
|
|
|
274
348
|
declare function createRawSql(adapter: RawCodecInferer, planContext: RawPlanContext): RawSqlStatementTag;
|
|
275
349
|
declare function createRawSql(adapter: RawCodecInferer): RawSqlTag;
|
|
276
350
|
//#endregion
|
|
277
|
-
export {
|
|
278
|
-
//# sourceMappingURL=expression-
|
|
351
|
+
export { SubqueryMarker as A, RawSqlTag as C, ScopeField as D, ScalarListExpression as E, createRawSql as F, isExpression as I, param as L, buildOperation as M, codecOf as N, StorageColumnScopeField as O, createFunctions as P, toExpr as R, RawSqlStatementTag as S, RowReturningStatementMarker as T, RawRowSpec as _, CodecExpression as a, RawSqlInterpolation as b, Expression as c, NoReservedRowColumn as d, RawAffectedCountQuery as f, RawRowQuery as g, RawRow as h, BuiltinFunctions as i, TraitExpression as j, Subquery as k, Functions as l, RawPlanContext as m, BooleanCodecType as n, CodecTypesBase as o, RawCodecInferer as p, BuildOperationSpec as r, CodecValue as s, AffectedCount as t, FunctionsContext as u, RawRowSpecEntry as v, RowReturningStatement as w, RawSqlStatementBuilder as x, RawSqlBuilder as y };
|
|
352
|
+
//# sourceMappingURL=expression-DmvKA8dE-D29cLTJG.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"expression-DmvKA8dE-D29cLTJG.d.mts","names":[],"sources":["../../../../2-sql-family/4-lanes/relational-core/dist/expression-DmvKA8dE.d.mts"],"mappings":"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"}
|
package/dist/{expression-impl-DtbmFnnz-Dal0IYDE.mjs → expression-impl-DHdjzqE3-Cd9gP7oC.mjs}
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { A as ParamRef, D as OperationExpr, N as RawExpr, P as RawQueryAst } from "./types-
|
|
1
|
+
import { A as ParamRef, D as OperationExpr, N as RawExpr, P as RawQueryAst } from "./types-wn1bXh0b-CJPAJi22.mjs";
|
|
2
2
|
import { t as planFromAst } from "./plan-Dh0LbYIv-ubBSdUgl.mjs";
|
|
3
3
|
import { invariant } from "@prisma/orm-framework/utils/assertions";
|
|
4
4
|
import { runtimeError } from "@prisma/orm-framework/components/runtime";
|
|
5
|
-
//#region ../../../2-sql-family/4-lanes/relational-core/dist/expression-impl-
|
|
5
|
+
//#region ../../../2-sql-family/4-lanes/relational-core/dist/expression-impl-DHdjzqE3.mjs
|
|
6
6
|
/**
|
|
7
7
|
* Resolve a raw value or an Expression into an AST expression node.
|
|
8
8
|
*
|
|
@@ -54,21 +54,28 @@ function buildOperation(spec) {
|
|
|
54
54
|
buildAst: () => op
|
|
55
55
|
};
|
|
56
56
|
}
|
|
57
|
+
function isBuildable(value) {
|
|
58
|
+
return isExpression(value);
|
|
59
|
+
}
|
|
57
60
|
function resolveInterpolation(adapter, value) {
|
|
58
|
-
if (isExpression(value)) return value.buildAst();
|
|
59
61
|
if (value instanceof ParamRef) return value;
|
|
60
62
|
if (typeof value === "number" || typeof value === "bigint" || typeof value === "string" || typeof value === "boolean" || value instanceof Uint8Array) return ParamRef.of(value, { codec: { codecId: adapter.inferCodec(value) } });
|
|
61
63
|
throw runtimeError("RUNTIME.RAW_SQL_UNSUPPORTED_INTERPOLATION", "unsupported JS value type for raw-SQL interpolation: wrap this value in `param(...)` with an explicit codec");
|
|
62
64
|
}
|
|
63
|
-
function
|
|
64
|
-
|
|
65
|
+
function templatePart(adapter, value) {
|
|
66
|
+
if (!isBuildable(value)) return [resolveInterpolation(adapter, value)];
|
|
67
|
+
const ast = value.buildAst();
|
|
68
|
+
if (ast instanceof RawQueryAst) return [...ast.parts];
|
|
69
|
+
if (isMutationAst(ast) && (ast.returning?.length ?? 0) === 0) throw runtimeError("RUNTIME.RAW_SQL_UNSUPPORTED_INTERPOLATION", `an embedded ${ast.kind} must return rows: call \`.returning(...)\` on the builder before interpolating it`, { kind: ast.kind });
|
|
70
|
+
return [ast];
|
|
71
|
+
}
|
|
72
|
+
function isMutationAst(ast) {
|
|
73
|
+
return ast.kind === "insert" || ast.kind === "update" || ast.kind === "delete";
|
|
65
74
|
}
|
|
66
75
|
function templateParts(adapter, strings, values) {
|
|
67
76
|
const parts = [strings[0] ?? ""];
|
|
68
77
|
values.forEach((value, i) => {
|
|
69
|
-
|
|
70
|
-
else parts.push(resolveInterpolation(adapter, value));
|
|
71
|
-
parts.push(strings[i + 1] ?? "");
|
|
78
|
+
parts.push(...templatePart(adapter, value), strings[i + 1] ?? "");
|
|
72
79
|
});
|
|
73
80
|
return parts;
|
|
74
81
|
}
|
|
@@ -168,4 +175,4 @@ var ExpressionImpl = class {
|
|
|
168
175
|
//#endregion
|
|
169
176
|
export { isExpression as a, createRawSql as i, buildOperation as n, param as o, codecOf as r, toExpr as s, ExpressionImpl as t };
|
|
170
177
|
|
|
171
|
-
//# sourceMappingURL=expression-impl-
|
|
178
|
+
//# sourceMappingURL=expression-impl-DHdjzqE3-Cd9gP7oC.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"expression-impl-DHdjzqE3-Cd9gP7oC.mjs","names":[],"sources":["../../../../2-sql-family/4-lanes/relational-core/dist/expression-impl-DHdjzqE3.mjs"],"sourcesContent":["import { A as ParamRef, D as OperationExpr, N as RawExpr, P as RawQueryAst } from \"./types-wn1bXh0b.mjs\";\nimport { t as planFromAst } from \"./plan-Dh0LbYIv.mjs\";\nimport { runtimeError } from \"@internal/framework-components/runtime\";\nimport { invariant } from \"@internal/utils/assertions\";\n//#region src/expression.ts\n/**\n* Resolve a raw value or an Expression into an AST expression node.\n*\n* When `value` is an object with a callable `buildAst`, the AST it wraps is returned. Otherwise the value is embedded as a ParamRef tagged with the caller-supplied {@link CodecRef} (when known). The runtime resolves the ref via `contractCodecs.forCodecRef(codec)`; content-keyed memoisation collapses repeated lookups for the same logical column onto one shared codec.\n*\n* Operation implementations that compare a column-bound expression to a user value derive the column's {@link CodecRef} from the column-bound side (via {@link codecOf}) and forward it here so encode-side dispatch resolves to the per-instance codec for parameterized codec ids (`vector(1024)` vs. `vector(1536)`).\n*/\nfunction toExpr(value, codec) {\n\tif (isExpression(value)) return value.buildAst();\n\tif (codec === void 0) throw runtimeError(\"RUNTIME.PARAM_REF_CODEC_REQUIRED\", `Cannot construct a ParamRef for a ${value === null ? \"null\" : typeof value} value without an explicit codec. Provide a CodecRef at the call site or use a column-bound builder path.`);\n\treturn ParamRef.of(value, { codec });\n}\n/**\n* Construct a `ParamRef` for a value whose codec identity is known at call time. Use this when interpolating a value into a raw SQL expression and the codec cannot be inferred from context — e.g. `param(myDate, { codecId: 'pg/timestamptz-temporal@1' })`.\n*/\nfunction param(value, opts) {\n\treturn ParamRef.of(value, { codec: { codecId: opts.codecId } });\n}\n/**\n* Derive the {@link CodecRef} carried by an expression-like value.\n*\n* Resolution order:\n* 1. `wrapper.returnType.codec` — scope-level codec when the scope was built from contract storage.\n* 2. `{ codecId: wrapper.returnType.codecId }` — minimal ref derived from the expression's declared codec id (covers synthetic expressions like `count()` whose returnType has a known codec id but no explicit column binding).\n*\n* Returns `undefined` for raw scalar values (non-expression-like).\n*/\nfunction codecOf(value) {\n\tif (!isExpression(value)) return void 0;\n\treturn value.returnType?.codec ?? (value.returnType?.codecId ? { codecId: value.returnType.codecId } : void 0);\n}\nfunction isExpression(value) {\n\treturn typeof value === \"object\" && value !== null && \"buildAst\" in value && typeof value.buildAst === \"function\";\n}\n/**\n* Construct an OperationExpr AST node and wrap it as a typed Expression. Operation implementations use this to turn their user-facing arguments into the AST node the compilation pipeline eventually lowers to SQL.\n*/\nfunction buildOperation(spec) {\n\tconst [self, ...rest] = spec.args;\n\tconst op = new OperationExpr({\n\t\tmethod: spec.method,\n\t\tself,\n\t\targs: rest.length > 0 ? rest : void 0,\n\t\treturns: spec.returns,\n\t\tlowering: spec.lowering\n\t});\n\treturn {\n\t\treturnType: spec.returns,\n\t\tbuildAst: () => op\n\t};\n}\nfunction isBuildable(value) {\n\treturn isExpression(value);\n}\nfunction resolveInterpolation(adapter, value) {\n\tif (value instanceof ParamRef) return value;\n\tif (typeof value === \"number\" || typeof value === \"bigint\" || typeof value === \"string\" || typeof value === \"boolean\" || value instanceof Uint8Array) return ParamRef.of(value, { codec: { codecId: adapter.inferCodec(value) } });\n\tthrow runtimeError(\"RUNTIME.RAW_SQL_UNSUPPORTED_INTERPOLATION\", \"unsupported JS value type for raw-SQL interpolation: wrap this value in `param(...)` with an explicit codec\");\n}\nfunction templatePart(adapter, value) {\n\tif (!isBuildable(value)) return [resolveInterpolation(adapter, value)];\n\tconst ast = value.buildAst();\n\tif (ast instanceof RawQueryAst) return [...ast.parts];\n\tif (isMutationAst(ast) && (ast.returning?.length ?? 0) === 0) throw runtimeError(\"RUNTIME.RAW_SQL_UNSUPPORTED_INTERPOLATION\", `an embedded ${ast.kind} must return rows: call \\`.returning(...)\\` on the builder before interpolating it`, { kind: ast.kind });\n\treturn [ast];\n}\nfunction isMutationAst(ast) {\n\treturn ast.kind === \"insert\" || ast.kind === \"update\" || ast.kind === \"delete\";\n}\nfunction templateParts(adapter, strings, values) {\n\tconst parts = [strings[0] ?? \"\"];\n\tvalues.forEach((value, i) => {\n\t\tparts.push(...templatePart(adapter, value), strings[i + 1] ?? \"\");\n\t});\n\treturn parts;\n}\n/**\n* Normalizes each authored entry to a {@link RawQueryColumn}. The record is\n* assembled with `Object.fromEntries`, which defines each key as an own\n* property: a spec built at runtime with a `__proto__` key reaches the AST,\n* which refuses it by name, rather than silently setting the record's\n* prototype and leaving the column to vanish.\n*/\nfunction resolveRowSpec(spec) {\n\treturn Object.fromEntries(Object.entries(spec).map(([name, entry]) => [name, typeof entry === \"string\" ? {\n\t\tcodecId: entry,\n\t\tnullable: false\n\t} : {\n\t\tcodecId: entry.codecId,\n\t\tnullable: entry.nullable ?? false\n\t}]));\n}\nfunction createRawSql(adapter, planContext) {\n\tif (planContext === void 0) return (strings, ...values) => new RawSqlBuilderImpl(templateParts(adapter, strings, values));\n\tconst context = planContext;\n\treturn (strings, ...values) => new RawSqlStatementBuilderImpl(templateParts(adapter, strings, values), context);\n}\nvar RawSqlBuilderImpl = class {\n\tparts;\n\tconstructor(parts) {\n\t\tthis.parts = parts;\n\t}\n\treturns(spec) {\n\t\tconst codecId = typeof spec === \"string\" ? spec : spec.codecId;\n\t\tconst nullable = typeof spec === \"string\" ? false : spec.nullable ?? false;\n\t\tconst paramSpec = {\n\t\t\tcodecId,\n\t\t\tnullable\n\t\t};\n\t\tconst node = new RawExpr({\n\t\t\tparts: this.parts,\n\t\t\treturns: paramSpec\n\t\t});\n\t\treturn {\n\t\t\treturnType: {\n\t\t\t\tcodecId,\n\t\t\t\tnullable\n\t\t\t},\n\t\t\tbuildAst: () => node\n\t\t};\n\t}\n};\nvar RawSqlStatementBuilderImpl = class extends RawSqlBuilderImpl {\n\tplanContext;\n\tconstructor(parts, planContext) {\n\t\tsuper(parts);\n\t\tthis.planContext = planContext;\n\t}\n\treturnsRow(spec) {\n\t\tconst node = RawQueryAst.rows(this.parts, resolveRowSpec(spec));\n\t\tconst result = node.result;\n\t\tinvariant(result.kind === \"rows\", \"RawQueryAst.rows built a non-rows result\");\n\t\treturn {\n\t\t\treturns: result.columns,\n\t\t\tbuildAst: () => node,\n\t\t\tbuild: () => this.planFor(node)\n\t\t};\n\t}\n\taffectedCount() {\n\t\tconst node = RawQueryAst.affectedCount(this.parts);\n\t\treturn { build: () => this.planFor(node) };\n\t}\n\tplanFor(node) {\n\t\treturn planFromAst(node, this.planContext.contract, this.planContext.laneId);\n\t}\n};\n//#endregion\n//#region src/expression-impl.ts\n/**\n* Runtime wrapper around a relational-core AST expression node. Carries ScopeField metadata (codecId, nullable) so aggregate-like combinators can propagate the input codec onto their result.\n*\n* `returnType.codec` records the column-bound codec ref when the field-proxy knows the binding — both the namespaced form (`f.user.email` → `ColumnRef`) and the top-level shortcut (`f.email` → `IdentifierRef`) stamp the ref derived from contract storage. `codecOf(expression)` exposes it for operation implementations forwarding the ref to `toExpr`.\n*\n* `projectionAst` carries the descriptor-lowered rendering of the expression, where a target declares one (e.g. SQLite's `CAST(count(*) AS TEXT)`). Lowering exists to carry the value across the driver boundary, so only the projection site consumes it — predicate and ordering positions (`buildAst()`) keep the plain form, where the rendering would change SQL semantics.\n*/\nvar ExpressionImpl = class {\n\tast;\n\tprojectionAst;\n\treturnType;\n\tconstructor(ast, returnType, projectionAst) {\n\t\tthis.ast = ast;\n\t\tthis.returnType = returnType;\n\t\tthis.projectionAst = projectionAst;\n\t}\n\tbuildAst() {\n\t\treturn this.ast;\n\t}\n\tbuildProjectionAst() {\n\t\treturn this.projectionAst ?? this.ast;\n\t}\n};\n//#endregion\nexport { isExpression as a, createRawSql as i, buildOperation as n, param as o, codecOf as r, toExpr as s, ExpressionImpl as t };\n\n//# sourceMappingURL=expression-impl-DHdjzqE3.mjs.map"],"mappings":"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"}
|
package/dist/family.d.mts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { n as resolveStorageTable, t as ResolvedStorageTable } from "./resolve-storage-table-D1rXCcCk.mjs";
|
|
2
2
|
import { h as checkSqlDefaultText } from "./validators-Dt-19ywK.mjs";
|
|
3
|
-
import { n as Lowerer, r as SqlControlAdapter, t as ExecuteRequestLowerer } from "./control-adapter-BfyLe7rh-
|
|
4
|
-
import { C as SqlPlannerConflict, D as SqlPlannerResult, E as SqlPlannerFailureResult, O as SqlPlannerSuccessResult, S as SqlPlanTargetDetails, T as SqlPlannerConflictLocation, _ as SqlMigrationRunnerExecuteCallbacks, a as ResolveIdentityValueInput, b as SqlMigrationRunnerResult, c as SqlMigrationPlan, d as SqlMigrationPlanOperationStep, f as SqlMigrationPlanOperationTarget, g as SqlMigrationRunnerErrorCode, h as SqlMigrationRunner, i as FieldEventContext, k as StorageTypePlanResult, l as SqlMigrationPlanContractInfo, m as SqlMigrationPlannerPlanOptions, n as CreateSqlMigrationPlanOptions, o as SqlControlAdapterDescriptor, p as SqlMigrationPlanner, r as FieldEvent, s as SqlControlExtensionDescriptor, t as CodecControlHooks, u as SqlMigrationPlanOperation, v as SqlMigrationRunnerExecuteOptions, w as SqlPlannerConflictKind, x as SqlMigrationRunnerSuccessValue, y as SqlMigrationRunnerFailure } from "./types-COXfSNOP-
|
|
3
|
+
import { n as Lowerer, r as SqlControlAdapter, t as ExecuteRequestLowerer } from "./control-adapter-BfyLe7rh-0LQGA2VV.mjs";
|
|
4
|
+
import { C as SqlPlannerConflict, D as SqlPlannerResult, E as SqlPlannerFailureResult, O as SqlPlannerSuccessResult, S as SqlPlanTargetDetails, T as SqlPlannerConflictLocation, _ as SqlMigrationRunnerExecuteCallbacks, a as ResolveIdentityValueInput, b as SqlMigrationRunnerResult, c as SqlMigrationPlan, d as SqlMigrationPlanOperationStep, f as SqlMigrationPlanOperationTarget, g as SqlMigrationRunnerErrorCode, h as SqlMigrationRunner, i as FieldEventContext, k as StorageTypePlanResult, l as SqlMigrationPlanContractInfo, m as SqlMigrationPlannerPlanOptions, n as CreateSqlMigrationPlanOptions, o as SqlControlAdapterDescriptor, p as SqlMigrationPlanner, r as FieldEvent, s as SqlControlExtensionDescriptor, t as CodecControlHooks, u as SqlMigrationPlanOperation, v as SqlMigrationRunnerExecuteOptions, w as SqlPlannerConflictKind, x as SqlMigrationRunnerSuccessValue, y as SqlMigrationRunnerFailure } from "./types-COXfSNOP-CA6F1reR.mjs";
|
|
5
5
|
import { n as SqlSchemaDiffInput, r as SqlSchemaDiffResult, t as SqlSchemaDiffFn } from "./schema-differ-DmP74bB8-BXkhxcPs.mjs";
|
|
6
|
-
import { $ as SqlDescribedContractSpace, $t as fieldOfColumn, A as MigrationPlannerResult, An as resolveTableRenameAgainst, At as UnfilledValue, B as PlannedStoredRewrites, Bn as sqlDefaultFunctions, Bt as columnTakesTemporaryValue, C as MarkedRemoval, Cn as readColumnDefault, Ct as TableMove, D as MigrationPlanOperation, Dn as requiredColumnOf, Dt as TableRenameRequest, E as MigrationPlan, En as requiredColumnMeta, Et as TableRenameByHand, F as NamespaceStatementTarget, Fn as rowsWithoutValueSummary, Ft as acceptedByDataType, G as RequiredColumn, Gn as storedValueSubjects, Gt as convertedColumnOf, H as ReadReportedDefault, Hn as sqlTypeLookupsOf, Ht as contractNamespaceToSchemaIR, I as NoTable, In as runnerFailure, It as appliedStatementsInOrder, J as SchemaTables, Jn as unknownCallNames, Jt as detectDestructiveChanges, K as RequiredColumnMark, Kn as subjectsOfCalls, Kt as createMigrationPlan, L as PlanFieldEventOperationsOptions, Ln as runnerSuccess, Lt as assembleAuthoringContributions, M as ModelTable, Mn as rowsHoldingValueMeta, Mt as VariantRowRewrite, N as NO_RENAMED_ORIGINS, Nn as rowsHoldingValueOf, Nt as WorkingSchemaOrigins, O as MigrationPlanner, On as requiredColumnsOfMigration, Ot as TargetMigrationsCapability, P as NamespaceRename, Pn as rowsWithoutValueFailure, Q as SqlDefaultFunctionName, Qt as fieldEventStorage, R as PlannedStatement, Rn as scalarTypeNamesOf, Rt as backfillOfDefaultedField, S as JsonPathStep, Sn as plannerSuccess, St as TABLE_NAME_CASE_CHANGED_CODE, T as MigrationOperationPolicy, Tn as removalsOfMigration, Tt as TableRename, U as ReportedBody, Un as storageNameOfOperation, Ut as contractToSchemaIR, V as ReadColumnDefault, Vn as sqlOfSlot, Vt as contractColumns, W as ReportedLiteralDefault, Wn as storedValueOperationIndexes, Wt as convertedColumnMeta, X as SqlControlFamilyInstance, Xn as unmatchedTableRename, Xt as encodeStoredValue, Y as SingleOperationCall, Yn as unmatchedColumnRename, Yt as detectTableNameCaseChanges, Z as SqlControlTargetDescriptor, Zn as unnamedFieldFillOf, Zt as extractCodecControlHooks, _ as FillValueCheck, _n as planStoredRewrites, _t as StoredValueReplacement, a as ColumnRename, an as jsonPathText, at as StatementColumn, b as JsonKeyPath, bn as planVariantRowRewrites, bt as SubjectStorage, c as ContractColumns, cn as modelRenameStorageEffect, ct as StatementPlanningTarget, d as ConvertedColumn, dn as partitionCallsByControlPolicy, dt as StoredKeyFillField, en as fieldRenameStorageEffect, et as SqlPslBuildContext, f as DefaultResolver, fn as partitionIssuesByControlPolicy, ft as StoredKeyRewrite, g as FieldStorageEffect, gn as planStatements, gt as StoredValueCodec, h as FieldStatementColumns, hn as planFieldEventOperations, ht as StoredValueCallClasses, i as ColumnOnOneSide, in as isUnfilledSlot, it as SqlTextSources, j as ModelStorageEffect, jn as rowsHoldingValueFailure, jt as UnnamedFieldFill, k as MigrationPlannerConflict, kn as resolveColumnRenameAgainst, kt as TargetRefusal, l as ContractToSchemaIROptions, ln as otherSpaceDeclaring, lt as StoredEnumValue, m as FieldEventCall, mn as planFieldEventCalls, mt as StoredRewriteCalls, n as CallSubjects, nn as fillKeyProblem, nt as SqlQuotingRules, o as ColumnRenameRequest, on as keepRowsEdit, ot as StatementOperations, p as DefaultResolverColumn, pn as planEnumValueRewrites, pt as StoredRewrite, q as RowsHoldingValueMark, qn as unconvertedFieldOf, qt as createSqlTextSources, r as CallWithCompanions, rn as fillValueProblem, rt as SqlSlot, s as ContractColumn, sn as keyPathOf, st as StatementOwnership, t as COLUMN_RENAME_UNMATCHED_CODE, tn as fieldStatementColumns, tt as SqlQuote, u as ControlPolicySubject, un as parseJsonPath, ut as StoredKeyFill, v as FillValueTypes, vn as planValueObjectFieldFills, vt as StoredValueRewrite, w as MigrationOperationClass, wn as readReportedDefault, wt as TableNameCaseGuardTable, x as JsonPath, xn as plannerFailure, xt as SuppressionRecord, y as INIT_ADDITIVE_POLICY, yn as planValueObjectFieldRewrites, yt as StoredValueSubject, z as PlannedStatements, zn as slotSource, zt as checkSqlExpressionText } from "./control
|
|
7
|
-
import { t as resolveIntrospectedColumnType } from "./control-adapter-
|
|
8
|
-
import { a as VerifySqlSchemaByDiffInput, c as classifySqlDiffIssue, d as verifySqlSchemaByDiff, i as StorageTypeVerdictInput, l as computeSqlDiffVerdict, n as SqlDiffVerdictInput, o as arraysEqual, r as StorageTypeVerdict, s as classifyDiffSubjectGranularity, t as SqlDiffVerdict, u as computeStorageTypeVerdict } from "./diff-
|
|
6
|
+
import { $ as SqlDescribedContractSpace, $t as fieldOfColumn, A as MigrationPlannerResult, An as resolveTableRenameAgainst, At as UnfilledValue, B as PlannedStoredRewrites, Bn as sqlDefaultFunctions, Bt as columnTakesTemporaryValue, C as MarkedRemoval, Cn as readColumnDefault, Ct as TableMove, D as MigrationPlanOperation, Dn as requiredColumnOf, Dt as TableRenameRequest, E as MigrationPlan, En as requiredColumnMeta, Et as TableRenameByHand, F as NamespaceStatementTarget, Fn as rowsWithoutValueSummary, Ft as acceptedByDataType, G as RequiredColumn, Gn as storedValueSubjects, Gt as convertedColumnOf, H as ReadReportedDefault, Hn as sqlTypeLookupsOf, Ht as contractNamespaceToSchemaIR, I as NoTable, In as runnerFailure, It as appliedStatementsInOrder, J as SchemaTables, Jn as unknownCallNames, Jt as detectDestructiveChanges, K as RequiredColumnMark, Kn as subjectsOfCalls, Kt as createMigrationPlan, L as PlanFieldEventOperationsOptions, Ln as runnerSuccess, Lt as assembleAuthoringContributions, M as ModelTable, Mn as rowsHoldingValueMeta, Mt as VariantRowRewrite, N as NO_RENAMED_ORIGINS, Nn as rowsHoldingValueOf, Nt as WorkingSchemaOrigins, O as MigrationPlanner, On as requiredColumnsOfMigration, Ot as TargetMigrationsCapability, P as NamespaceRename, Pn as rowsWithoutValueFailure, Q as SqlDefaultFunctionName, Qt as fieldEventStorage, R as PlannedStatement, Rn as scalarTypeNamesOf, Rt as backfillOfDefaultedField, S as JsonPathStep, Sn as plannerSuccess, St as TABLE_NAME_CASE_CHANGED_CODE, T as MigrationOperationPolicy, Tn as removalsOfMigration, Tt as TableRename, U as ReportedBody, Un as storageNameOfOperation, Ut as contractToSchemaIR, V as ReadColumnDefault, Vn as sqlOfSlot, Vt as contractColumns, W as ReportedLiteralDefault, Wn as storedValueOperationIndexes, Wt as convertedColumnMeta, X as SqlControlFamilyInstance, Xn as unmatchedTableRename, Xt as encodeStoredValue, Y as SingleOperationCall, Yn as unmatchedColumnRename, Yt as detectTableNameCaseChanges, Z as SqlControlTargetDescriptor, Zn as unnamedFieldFillOf, Zt as extractCodecControlHooks, _ as FillValueCheck, _n as planStoredRewrites, _t as StoredValueReplacement, a as ColumnRename, an as jsonPathText, at as StatementColumn, b as JsonKeyPath, bn as planVariantRowRewrites, bt as SubjectStorage, c as ContractColumns, cn as modelRenameStorageEffect, ct as StatementPlanningTarget, d as ConvertedColumn, dn as partitionCallsByControlPolicy, dt as StoredKeyFillField, en as fieldRenameStorageEffect, et as SqlPslBuildContext, f as DefaultResolver, fn as partitionIssuesByControlPolicy, ft as StoredKeyRewrite, g as FieldStorageEffect, gn as planStatements, gt as StoredValueCodec, h as FieldStatementColumns, hn as planFieldEventOperations, ht as StoredValueCallClasses, i as ColumnOnOneSide, in as isUnfilledSlot, it as SqlTextSources, j as ModelStorageEffect, jn as rowsHoldingValueFailure, jt as UnnamedFieldFill, k as MigrationPlannerConflict, kn as resolveColumnRenameAgainst, kt as TargetRefusal, l as ContractToSchemaIROptions, ln as otherSpaceDeclaring, lt as StoredEnumValue, m as FieldEventCall, mn as planFieldEventCalls, mt as StoredRewriteCalls, n as CallSubjects, nn as fillKeyProblem, nt as SqlQuotingRules, o as ColumnRenameRequest, on as keepRowsEdit, ot as StatementOperations, p as DefaultResolverColumn, pn as planEnumValueRewrites, pt as StoredRewrite, q as RowsHoldingValueMark, qn as unconvertedFieldOf, qt as createSqlTextSources, r as CallWithCompanions, rn as fillValueProblem, rt as SqlSlot, s as ContractColumn, sn as keyPathOf, st as StatementOwnership, t as COLUMN_RENAME_UNMATCHED_CODE, tn as fieldStatementColumns, tt as SqlQuote, u as ControlPolicySubject, un as parseJsonPath, ut as StoredKeyFill, v as FillValueTypes, vn as planValueObjectFieldFills, vt as StoredValueRewrite, w as MigrationOperationClass, wn as readReportedDefault, wt as TableNameCaseGuardTable, x as JsonPath, xn as plannerFailure, xt as SuppressionRecord, y as INIT_ADDITIVE_POLICY, yn as planValueObjectFieldRewrites, yt as StoredValueSubject, z as PlannedStatements, zn as slotSource, zt as checkSqlExpressionText } from "./control-C0Jp0muh.mjs";
|
|
7
|
+
import { t as resolveIntrospectedColumnType } from "./control-adapter-DMrjnUFj.mjs";
|
|
8
|
+
import { a as VerifySqlSchemaByDiffInput, c as classifySqlDiffIssue, d as verifySqlSchemaByDiff, i as StorageTypeVerdictInput, l as computeSqlDiffVerdict, n as SqlDiffVerdictInput, o as arraysEqual, r as StorageTypeVerdict, s as classifyDiffSubjectGranularity, t as SqlDiffVerdict, u as computeStorageTypeVerdict } from "./diff-BBEq2-E2.mjs";
|
|
9
9
|
import { i as SqlSchemaVerifierBase, n as SqlContractSerializerBase, r as SqlEntityHydrationFactory, t as SqlContractSerializer } from "./ir-CZ5Ks7EA.mjs";
|
|
10
|
-
import { t as SqlMigration } from "./migration-
|
|
11
|
-
import { i as sqlTargetTypeConstructors, r as sqlIntegerArgumentGeneratorFunctions, t as idGeneratorFunctionBindings } from "./pack-
|
|
10
|
+
import { t as SqlMigration } from "./migration-CkdSQ8g8.mjs";
|
|
11
|
+
import { i as sqlTargetTypeConstructors, r as sqlIntegerArgumentGeneratorFunctions, t as idGeneratorFunctionBindings } from "./pack-7m3efDkY.mjs";
|
|
12
12
|
import { n as DefaultMappingResult, r as mapDefault, t as DefaultMappingOptions } from "./default-mapping-CEISdj2g-B50Ag_F_.mjs";
|
|
13
13
|
import { _ as sameInNormalForm, a as InferredTypeConstructor, c as PhaseCallText, d as WrittenPslTypeCall, f as WrittenTypeChoiceCall, g as inferredTypeConstructors, h as inferColumnTypes, i as GeneratorCallsResult, l as PslTypeArgument, m as generatorCallsFor, n as ColumnTypeReadsDefault, o as InferredTypeConstructors, p as fewestArgumentsCall, r as GeneratorCallRefusal, s as IntrospectedTable, t as ColumnTypeOf, u as PslTypeCall, v as toEnumMemberName, y as writtenTypeChoiceCall } from "./psl-build-DCZaF5g4.mjs";
|
|
14
14
|
import { a as buildChildRelationField, c as inferRelations, d as toFieldName, f as toModelName, i as RelationField, l as pluralize, n as InferredRelations, o as deriveBackRelationFieldName, r as PslPrinterOptions, s as deriveRelationFieldName, t as EnumInfo, u as toEnumName } from "./psl-infer-Cr9AeccU.mjs";
|
package/dist/family.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { t as resolveStorageTable } from "./resolve-storage-table-BHLQsOza.mjs";
|
|
2
|
-
import { n as checkSqlDefaultText } from "./validators-
|
|
3
|
-
import { c as sqlTargetTypeConstructors, s as sqlIntegerArgumentGeneratorFunctions, t as idGeneratorFunctionBindings } from "./generator-functions-Hy4pDDr9-
|
|
2
|
+
import { n as checkSqlDefaultText } from "./validators-CWcdf_jZ.mjs";
|
|
3
|
+
import { c as sqlTargetTypeConstructors, s as sqlIntegerArgumentGeneratorFunctions, t as idGeneratorFunctionBindings } from "./generator-functions-Hy4pDDr9-CAx4Z7af.mjs";
|
|
4
4
|
import { a as computeStorageTypeVerdict, c as verifySqlSchemaByDiff, i as computeSqlDiffVerdict, n as classifyDiffSubjectGranularity, r as classifySqlDiffIssue, s as extractCodecControlHooks } from "./schema-verify-C3wbdviw-nQ4tG9N7.mjs";
|
|
5
|
-
import { n as SqlContractSerializerBase, t as SqlContractSerializer } from "./sql-contract-serializer-sMY3prTx-
|
|
5
|
+
import { n as SqlContractSerializerBase, t as SqlContractSerializer } from "./sql-contract-serializer-sMY3prTx-D_K7uFJk.mjs";
|
|
6
6
|
import { n as parseContractMarkerRow } from "./verify-BVk5bjdH-DhKm6hB3.mjs";
|
|
7
|
-
import { $ as requiredColumnsOfMigration, A as jsonPathText, B as planFieldEventOperations, C as fieldEventStorage, D as fillKeyProblem, E as fieldStatementColumns, F as parseJsonPath, G as planVariantRowRewrites, H as planStoredRewrites, I as partitionCallsByControlPolicy, J as readColumnDefault, K as plannerFailure, L as partitionIssuesByControlPolicy, M as keyPathOf, N as modelRenameStorageEffect, O as fillValueProblem, P as otherSpaceDeclaring, Q as requiredColumnOf, R as planEnumValueRewrites, S as encodeStoredValue, St as unnamedFieldFillOf, T as fieldRenameStorageEffect, U as planValueObjectFieldFills, V as planStatements, W as planValueObjectFieldRewrites, X as removalsOfMigration, Y as readReportedDefault, Z as requiredColumnMeta, _ as convertedColumnOf, _t as subjectsOfCalls, a as UnfilledValue, at as rowsWithoutValueFailure, b as detectDestructiveChanges, bt as unmatchedColumnRename, c as assembleAuthoringContributions, ct as runnerSuccess, d as columnTakesTemporaryValue, dt as sqlDefaultFunctions, et as resolveColumnRenameAgainst, f as contractColumns, ft as sqlOfSlot, g as convertedColumnMeta, gt as storedValueSubjects, ht as storedValueOperationIndexes, i as TABLE_NAME_CASE_CHANGED_CODE, it as rowsHoldingValueOf, j as keepRowsEdit, k as isUnfilledSlot, l as backfillOfDefaultedField, lt as scalarTypeNamesOf, m as contractToSchemaIR, mt as storageNameOfOperation, n as INIT_ADDITIVE_POLICY, nt as rowsHoldingValueFailure, o as acceptedByDataType, ot as rowsWithoutValueSummary, p as contractNamespaceToSchemaIR, pt as sqlTypeLookupsOf, q as plannerSuccess, r as NO_RENAMED_ORIGINS, rt as rowsHoldingValueMeta, s as appliedStatementsInOrder, st as runnerFailure, t as COLUMN_RENAME_UNMATCHED_CODE, tt as resolveTableRenameAgainst, u as checkSqlExpressionText, ut as slotSource, v as createMigrationPlan, vt as unconvertedFieldOf, w as fieldOfColumn, x as detectTableNameCaseChanges, xt as unmatchedTableRename, y as createSqlTextSources, yt as unknownCallNames, z as planFieldEventCalls } from "./control-
|
|
7
|
+
import { $ as requiredColumnsOfMigration, A as jsonPathText, B as planFieldEventOperations, C as fieldEventStorage, D as fillKeyProblem, E as fieldStatementColumns, F as parseJsonPath, G as planVariantRowRewrites, H as planStoredRewrites, I as partitionCallsByControlPolicy, J as readColumnDefault, K as plannerFailure, L as partitionIssuesByControlPolicy, M as keyPathOf, N as modelRenameStorageEffect, O as fillValueProblem, P as otherSpaceDeclaring, Q as requiredColumnOf, R as planEnumValueRewrites, S as encodeStoredValue, St as unnamedFieldFillOf, T as fieldRenameStorageEffect, U as planValueObjectFieldFills, V as planStatements, W as planValueObjectFieldRewrites, X as removalsOfMigration, Y as readReportedDefault, Z as requiredColumnMeta, _ as convertedColumnOf, _t as subjectsOfCalls, a as UnfilledValue, at as rowsWithoutValueFailure, b as detectDestructiveChanges, bt as unmatchedColumnRename, c as assembleAuthoringContributions, ct as runnerSuccess, d as columnTakesTemporaryValue, dt as sqlDefaultFunctions, et as resolveColumnRenameAgainst, f as contractColumns, ft as sqlOfSlot, g as convertedColumnMeta, gt as storedValueSubjects, ht as storedValueOperationIndexes, i as TABLE_NAME_CASE_CHANGED_CODE, it as rowsHoldingValueOf, j as keepRowsEdit, k as isUnfilledSlot, l as backfillOfDefaultedField, lt as scalarTypeNamesOf, m as contractToSchemaIR, mt as storageNameOfOperation, n as INIT_ADDITIVE_POLICY, nt as rowsHoldingValueFailure, o as acceptedByDataType, ot as rowsWithoutValueSummary, p as contractNamespaceToSchemaIR, pt as sqlTypeLookupsOf, q as plannerSuccess, r as NO_RENAMED_ORIGINS, rt as rowsHoldingValueMeta, s as appliedStatementsInOrder, st as runnerFailure, t as COLUMN_RENAME_UNMATCHED_CODE, tt as resolveTableRenameAgainst, u as checkSqlExpressionText, ut as slotSource, v as createMigrationPlan, vt as unconvertedFieldOf, w as fieldOfColumn, x as detectTableNameCaseChanges, xt as unmatchedTableRename, y as createSqlTextSources, yt as unknownCallNames, z as planFieldEventCalls } from "./control-BJWi318s.mjs";
|
|
8
8
|
import { t as resolveIntrospectedColumnType } from "./control-adapter-BetaUm2y.mjs";
|
|
9
9
|
import { t as arraysEqual } from "./diff-C1rFOhek.mjs";
|
|
10
10
|
import { t as SqlSchemaVerifierBase } from "./ir-DzsUDO8e.mjs";
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { i as SqlControlAdapterDescriptor, n as Lowerer, r as SqlControlAdapter, t as ExecuteRequestLowerer } from "./control-adapter-BfyLe7rh-
|
|
2
|
-
import { t as resolveIntrospectedColumnType } from "./control-adapter-
|
|
1
|
+
import { i as SqlControlAdapterDescriptor, n as Lowerer, r as SqlControlAdapter, t as ExecuteRequestLowerer } from "./control-adapter-BfyLe7rh-0LQGA2VV.mjs";
|
|
2
|
+
import { t as resolveIntrospectedColumnType } from "./control-adapter-DMrjnUFj.mjs";
|
|
3
3
|
export { type ExecuteRequestLowerer, type Lowerer, type SqlControlAdapter, type SqlControlAdapterDescriptor, resolveIntrospectedColumnType };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { h as checkSqlDefaultText } from "./validators-Dt-19ywK.mjs";
|
|
2
|
-
import { C as SqlPlannerConflict, D as SqlPlannerResult, E as SqlPlannerFailureResult, O as SqlPlannerSuccessResult, S as SqlPlanTargetDetails, T as SqlPlannerConflictLocation, _ as SqlMigrationRunnerExecuteCallbacks, a as ResolveIdentityValueInput, b as SqlMigrationRunnerResult, c as SqlMigrationPlan, d as SqlMigrationPlanOperationStep, f as SqlMigrationPlanOperationTarget, g as SqlMigrationRunnerErrorCode, h as SqlMigrationRunner, i as FieldEventContext, k as StorageTypePlanResult, l as SqlMigrationPlanContractInfo, m as SqlMigrationPlannerPlanOptions, n as CreateSqlMigrationPlanOptions, o as SqlControlAdapterDescriptor, p as SqlMigrationPlanner, r as FieldEvent, s as SqlControlExtensionDescriptor, t as CodecControlHooks, u as SqlMigrationPlanOperation, v as SqlMigrationRunnerExecuteOptions, w as SqlPlannerConflictKind, x as SqlMigrationRunnerSuccessValue, y as SqlMigrationRunnerFailure } from "./types-COXfSNOP-
|
|
2
|
+
import { C as SqlPlannerConflict, D as SqlPlannerResult, E as SqlPlannerFailureResult, O as SqlPlannerSuccessResult, S as SqlPlanTargetDetails, T as SqlPlannerConflictLocation, _ as SqlMigrationRunnerExecuteCallbacks, a as ResolveIdentityValueInput, b as SqlMigrationRunnerResult, c as SqlMigrationPlan, d as SqlMigrationPlanOperationStep, f as SqlMigrationPlanOperationTarget, g as SqlMigrationRunnerErrorCode, h as SqlMigrationRunner, i as FieldEventContext, k as StorageTypePlanResult, l as SqlMigrationPlanContractInfo, m as SqlMigrationPlannerPlanOptions, n as CreateSqlMigrationPlanOptions, o as SqlControlAdapterDescriptor, p as SqlMigrationPlanner, r as FieldEvent, s as SqlControlExtensionDescriptor, t as CodecControlHooks, u as SqlMigrationPlanOperation, v as SqlMigrationRunnerExecuteOptions, w as SqlPlannerConflictKind, x as SqlMigrationRunnerSuccessValue, y as SqlMigrationRunnerFailure } from "./types-COXfSNOP-CA6F1reR.mjs";
|
|
3
3
|
import { n as SqlSchemaDiffInput, r as SqlSchemaDiffResult, t as SqlSchemaDiffFn } from "./schema-differ-DmP74bB8-BXkhxcPs.mjs";
|
|
4
|
-
import { $ as SqlDescribedContractSpace, $t as fieldOfColumn, A as MigrationPlannerResult, An as resolveTableRenameAgainst, At as UnfilledValue, B as PlannedStoredRewrites, Bn as sqlDefaultFunctions, Bt as columnTakesTemporaryValue, C as MarkedRemoval, Cn as readColumnDefault, Ct as TableMove, D as MigrationPlanOperation, Dn as requiredColumnOf, Dt as TableRenameRequest, E as MigrationPlan, En as requiredColumnMeta, Et as TableRenameByHand, F as NamespaceStatementTarget, Fn as rowsWithoutValueSummary, Ft as acceptedByDataType, G as RequiredColumn, Gn as storedValueSubjects, Gt as convertedColumnOf, H as ReadReportedDefault, Hn as sqlTypeLookupsOf, Ht as contractNamespaceToSchemaIR, I as NoTable, In as runnerFailure, It as appliedStatementsInOrder, J as SchemaTables, Jn as unknownCallNames, Jt as detectDestructiveChanges, K as RequiredColumnMark, Kn as subjectsOfCalls, Kt as createMigrationPlan, L as PlanFieldEventOperationsOptions, Ln as runnerSuccess, Lt as assembleAuthoringContributions, M as ModelTable, Mn as rowsHoldingValueMeta, Mt as VariantRowRewrite, N as NO_RENAMED_ORIGINS, Nn as rowsHoldingValueOf, Nt as WorkingSchemaOrigins, O as MigrationPlanner, On as requiredColumnsOfMigration, Ot as TargetMigrationsCapability, P as NamespaceRename, Pn as rowsWithoutValueFailure, Pt as _default, Q as SqlDefaultFunctionName, Qt as fieldEventStorage, R as PlannedStatement, Rn as scalarTypeNamesOf, Rt as backfillOfDefaultedField, S as JsonPathStep, Sn as plannerSuccess, St as TABLE_NAME_CASE_CHANGED_CODE, T as MigrationOperationPolicy, Tn as removalsOfMigration, Tt as TableRename, U as ReportedBody, Un as storageNameOfOperation, Ut as contractToSchemaIR, V as ReadColumnDefault, Vn as sqlOfSlot, Vt as contractColumns, W as ReportedLiteralDefault, Wn as storedValueOperationIndexes, Wt as convertedColumnMeta, X as SqlControlFamilyInstance, Xn as unmatchedTableRename, Xt as encodeStoredValue, Y as SingleOperationCall, Yn as unmatchedColumnRename, Yt as detectTableNameCaseChanges, Z as SqlControlTargetDescriptor, Zn as unnamedFieldFillOf, Zt as extractCodecControlHooks, _ as FillValueCheck, _n as planStoredRewrites, _t as StoredValueReplacement, a as ColumnRename, an as jsonPathText, at as StatementColumn, b as JsonKeyPath, bn as planVariantRowRewrites, bt as SubjectStorage, c as ContractColumns, cn as modelRenameStorageEffect, ct as StatementPlanningTarget, d as ConvertedColumn, dn as partitionCallsByControlPolicy, dt as StoredKeyFillField, en as fieldRenameStorageEffect, et as SqlPslBuildContext, f as DefaultResolver, fn as partitionIssuesByControlPolicy, ft as StoredKeyRewrite, g as FieldStorageEffect, gn as planStatements, gt as StoredValueCodec, h as FieldStatementColumns, hn as planFieldEventOperations, ht as StoredValueCallClasses, i as ColumnOnOneSide, in as isUnfilledSlot, it as SqlTextSources, j as ModelStorageEffect, jn as rowsHoldingValueFailure, jt as UnnamedFieldFill, k as MigrationPlannerConflict, kn as resolveColumnRenameAgainst, kt as TargetRefusal, l as ContractToSchemaIROptions, ln as otherSpaceDeclaring, lt as StoredEnumValue, m as FieldEventCall, mn as planFieldEventCalls, mt as StoredRewriteCalls, n as CallSubjects, nn as fillKeyProblem, nt as SqlQuotingRules, o as ColumnRenameRequest, on as keepRowsEdit, ot as StatementOperations, p as DefaultResolverColumn, pn as planEnumValueRewrites, pt as StoredRewrite, q as RowsHoldingValueMark, qn as unconvertedFieldOf, qt as createSqlTextSources, r as CallWithCompanions, rn as fillValueProblem, rt as SqlSlot, s as ContractColumn, sn as keyPathOf, st as StatementOwnership, t as COLUMN_RENAME_UNMATCHED_CODE, tn as fieldStatementColumns, tt as SqlQuote, u as ControlPolicySubject, un as parseJsonPath, ut as StoredKeyFill, v as FillValueTypes, vn as planValueObjectFieldFills, vt as StoredValueRewrite, w as MigrationOperationClass, wn as readReportedDefault, wt as TableNameCaseGuardTable, x as JsonPath, xn as plannerFailure, xt as SuppressionRecord, y as INIT_ADDITIVE_POLICY, yn as planValueObjectFieldRewrites, yt as StoredValueSubject, z as PlannedStatements, zn as slotSource, zt as checkSqlExpressionText } from "./control
|
|
4
|
+
import { $ as SqlDescribedContractSpace, $t as fieldOfColumn, A as MigrationPlannerResult, An as resolveTableRenameAgainst, At as UnfilledValue, B as PlannedStoredRewrites, Bn as sqlDefaultFunctions, Bt as columnTakesTemporaryValue, C as MarkedRemoval, Cn as readColumnDefault, Ct as TableMove, D as MigrationPlanOperation, Dn as requiredColumnOf, Dt as TableRenameRequest, E as MigrationPlan, En as requiredColumnMeta, Et as TableRenameByHand, F as NamespaceStatementTarget, Fn as rowsWithoutValueSummary, Ft as acceptedByDataType, G as RequiredColumn, Gn as storedValueSubjects, Gt as convertedColumnOf, H as ReadReportedDefault, Hn as sqlTypeLookupsOf, Ht as contractNamespaceToSchemaIR, I as NoTable, In as runnerFailure, It as appliedStatementsInOrder, J as SchemaTables, Jn as unknownCallNames, Jt as detectDestructiveChanges, K as RequiredColumnMark, Kn as subjectsOfCalls, Kt as createMigrationPlan, L as PlanFieldEventOperationsOptions, Ln as runnerSuccess, Lt as assembleAuthoringContributions, M as ModelTable, Mn as rowsHoldingValueMeta, Mt as VariantRowRewrite, N as NO_RENAMED_ORIGINS, Nn as rowsHoldingValueOf, Nt as WorkingSchemaOrigins, O as MigrationPlanner, On as requiredColumnsOfMigration, Ot as TargetMigrationsCapability, P as NamespaceRename, Pn as rowsWithoutValueFailure, Pt as _default, Q as SqlDefaultFunctionName, Qt as fieldEventStorage, R as PlannedStatement, Rn as scalarTypeNamesOf, Rt as backfillOfDefaultedField, S as JsonPathStep, Sn as plannerSuccess, St as TABLE_NAME_CASE_CHANGED_CODE, T as MigrationOperationPolicy, Tn as removalsOfMigration, Tt as TableRename, U as ReportedBody, Un as storageNameOfOperation, Ut as contractToSchemaIR, V as ReadColumnDefault, Vn as sqlOfSlot, Vt as contractColumns, W as ReportedLiteralDefault, Wn as storedValueOperationIndexes, Wt as convertedColumnMeta, X as SqlControlFamilyInstance, Xn as unmatchedTableRename, Xt as encodeStoredValue, Y as SingleOperationCall, Yn as unmatchedColumnRename, Yt as detectTableNameCaseChanges, Z as SqlControlTargetDescriptor, Zn as unnamedFieldFillOf, Zt as extractCodecControlHooks, _ as FillValueCheck, _n as planStoredRewrites, _t as StoredValueReplacement, a as ColumnRename, an as jsonPathText, at as StatementColumn, b as JsonKeyPath, bn as planVariantRowRewrites, bt as SubjectStorage, c as ContractColumns, cn as modelRenameStorageEffect, ct as StatementPlanningTarget, d as ConvertedColumn, dn as partitionCallsByControlPolicy, dt as StoredKeyFillField, en as fieldRenameStorageEffect, et as SqlPslBuildContext, f as DefaultResolver, fn as partitionIssuesByControlPolicy, ft as StoredKeyRewrite, g as FieldStorageEffect, gn as planStatements, gt as StoredValueCodec, h as FieldStatementColumns, hn as planFieldEventOperations, ht as StoredValueCallClasses, i as ColumnOnOneSide, in as isUnfilledSlot, it as SqlTextSources, j as ModelStorageEffect, jn as rowsHoldingValueFailure, jt as UnnamedFieldFill, k as MigrationPlannerConflict, kn as resolveColumnRenameAgainst, kt as TargetRefusal, l as ContractToSchemaIROptions, ln as otherSpaceDeclaring, lt as StoredEnumValue, m as FieldEventCall, mn as planFieldEventCalls, mt as StoredRewriteCalls, n as CallSubjects, nn as fillKeyProblem, nt as SqlQuotingRules, o as ColumnRenameRequest, on as keepRowsEdit, ot as StatementOperations, p as DefaultResolverColumn, pn as planEnumValueRewrites, pt as StoredRewrite, q as RowsHoldingValueMark, qn as unconvertedFieldOf, qt as createSqlTextSources, r as CallWithCompanions, rn as fillValueProblem, rt as SqlSlot, s as ContractColumn, sn as keyPathOf, st as StatementOwnership, t as COLUMN_RENAME_UNMATCHED_CODE, tn as fieldStatementColumns, tt as SqlQuote, u as ControlPolicySubject, un as parseJsonPath, ut as StoredKeyFill, v as FillValueTypes, vn as planValueObjectFieldFills, vt as StoredValueRewrite, w as MigrationOperationClass, wn as readReportedDefault, wt as TableNameCaseGuardTable, x as JsonPath, xn as plannerFailure, xt as SuppressionRecord, y as INIT_ADDITIVE_POLICY, yn as planValueObjectFieldRewrites, yt as StoredValueSubject, z as PlannedStatements, zn as slotSource, zt as checkSqlExpressionText } from "./control-C0Jp0muh.mjs";
|
|
5
5
|
export { COLUMN_RENAME_UNMATCHED_CODE, type CallSubjects, type CallWithCompanions, type CodecControlHooks, type ColumnOnOneSide, type ColumnRename, type ColumnRenameRequest, type ContractColumn, type ContractColumns, type ContractToSchemaIROptions, type ControlPolicySubject, type ConvertedColumn, type CreateSqlMigrationPlanOptions, type DefaultResolver, type DefaultResolverColumn, type FieldEvent, type FieldEventCall, type FieldEventContext, type FieldStatementColumns, type FieldStorageEffect, type FillValueCheck, type FillValueTypes, INIT_ADDITIVE_POLICY, type JsonKeyPath, type JsonPath, type JsonPathStep, type MarkedRemoval, type MigrationOperationClass, type MigrationOperationPolicy, type MigrationPlan, type MigrationPlanOperation, type MigrationPlanner, type MigrationPlannerConflict, type MigrationPlannerResult, type ModelStorageEffect, type ModelTable, NO_RENAMED_ORIGINS, type NamespaceRename, type NamespaceStatementTarget, type NoTable, type PlanFieldEventOperationsOptions, type PlannedStatement, type PlannedStatements, type PlannedStoredRewrites, type ReadColumnDefault, type ReadReportedDefault, type ReportedBody, type ReportedLiteralDefault, type RequiredColumn, type RequiredColumnMark, type ResolveIdentityValueInput, type RowsHoldingValueMark, type SchemaTables, type SingleOperationCall, type SqlControlAdapterDescriptor, type SqlControlExtensionDescriptor, type SqlControlFamilyInstance, type SqlControlTargetDescriptor, type SqlDefaultFunctionName, type SqlDescribedContractSpace, type SqlMigrationPlan, type SqlMigrationPlanContractInfo, type SqlMigrationPlanOperation, type SqlMigrationPlanOperationStep, type SqlMigrationPlanOperationTarget, type SqlMigrationPlanner, type SqlMigrationPlannerPlanOptions, type SqlMigrationRunner, type SqlMigrationRunnerErrorCode, type SqlMigrationRunnerExecuteCallbacks, type SqlMigrationRunnerExecuteOptions, type SqlMigrationRunnerFailure, type SqlMigrationRunnerResult, type SqlMigrationRunnerSuccessValue, type SqlPlanTargetDetails, type SqlPlannerConflict, type SqlPlannerConflictKind, type SqlPlannerConflictLocation, type SqlPlannerFailureResult, type SqlPlannerResult, type SqlPlannerSuccessResult, type SqlPslBuildContext, type SqlQuote, type SqlQuotingRules, type SqlSchemaDiffFn, type SqlSchemaDiffInput, type SqlSchemaDiffResult, type SqlSlot, type SqlTextSources, type StatementColumn, type StatementOperations, type StatementOwnership, type StatementPlanningTarget, type StorageTypePlanResult, type StoredEnumValue, type StoredKeyFill, type StoredKeyFillField, type StoredKeyRewrite, type StoredRewrite, type StoredRewriteCalls, type StoredValueCallClasses, type StoredValueCodec, type StoredValueReplacement, type StoredValueRewrite, type StoredValueSubject, type SubjectStorage, type SuppressionRecord, TABLE_NAME_CASE_CHANGED_CODE, type TableMove, type TableNameCaseGuardTable, type TableRename, type TableRenameByHand, type TableRenameRequest, type TargetMigrationsCapability, type TargetRefusal, UnfilledValue, type UnnamedFieldFill, type VariantRowRewrite, type WorkingSchemaOrigins, acceptedByDataType, appliedStatementsInOrder, assembleAuthoringContributions, backfillOfDefaultedField, checkSqlDefaultText, checkSqlExpressionText, columnTakesTemporaryValue, contractColumns, contractNamespaceToSchemaIR, contractToSchemaIR, convertedColumnMeta, convertedColumnOf, createMigrationPlan, createSqlTextSources, _default as default, detectDestructiveChanges, detectTableNameCaseChanges, encodeStoredValue, extractCodecControlHooks, fieldEventStorage, fieldOfColumn, fieldRenameStorageEffect, fieldStatementColumns, fillKeyProblem, fillValueProblem, isUnfilledSlot, jsonPathText, keepRowsEdit, keyPathOf, modelRenameStorageEffect, otherSpaceDeclaring, parseJsonPath, partitionCallsByControlPolicy, partitionIssuesByControlPolicy, planEnumValueRewrites, planFieldEventCalls, planFieldEventOperations, planStatements, planStoredRewrites, planValueObjectFieldFills, planValueObjectFieldRewrites, planVariantRowRewrites, plannerFailure, plannerSuccess, readColumnDefault, readReportedDefault, removalsOfMigration, requiredColumnMeta, requiredColumnOf, requiredColumnsOfMigration, resolveColumnRenameAgainst, resolveTableRenameAgainst, rowsHoldingValueFailure, rowsHoldingValueMeta, rowsHoldingValueOf, rowsWithoutValueFailure, rowsWithoutValueSummary, runnerFailure, runnerSuccess, scalarTypeNamesOf, slotSource, sqlDefaultFunctions, sqlOfSlot, sqlTypeLookupsOf, storageNameOfOperation, storedValueOperationIndexes, storedValueSubjects, subjectsOfCalls, unconvertedFieldOf, unknownCallNames, unmatchedColumnRename, unmatchedTableRename, unnamedFieldFillOf };
|
package/dist/family__control.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as checkSqlDefaultText } from "./validators-
|
|
1
|
+
import { n as checkSqlDefaultText } from "./validators-CWcdf_jZ.mjs";
|
|
2
2
|
import { s as extractCodecControlHooks } from "./schema-verify-C3wbdviw-nQ4tG9N7.mjs";
|
|
3
|
-
import { $ as requiredColumnsOfMigration, A as jsonPathText, B as planFieldEventOperations, C as fieldEventStorage, D as fillKeyProblem, E as fieldStatementColumns, F as parseJsonPath, G as planVariantRowRewrites, H as planStoredRewrites, I as partitionCallsByControlPolicy, J as readColumnDefault, K as plannerFailure, L as partitionIssuesByControlPolicy, M as keyPathOf, N as modelRenameStorageEffect, O as fillValueProblem, P as otherSpaceDeclaring, Q as requiredColumnOf, R as planEnumValueRewrites, S as encodeStoredValue, St as unnamedFieldFillOf, T as fieldRenameStorageEffect, U as planValueObjectFieldFills, V as planStatements, W as planValueObjectFieldRewrites, X as removalsOfMigration, Y as readReportedDefault, Z as requiredColumnMeta, _ as convertedColumnOf, _t as subjectsOfCalls, a as UnfilledValue, at as rowsWithoutValueFailure, b as detectDestructiveChanges, bt as unmatchedColumnRename, c as assembleAuthoringContributions, ct as runnerSuccess, d as columnTakesTemporaryValue, dt as sqlDefaultFunctions, et as resolveColumnRenameAgainst, f as contractColumns, ft as sqlOfSlot, g as convertedColumnMeta, gt as storedValueSubjects, h as control_default, ht as storedValueOperationIndexes, i as TABLE_NAME_CASE_CHANGED_CODE, it as rowsHoldingValueOf, j as keepRowsEdit, k as isUnfilledSlot, l as backfillOfDefaultedField, lt as scalarTypeNamesOf, m as contractToSchemaIR, mt as storageNameOfOperation, n as INIT_ADDITIVE_POLICY, nt as rowsHoldingValueFailure, o as acceptedByDataType, ot as rowsWithoutValueSummary, p as contractNamespaceToSchemaIR, pt as sqlTypeLookupsOf, q as plannerSuccess, r as NO_RENAMED_ORIGINS, rt as rowsHoldingValueMeta, s as appliedStatementsInOrder, st as runnerFailure, t as COLUMN_RENAME_UNMATCHED_CODE, tt as resolveTableRenameAgainst, u as checkSqlExpressionText, ut as slotSource, v as createMigrationPlan, vt as unconvertedFieldOf, w as fieldOfColumn, x as detectTableNameCaseChanges, xt as unmatchedTableRename, y as createSqlTextSources, yt as unknownCallNames, z as planFieldEventCalls } from "./control-
|
|
3
|
+
import { $ as requiredColumnsOfMigration, A as jsonPathText, B as planFieldEventOperations, C as fieldEventStorage, D as fillKeyProblem, E as fieldStatementColumns, F as parseJsonPath, G as planVariantRowRewrites, H as planStoredRewrites, I as partitionCallsByControlPolicy, J as readColumnDefault, K as plannerFailure, L as partitionIssuesByControlPolicy, M as keyPathOf, N as modelRenameStorageEffect, O as fillValueProblem, P as otherSpaceDeclaring, Q as requiredColumnOf, R as planEnumValueRewrites, S as encodeStoredValue, St as unnamedFieldFillOf, T as fieldRenameStorageEffect, U as planValueObjectFieldFills, V as planStatements, W as planValueObjectFieldRewrites, X as removalsOfMigration, Y as readReportedDefault, Z as requiredColumnMeta, _ as convertedColumnOf, _t as subjectsOfCalls, a as UnfilledValue, at as rowsWithoutValueFailure, b as detectDestructiveChanges, bt as unmatchedColumnRename, c as assembleAuthoringContributions, ct as runnerSuccess, d as columnTakesTemporaryValue, dt as sqlDefaultFunctions, et as resolveColumnRenameAgainst, f as contractColumns, ft as sqlOfSlot, g as convertedColumnMeta, gt as storedValueSubjects, h as control_default, ht as storedValueOperationIndexes, i as TABLE_NAME_CASE_CHANGED_CODE, it as rowsHoldingValueOf, j as keepRowsEdit, k as isUnfilledSlot, l as backfillOfDefaultedField, lt as scalarTypeNamesOf, m as contractToSchemaIR, mt as storageNameOfOperation, n as INIT_ADDITIVE_POLICY, nt as rowsHoldingValueFailure, o as acceptedByDataType, ot as rowsWithoutValueSummary, p as contractNamespaceToSchemaIR, pt as sqlTypeLookupsOf, q as plannerSuccess, r as NO_RENAMED_ORIGINS, rt as rowsHoldingValueMeta, s as appliedStatementsInOrder, st as runnerFailure, t as COLUMN_RENAME_UNMATCHED_CODE, tt as resolveTableRenameAgainst, u as checkSqlExpressionText, ut as slotSource, v as createMigrationPlan, vt as unconvertedFieldOf, w as fieldOfColumn, x as detectTableNameCaseChanges, xt as unmatchedTableRename, y as createSqlTextSources, yt as unknownCallNames, z as planFieldEventCalls } from "./control-BJWi318s.mjs";
|
|
4
4
|
export { COLUMN_RENAME_UNMATCHED_CODE, INIT_ADDITIVE_POLICY, NO_RENAMED_ORIGINS, TABLE_NAME_CASE_CHANGED_CODE, UnfilledValue, acceptedByDataType, appliedStatementsInOrder, assembleAuthoringContributions, backfillOfDefaultedField, checkSqlDefaultText, checkSqlExpressionText, columnTakesTemporaryValue, contractColumns, contractNamespaceToSchemaIR, contractToSchemaIR, convertedColumnMeta, convertedColumnOf, createMigrationPlan, createSqlTextSources, control_default as default, detectDestructiveChanges, detectTableNameCaseChanges, encodeStoredValue, extractCodecControlHooks, fieldEventStorage, fieldOfColumn, fieldRenameStorageEffect, fieldStatementColumns, fillKeyProblem, fillValueProblem, isUnfilledSlot, jsonPathText, keepRowsEdit, keyPathOf, modelRenameStorageEffect, otherSpaceDeclaring, parseJsonPath, partitionCallsByControlPolicy, partitionIssuesByControlPolicy, planEnumValueRewrites, planFieldEventCalls, planFieldEventOperations, planStatements, planStoredRewrites, planValueObjectFieldFills, planValueObjectFieldRewrites, planVariantRowRewrites, plannerFailure, plannerSuccess, readColumnDefault, readReportedDefault, removalsOfMigration, requiredColumnMeta, requiredColumnOf, requiredColumnsOfMigration, resolveColumnRenameAgainst, resolveTableRenameAgainst, rowsHoldingValueFailure, rowsHoldingValueMeta, rowsHoldingValueOf, rowsWithoutValueFailure, rowsWithoutValueSummary, runnerFailure, runnerSuccess, scalarTypeNamesOf, slotSource, sqlDefaultFunctions, sqlOfSlot, sqlTypeLookupsOf, storageNameOfOperation, storedValueOperationIndexes, storedValueSubjects, subjectsOfCalls, unconvertedFieldOf, unknownCallNames, unmatchedColumnRename, unmatchedTableRename, unnamedFieldFillOf };
|
package/dist/family__diff.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as VerifySqlSchemaByDiffInput, c as classifySqlDiffIssue, d as verifySqlSchemaByDiff, i as StorageTypeVerdictInput, l as computeSqlDiffVerdict, n as SqlDiffVerdictInput, o as arraysEqual, r as StorageTypeVerdict, s as classifyDiffSubjectGranularity, t as SqlDiffVerdict, u as computeStorageTypeVerdict } from "./diff-
|
|
1
|
+
import { a as VerifySqlSchemaByDiffInput, c as classifySqlDiffIssue, d as verifySqlSchemaByDiff, i as StorageTypeVerdictInput, l as computeSqlDiffVerdict, n as SqlDiffVerdictInput, o as arraysEqual, r as StorageTypeVerdict, s as classifyDiffSubjectGranularity, t as SqlDiffVerdict, u as computeStorageTypeVerdict } from "./diff-BBEq2-E2.mjs";
|
|
2
2
|
export { type SqlDiffVerdict, type SqlDiffVerdictInput, type StorageTypeVerdict, type StorageTypeVerdictInput, type VerifySqlSchemaByDiffInput, arraysEqual, classifyDiffSubjectGranularity, classifySqlDiffIssue, computeSqlDiffVerdict, computeStorageTypeVerdict, verifySqlSchemaByDiff };
|
package/dist/family__ir.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { n as SqlContractSerializerBase, t as SqlContractSerializer } from "./sql-contract-serializer-sMY3prTx-
|
|
1
|
+
import { n as SqlContractSerializerBase, t as SqlContractSerializer } from "./sql-contract-serializer-sMY3prTx-D_K7uFJk.mjs";
|
|
2
2
|
import { t as SqlSchemaVerifierBase } from "./ir-DzsUDO8e.mjs";
|
|
3
3
|
export { SqlContractSerializer, SqlContractSerializerBase, SqlSchemaVerifierBase };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as SqlMigration } from "./migration-
|
|
1
|
+
import { t as SqlMigration } from "./migration-CkdSQ8g8.mjs";
|
|
2
2
|
export { SqlMigration as Migration };
|
package/dist/family__pack.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as sqlTargetTypeConstructors, n as sqlFamilyPack, r as sqlIntegerArgumentGeneratorFunctions, t as idGeneratorFunctionBindings } from "./pack-
|
|
1
|
+
import { i as sqlTargetTypeConstructors, n as sqlFamilyPack, r as sqlIntegerArgumentGeneratorFunctions, t as idGeneratorFunctionBindings } from "./pack-7m3efDkY.mjs";
|
|
2
2
|
export { sqlFamilyPack as default, idGeneratorFunctionBindings, sqlIntegerArgumentGeneratorFunctions, sqlTargetTypeConstructors };
|
package/dist/family__pack.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { f as sqlExpressionRegistration } from "./sql-expression-CKgKznXS.mjs";
|
|
2
|
-
import { b as sqlAttributeSpecs } from "./psl-field-resolution-GN4iup8d-
|
|
3
|
-
import { a as sqlFamilyGeneratorFunctions, c as sqlTargetTypeConstructors, i as sqlFamilyGeneratorDescriptors, n as sqlFamilyAuthoringTypes, o as sqlFamilyPslBlockDescriptors, r as sqlFamilyEntityTypes, s as sqlIntegerArgumentGeneratorFunctions, t as idGeneratorFunctionBindings } from "./generator-functions-Hy4pDDr9-
|
|
2
|
+
import { b as sqlAttributeSpecs } from "./psl-field-resolution-GN4iup8d-BSjTCYks.mjs";
|
|
3
|
+
import { a as sqlFamilyGeneratorFunctions, c as sqlTargetTypeConstructors, i as sqlFamilyGeneratorDescriptors, n as sqlFamilyAuthoringTypes, o as sqlFamilyPslBlockDescriptors, r as sqlFamilyEntityTypes, s as sqlIntegerArgumentGeneratorFunctions, t as idGeneratorFunctionBindings } from "./generator-functions-Hy4pDDr9-CAx4Z7af.mjs";
|
|
4
4
|
//#region ../../../2-sql-family/9-family/dist/pack.mjs
|
|
5
5
|
const sqlFamilyPack = {
|
|
6
6
|
kind: "family",
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./expression-DmvKA8dE-D29cLTJG.mjs";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as LiteralExpr, E as NullCheckExpr, I as SubqueryExpr, O as OrExpr, S as ListExpression, n as AndExpr, p as ExistsExpr, r as BinaryExpr } from "./types-
|
|
2
|
-
import { a as isExpression, i as createRawSql, r as codecOf, s as toExpr, t as ExpressionImpl } from "./expression-impl-
|
|
1
|
+
import { C as LiteralExpr, E as NullCheckExpr, I as SubqueryExpr, O as OrExpr, S as ListExpression, n as AndExpr, p as ExistsExpr, r as BinaryExpr } from "./types-wn1bXh0b-CJPAJi22.mjs";
|
|
2
|
+
import { a as isExpression, i as createRawSql, r as codecOf, s as toExpr, t as ExpressionImpl } from "./expression-impl-DHdjzqE3-Cd9gP7oC.mjs";
|
|
3
3
|
import { blindCast } from "@prisma/orm-framework/utils/casts";
|
|
4
4
|
//#region ../../../2-sql-family/4-lanes/relational-core/dist/exports/functions.mjs
|
|
5
5
|
const BOOL_FIELD = {
|
|
@@ -85,4 +85,4 @@ function createFunctions(operations, rawCodecInferer) {
|
|
|
85
85
|
//#endregion
|
|
86
86
|
export { createFunctions as t };
|
|
87
87
|
|
|
88
|
-
//# sourceMappingURL=functions-
|
|
88
|
+
//# sourceMappingURL=functions-Cl_egJ2w.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"functions-
|
|
1
|
+
{"version":3,"file":"functions-Cl_egJ2w.mjs","names":[],"sources":["../../../../2-sql-family/4-lanes/relational-core/dist/exports/functions.mjs"],"sourcesContent":["import { C as LiteralExpr, E as NullCheckExpr, I as SubqueryExpr, O as OrExpr, S as ListExpression, n as AndExpr, p as ExistsExpr, r as BinaryExpr } from \"../types-wn1bXh0b.mjs\";\nimport { a as isExpression, i as createRawSql, r as codecOf, s as toExpr, t as ExpressionImpl } from \"../expression-impl-DHdjzqE3.mjs\";\nimport { blindCast } from \"@internal/utils/casts\";\n//#region src/functions.ts\nconst BOOL_FIELD = {\n\tcodecId: \"pg/bool@1\",\n\tnullable: false\n};\n/**\n* Resolve a binary-comparison operand into an AST expression, threading the column-bound side's {@link CodecRef} to the raw-value side.\n*\n* For `fns.eq(f.email, 'alice@example.com')`, `f.email` is the column-bound expression carrying a `ColumnRef` AST and a `CodecRef` derived from contract storage; the raw string operand has no codec context. By deriving the codec context from the column-bound side and forwarding it via `toExpr(value, codec)`, the resulting `ParamRef` carries the `CodecRef` that encode-side dispatch needs to materialise the per-instance codec for parameterized codec ids (`vector(1024)` vs. `vector(1536)`).\n*/\nfunction resolveOperand(operand, otherCodec) {\n\tif (isExpression(operand)) return operand.buildAst();\n\treturn toExpr(operand, otherCodec);\n}\n/**\n* Resolves an Expression via `buildAst()`, or wraps a raw value as a `LiteralExpr` — an SQL literal inlined into the query text, not a bound parameter.\n*\n* Used for `and` / `or` operands. The usual operand is an `Expression<bool>` (e.g. the result of `fns.eq`), which this function passes through by calling `buildAst()`. The only time the raw-value branch fires is when the caller writes `fns.and(true, x)` or similar — inlining `TRUE`/`FALSE` literals lets the SQL planner statically simplify `TRUE AND x` to `x`, which it cannot do for an opaque `ParamRef`.\n*/\nfunction toLiteralExpr(value) {\n\tif (isExpression(value)) return value.buildAst();\n\treturn new LiteralExpr(value);\n}\nfunction boolExpr(astNode) {\n\treturn new ExpressionImpl(astNode, BOOL_FIELD);\n}\nfunction binaryWithSharedCodec(a, b, build) {\n\tconst aCodec = codecOf(a);\n\treturn build(resolveOperand(a, codecOf(b)), resolveOperand(b, aCodec));\n}\nfunction eq(a, b) {\n\tif (b === null) return boolExpr(NullCheckExpr.isNull(toExpr(a)));\n\tif (a === null) return boolExpr(NullCheckExpr.isNull(toExpr(b)));\n\treturn boolExpr(binaryWithSharedCodec(a, b, (l, r) => new BinaryExpr(\"eq\", l, r)));\n}\nfunction ne(a, b) {\n\tif (b === null) return boolExpr(NullCheckExpr.isNotNull(toExpr(a)));\n\tif (a === null) return boolExpr(NullCheckExpr.isNotNull(toExpr(b)));\n\treturn boolExpr(binaryWithSharedCodec(a, b, (l, r) => new BinaryExpr(\"neq\", l, r)));\n}\nfunction comparison(a, b, op) {\n\treturn boolExpr(binaryWithSharedCodec(a, b, (l, r) => new BinaryExpr(op, l, r)));\n}\nfunction inOrNotIn(expr, valuesOrSubquery, op) {\n\tconst left = expr.buildAst();\n\tconst leftCodec = codecOf(expr);\n\tconst binaryFn = op === \"in\" ? BinaryExpr.in : BinaryExpr.notIn;\n\tif (Array.isArray(valuesOrSubquery)) {\n\t\tconst refs = valuesOrSubquery.map((v) => resolveOperand(v, leftCodec));\n\t\treturn boolExpr(binaryFn(left, ListExpression.of(refs)));\n\t}\n\treturn boolExpr(binaryFn(left, SubqueryExpr.of(valuesOrSubquery.buildAst())));\n}\nfunction createBuiltinFunctions(rawCodecInferer) {\n\treturn {\n\t\teq: (a, b) => eq(a, b),\n\t\tne: (a, b) => ne(a, b),\n\t\tgt: (a, b) => comparison(a, b, \"gt\"),\n\t\tgte: (a, b) => comparison(a, b, \"gte\"),\n\t\tlt: (a, b) => comparison(a, b, \"lt\"),\n\t\tlte: (a, b) => comparison(a, b, \"lte\"),\n\t\tand: (...exprs) => boolExpr(AndExpr.of(exprs.map(toLiteralExpr))),\n\t\tor: (...exprs) => boolExpr(OrExpr.of(exprs.map(toLiteralExpr))),\n\t\texists: (subquery) => boolExpr(ExistsExpr.exists(subquery.buildAst())),\n\t\tnotExists: (subquery) => boolExpr(ExistsExpr.notExists(subquery.buildAst())),\n\t\tin: (expr, valuesOrSubquery) => inOrNotIn(expr, valuesOrSubquery, \"in\"),\n\t\tnotIn: (expr, valuesOrSubquery) => inOrNotIn(expr, valuesOrSubquery, \"notIn\"),\n\t\traw: createRawSql(rawCodecInferer)\n\t};\n}\n/**\n* The function surface for a contract: the built-in functions, and each registered query operation's implementation under its name.\n*/\nfunction createFunctions(operations, rawCodecInferer) {\n\tconst builtins = createBuiltinFunctions(rawCodecInferer);\n\treturn new Proxy(blindCast({}), { get(_target, prop) {\n\t\tif (Object.hasOwn(builtins, prop)) return blindCast(builtins)[prop];\n\t\tconst op = operations[prop];\n\t\tif (op) return op.impl;\n\t} });\n}\n//#endregion\nexport { createFunctions };\n\n//# sourceMappingURL=functions.mjs.map"],"mappings":"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"}
|
package/dist/{generator-functions-Hy4pDDr9-DkN0qbPW.mjs → generator-functions-Hy4pDDr9-CAx4Z7af.mjs}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as generatedIdColumnAliases } from "./generated-id-column-aliases-DPUii1fN.mjs";
|
|
2
|
-
import { l as enumType } from "./contract-builder-
|
|
3
|
-
import { c as SQL_TEXT_CODEC_ID, i as SQL_CHAR_CODEC_ID, l as SQL_VARCHAR_CODEC_ID } from "./ast-
|
|
2
|
+
import { l as enumType } from "./contract-builder-Drywaj7K.mjs";
|
|
3
|
+
import { c as SQL_TEXT_CODEC_ID, i as SQL_CHAR_CODEC_ID, l as SQL_VARCHAR_CODEC_ID } from "./ast-BO3Wgbrl.mjs";
|
|
4
4
|
import { readEnumBlockMembers, resolveEnumCodecId } from "@prisma/orm-framework/components/authoring";
|
|
5
5
|
import { enumRefusalOf, requiredParamKeys } from "@prisma/orm-framework/components/codec";
|
|
6
6
|
import { blindCast } from "@prisma/orm-framework/utils/casts";
|
|
@@ -402,4 +402,4 @@ function checkedInteger(integer, dataTypes, allowed, refusal) {
|
|
|
402
402
|
//#endregion
|
|
403
403
|
export { sqlFamilyGeneratorFunctions as a, sqlTargetTypeConstructors as c, sqlFamilyGeneratorDescriptors as i, sqlFamilyAuthoringTypes as n, sqlFamilyPslBlockDescriptors as o, sqlFamilyEntityTypes as r, sqlIntegerArgumentGeneratorFunctions as s, idGeneratorFunctionBindings as t };
|
|
404
404
|
|
|
405
|
-
//# sourceMappingURL=generator-functions-Hy4pDDr9-
|
|
405
|
+
//# sourceMappingURL=generator-functions-Hy4pDDr9-CAx4Z7af.mjs.map
|