@prisma/orm-family-sql 8.0.0-rc.18-dev.32 → 8.0.0-rc.18-dev.34
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/{ast-DB7g9Mh2.d.mts → ast-DlajRqlB.d.mts} +3 -3
- package/dist/{ast-DB7g9Mh2.d.mts.map → ast-DlajRqlB.d.mts.map} +1 -1
- package/dist/{attribute-specs-BzBk62Jx.d.mts → attribute-specs-CKPSK8oZ.d.mts} +3 -3
- package/dist/{attribute-specs-BzBk62Jx.d.mts.map → attribute-specs-CKPSK8oZ.d.mts.map} +1 -1
- package/dist/authoring-entity-types-DUQLeBf_-DmXuN7I3.d.mts +9 -0
- package/dist/authoring-entity-types-DUQLeBf_-DmXuN7I3.d.mts.map +1 -0
- package/dist/builder.d.mts +3 -3
- package/dist/builder__runtime.d.mts +7 -7
- package/dist/builder__types.d.mts +5 -5
- package/dist/{collection-methods-B-tM7OPZ-DzXedZdV.d.mts → collection-methods-BtJYB_5s-0fek2_wK.d.mts} +3 -3
- package/dist/{collection-methods-B-tM7OPZ-DzXedZdV.d.mts.map → collection-methods-BtJYB_5s-0fek2_wK.d.mts.map} +1 -1
- package/dist/collection-methods-CwBVxvll.d.mts +1 -0
- package/dist/{config-types-BkcCqeAg.mjs → config-types-Dc7u9onO.mjs} +2 -2
- package/dist/{config-types-BkcCqeAg.mjs.map → config-types-Dc7u9onO.mjs.map} +1 -1
- package/dist/{contract-builder-GH-eCIpl.d.mts → contract-builder-C7X80029.d.mts} +8 -5
- package/dist/{contract-builder-GH-eCIpl.d.mts.map → contract-builder-C7X80029.d.mts.map} +1 -1
- package/dist/{contract-builder-D3XaKpyw.mjs → contract-builder-CKfnPa4C.mjs} +2 -2
- package/dist/{contract-builder-D3XaKpyw.mjs.map → contract-builder-CKfnPa4C.mjs.map} +1 -1
- package/dist/contract-prisma7__provider.mjs +7 -7
- package/dist/contract-prisma7__provider.mjs.map +1 -1
- package/dist/contract-psl.d.mts +1 -1
- package/dist/contract-psl.mjs +1 -1
- package/dist/contract-psl__attribute-specs.d.mts +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.d.mts +1 -1
- package/dist/contract-ts.mjs +3 -3
- package/dist/contract-ts__config-types.mjs +1 -1
- package/dist/contract-ts__contract-builder.d.mts +1 -1
- package/dist/contract-ts__contract-builder.mjs +2 -2
- package/dist/{control-Db07JiRl.d.mts → control-B1Nyqky-.d.mts} +11 -15
- package/dist/{control-Db07JiRl.d.mts.map → control-B1Nyqky-.d.mts.map} +1 -1
- package/dist/{control-adapter-Bn0uhplA-BnsQY8_q.d.mts → control-adapter-Bn0uhplA-BBax-2PG.d.mts} +4 -4
- package/dist/{control-adapter-Bn0uhplA-BnsQY8_q.d.mts.map → control-adapter-Bn0uhplA-BBax-2PG.d.mts.map} +1 -1
- package/dist/{control-adapter-DgxEVzhZ.d.mts → control-adapter-QzlyTp1z.d.mts} +2 -2
- package/dist/{control-adapter-DgxEVzhZ.d.mts.map → control-adapter-QzlyTp1z.d.mts.map} +1 -1
- package/dist/{control-DbHnaxDE.mjs → control-jtTYvP_4.mjs} +5 -14
- package/dist/control-jtTYvP_4.mjs.map +1 -0
- package/dist/{db-BmrN9nRS-BGnRxI7X.d.mts → db-BmrN9nRS-DGNx3jwd.d.mts} +10 -10
- package/dist/{db-BmrN9nRS-BGnRxI7X.d.mts.map → db-BmrN9nRS-DGNx3jwd.d.mts.map} +1 -1
- package/dist/{ddl-types-CoP6yAw9-Cxc2zvi3.d.mts → ddl-types-BBrLVtS--u4u-I8L5.d.mts} +3 -3
- package/dist/{ddl-types-CoP6yAw9-Cxc2zvi3.d.mts.map → ddl-types-BBrLVtS--u4u-I8L5.d.mts.map} +1 -1
- package/dist/{default-mapping-CEISdj2g-DF1LzGBR.d.mts → default-mapping-CP8q4TfH-CF6eJMej.d.mts} +6 -4
- package/dist/default-mapping-CP8q4TfH-CF6eJMej.d.mts.map +1 -0
- package/dist/{derived-checks-B1qNxwBL-DFoGexId.mjs → derived-checks-CwbSfZ8d-B3-zWGv_.mjs} +31 -31
- package/dist/{derived-checks-B1qNxwBL-DFoGexId.mjs.map → derived-checks-CwbSfZ8d-B3-zWGv_.mjs.map} +1 -1
- package/dist/{diff-BN_3K9lv.d.mts → diff-DDjcnhgw.d.mts} +2 -2
- package/dist/{diff-BN_3K9lv.d.mts.map → diff-DDjcnhgw.d.mts.map} +1 -1
- package/dist/{expression-sOY1120I-DMTeGMQP.d.mts → expression-BdaU48Qq-Dff96hT_.d.mts} +4 -4
- package/dist/expression-BdaU48Qq-Dff96hT_.d.mts.map +1 -0
- package/dist/{expression-BzrfOiPC-CXjjRKqc.d.mts → expression-CC4544Y8-C_EWTA_0.d.mts} +4 -4
- package/dist/{expression-BzrfOiPC-CXjjRKqc.d.mts.map → expression-CC4544Y8-C_EWTA_0.d.mts.map} +1 -1
- package/dist/expression-DI_LoyKf.d.mts +2 -0
- package/dist/family.d.mts +11 -11
- 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 +1 -1
- package/dist/family__diff.d.mts +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/family__pack.mjs.map +1 -1
- package/dist/family__psl-build.d.mts +3 -3
- package/dist/family__psl-build.mjs +2 -2
- package/dist/family__psl-infer.d.mts +1 -1
- package/dist/{functions-LyIMc_v9.d.mts → functions-wFi6AtCc.d.mts} +3 -3
- package/dist/{functions-LyIMc_v9.d.mts.map → functions-wFi6AtCc.d.mts.map} +1 -1
- package/dist/{generator-functions-BoE7Lc9d-MgcgdnPZ.mjs → generator-functions-DIXj2u8w-B_EpEY8t.mjs} +6 -6
- package/dist/generator-functions-DIXj2u8w-B_EpEY8t.mjs.map +1 -0
- package/dist/{index-Bw9Y19Js.d.mts → index-enjgL4Lb.d.mts} +17 -17
- package/dist/{index-Bw9Y19Js.d.mts.map → index-enjgL4Lb.d.mts.map} +1 -1
- package/dist/{index-reference-DJaQLZA3-DS-GPKXs.d.mts → index-reference-DSsn39tX-EEkv1N4w.d.mts} +3 -3
- package/dist/{index-reference-DJaQLZA3-DS-GPKXs.d.mts.map → index-reference-DSsn39tX-EEkv1N4w.d.mts.map} +1 -1
- package/dist/index-reference-burEIuXy.d.mts +1 -0
- package/dist/{interpreter-Bk0xpelv-4laiO5dH.mjs → interpreter-Dq32sxoS-BcLhPY0_.mjs} +11 -18
- package/dist/interpreter-Dq32sxoS-BcLhPY0_.mjs.map +1 -0
- package/dist/{middleware-oCT0RWkt-DGav7C8b.d.mts → middleware-C7H9kh01-l6_mYpN2.d.mts} +3 -3
- package/dist/{middleware-oCT0RWkt-DGav7C8b.d.mts.map → middleware-C7H9kh01-l6_mYpN2.d.mts.map} +1 -1
- package/dist/middleware-CpxZxPGp.d.mts +1 -0
- package/dist/{migration-go6YP7-v.d.mts → migration-BZJFz90J.d.mts} +2 -2
- package/dist/{migration-go6YP7-v.d.mts.map → migration-BZJFz90J.d.mts.map} +1 -1
- package/dist/orm-client.d.mts +17 -17
- package/dist/{pack-DXEOdHaM.d.mts → pack-C4yN9ooT.d.mts} +3 -3
- package/dist/{pack-DXEOdHaM.d.mts.map → pack-C4yN9ooT.d.mts.map} +1 -1
- package/dist/{plan-Cbed2eDu-3c5s1Aq5.d.mts → plan-BiCLdXQr-0ZB4P6b9.d.mts} +3 -3
- package/dist/plan-BiCLdXQr-0ZB4P6b9.d.mts.map +1 -0
- package/dist/plan-xPa9B6I3.d.mts +2 -0
- package/dist/{psl-build-C41KHJL_.d.mts → psl-build-DETsH_kq.d.mts} +2 -2
- package/dist/{psl-build-C41KHJL_.d.mts.map → psl-build-DETsH_kq.d.mts.map} +1 -1
- package/dist/{psl-build-BYqCjsqi.mjs → psl-build-DzdzY3o1.mjs} +3 -2
- package/dist/{psl-build-BYqCjsqi.mjs.map → psl-build-DzdzY3o1.mjs.map} +1 -1
- package/dist/{psl-column-resolution-DNdqpUxt-C8BST0uW.d.mts → psl-column-resolution-DNdqpUxt-CL8m5aC4.d.mts} +2 -2
- package/dist/{psl-column-resolution-DNdqpUxt-C8BST0uW.d.mts.map → psl-column-resolution-DNdqpUxt-CL8m5aC4.d.mts.map} +1 -1
- package/dist/{psl-field-resolution-BET6wtHZ-C_hO6YE1.mjs → psl-field-resolution-C8s57hFC-Bv6NiK8J.mjs} +10 -13
- package/dist/psl-field-resolution-C8s57hFC-Bv6NiK8J.mjs.map +1 -0
- package/dist/{psl-infer-CALmBIqX.d.mts → psl-infer-C-RcAyUr.d.mts} +2 -2
- package/dist/{psl-infer-CALmBIqX.d.mts.map → psl-infer-C-RcAyUr.d.mts.map} +1 -1
- package/dist/query-lane-context--sVodqqM.d.mts +1 -0
- package/dist/{query-lane-context-BLOPW1rQ-4vNq0fxJ.d.mts → query-lane-context-DEr9NHM--ClIM8v5T.d.mts} +5 -5
- package/dist/{query-lane-context-BLOPW1rQ-4vNq0fxJ.d.mts.map → query-lane-context-DEr9NHM--ClIM8v5T.d.mts.map} +1 -1
- package/dist/relational-core.d.mts +13 -13
- package/dist/relational-core__aggregate-descriptor-registry.d.mts +1 -1
- package/dist/relational-core__ast.d.mts +4 -4
- 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__expression.d.mts +3 -3
- package/dist/relational-core__functions.d.mts +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__internal__prepared-query.d.mts +1 -1
- package/dist/{sql-execution-plan-Dam5yMZg-bDl_0qHQ.d.mts → sql-execution-plan-BEhLlwYP-seGNP8Qr.d.mts} +3 -3
- package/dist/sql-execution-plan-BEhLlwYP-seGNP8Qr.d.mts.map +1 -0
- package/dist/{transaction-state-DR3nKTmH-D_pb9QgR.d.mts → transaction-state-DR3nKTmH-2-ewbth1.d.mts} +9 -9
- package/dist/{transaction-state-DR3nKTmH-D_pb9QgR.d.mts.map → transaction-state-DR3nKTmH-2-ewbth1.d.mts.map} +1 -1
- package/dist/types-BQC-To7K.d.mts +1 -0
- package/dist/{types-DlFdMaDJ-BEDwj-Qv.d.mts → types-DKSRuPhK-DuxW_ceI.d.mts} +4 -5
- package/dist/{types-DlFdMaDJ-BEDwj-Qv.d.mts.map → types-DKSRuPhK-DuxW_ceI.d.mts.map} +1 -1
- package/dist/{types-Cv5t6_Ly-BaGc023t.d.mts → types-Dy1w8GHm-7hJTBOLL.d.mts} +6 -6
- package/dist/{types-Cv5t6_Ly-BaGc023t.d.mts.map → types-Dy1w8GHm-7hJTBOLL.d.mts.map} +1 -1
- package/dist/{types-DVaVM20q-DrinF7w_.d.mts → types-GgcOrYm_-RhoxnXdj.d.mts} +10 -4
- package/dist/types-GgcOrYm_-RhoxnXdj.d.mts.map +1 -0
- package/package.json +18 -18
- package/dist/authoring-entity-types-CZ-vdwYS-DzxLL9BC.d.mts +0 -9
- package/dist/authoring-entity-types-CZ-vdwYS-DzxLL9BC.d.mts.map +0 -1
- package/dist/collection-methods-BNAu8vHk.d.mts +0 -1
- package/dist/control-DbHnaxDE.mjs.map +0 -1
- package/dist/default-mapping-CEISdj2g-DF1LzGBR.d.mts.map +0 -1
- package/dist/expression-CIBqCwC1.d.mts +0 -2
- package/dist/expression-sOY1120I-DMTeGMQP.d.mts.map +0 -1
- package/dist/generator-functions-BoE7Lc9d-MgcgdnPZ.mjs.map +0 -1
- package/dist/index-reference-CsxaNof9.d.mts +0 -1
- package/dist/interpreter-Bk0xpelv-4laiO5dH.mjs.map +0 -1
- package/dist/middleware-MgGkjEXt.d.mts +0 -1
- package/dist/plan-BOyVvttx.d.mts +0 -2
- package/dist/plan-Cbed2eDu-3c5s1Aq5.d.mts.map +0 -1
- package/dist/psl-field-resolution-BET6wtHZ-C_hO6YE1.mjs.map +0 -1
- package/dist/query-lane-context-BPJrXopg.d.mts +0 -1
- package/dist/sql-execution-plan-Dam5yMZg-bDl_0qHQ.d.mts.map +0 -1
- package/dist/types-DVaVM20q-DrinF7w_.d.mts.map +0 -1
- package/dist/types-VUCzaDbp.d.mts +0 -1
|
@@ -3,9 +3,9 @@ import { d as sqlDataTypeOfCodec } from "./sql-data-type-D5cI3M07-DIcPP8s1.mjs";
|
|
|
3
3
|
import { n as declaredBackingObjectName, r as declaredIndexesServeForeignKey } from "./foreign-key-materialization-BPQqd0qF.mjs";
|
|
4
4
|
import { p as validateSqlStorageConsistency, u as validateModelStorageReferences } from "./validators-BlONfdFH.mjs";
|
|
5
5
|
import { t as deriveValueSetFromEntity } from "./value-set-derivation-hook-Di9JZ0X7.mjs";
|
|
6
|
-
import { n as buildSqlContractFromDefinition, t as applySqlSpecifierControlPolicy } from "./derived-checks-
|
|
7
|
-
import { c as instantiateFieldTypeConstructor, h as readDataTypeDefault } from "./psl-field-resolution-
|
|
8
|
-
import { a as normalizeReferentialAction, n as buildEntityTypesByDiscriminator, r as indexFkRelations, t as applyBackrelationCandidates } from "./interpreter-
|
|
6
|
+
import { n as buildSqlContractFromDefinition, t as applySqlSpecifierControlPolicy } from "./derived-checks-CwbSfZ8d-B3-zWGv_.mjs";
|
|
7
|
+
import { c as instantiateFieldTypeConstructor, h as readDataTypeDefault } from "./psl-field-resolution-C8s57hFC-Bv6NiK8J.mjs";
|
|
8
|
+
import { a as normalizeReferentialAction, n as buildEntityTypesByDiscriminator, r as indexFkRelations, t as applyBackrelationCandidates } from "./interpreter-Dq32sxoS-BcLhPY0_.mjs";
|
|
9
9
|
import { isStructuredError } from "@prisma/orm-framework/utils/structured-error";
|
|
10
10
|
import { ifDefined } from "@prisma/orm-framework/utils/defined";
|
|
11
11
|
import { entryForTag, getAuthoringTypeConstructor, instantiateAuthoringEntityType } from "@prisma/orm-framework/components/authoring";
|
|
@@ -206,14 +206,14 @@ function lowerPrisma7Default(input) {
|
|
|
206
206
|
*/
|
|
207
207
|
function scalarValue$1(expression, input, unknown) {
|
|
208
208
|
const span = input.attribute.span;
|
|
209
|
-
const enumValue = enumMemberValue(expression, input);
|
|
209
|
+
const enumValue = enumMemberValue$1(expression, input);
|
|
210
210
|
if (enumValue !== void 0) return enumValue;
|
|
211
211
|
const array = ArrayLiteralAst.cast(expression.syntax);
|
|
212
212
|
const elements = array === void 0 ? void 0 : [...array.elements()];
|
|
213
|
-
if (elements?.some((element) => enumMemberValue(element, input) !== void 0) === true) {
|
|
213
|
+
if (elements?.some((element) => enumMemberValue$1(element, input) !== void 0) === true) {
|
|
214
214
|
const values = [];
|
|
215
215
|
for (const element of elements) {
|
|
216
|
-
const value = enumMemberValue(element, input);
|
|
216
|
+
const value = enumMemberValue$1(element, input);
|
|
217
217
|
if (value === void 0) return unknown("lists may only hold literals or enum members.", span);
|
|
218
218
|
values.push(value);
|
|
219
219
|
}
|
|
@@ -256,7 +256,7 @@ function finerThanColumn(values, isList, input) {
|
|
|
256
256
|
}
|
|
257
257
|
}
|
|
258
258
|
/** The storage value of an enum member name, when the field is typed by a Prisma 7 enum. */
|
|
259
|
-
function enumMemberValue(expression, input) {
|
|
259
|
+
function enumMemberValue$1(expression, input) {
|
|
260
260
|
const member = IdentifierAst.cast(expression.syntax)?.name();
|
|
261
261
|
return member === void 0 ? void 0 : input.enumMembers?.get(member);
|
|
262
262
|
}
|