@prisma/orm-family-sql 8.0.0-rc.18-dev.16 → 8.0.0-rc.18-dev.18
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-DrJ1vHEo.mjs → aggregate-descriptor-registry-Dd7Uj7DJ.mjs} +3 -3
- package/dist/{aggregate-descriptor-registry-DrJ1vHEo.mjs.map → aggregate-descriptor-registry-Dd7Uj7DJ.mjs.map} +1 -1
- package/dist/{ast-BDwGvnKK.mjs → ast-CBO3PEJF.mjs} +73 -47
- package/dist/ast-CBO3PEJF.mjs.map +1 -0
- package/dist/{ast-BoM9T1b2.d.mts → ast-Dzsat0Zb.d.mts} +27 -26
- package/dist/ast-Dzsat0Zb.d.mts.map +1 -0
- package/dist/{attribute-specs-D7EhHD08.d.mts → attribute-specs-2I2xuKEa.d.mts} +4 -3
- package/dist/attribute-specs-2I2xuKEa.d.mts.map +1 -0
- package/dist/{authored-check-naming-CO3GA46Y.mjs → authored-check-naming-CIX7Bbyh.mjs} +3 -3
- package/dist/{authored-check-naming-CO3GA46Y.mjs.map → authored-check-naming-CIX7Bbyh.mjs.map} +1 -1
- package/dist/{authoring-entity-types-CZ-vdwYS-Cl5erH9X.d.mts → authoring-entity-types-CZ-vdwYS-BpyuSxbj.d.mts} +2 -2
- package/dist/{authoring-entity-types-CZ-vdwYS-Cl5erH9X.d.mts.map → authoring-entity-types-CZ-vdwYS-BpyuSxbj.d.mts.map} +1 -1
- package/dist/{authoring-type-constructors-0Iv2zdwS-yMnSyGBK.mjs → authoring-type-constructors-0Iv2zdwS-MFIpJ4fA.mjs} +2 -2
- package/dist/{authoring-type-constructors-0Iv2zdwS-yMnSyGBK.mjs.map → authoring-type-constructors-0Iv2zdwS-MFIpJ4fA.mjs.map} +1 -1
- package/dist/builder.d.mts +3 -3
- package/dist/builder__runtime.d.mts +7 -7
- package/dist/builder__runtime.mjs +2 -2
- package/dist/builder__types.d.mts +5 -5
- package/dist/{codec-descriptor-registry-Bg9OjQf_.mjs → codec-descriptor-registry-4kw8FPpo.mjs} +2 -2
- package/dist/{codec-descriptor-registry-Bg9OjQf_.mjs.map → codec-descriptor-registry-4kw8FPpo.mjs.map} +1 -1
- package/dist/{collection-methods-BnR4UjcW-C_55W2m0.d.mts → collection-methods-B-tM7OPZ-v8HK9Txa.d.mts} +3 -3
- package/dist/{collection-methods-BnR4UjcW-C_55W2m0.d.mts.map → collection-methods-B-tM7OPZ-v8HK9Txa.d.mts.map} +1 -1
- package/dist/collection-methods-DQAFcGEB.d.mts +1 -0
- package/dist/{config-types-ni1nb_HA.mjs → config-types-ComQZUlA.mjs} +2 -2
- package/dist/{config-types-ni1nb_HA.mjs.map → config-types-ComQZUlA.mjs.map} +1 -1
- package/dist/{contract-builder-CH0AIjsv.d.mts → contract-builder-De_fyZGT.d.mts} +6 -6
- package/dist/{contract-builder-CH0AIjsv.d.mts.map → contract-builder-De_fyZGT.d.mts.map} +1 -1
- package/dist/{contract-builder-CiYVj56_.mjs → contract-builder-fQ3gkIR5.mjs} +5 -5
- package/dist/{contract-builder-CiYVj56_.mjs.map → contract-builder-fQ3gkIR5.mjs.map} +1 -1
- package/dist/contract-emitter.mjs +1 -1
- package/dist/contract-prisma7__provider.d.mts +12 -6
- package/dist/contract-prisma7__provider.d.mts.map +1 -1
- package/dist/contract-prisma7__provider.mjs +48 -43
- package/dist/contract-prisma7__provider.mjs.map +1 -1
- package/dist/contract-psl.d.mts +2 -2
- package/dist/contract-psl.d.mts.map +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 +2 -2
- package/dist/contract-ts.mjs +4 -4
- package/dist/contract-ts__config-types.mjs +1 -1
- package/dist/contract-ts__contract-builder.d.mts +2 -2
- package/dist/contract-ts__contract-builder.mjs +3 -3
- package/dist/contract.d.mts +6 -6
- package/dist/contract.mjs +15 -15
- package/dist/contract__authored-check-naming.mjs +1 -1
- package/dist/contract__data-type-support.d.mts +2 -2
- package/dist/contract__data-type-support.mjs +2 -2
- package/dist/contract__data-type.d.mts +2 -2
- package/dist/contract__data-type.mjs +3 -3
- package/dist/contract__entity-kinds.mjs +1 -1
- package/dist/contract__factories.mjs +1 -1
- package/dist/contract__foreign-key-materialization.d.mts +1 -1
- package/dist/contract__foreign-key-materialization.mjs +2 -2
- package/dist/contract__index-naming.mjs +1 -1
- package/dist/contract__sql-expression.d.mts +2 -2
- package/dist/contract__sql-expression.mjs +2 -2
- package/dist/contract__types.mjs +3 -3
- package/dist/contract__validators.d.mts +1 -1
- package/dist/contract__validators.mjs +2 -2
- package/dist/{control-DXqMl_gd.mjs → control-ClahTAD-.mjs} +246 -40
- package/dist/control-ClahTAD-.mjs.map +1 -0
- package/dist/{control-adapter-CkFfBVei-DGf1LihO.d.mts → control-adapter-BCopdpsT-DIHCWbq_.d.mts} +9 -26
- package/dist/control-adapter-BCopdpsT-DIHCWbq_.d.mts.map +1 -0
- package/dist/control-adapter-BsSf5pqM.d.mts +1 -0
- package/dist/{control-CPg4LwJV.d.mts → control-mpACqp72.d.mts} +72 -39
- package/dist/control-mpACqp72.d.mts.map +1 -0
- package/dist/{data-type-CYsho6Yd.d.mts → data-type-B8N33s-_.d.mts} +14 -7
- package/dist/data-type-B8N33s-_.d.mts.map +1 -0
- package/dist/{numeral-text-Cqu87pVe-DJCqBaSC.mjs → data-type-DKk8Unnz.mjs} +2 -2
- package/dist/data-type-DKk8Unnz.mjs.map +1 -0
- package/dist/{data-type-support-CfhpAKLX.mjs → data-type-support-C5-XxxeB.mjs} +11 -24
- package/dist/data-type-support-C5-XxxeB.mjs.map +1 -0
- package/dist/{data-type-support-4TcZuD7d.d.mts → data-type-support-CBcYhSkD.d.mts} +12 -16
- package/dist/data-type-support-CBcYhSkD.d.mts.map +1 -0
- package/dist/{db-BmrN9nRS-CzyybGKR.d.mts → db-BmrN9nRS-xynLbnAy.d.mts} +10 -10
- package/dist/{db-BmrN9nRS-CzyybGKR.d.mts.map → db-BmrN9nRS-xynLbnAy.d.mts.map} +1 -1
- package/dist/{ddl-types-DtKZjNtN-DWQeO79o.d.mts → ddl-types-CoP6yAw9-BDp3W_5g.d.mts} +4 -4
- package/dist/{ddl-types-DtKZjNtN-DWQeO79o.d.mts.map → ddl-types-CoP6yAw9-BDp3W_5g.d.mts.map} +1 -1
- package/dist/{default-mapping-B8_APB1M-CWcTmSQW.d.mts → default-mapping-CEISdj2g-DF1LzGBR.d.mts} +7 -5
- package/dist/default-mapping-CEISdj2g-DF1LzGBR.d.mts.map +1 -0
- package/dist/{derived-checks-Cgx_VgS3-CmFqNFgU.mjs → derived-checks-CrvMQTJF-DlxFFtNM.mjs} +18 -18
- package/dist/derived-checks-CrvMQTJF-DlxFFtNM.mjs.map +1 -0
- package/dist/{diff-CVVGktZG.d.mts → diff-Bd9ILpZL.d.mts} +20 -7
- package/dist/diff-Bd9ILpZL.d.mts.map +1 -0
- package/dist/diff-DZ82XaGR.mjs +21 -0
- package/dist/diff-DZ82XaGR.mjs.map +1 -0
- package/dist/{dist-Cg2lL1hR.mjs → dist-DAHIT4AS.mjs} +2 -2
- package/dist/{dist-Cg2lL1hR.mjs.map → dist-DAHIT4AS.mjs.map} +1 -1
- package/dist/{entity-kinds-CQ_jwgYv-HA5t2SE0.mjs → entity-kinds-CQ_jwgYv-DoOBWwvX.mjs} +3 -3
- package/dist/{entity-kinds-CQ_jwgYv-HA5t2SE0.mjs.map → entity-kinds-CQ_jwgYv-DoOBWwvX.mjs.map} +1 -1
- package/dist/exports-DVsHk8HP-DrH_2a-H.mjs +2371 -0
- package/dist/exports-DVsHk8HP-DrH_2a-H.mjs.map +1 -0
- package/dist/{expression-Ck1wys3N-Cdc7eUQS.d.mts → expression-BzrfOiPC-3NqR8UzK.d.mts} +4 -4
- package/dist/{expression-Ck1wys3N-Cdc7eUQS.d.mts.map → expression-BzrfOiPC-3NqR8UzK.d.mts.map} +1 -1
- package/dist/expression-CeerCjQG.d.mts +2 -0
- package/dist/{expression-CNBCbbzU-DOXKUxQs.d.mts → expression-sOY1120I-DOykEQlw.d.mts} +4 -4
- package/dist/expression-sOY1120I-DOykEQlw.d.mts.map +1 -0
- package/dist/{factories-vDQ3S5gW.mjs → factories-DkD3nMYt.mjs} +3 -3
- package/dist/{factories-vDQ3S5gW.mjs.map → factories-DkD3nMYt.mjs.map} +1 -1
- package/dist/family.d.mts +14 -14
- package/dist/family.mjs +8 -8
- package/dist/family__control-adapter.d.mts +2 -2
- package/dist/family__control.d.mts +5 -5
- package/dist/family__control.mjs +4 -4
- package/dist/family__diff.d.mts +1 -2
- package/dist/family__diff.mjs +2 -2
- package/dist/family__ir.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/family__psl-build.d.mts +2 -2
- package/dist/family__psl-build.mjs +1 -1
- package/dist/family__psl-infer.d.mts +1 -1
- package/dist/family__psl-infer.mjs +1 -1
- package/dist/{foreign-key-materialization-DJ6uhBba.d.mts → foreign-key-materialization-DCaDnUs-.d.mts} +3 -3
- package/dist/{foreign-key-materialization-DJ6uhBba.d.mts.map → foreign-key-materialization-DCaDnUs-.d.mts.map} +1 -1
- package/dist/{foreign-key-materialization-DibQ9Hjg.mjs → foreign-key-materialization-DfNPQL9G.mjs} +4 -4
- package/dist/{foreign-key-materialization-DibQ9Hjg.mjs.map → foreign-key-materialization-DfNPQL9G.mjs.map} +1 -1
- package/dist/{functions-DSwXxsTg.d.mts → functions-Cp8soSAv.d.mts} +3 -3
- package/dist/{functions-DSwXxsTg.d.mts.map → functions-Cp8soSAv.d.mts.map} +1 -1
- package/dist/{index-C8jUgdUh.d.mts → index-BxlXOVeT.d.mts} +30 -23
- package/dist/{index-C8jUgdUh.d.mts.map → index-BxlXOVeT.d.mts.map} +1 -1
- package/dist/{index-equivalence-DswCiq5l-DlC2yTK1.mjs → index-equivalence-DswCiq5l-BsphajRC.mjs} +2 -2
- package/dist/{index-equivalence-DswCiq5l-DlC2yTK1.mjs.map → index-equivalence-DswCiq5l-BsphajRC.mjs.map} +1 -1
- package/dist/{index-naming-BOcJT1B3-CeEoP8t3.mjs → index-naming-BOcJT1B3-18gQUduD.mjs} +2 -2
- package/dist/{index-naming-BOcJT1B3-CeEoP8t3.mjs.map → index-naming-BOcJT1B3-18gQUduD.mjs.map} +1 -1
- package/dist/index-reference-CWppFpUV.d.mts +1 -0
- package/dist/{index-reference-DJX-CNsb-D5uoBnH_.d.mts → index-reference-DJaQLZA3-DxmYkkX-.d.mts} +3 -3
- package/dist/{index-reference-DJX-CNsb-D5uoBnH_.d.mts.map → index-reference-DJaQLZA3-DxmYkkX-.d.mts.map} +1 -1
- package/dist/{interpreter-CvmBTYyI-DNl-jr2E.mjs → interpreter-CFj2aTEP-BHL3TOqk.mjs} +13 -11
- package/dist/interpreter-CFj2aTEP-BHL3TOqk.mjs.map +1 -0
- package/dist/{ir-D0Vpm5O9.d.mts → ir-DgNo535E.d.mts} +4 -2
- package/dist/ir-DgNo535E.d.mts.map +1 -0
- package/dist/ir-I-xciGUH.mjs.map +1 -1
- package/dist/middleware-IqWk9Eff.d.mts +1 -0
- package/dist/{middleware-YsFLC19Y-5mJZCBWq.d.mts → middleware-oCT0RWkt-AFlRNCOD.d.mts} +3 -3
- package/dist/{middleware-YsFLC19Y-5mJZCBWq.d.mts.map → middleware-oCT0RWkt-AFlRNCOD.d.mts.map} +1 -1
- package/dist/{migration-ESRa6312.d.mts → migration-lg_VgP_F.d.mts} +2 -2
- package/dist/{migration-ESRa6312.d.mts.map → migration-lg_VgP_F.d.mts.map} +1 -1
- package/dist/{naming-CT8tRisJ-DLHKo0Hm.mjs → naming-bM5qm5PY-DdginUhA.mjs} +2 -2
- package/dist/{naming-CT8tRisJ-DLHKo0Hm.mjs.map → naming-bM5qm5PY-DdginUhA.mjs.map} +1 -1
- package/dist/{opaque-sql-BWxbqe5a-GGKfyakq.mjs → opaque-sql-Dset3kln-BzzXoO94.mjs} +3 -3
- package/dist/opaque-sql-Dset3kln-BzzXoO94.mjs.map +1 -0
- package/dist/orm-client.d.mts +28 -60
- package/dist/orm-client.d.mts.map +1 -1
- package/dist/orm-client.mjs +564 -233
- package/dist/orm-client.mjs.map +1 -1
- package/dist/{pack-BtGENS4_.d.mts → pack-CyjyMUN0.d.mts} +3 -3
- package/dist/{pack-BtGENS4_.d.mts.map → pack-CyjyMUN0.d.mts.map} +1 -1
- package/dist/plan-BZpZafiQ.d.mts +2 -0
- package/dist/{plan-cGEaSXHv-yuz43WrR.d.mts → plan-Cbed2eDu-BZM3geSm.d.mts} +3 -3
- package/dist/plan-Cbed2eDu-BZM3geSm.d.mts.map +1 -0
- package/dist/{psl-build-PXVtl8gM.d.mts → psl-build-BHQfP1_C.d.mts} +5 -5
- package/dist/{psl-build-PXVtl8gM.d.mts.map → psl-build-BHQfP1_C.d.mts.map} +1 -1
- package/dist/{psl-build-8bx9WTUt.mjs → psl-build-BsJ6eChh.mjs} +118 -84
- package/dist/psl-build-BsJ6eChh.mjs.map +1 -0
- package/dist/{psl-column-resolution-BCkhNzOK-Bbrs_WzK.d.mts → psl-column-resolution-BCkhNzOK-mW_8C9vr.d.mts} +2 -2
- package/dist/{psl-column-resolution-BCkhNzOK-Bbrs_WzK.d.mts.map → psl-column-resolution-BCkhNzOK-mW_8C9vr.d.mts.map} +1 -1
- package/dist/{psl-field-resolution-SPNDr-jr-CH_gs3Oy.mjs → psl-field-resolution-o9sXqIlE-BJnlxQ4z.mjs} +76 -66
- package/dist/psl-field-resolution-o9sXqIlE-BJnlxQ4z.mjs.map +1 -0
- package/dist/{psl-infer-g040TwAr.d.mts → psl-infer-B6iemK9i.d.mts} +4 -4
- package/dist/{psl-infer-g040TwAr.d.mts.map → psl-infer-B6iemK9i.d.mts.map} +1 -1
- package/dist/{psl-infer-CG0_wra6.mjs → psl-infer-HPi_YMeE.mjs} +2 -2
- package/dist/{psl-infer-CG0_wra6.mjs.map → psl-infer-HPi_YMeE.mjs.map} +1 -1
- package/dist/{query-lane-context-C42-u9L1-BSJoP83K.d.mts → query-lane-context-BLOPW1rQ-Bn3ugl9a.d.mts} +5 -5
- package/dist/{query-lane-context-C42-u9L1-BSJoP83K.d.mts.map → query-lane-context-BLOPW1rQ-Bn3ugl9a.d.mts.map} +1 -1
- package/dist/query-lane-context-Dpep1Fzy.d.mts +1 -0
- package/dist/relational-core.d.mts +12 -12
- package/dist/relational-core.mjs +2 -2
- 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 +3 -3
- package/dist/relational-core__ast.mjs +2 -2
- 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 +3 -3
- package/dist/relational-core__contract-free.mjs +2 -2
- package/dist/relational-core__contract-free.mjs.map +1 -1
- 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 +5 -5
- package/dist/runtime.mjs +1 -2289
- package/dist/runtime__internal__prepared-query.d.mts +1 -1
- package/dist/{schema-differ-CqWOkoW9-uVU2SdFf.d.mts → schema-differ-DmP74bB8-BGA6fzOv.d.mts} +4 -4
- package/dist/{schema-differ-CqWOkoW9-uVU2SdFf.d.mts.map → schema-differ-DmP74bB8-BGA6fzOv.d.mts.map} +1 -1
- package/dist/schema-ir.d.mts +2 -2
- package/dist/schema-ir.mjs +2 -2
- package/dist/schema-ir__naming.mjs +1 -1
- package/dist/schema-ir__types.d.mts +3 -3
- package/dist/schema-ir__types.mjs +2 -2
- package/dist/{schema-verify-DIfHSB4I-wt28gB9e.mjs → schema-verify-BwRdzbHb-B9vFrm3T.mjs} +22 -6
- package/dist/schema-verify-BwRdzbHb-B9vFrm3T.mjs.map +1 -0
- package/dist/{serialized-index-52COq1yV-D8zJP-Xl.mjs → serialized-index-52COq1yV-CUJ2F65u.mjs} +3 -3
- package/dist/{serialized-index-52COq1yV-D8zJP-Xl.mjs.map → serialized-index-52COq1yV-CUJ2F65u.mjs.map} +1 -1
- package/dist/{sql-contract-serializer-DDaAVCQr-Ba3XOCG6.mjs → sql-contract-serializer-sMY3prTx-C8IEwSsf.mjs} +12 -7
- package/dist/sql-contract-serializer-sMY3prTx-C8IEwSsf.mjs.map +1 -0
- package/dist/{data-type-DU0mtme5.mjs → sql-data-type-Dabuwxet-BljsNjBu.mjs} +32 -13
- package/dist/sql-data-type-Dabuwxet-BljsNjBu.mjs.map +1 -0
- package/dist/{sql-execution-plan-C7XauPPu-BgBp89vP.d.mts → sql-execution-plan-Dam5yMZg-Bc_eneSz.d.mts} +3 -3
- package/dist/sql-execution-plan-Dam5yMZg-Bc_eneSz.d.mts.map +1 -0
- package/dist/{sql-expression-BWrjmY6M.d.mts → sql-expression-BAtH-2UU.d.mts} +6 -6
- package/dist/sql-expression-BAtH-2UU.d.mts.map +1 -0
- package/dist/{sql-expression-DSRILiU2.mjs → sql-expression-BJCuy-WI.mjs} +15 -9
- package/dist/sql-expression-BJCuy-WI.mjs.map +1 -0
- package/dist/{storage-table-DN36E2yE-Bm5eKeGw.mjs → storage-table-DN36E2yE-0ncS821l.mjs} +2 -2
- package/dist/{storage-table-DN36E2yE-Bm5eKeGw.mjs.map → storage-table-DN36E2yE-0ncS821l.mjs.map} +1 -1
- package/dist/{transaction-state-DR3nKTmH-D5eFB250.d.mts → transaction-state-DR3nKTmH-n_12DsnU.d.mts} +9 -9
- package/dist/{transaction-state-DR3nKTmH-D5eFB250.d.mts.map → transaction-state-DR3nKTmH-n_12DsnU.d.mts.map} +1 -1
- package/dist/types-BLyhYk6B.d.mts +1 -0
- package/dist/{types-DvhckjSz-Cm0Oodhr.mjs → types-CaVn_xxe-D9WdU3Iy.mjs} +81 -157
- package/dist/types-CaVn_xxe-D9WdU3Iy.mjs.map +1 -0
- package/dist/{types-Cl4MLNrS-BXDsTb9U.d.mts → types-Cv5t6_Ly-CcBWTpfM.d.mts} +6 -6
- package/dist/{types-Cl4MLNrS-BXDsTb9U.d.mts.map → types-Cv5t6_Ly-CcBWTpfM.d.mts.map} +1 -1
- package/dist/{types-Sh5HuaZE-BwZNUDEi.d.mts → types-DVaVM20q-B-QcMIOa.d.mts} +9 -20
- package/dist/types-DVaVM20q-B-QcMIOa.d.mts.map +1 -0
- package/dist/{types-CzxOObSY-Cq3t_HCe.d.mts → types-DaYtBAYT-B22gkh5z.d.mts} +5 -5
- package/dist/{types-CzxOObSY-Cq3t_HCe.d.mts.map → types-DaYtBAYT-B22gkh5z.d.mts.map} +1 -1
- package/dist/{types-GS3fwvoX.mjs → types-M_FeBD9w.mjs} +2 -2
- package/dist/{types-GS3fwvoX.mjs.map → types-M_FeBD9w.mjs.map} +1 -1
- package/dist/types-_7TbRpPw.d.mts +1 -0
- package/dist/{types-C-z8HyiZ-1Nhw0pHj.d.mts → types-c1iIhJep-DdMj6TNl.d.mts} +49 -51
- package/dist/types-c1iIhJep-DdMj6TNl.d.mts.map +1 -0
- package/dist/{validators-DlpO67uZ.mjs → validators-Bvfk0aN7.mjs} +14 -11
- package/dist/validators-Bvfk0aN7.mjs.map +1 -0
- package/dist/{validators-R-Wsy5Rr.d.mts → validators-CTZ-hU2l.d.mts} +4 -1
- package/dist/validators-CTZ-hU2l.d.mts.map +1 -0
- package/package.json +18 -18
- package/dist/ast-BDwGvnKK.mjs.map +0 -1
- package/dist/ast-BoM9T1b2.d.mts.map +0 -1
- package/dist/attribute-specs-D7EhHD08.d.mts.map +0 -1
- package/dist/collection-methods-CyUXbXVw.d.mts +0 -1
- package/dist/control-CPg4LwJV.d.mts.map +0 -1
- package/dist/control-DXqMl_gd.mjs.map +0 -1
- package/dist/control-adapter-CkFfBVei-DGf1LihO.d.mts.map +0 -1
- package/dist/control-adapter-DDjgBMy3.d.mts +0 -1
- package/dist/data-type-CYsho6Yd.d.mts.map +0 -1
- package/dist/data-type-DU0mtme5.mjs.map +0 -1
- package/dist/data-type-support-4TcZuD7d.d.mts.map +0 -1
- package/dist/data-type-support-CfhpAKLX.mjs.map +0 -1
- package/dist/default-mapping-B8_APB1M-CWcTmSQW.d.mts.map +0 -1
- package/dist/derived-checks-Cgx_VgS3-CmFqNFgU.mjs.map +0 -1
- package/dist/diff-B16bL_IR.mjs +0 -13
- package/dist/diff-B16bL_IR.mjs.map +0 -1
- package/dist/diff-CVVGktZG.d.mts.map +0 -1
- package/dist/expression-CNBCbbzU-DOXKUxQs.d.mts.map +0 -1
- package/dist/expression-DUYovBa6.d.mts +0 -2
- package/dist/index-reference-DGQdSRjQ.d.mts +0 -1
- package/dist/interpreter-CvmBTYyI-DNl-jr2E.mjs.map +0 -1
- package/dist/ir-D0Vpm5O9.d.mts.map +0 -1
- package/dist/middleware-Bp-R5o9E.d.mts +0 -1
- package/dist/numeral-text-Cqu87pVe-DJCqBaSC.mjs.map +0 -1
- package/dist/opaque-sql-BWxbqe5a-GGKfyakq.mjs.map +0 -1
- package/dist/plan-DdpaNNu1.d.mts +0 -2
- package/dist/plan-cGEaSXHv-yuz43WrR.d.mts.map +0 -1
- package/dist/psl-build-8bx9WTUt.mjs.map +0 -1
- package/dist/psl-field-resolution-SPNDr-jr-CH_gs3Oy.mjs.map +0 -1
- package/dist/query-lane-context-C4xq68Mr.d.mts +0 -1
- package/dist/runtime.mjs.map +0 -1
- package/dist/schema-verify-DIfHSB4I-wt28gB9e.mjs.map +0 -1
- package/dist/sql-contract-serializer-DDaAVCQr-Ba3XOCG6.mjs.map +0 -1
- package/dist/sql-execution-plan-C7XauPPu-BgBp89vP.d.mts.map +0 -1
- package/dist/sql-expression-BWrjmY6M.d.mts.map +0 -1
- package/dist/sql-expression-DSRILiU2.mjs.map +0 -1
- package/dist/types-BSBsW0qR.d.mts +0 -1
- package/dist/types-C-z8HyiZ-1Nhw0pHj.d.mts.map +0 -1
- package/dist/types-CJK7FBdw.d.mts +0 -1
- package/dist/types-DvhckjSz-Cm0Oodhr.mjs.map +0 -1
- package/dist/types-Sh5HuaZE-BwZNUDEi.d.mts.map +0 -1
- package/dist/validators-DlpO67uZ.mjs.map +0 -1
- package/dist/validators-R-Wsy5Rr.d.mts.map +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as sqlEmission } from "./dist-
|
|
1
|
+
import { t as sqlEmission } from "./dist-DAHIT4AS.mjs";
|
|
2
2
|
export { sqlEmission };
|
|
@@ -37,14 +37,20 @@ type Prisma7LiteralDefaultForm =
|
|
|
37
37
|
{
|
|
38
38
|
readonly kind: 'json';
|
|
39
39
|
} |
|
|
40
|
-
/** A string,
|
|
40
|
+
/** A string, read as the body of the column type's tag, as `` tag`body` `` reads in the current schema language. */
|
|
41
41
|
{
|
|
42
|
-
readonly kind: '
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
42
|
+
readonly kind: 'tag';
|
|
43
|
+
readonly tag: string;
|
|
44
|
+
/** The tag's body for the text Prisma 7 writes, which keeps what the value means on the column; `undefined` when the text is not a value Prisma 7 writes for the column. */
|
|
45
|
+
readonly body: (text: string) => string | undefined;
|
|
46
|
+
/** For text with more fraction digits than the column holds: the digits it holds and the text of the value the database stores instead. */
|
|
47
|
+
readonly finerThanColumn?: (text: string) => Prisma7FinerThanColumn | undefined;
|
|
47
48
|
};
|
|
49
|
+
/** A written value finer than its column: how many fraction digits the column holds and what the database stores instead. */
|
|
50
|
+
interface Prisma7FinerThanColumn {
|
|
51
|
+
readonly heldDigits: number;
|
|
52
|
+
readonly stored: string;
|
|
53
|
+
}
|
|
48
54
|
/** Everything a target supplies to the Prisma 7 interpreter. */
|
|
49
55
|
interface Prisma7TargetBinding {
|
|
50
56
|
readonly target: TargetPackRef<'sql', string>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contract-prisma7__provider.d.mts","names":[],"sources":["../../../../2-sql/2-authoring/contract-prisma7/dist/provider.d.mts"],"mappings":";;;;;;;;;;;;UAUU;WACC;WACA;;UAED;;WAEC,SAAS,SAAS,eAAe;;;;;WAKjC,aAAa,SAAS,eAAe;;;;UAItC;WACC;;WAEA;WACA,aAAa,SAAS;;;KAG5B;;;WAGM;;;;WAIA;;WAEA,
|
|
1
|
+
{"version":3,"file":"contract-prisma7__provider.d.mts","names":[],"sources":["../../../../2-sql/2-authoring/contract-prisma7/dist/provider.d.mts"],"mappings":";;;;;;;;;;;;UAUU;WACC;WACA;;UAED;;WAEC,SAAS,SAAS,eAAe;;;;;WAKjC,aAAa,SAAS,eAAe;;;;UAItC;WACC;;WAEA;WACA,aAAa,SAAS;;;KAG5B;;;WAGM;;;;WAIA;WACA;;WAEA,OAAO;;WAEP,mBAAmB,iBAAiB;;;UAGrC;WACC;WACA;;;UAGD;WACC,QAAQ;WACR,kBAAkB,OAAO,sBAAsB;;WAE/C;;WAEA,SAAS;;WAET;aACE;aACA;;;WAGF,YAAY,SAAS;;WAErB;;WAEA;aACE,aAAa;aACb,aAAa,mBAAmB;;;;;;;WAOlC,6BAA6B,gBAAgB;;WAE7C,uBAAuB;;WAEvB,qBAAqB,QAAQ,sBAAsB;;;;UAIpD;WACC,SAAS;WACT;WACA,uBAAuB;;iBAEjB,gBAAgB,oBAAoB,SAAS,yBAAyB"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { r as lowerAuthoredIndex } from "./index-naming-BOcJT1B3-
|
|
2
|
-
import {
|
|
3
|
-
import { n as declaredBackingObjectName, r as declaredIndexesServeForeignKey } from "./foreign-key-materialization-
|
|
4
|
-
import { p as validateSqlStorageConsistency, u as validateModelStorageReferences } from "./validators-
|
|
1
|
+
import { r as lowerAuthoredIndex } from "./index-naming-BOcJT1B3-18gQUduD.mjs";
|
|
2
|
+
import { l as sqlDataTypeOfCodec, m as unquotedSqlBaseNameOfCodec } from "./sql-data-type-Dabuwxet-BljsNjBu.mjs";
|
|
3
|
+
import { n as declaredBackingObjectName, r as declaredIndexesServeForeignKey } from "./foreign-key-materialization-DfNPQL9G.mjs";
|
|
4
|
+
import { p as validateSqlStorageConsistency, u as validateModelStorageReferences } from "./validators-Bvfk0aN7.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-CrvMQTJF-DlxFFtNM.mjs";
|
|
7
|
+
import { c as instantiateFieldTypeConstructor, h as readDataTypeDefault } from "./psl-field-resolution-o9sXqIlE-BJnlxQ4z.mjs";
|
|
8
|
+
import { a as normalizeReferentialAction, n as buildEntityTypesByDiscriminator, r as indexFkRelations, t as applyBackrelationCandidates } from "./interpreter-CFj2aTEP-BHL3TOqk.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";
|
|
@@ -203,22 +203,13 @@ function lowerPrisma7Default(input) {
|
|
|
203
203
|
if (argument === void 0 || expression === void 0) return unknown("needs one value.", attribute.span);
|
|
204
204
|
const call = FunctionCallAst.cast(expression.syntax);
|
|
205
205
|
if (call !== void 0) return lowerFunction(call, input, label, unknown);
|
|
206
|
-
const rawLiteral = input.literalForm?.kind === "sqlExpression" ? sqlExpressionDefault(expression, input.literalForm, input.field.list) : void 0;
|
|
207
|
-
if (rawLiteral === "unreadable") return unknown("holds a value this contract source does not read.", attribute.span);
|
|
208
|
-
if (rawLiteral !== void 0) return {
|
|
209
|
-
storage: {
|
|
210
|
-
kind: "function",
|
|
211
|
-
expression: rawLiteral.expression
|
|
212
|
-
},
|
|
213
|
-
onCreate: void 0
|
|
214
|
-
};
|
|
215
206
|
const scalar = scalarValue$1(expression, input, unknown);
|
|
216
207
|
if (scalar === void 0) return void 0;
|
|
217
208
|
return {
|
|
218
209
|
storage: {
|
|
219
210
|
kind: "literal",
|
|
220
211
|
value: scalar,
|
|
221
|
-
|
|
212
|
+
inStoredForm: true
|
|
222
213
|
},
|
|
223
214
|
onCreate: void 0
|
|
224
215
|
};
|
|
@@ -243,6 +234,8 @@ function scalarValue$1(expression, input, unknown) {
|
|
|
243
234
|
}
|
|
244
235
|
return values;
|
|
245
236
|
}
|
|
237
|
+
const finer = finerThanColumn(elements ?? [expression], elements !== void 0, input);
|
|
238
|
+
if (finer !== void 0) return unknown(finer, span);
|
|
246
239
|
const written = writtenLiteralFor(expression, elements, input);
|
|
247
240
|
if (written === void 0) return unreadableValue(expression, input, unknown);
|
|
248
241
|
const jsonNull = jsonNullDefault(written, expression, input);
|
|
@@ -260,6 +253,23 @@ function scalarValue$1(expression, input, unknown) {
|
|
|
260
253
|
});
|
|
261
254
|
return read.ok ? read.value : unknown(refusalReason(read.refusal), span);
|
|
262
255
|
}
|
|
256
|
+
/**
|
|
257
|
+
* Why a written date and time is refused when it has more fraction digits than the column holds:
|
|
258
|
+
* Prisma 7 let the database round it, so the reason names the value the database stores.
|
|
259
|
+
*/
|
|
260
|
+
function finerThanColumn(values, isList, input) {
|
|
261
|
+
const form = input.literalForm;
|
|
262
|
+
if (form?.kind !== "tag" || form.finerThanColumn === void 0) return void 0;
|
|
263
|
+
for (const [index, value] of values.entries()) {
|
|
264
|
+
const text = StringLiteralExprAst.cast(value.syntax)?.value();
|
|
265
|
+
const finer = text === void 0 ? void 0 : form.finerThanColumn(text);
|
|
266
|
+
if (text === void 0 || finer === void 0) continue;
|
|
267
|
+
const at = isList ? ` at element ${index + 1}` : "";
|
|
268
|
+
const writtenDigits = /\.(\d+)/.exec(text)?.[1]?.length ?? 0;
|
|
269
|
+
const held = finer.heldDigits === 0 ? "none" : String(finer.heldDigits);
|
|
270
|
+
return `holds "${text}"${at}, with ${writtenDigits} ${writtenDigits === 1 ? "digit" : "digits"} after the decimal point, but the column holds ${held}. PostgreSQL stores it as "${finer.stored}"; write that instead.`;
|
|
271
|
+
}
|
|
272
|
+
}
|
|
263
273
|
/** The storage value of an enum member name, when the field is typed by a Prisma 7 enum. */
|
|
264
274
|
function enumMemberValue(expression, input) {
|
|
265
275
|
const member = IdentifierAst.cast(expression.syntax)?.name();
|
|
@@ -297,34 +307,29 @@ function unreadableValue(expression, input, unknown) {
|
|
|
297
307
|
if (ArrayLiteralAst.cast(expression.syntax) !== void 0) return unknown("lists may only hold literals or enum members.", span);
|
|
298
308
|
return unknown("holds a value this contract source does not read.", span);
|
|
299
309
|
}
|
|
300
|
-
function sqlExpressionDefault(expression, form, isList) {
|
|
301
|
-
const array = isList ? ArrayLiteralAst.cast(expression.syntax) : void 0;
|
|
302
|
-
if (array === void 0) {
|
|
303
|
-
const text = StringLiteralExprAst.cast(expression.syntax)?.value();
|
|
304
|
-
if (text === void 0) return void 0;
|
|
305
|
-
const literal = form.literal(text);
|
|
306
|
-
return literal === void 0 ? "unreadable" : { expression: literal };
|
|
307
|
-
}
|
|
308
|
-
const literals = [];
|
|
309
|
-
for (const element of array.elements()) {
|
|
310
|
-
const text = StringLiteralExprAst.cast(element.syntax)?.value();
|
|
311
|
-
const literal = text === void 0 ? void 0 : form.literal(text);
|
|
312
|
-
if (literal === void 0) return "unreadable";
|
|
313
|
-
literals.push(literal);
|
|
314
|
-
}
|
|
315
|
-
return { expression: form.list(literals) };
|
|
316
|
-
}
|
|
317
310
|
/** The written literal a Prisma 7 expression is, or `undefined` when it is not a literal at all. */
|
|
318
311
|
function writtenLiteral(expression, input) {
|
|
319
312
|
const text = StringLiteralExprAst.cast(expression.syntax)?.value();
|
|
320
|
-
if (text !== void 0)
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
313
|
+
if (text !== void 0) {
|
|
314
|
+
const form = input.literalForm;
|
|
315
|
+
if (form?.kind === "json") return {
|
|
316
|
+
kind: "tag",
|
|
317
|
+
tag: "json",
|
|
318
|
+
text
|
|
319
|
+
};
|
|
320
|
+
if (form?.kind === "tag") {
|
|
321
|
+
const body = form.body(text);
|
|
322
|
+
return body === void 0 ? void 0 : {
|
|
323
|
+
kind: "tag",
|
|
324
|
+
tag: form.tag,
|
|
325
|
+
text: body
|
|
326
|
+
};
|
|
327
|
+
}
|
|
328
|
+
return {
|
|
329
|
+
kind: "string",
|
|
330
|
+
text
|
|
331
|
+
};
|
|
332
|
+
}
|
|
328
333
|
const number = NumberLiteralExprAst.cast(expression.syntax)?.token()?.text;
|
|
329
334
|
if (number !== void 0) return {
|
|
330
335
|
kind: "number",
|
|
@@ -363,7 +368,7 @@ function refusalReason(refusal) {
|
|
|
363
368
|
case "no-cast": return `holds a ${refusal.valueType} value${at}, which ${refusal.receivingType} has no cast from; ${describeCasts(refusal.casts)}.`;
|
|
364
369
|
case "no-list-cast": return `holds a list, which ${refusal.receivingType} has no cast from; ${describeCasts(refusal.casts)}.`;
|
|
365
370
|
case "no-element-cast": return `holds a ${refusal.valueType} value${at}, which the list cast of ${refusal.receivingType} does not take; it takes ${refusal.elementTypes.join(", ")}.`;
|
|
366
|
-
case "refused-by-
|
|
371
|
+
case "refused-by-column": return `holds a value${at} that ${refusal.codecId} does not read: ${refusal.message}`;
|
|
367
372
|
}
|
|
368
373
|
}
|
|
369
374
|
function describeCasts(casts) {
|