@prisma/orm-family-sql 8.0.0-rc.24-dev.40 → 8.0.0-rc.24-dev.41
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-oSsBuRHQ.mjs → aggregate-descriptor-registry-CRgsKIJY.mjs} +2 -2
- package/dist/{aggregate-descriptor-registry-oSsBuRHQ.mjs.map → aggregate-descriptor-registry-CRgsKIJY.mjs.map} +1 -1
- package/dist/{ast-BpFfUmb_.mjs → ast-B1GOjYn-.mjs} +2 -2
- package/dist/ast-B1GOjYn-.mjs.map +1 -0
- package/dist/{ast-DvD53wSW.d.mts → ast-DZnTuPWA.d.mts} +3 -3
- package/dist/{ast-DvD53wSW.d.mts.map → ast-DZnTuPWA.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 +39 -23
- package/dist/builder__runtime.mjs.map +1 -1
- package/dist/builder__types.d.mts +5 -5
- package/dist/{codec-descriptor-registry-UiFDvDj4.mjs → codec-descriptor-registry-CQ9M2B3L.mjs} +4 -2
- package/dist/codec-descriptor-registry-CQ9M2B3L.mjs.map +1 -0
- package/dist/collection-methods-CO0bz9PJ.d.mts +1 -0
- package/dist/{collection-methods-As4pXm7B-3xgTSoyU.d.mts → collection-methods-HlRizYfF-DKdq47dN.d.mts} +3 -3
- package/dist/{collection-methods-As4pXm7B-3xgTSoyU.d.mts.map → collection-methods-HlRizYfF-DKdq47dN.d.mts.map} +1 -1
- package/dist/{config-types-CFByuvww.mjs → config-types-tSsDtIC-.mjs} +2 -2
- package/dist/{config-types-CFByuvww.mjs.map → config-types-tSsDtIC-.mjs.map} +1 -1
- package/dist/{contract-builder-DIb0oV8O.mjs → contract-builder-piV2RUop.mjs} +3 -3
- package/dist/{contract-builder-DIb0oV8O.mjs.map → contract-builder-piV2RUop.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-psl__provider.mjs.map +1 -1
- 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-BdGTPj7m.mjs → control-Cxrfn6YO.mjs} +28 -16
- package/dist/control-Cxrfn6YO.mjs.map +1 -0
- package/dist/{control-BwL5tCj4.d.mts → control-DaBIvroP.d.mts} +6 -6
- package/dist/{control-BwL5tCj4.d.mts.map → control-DaBIvroP.d.mts.map} +1 -1
- package/dist/{control-adapter-0z3ce44U-BQ26ercw.d.mts → control-adapter-0z3ce44U-OE4VID0O.d.mts} +4 -4
- package/dist/{control-adapter-0z3ce44U-BQ26ercw.d.mts.map → control-adapter-0z3ce44U-OE4VID0O.d.mts.map} +1 -1
- package/dist/{control-adapter-DRLco_j0.d.mts → control-adapter-CC_Vys2q.d.mts} +2 -2
- package/dist/{control-adapter-DRLco_j0.d.mts.map → control-adapter-CC_Vys2q.d.mts.map} +1 -1
- package/dist/{db-by-MuHF2-B7uz_0VW.d.mts → db-by-MuHF2-Dz4IwRsO.d.mts} +10 -10
- package/dist/{db-by-MuHF2-B7uz_0VW.d.mts.map → db-by-MuHF2-Dz4IwRsO.d.mts.map} +1 -1
- package/dist/{ddl-types-D93zTpm9-DhSkpX0K.d.mts → ddl-types-BpNk9lrL-5rXDLalb.d.mts} +3 -3
- package/dist/{ddl-types-D93zTpm9-DhSkpX0K.d.mts.map → ddl-types-BpNk9lrL-5rXDLalb.d.mts.map} +1 -1
- package/dist/{derived-checks-9Ku2scaj-0iT0uU_6.mjs → derived-checks-9Ku2scaj-BkBpXofB.mjs} +2 -2
- package/dist/{derived-checks-9Ku2scaj-0iT0uU_6.mjs.map → derived-checks-9Ku2scaj-BkBpXofB.mjs.map} +1 -1
- package/dist/{diff-DZHlisyY.d.mts → diff-ox1r2eqR.d.mts} +2 -2
- package/dist/{diff-DZHlisyY.d.mts.map → diff-ox1r2eqR.d.mts.map} +1 -1
- package/dist/{exports-D4xgPPzV-B5oJAMdP.mjs → exports-D4xgPPzV-BWjldMmf.mjs} +4 -4
- package/dist/{exports-D4xgPPzV-B5oJAMdP.mjs.map → exports-D4xgPPzV-BWjldMmf.mjs.map} +1 -1
- package/dist/{expression-DYRYmkMl-BMKxN8Wf.d.mts → expression-CbgzZLXY-Bzqi0ZTM.d.mts} +4 -4
- package/dist/{expression-DYRYmkMl-BMKxN8Wf.d.mts.map → expression-CbgzZLXY-Bzqi0ZTM.d.mts.map} +1 -1
- package/dist/expression-DBDD1QR1.d.mts +2 -0
- package/dist/{expression-VJWwxbUB-BtNDaTCt.d.mts → expression-DKXV5hFJ-4ZqJOTJH.d.mts} +4 -4
- package/dist/expression-DKXV5hFJ-4ZqJOTJH.d.mts.map +1 -0
- package/dist/{expression-impl-C5Ha-fXs-CxXn8gDo.mjs → expression-impl-D9Le3c2y-MF0Fctq9.mjs} +3 -3
- package/dist/{expression-impl-C5Ha-fXs-CxXn8gDo.mjs.map → expression-impl-D9Le3c2y-MF0Fctq9.mjs.map} +1 -1
- package/dist/family.d.mts +6 -6
- 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.mjs +2 -2
- package/dist/{functions-DGketpiK.mjs → functions-BV4CyVZ0.mjs} +3 -3
- package/dist/{functions-DGketpiK.mjs.map → functions-BV4CyVZ0.mjs.map} +1 -1
- package/dist/functions-CF7EOqOH.d.mts +1 -0
- package/dist/{generator-functions-Bze9nVHL-BK4YIqLK.mjs → generator-functions-Bze9nVHL-EURgrMFd.mjs} +3 -3
- package/dist/{generator-functions-Bze9nVHL-BK4YIqLK.mjs.map → generator-functions-Bze9nVHL-EURgrMFd.mjs.map} +1 -1
- package/dist/{index-CXtZjjgy.d.mts → index-Dlup-3Az.d.mts} +17 -17
- package/dist/{index-CXtZjjgy.d.mts.map → index-Dlup-3Az.d.mts.map} +1 -1
- package/dist/index-reference-j3KdvbVm.d.mts +1 -0
- package/dist/{index-reference-CjvRzUh1-CG0Ouv6i.d.mts → index-reference-kUL7aEBI-DYcs4N7J.d.mts} +3 -3
- package/dist/{index-reference-CjvRzUh1-CG0Ouv6i.d.mts.map → index-reference-kUL7aEBI-DYcs4N7J.d.mts.map} +1 -1
- package/dist/{interpreter-DoQwVOyS-jsuDJlaX.mjs → interpreter-CMHH_zlH-BOZVPx6S.mjs} +10 -10
- package/dist/interpreter-CMHH_zlH-BOZVPx6S.mjs.map +1 -0
- package/dist/{middleware-DzFPUERE-C6RrGmcp.d.mts → middleware-BZYekCO2-DeY82fwI.d.mts} +3 -3
- package/dist/{middleware-DzFPUERE-C6RrGmcp.d.mts.map → middleware-BZYekCO2-DeY82fwI.d.mts.map} +1 -1
- package/dist/middleware-Q-P3nMQA.d.mts +1 -0
- package/dist/{migration-BUWF9_Tx.d.mts → migration-aQa4CVb-.d.mts} +2 -2
- package/dist/{migration-BUWF9_Tx.d.mts.map → migration-aQa4CVb-.d.mts.map} +1 -1
- package/dist/orm-client.d.mts +17 -17
- package/dist/orm-client.mjs +21 -18
- package/dist/orm-client.mjs.map +1 -1
- package/dist/{plan-Dv6v5_y4-CGWEjfCv.d.mts → plan-Dd6M8olW-Dynb9vKp.d.mts} +3 -3
- package/dist/{plan-Dv6v5_y4-CGWEjfCv.d.mts.map → plan-Dd6M8olW-Dynb9vKp.d.mts.map} +1 -1
- package/dist/plan-G5_dBmgg.d.mts +2 -0
- package/dist/{psl-field-resolution-CpxUePg1-DIrhHYx0.mjs → psl-field-resolution-CpxUePg1-CTitB6W5.mjs} +3 -3
- package/dist/{psl-field-resolution-CpxUePg1-DIrhHYx0.mjs.map → psl-field-resolution-CpxUePg1-CTitB6W5.mjs.map} +1 -1
- package/dist/{query-lane-context-BetHj4j--D3S5nucp.d.mts → query-lane-context-D4U6ox8I-CGLC-1HK.d.mts} +5 -5
- package/dist/{query-lane-context-BetHj4j--D3S5nucp.d.mts.map → query-lane-context-D4U6ox8I-CGLC-1HK.d.mts.map} +1 -1
- package/dist/query-lane-context-TQxP0UjW.d.mts +1 -0
- 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__codec-descriptor-registry.mjs +1 -1
- 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 +13 -4
- package/dist/relational-core__contract-free.mjs.map +1 -1
- package/dist/relational-core__expression.d.mts +3 -3
- package/dist/relational-core__expression.mjs +1 -1
- package/dist/relational-core__functions.d.mts +2 -2
- 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-hb9EW6FW.mjs → sql-contract-serializer-sMY3prTx-C3OF1gr9.mjs} +2 -2
- package/dist/{sql-contract-serializer-sMY3prTx-hb9EW6FW.mjs.map → sql-contract-serializer-sMY3prTx-C3OF1gr9.mjs.map} +1 -1
- package/dist/{sql-execution-plan-4OFBeONp-CLkDqMdz.d.mts → sql-execution-plan-BKmtONvF-bBXCQ0s1.d.mts} +3 -3
- package/dist/sql-execution-plan-BKmtONvF-bBXCQ0s1.d.mts.map +1 -0
- package/dist/{transaction-state-B4FVsvO7-DpvKYHSB.d.mts → transaction-state-B4FVsvO7-C0kgrpwC.d.mts} +9 -9
- package/dist/{transaction-state-B4FVsvO7-DpvKYHSB.d.mts.map → transaction-state-B4FVsvO7-C0kgrpwC.d.mts.map} +1 -1
- package/dist/{types-DEbNJhyS-CY7Ye2vN.d.mts → types-BseDMzbO-jM1a1F4N.d.mts} +5 -3
- package/dist/{types-DEbNJhyS-CY7Ye2vN.d.mts.map → types-BseDMzbO-jM1a1F4N.d.mts.map} +1 -1
- package/dist/{types-DzQmUrUm-ColHE4Av.mjs → types-BtItVHx6-BEDme1ZL.mjs} +15 -14
- package/dist/types-BtItVHx6-BEDme1ZL.mjs.map +1 -0
- package/dist/{types-CGr02DOy-CQsUdKCe.d.mts → types-CMSRIhJK-D0oiijer.d.mts} +6 -6
- package/dist/{types-CGr02DOy-CQsUdKCe.d.mts.map → types-CMSRIhJK-D0oiijer.d.mts.map} +1 -1
- package/dist/{types-CWvmfrfd-HPIh55bi.d.mts → types-CWvmfrfd-u6aEmYg4.d.mts} +2 -2
- package/dist/{types-CWvmfrfd-HPIh55bi.d.mts.map → types-CWvmfrfd-u6aEmYg4.d.mts.map} +1 -1
- package/dist/types-ClvFL9_q.d.mts +1 -0
- package/dist/{validators-CcR6gGf_.mjs → validators-_FcNfyor.mjs} +8 -5
- package/dist/validators-_FcNfyor.mjs.map +1 -0
- package/package.json +18 -18
- package/dist/ast-BpFfUmb_.mjs.map +0 -1
- package/dist/codec-descriptor-registry-UiFDvDj4.mjs.map +0 -1
- package/dist/collection-methods-CS1e16Ij.d.mts +0 -1
- package/dist/control-BdGTPj7m.mjs.map +0 -1
- package/dist/expression-Bz8uEh8W.d.mts +0 -2
- package/dist/expression-VJWwxbUB-BtNDaTCt.d.mts.map +0 -1
- package/dist/functions-gl3PL1so.d.mts +0 -1
- package/dist/index-reference-X_kA2mV8.d.mts +0 -1
- package/dist/interpreter-DoQwVOyS-jsuDJlaX.mjs.map +0 -1
- package/dist/middleware-CcDThETr.d.mts +0 -1
- package/dist/plan-BjX90QC6.d.mts +0 -2
- package/dist/query-lane-context-DgxWaKr-.d.mts +0 -1
- package/dist/sql-execution-plan-4OFBeONp-CLkDqMdz.d.mts.map +0 -1
- package/dist/types-BFCrGkhG.d.mts +0 -1
- package/dist/types-DzQmUrUm-ColHE4Av.mjs.map +0 -1
- package/dist/validators-CcR6gGf_.mjs.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { l as SqlStorage } from "./sql-storage-B_AM6tU1-BOPQxXo7.mjs";
|
|
2
2
|
import "./types-CXRxo_TK.mjs";
|
|
3
|
-
import { S as SqlPlanTargetDetails, u as SqlMigrationPlanOperation } from "./types-CWvmfrfd-
|
|
3
|
+
import { S as SqlPlanTargetDetails, u as SqlMigrationPlanOperation } from "./types-CWvmfrfd-u6aEmYg4.mjs";
|
|
4
4
|
import { Contract } from "@prisma/orm-framework/contract/types";
|
|
5
5
|
import { Migration } from "@prisma/orm-toolchain/migration-tools/migration";
|
|
6
6
|
//#region ../../../2-sql-family/9-family/dist/migration.d.mts
|
|
@@ -41,4 +41,4 @@ declare abstract class SqlMigration<TDetails extends SqlPlanTargetDetails, TTarg
|
|
|
41
41
|
}
|
|
42
42
|
//#endregion
|
|
43
43
|
export { SqlMigration as t };
|
|
44
|
-
//# sourceMappingURL=migration-
|
|
44
|
+
//# sourceMappingURL=migration-aQa4CVb-.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"migration-
|
|
1
|
+
{"version":3,"file":"migration-aQa4CVb-.d.mts","names":[],"sources":["../../../../2-sql-family/9-family/dist/migration.d.mts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;uBA0BuB,aAAa,iBAAiB,sBAAsB,mCAAmC,cAAc,SAAS,cAAc,SAAS,aAAa,YAAY,SAAS,cAAc,SAAS,qBAAqB,UAAU,0BAA0B,kBAAkB,WAAW,OAAO;;;;;;;;;;;MAW5S"}
|
package/dist/orm-client.d.mts
CHANGED
|
@@ -2,24 +2,24 @@ import { t as StorageColumn } from "./storage-value-object-BcvIeUr8-DiiZNIrZ.mjs
|
|
|
2
2
|
import { l as SqlStorage } from "./sql-storage-B_AM6tU1-BOPQxXo7.mjs";
|
|
3
3
|
import { D as QueryOperationTypesBase, d as ExtractAggregateTypes, f as ExtractCodecTypes, h as ExtractQueryOperationTypes, m as ExtractFieldOutputTypes, p as ExtractFieldInputTypes } from "./types-DNTLudNR-DiVulPhL.mjs";
|
|
4
4
|
import { n as HasExecutionCreateDefault, r as IsOptionalCreateColumn } from "./types-CXRxo_TK.mjs";
|
|
5
|
-
import { Ct as OrderByNulls, E as CodecRef$1, O as ColumnRef, St as OrderByItem, Vt as TableSource, Wt as WhereArg, _ as BinaryExpr, a as AndExpr, c as AnyExpression, ct as LimitOffsetValue, dt as LockStrength, pt as LockingClause, r as AggregateFn, xt as OrExpr, yt as NullCheckExpr } from "./types-
|
|
5
|
+
import { Ct as OrderByNulls, E as CodecRef$1, O as ColumnRef, St as OrderByItem, Vt as TableSource, Wt as WhereArg, _ as BinaryExpr, a as AndExpr, c as AnyExpression, ct as LimitOffsetValue, dt as LockStrength, pt as LockingClause, r as AggregateFn, xt as OrExpr, yt as NullCheckExpr } from "./types-BseDMzbO-jM1a1F4N.mjs";
|
|
6
6
|
import { d as SqlTransactionOptions } from "./driver-types-DFz7U-LT-DaVdVhU9.mjs";
|
|
7
|
-
import { n as SqlQueryPlan, t as Preparable } from "./plan-
|
|
8
|
-
import { M as TraitExpression, a as CodecExpression, i as BuiltinFunctions, l as Expression, n as BooleanCodecType, o as CodecTypesBase, x as RawSqlInterpolation } from "./expression-
|
|
9
|
-
import "./expression-
|
|
10
|
-
import "./functions-
|
|
11
|
-
import { c as LockOptionCapabilities, l as LockStrengthCapabilities, u as LockWaitOptions } from "./ast-
|
|
12
|
-
import { r as TableIndexReferences, t as IndexReference } from "./index-reference-
|
|
13
|
-
import "./index-reference-
|
|
14
|
-
import "./plan-
|
|
15
|
-
import { c as CollectionMethodRegistry, r as CollectionMethodContributionId, u as ContributedMethodSignature } from "./collection-methods-
|
|
16
|
-
import { n as ExecutionContext } from "./query-lane-context-
|
|
17
|
-
import "./query-lane-context-
|
|
18
|
-
import { h as RuntimeScope, o as ComputeColumnJsType } from "./types-
|
|
19
|
-
import "./types-
|
|
20
|
-
import { l as PreparedFor, n as Declaration, o as ParamsFromDeclaration, t as BindSiteParams, u as PreparedStatement } from "./transaction-state-B4FVsvO7-
|
|
21
|
-
import "./collection-methods-
|
|
22
|
-
import { B as ActivitySourceTarget, Y as Runtime, tt as RuntimeQueryable$1 } from "./index-
|
|
7
|
+
import { n as SqlQueryPlan, t as Preparable } from "./plan-Dd6M8olW-Dynb9vKp.mjs";
|
|
8
|
+
import { M as TraitExpression, a as CodecExpression, i as BuiltinFunctions, l as Expression, n as BooleanCodecType, o as CodecTypesBase, x as RawSqlInterpolation } from "./expression-CbgzZLXY-Bzqi0ZTM.mjs";
|
|
9
|
+
import "./expression-DBDD1QR1.mjs";
|
|
10
|
+
import "./functions-CF7EOqOH.mjs";
|
|
11
|
+
import { c as LockOptionCapabilities, l as LockStrengthCapabilities, u as LockWaitOptions } from "./ast-DZnTuPWA.mjs";
|
|
12
|
+
import { r as TableIndexReferences, t as IndexReference } from "./index-reference-kUL7aEBI-DYcs4N7J.mjs";
|
|
13
|
+
import "./index-reference-j3KdvbVm.mjs";
|
|
14
|
+
import "./plan-G5_dBmgg.mjs";
|
|
15
|
+
import { c as CollectionMethodRegistry, r as CollectionMethodContributionId, u as ContributedMethodSignature } from "./collection-methods-HlRizYfF-DKdq47dN.mjs";
|
|
16
|
+
import { n as ExecutionContext } from "./query-lane-context-D4U6ox8I-CGLC-1HK.mjs";
|
|
17
|
+
import "./query-lane-context-TQxP0UjW.mjs";
|
|
18
|
+
import { h as RuntimeScope, o as ComputeColumnJsType } from "./types-CMSRIhJK-D0oiijer.mjs";
|
|
19
|
+
import "./types-ClvFL9_q.mjs";
|
|
20
|
+
import { l as PreparedFor, n as Declaration, o as ParamsFromDeclaration, t as BindSiteParams, u as PreparedStatement } from "./transaction-state-B4FVsvO7-C0kgrpwC.mjs";
|
|
21
|
+
import "./collection-methods-CO0bz9PJ.mjs";
|
|
22
|
+
import { B as ActivitySourceTarget, Y as Runtime, tt as RuntimeQueryable$1 } from "./index-Dlup-3Az.mjs";
|
|
23
23
|
import { Contract } from "@prisma/orm-framework/contract/types";
|
|
24
24
|
import { CodecDescriptorRef, ScalarFieldDeclarationBuilder } from "@prisma/orm-framework/components/codec";
|
|
25
25
|
import { AsyncIterableResult, MetaBuilder, ResultType, RuntimeExecuteOptions } from "@prisma/orm-framework/components/runtime";
|
package/dist/orm-client.mjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { t as resolveStorageTable } from "./resolve-storage-table-BHLQsOza.mjs";
|
|
2
|
-
import { A as ParamRef, C as LiteralExpr, E as NullCheckExpr, F as SelectAst, G as isOrderByDirection, H as collectTableSources, I as SubqueryExpr, J as isWhereExpr, K as isOrderByNulls, L as TableSource, M as ProjectionItem, O as OrExpr, R as UpdateAst, S as ListExpression, T as NotExpr, V as checkLimitOffset, W as isAggregateFn, _ as InsertAst, b as JsonArrayAggExpr, c as DeleteAst, f as EqColJoinOn, i as CaseExpr, k as OrderByItem, l as DerivedTableSource, n as AndExpr, o as ColumnRef, p as ExistsExpr, r as BinaryExpr, s as DefaultValueExpr, t as AggregateExpr, v as InsertOnConflict, w as LockingClause, x as JsonObjectExpr, y as JoinAst, z as WindowFuncExpr } from "./types-
|
|
2
|
+
import { A as ParamRef, C as LiteralExpr, E as NullCheckExpr, F as SelectAst, G as isOrderByDirection, H as collectTableSources, I as SubqueryExpr, J as isWhereExpr, K as isOrderByNulls, L as TableSource, M as ProjectionItem, O as OrExpr, R as UpdateAst, S as ListExpression, T as NotExpr, V as checkLimitOffset, W as isAggregateFn, _ as InsertAst, b as JsonArrayAggExpr, c as DeleteAst, f as EqColJoinOn, i as CaseExpr, k as OrderByItem, l as DerivedTableSource, n as AndExpr, o as ColumnRef, p as ExistsExpr, r as BinaryExpr, s as DefaultValueExpr, t as AggregateExpr, v as InsertOnConflict, w as LockingClause, x as JsonObjectExpr, y as JoinAst, z as WindowFuncExpr } from "./types-BtItVHx6-BEDme1ZL.mjs";
|
|
3
3
|
import { t as collectOrderedParamRefs } from "./util-DixeJBri-Cad7x5ec.mjs";
|
|
4
|
-
import { D as lockWaitPolicyOf, E as lockStrengthCapabilities, O as missingCapability, T as lockOptionCapabilities, n as JsonDocumentProjection, r as NativeJsonValueProjection, t as CodecJsonValueProjection, w as lockIncompatible } from "./ast-
|
|
5
|
-
import { a as isExpression, s as toExpr, t as ExpressionImpl } from "./expression-impl-
|
|
6
|
-
import { n as codecRefForStorageColumn } from "./codec-descriptor-registry-
|
|
7
|
-
import { t as createFunctions } from "./functions-
|
|
4
|
+
import { D as lockWaitPolicyOf, E as lockStrengthCapabilities, O as missingCapability, T as lockOptionCapabilities, n as JsonDocumentProjection, r as NativeJsonValueProjection, t as CodecJsonValueProjection, w as lockIncompatible } from "./ast-B1GOjYn-.mjs";
|
|
5
|
+
import { a as isExpression, s as toExpr, t as ExpressionImpl } from "./expression-impl-D9Le3c2y-MF0Fctq9.mjs";
|
|
6
|
+
import { n as codecRefForStorageColumn } from "./codec-descriptor-registry-CQ9M2B3L.mjs";
|
|
7
|
+
import { t as createFunctions } from "./functions-BV4CyVZ0.mjs";
|
|
8
8
|
import { t as createIndexReferences } from "./index-reference-BQSrkRfT.mjs";
|
|
9
|
-
import { h as findActivitySource } from "./exports-D4xgPPzV-
|
|
9
|
+
import { h as findActivitySource } from "./exports-D4xgPPzV-BWjldMmf.mjs";
|
|
10
10
|
import { isStructuredError, structuredError } from "@prisma/orm-framework/utils/structured-error";
|
|
11
11
|
import { ifDefined } from "@prisma/orm-framework/utils/defined";
|
|
12
12
|
import { domainModelsAtDefaultNamespace } from "@prisma/orm-framework/contract/types";
|
|
@@ -216,7 +216,7 @@ function getModelAndEveryVariantFieldColumns(contract, namespaceId, modelName) {
|
|
|
216
216
|
const columns = {};
|
|
217
217
|
const add = (fieldColumns) => {
|
|
218
218
|
for (const [field, column] of Object.entries(fieldColumns)) {
|
|
219
|
-
const existing = columns[field] ?? [];
|
|
219
|
+
const existing = Object.hasOwn(columns, field) ? columns[field] ?? [] : [];
|
|
220
220
|
if (!existing.includes(column)) existing.push(column);
|
|
221
221
|
columns[field] = existing;
|
|
222
222
|
}
|
|
@@ -851,11 +851,14 @@ function getMergedColumnToFieldMap(contract, namespaceId, baseModelName, variant
|
|
|
851
851
|
perContract.set(cacheKey, merged);
|
|
852
852
|
return merged;
|
|
853
853
|
}
|
|
854
|
+
function ownValue(row, column) {
|
|
855
|
+
return Object.hasOwn(row, column) ? row[column] : void 0;
|
|
856
|
+
}
|
|
854
857
|
function variantTableOf(tables, variant) {
|
|
855
858
|
return variant.strategy === "mti" ? requireVariantTable(tables, variant.value) : void 0;
|
|
856
859
|
}
|
|
857
860
|
function mapPolymorphicRow(contract, namespaceId, baseModelName, polyInfo, tables, row, variantValue) {
|
|
858
|
-
const discriminatorValue = row
|
|
861
|
+
const discriminatorValue = ownValue(row, polyInfo.discriminatorColumn) ?? row["__prisma_polymorphic_discriminator"];
|
|
859
862
|
const selectedValue = variantValue ?? discriminatorValue;
|
|
860
863
|
const variant = typeof selectedValue === "string" ? polyInfo.variants.get(selectedValue) : void 0;
|
|
861
864
|
if (!variant) return mapKnownColumnNames(row, getModelColumnFields(contract, namespaceId, baseModelName));
|
|
@@ -873,7 +876,7 @@ function createPolymorphicRowMapper(contract, namespaceId, baseModelName, polyIn
|
|
|
873
876
|
}
|
|
874
877
|
const discriminatorColumn = polyInfo.discriminatorColumn;
|
|
875
878
|
return (row) => {
|
|
876
|
-
const value = row
|
|
879
|
+
const value = ownValue(row, discriminatorColumn) ?? row["__prisma_polymorphic_discriminator"];
|
|
877
880
|
return (variantValue ? pinnedMapper : typeof value === "string" ? mappersByValue.get(value) ?? baseMapper : baseMapper)(row);
|
|
878
881
|
};
|
|
879
882
|
}
|
|
@@ -1379,7 +1382,7 @@ function paramRefForAlias(contract, columnRef, value, aliases) {
|
|
|
1379
1382
|
}
|
|
1380
1383
|
function paramRefForTable(contract, coordinate, alias, column, value) {
|
|
1381
1384
|
const resolved = resolveStorageTable(contract.storage, coordinate.tableName, coordinate.namespaceId);
|
|
1382
|
-
if (resolved === void 0 || !resolved.table.columns
|
|
1385
|
+
if (resolved === void 0 || !Object.hasOwn(resolved.table.columns, column)) throw unknownColumn(alias, column);
|
|
1383
1386
|
const codec = codecRefForStorageColumn(contract.storage, resolved.namespaceId, coordinate.tableName, column);
|
|
1384
1387
|
return ParamRef.of(value, codec ? { codec } : void 0);
|
|
1385
1388
|
}
|
|
@@ -1459,7 +1462,7 @@ function buildCursorWhere(contract, table, orderBy, cursor) {
|
|
|
1459
1462
|
for (const order of orderBy) {
|
|
1460
1463
|
if (order.expr.kind !== "column-ref") throw new InternalError("assertCursorCompatibleOrder admits only column orders");
|
|
1461
1464
|
const column = order.expr.column;
|
|
1462
|
-
const value = cursor[column];
|
|
1465
|
+
const value = Object.hasOwn(cursor, column) ? cursor[column] : void 0;
|
|
1463
1466
|
if (value === void 0) throw ormError("ORM.CURSOR_VALUE_MISSING", `Missing cursor value for orderBy column "${column}"`, { meta: { column } });
|
|
1464
1467
|
entries.push({
|
|
1465
1468
|
column,
|
|
@@ -4616,7 +4619,7 @@ function toParamAssignments(contract, namespaceId, tableName, values) {
|
|
|
4616
4619
|
const assignments = {};
|
|
4617
4620
|
const table = storageTableForContract(contract, namespaceId, tableName);
|
|
4618
4621
|
for (const [column, value] of Object.entries(values)) {
|
|
4619
|
-
if (!table.columns
|
|
4622
|
+
if (!Object.hasOwn(table.columns, column)) throw ormError("ORM.COLUMN_UNKNOWN", `Unknown column "${column}" in table "${tableName}"`, { meta: {
|
|
4620
4623
|
namespaceId,
|
|
4621
4624
|
tableName,
|
|
4622
4625
|
column
|
|
@@ -4644,7 +4647,7 @@ function normalizeInsertRows(contract, namespaceId, tableName, rows) {
|
|
|
4644
4647
|
const normalizedRow = {};
|
|
4645
4648
|
for (const column of orderedColumns) {
|
|
4646
4649
|
if (Object.hasOwn(row, column)) {
|
|
4647
|
-
if (!table.columns
|
|
4650
|
+
if (!Object.hasOwn(table.columns, column)) throw ormError("ORM.COLUMN_UNKNOWN", `Unknown column "${column}" in table "${tableName}"`, { meta: {
|
|
4648
4651
|
namespaceId,
|
|
4649
4652
|
tableName,
|
|
4650
4653
|
column
|
|
@@ -4736,7 +4739,7 @@ function deleteAst(contract, tables, where) {
|
|
|
4736
4739
|
}
|
|
4737
4740
|
function generatedKeyColumn(options) {
|
|
4738
4741
|
const { context, namespaceId, tableName, modelName, rows, method, columns } = options;
|
|
4739
|
-
const [column, ...others] = columns.filter((key) => !rows.every((row) => row[key] !== void 0));
|
|
4742
|
+
const [column, ...others] = columns.filter((key) => !rows.every((row) => Object.hasOwn(row, key) && row[key] !== void 0));
|
|
4740
4743
|
if (column === void 0) return;
|
|
4741
4744
|
const refused = (problem) => ormError("ORM.CAPABILITY_MISSING", `${method} on model "${modelName}" ${problem}`, { meta: {
|
|
4742
4745
|
capability: "returning",
|
|
@@ -4789,7 +4792,7 @@ function conflictKeysOf(contract, namespaceId, tableName, onConflict, conflictCo
|
|
|
4789
4792
|
return [...resolveUniqueKeyColumnSets(contract, namespaceId, tableName), ...uniqueIndexes];
|
|
4790
4793
|
}
|
|
4791
4794
|
function rowThatCannotConflict(rows, keys, parentLinkColumns) {
|
|
4792
|
-
const index = rows.findIndex((row) => !keys.some((key) => key.every((column) => parentLinkColumns.has(column) || row[column] !== void 0 && row[column] !== null)));
|
|
4795
|
+
const index = rows.findIndex((row) => !keys.some((key) => key.every((column) => parentLinkColumns.has(column) || Object.hasOwn(row, column) && row[column] !== void 0 && row[column] !== null)));
|
|
4793
4796
|
return index === -1 ? void 0 : index;
|
|
4794
4797
|
}
|
|
4795
4798
|
function variantInOwnTableOf(contract, namespaceId, modelName, variantValue) {
|
|
@@ -5285,7 +5288,7 @@ function refuseUpsertOfColumnsReadBack(ast, returns, owner, given) {
|
|
|
5285
5288
|
const read = returns.map((column) => column.alias);
|
|
5286
5289
|
const unchanged = /* @__PURE__ */ new Set(["excluded", ast.table.alias ?? ast.table.name]);
|
|
5287
5290
|
const updated = read.filter((column) => {
|
|
5288
|
-
const value = action.set[column];
|
|
5291
|
+
const value = Object.hasOwn(action.set, column) ? action.set[column] : void 0;
|
|
5289
5292
|
return value !== void 0 && !(value.kind === "column-ref" && unchanged.has(value.table) && value.column === column);
|
|
5290
5293
|
});
|
|
5291
5294
|
if (updated.length > 0) throw refused(`updates conflict column "${updated.join("\", \"")}"`);
|
|
@@ -6188,7 +6191,7 @@ function updateValuesOf(collection, data) {
|
|
|
6188
6191
|
function mappedUpdateRow(collection, data) {
|
|
6189
6192
|
const { context, modelName, namespaceId } = collection;
|
|
6190
6193
|
const discriminator = resolvePolymorphismInfo(context.contract, namespaceId, modelName)?.discriminatorField;
|
|
6191
|
-
if (discriminator !== void 0 && data[discriminator] !== void 0) throw ormError("ORM.FIELD_IMMUTABLE", `Update data for model "${modelName}" cannot set its discriminator "${discriminator}"`, { meta: {
|
|
6194
|
+
if (discriminator !== void 0 && Object.hasOwn(data, discriminator) && data[discriminator] !== void 0) throw ormError("ORM.FIELD_IMMUTABLE", `Update data for model "${modelName}" cannot set its discriminator "${discriminator}"`, { meta: {
|
|
6192
6195
|
model: modelName,
|
|
6193
6196
|
field: discriminator
|
|
6194
6197
|
} });
|
|
@@ -7286,7 +7289,7 @@ function identityProjection(collection) {
|
|
|
7286
7289
|
function requireOnlyCollidingKey(context, { modelName, tables }, create, conflictColumns, action) {
|
|
7287
7290
|
const { namespaceId, tableName } = tables.root.storage;
|
|
7288
7291
|
const named = new Set(conflictColumns);
|
|
7289
|
-
const colliding = resolveUniqueKeyColumnSets(context.contract, namespaceId, tableName).find((columns) => !(columns.length === named.size && columns.every((column) => named.has(column))) && !columns.some((column) => create[column] === void 0 && isAutoIncrementColumn(context.contract, namespaceId, tableName, column)));
|
|
7292
|
+
const colliding = resolveUniqueKeyColumnSets(context.contract, namespaceId, tableName).find((columns) => !(columns.length === named.size && columns.every((column) => named.has(column))) && !columns.some((column) => (!Object.hasOwn(create, column) || create[column] === void 0) && isAutoIncrementColumn(context.contract, namespaceId, tableName, column)));
|
|
7290
7293
|
if (colliding === void 0) return;
|
|
7291
7294
|
throw ormError("ORM.CAPABILITY_MISSING", `${action} on model "${modelName}" requires contract capability "insertOnConflictTarget": without it the conflict clause applies to every unique key, and the create values can also collide on (${colliding.join(", ")}), which would update a row other than the one conflictOn names.`, { meta: {
|
|
7292
7295
|
capability: "insertOnConflictTarget",
|