@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
|
@@ -3,15 +3,15 @@ import { l as SqlStorage } from "./sql-storage-tZhB8nS5-8NSWT0TW.mjs";
|
|
|
3
3
|
import { m as ExtractFieldOutputTypes } from "./types-Dqf87mfA-BOElvimQ.mjs";
|
|
4
4
|
import "./types-DMfBh16_.mjs";
|
|
5
5
|
import { t as SqlLoweringSpec } from "./index-BXFiad5j.mjs";
|
|
6
|
-
import { Ct as ParamRef, O as ColumnRef } from "./types-
|
|
6
|
+
import { Ct as ParamRef, O as ColumnRef } from "./types-DVaVM20q-B-QcMIOa.mjs";
|
|
7
7
|
import { l as SqlStatementStats } from "./driver-types-DRsYeq3j-X_D6hNMZ.mjs";
|
|
8
|
-
import { n as SqlQueryPlan } from "./plan-
|
|
9
|
-
import { t as SqlExecutionPlan } from "./sql-execution-plan-
|
|
10
|
-
import { n as ExecutionContext } from "./query-lane-context-
|
|
8
|
+
import { n as SqlQueryPlan } from "./plan-Cbed2eDu-BZM3geSm.mjs";
|
|
9
|
+
import { t as SqlExecutionPlan } from "./sql-execution-plan-Dam5yMZg-Bc_eneSz.mjs";
|
|
10
|
+
import { n as ExecutionContext } from "./query-lane-context-BLOPW1rQ-Bn3ugl9a.mjs";
|
|
11
11
|
import { Contract } from "@prisma/orm-framework/contract/types";
|
|
12
12
|
import { AsyncIterableResult, RuntimeExecuteOptions } from "@prisma/orm-framework/components/runtime";
|
|
13
13
|
import { ParamSpec } from "@prisma/orm-framework/operations";
|
|
14
|
-
//#region ../../../2-sql/4-lanes/relational-core/dist/types-
|
|
14
|
+
//#region ../../../2-sql/4-lanes/relational-core/dist/types-Cv5t6_Ly.d.mts
|
|
15
15
|
//#region src/runtime-scope.d.ts
|
|
16
16
|
/**
|
|
17
17
|
* The plan shape accepted by the SQL ORM client and SQL runtime: either a
|
|
@@ -236,4 +236,4 @@ interface SqlBuilderOptions<TContract extends Contract<SqlStorage> = Contract<Sq
|
|
|
236
236
|
}
|
|
237
237
|
//#endregion
|
|
238
238
|
export { TablesOf as S, SqlOrmPlan as _, ColumnsOf as a, TableKey as b, META as c, ModelMetadata as d, OperationTypeSignature as f, SqlBuilderOptions as g, RuntimeScope as h, ColumnResolutionContract as i, Meta as l, OperationsForTypeId as m, BuildParamsMap as n, ComputeColumnJsType as o, OperationTypes as p, CodecTypes as r, Expr as s, BuildOptions as t, ModelDef as u, SqlPlan as v, TableMetadata as x, TableDef as y };
|
|
239
|
-
//# sourceMappingURL=types-
|
|
239
|
+
//# sourceMappingURL=types-Cv5t6_Ly-CcBWTpfM.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types-
|
|
1
|
+
{"version":3,"file":"types-Cv5t6_Ly-CcBWTpfM.d.mts","names":[],"sources":["../../../../2-sql/4-lanes/relational-core/dist/types-Cv5t6_Ly.d.mts"],"mappings":";;;;;;;;;;;;;;;;;;;;KAgBK,WAAW,iBAAiB,iBAAiB,OAAO,aAAa;;;;;;;;UAQ5D;EACR,MAAM,KAAK,MAAM,WAAW,MAAM,UAAU,wBAAwB,oBAAoB;EACxF,QAAQ,MAAM,YAAY,UAAU,wBAAwB,QAAQ;;;;KAIjE,OAAO,YAAY;;;;;;;;;;KAUnB;WACM;aACE,YAAY,SAAS;eACnB,QAAQ,SAAS;;;WAGrB;aACE,YA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;;;;;;;;;;;KAmBrB,iBAAiB,eAAe,eAAe;;;;;;;;;;;;;KAa/C,aAAa;WACP;;;;;;;;;;;;KAYN,oBAAoB,uBAAuB,mBAAmB,kBAAkB,mBAAmB,wBAAwB,wBAAwB,qBAAqB,aAAa,WAAW,UAAU;;;;;;;;;;;;;KAa1M,oBAAoB,kBAAkB,0BAA0B,qBAAqB,0BAA0B,2BAA2B,mBAAmB;WACvJ;MACL,oBAAoB,WAAW,MAAM,0BAA0B,cAAc,6BAA6B,oBAAoB,WAAW,MAAM,WAAW,YAAY,cAAc,2BAA2B,qBAAqB,WAAW,MAAM,WAAW,2BAA2B,cAAc,6BAA6B,oBAAoB,WAAW,MAAM,WAAW,YAAY,cAAc,2BAA2B,qBAAqB,WAAW,MAAM,WAAW,0BAA0B,QAAQ,uBAAuB,oBAAoB,WAAW,MAAM,WAAW,YAAY,cAAc;;;;;;KAMhmB,QAAQ,iBAAiB,iBAAiB;;;;KAI1C,SAAS,aAAa;EACzB;IACE,cAAc;;IAEd;KACC,SAAS,aAAa,cAAc,SAAS;;;;cAIpC;;;;KAIT,KAAK;GACP;KACE,SAAS;;;;UAIJ,cAAc;EACtB,MAAM;;;;;UAKE,cAAc;EACtB,MAAM;;;;;;UAME,SAAS;YACP,OAAO,cAAc;;;;;;UAMvB,SAAS;YACP,OAAO,cAAc;;KAE5B,UAAU,WAAW,UAAU,SAAS,cAAc,gBAAgB,SAAS,aAAa,SAAS,WAAW;EACnH,eAAe;IACb;UACM;YACE;;UAEF;WACC,SAAS;;UAEV,kBAAkB,kBAAkB,SAAS,cAAc,SAAS;WACnE,SAAS,iBAAiB"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as SqlLoweringSpec } from "./index-BXFiad5j.mjs";
|
|
2
|
-
import { Codec, CodecCallContext, CodecCallContext as CodecCallContext$1, CodecDescriptor, CodecDescriptor as CodecDescriptor$1, CodecDescriptorTemplate, CodecInstanceContext, CodecRef, CodecRef as CodecRef$1, CodecTrait, CodecTrait as CodecTrait$1 } from "@prisma/orm-framework/components/codec";
|
|
2
|
+
import { Codec, CodecCallContext, CodecCallContext as CodecCallContext$1, CodecDescriptor, CodecDescriptor as CodecDescriptor$1, CodecDescriptorTemplate, CodecInstanceContext, CodecRef, CodecRef as CodecRef$1, CodecTrait, CodecTrait as CodecTrait$1, DataTypeValue } from "@prisma/orm-framework/components/codec";
|
|
3
3
|
import { ParamSpec } from "@prisma/orm-framework/operations";
|
|
4
|
-
//#region ../../../2-sql/4-lanes/relational-core/dist/types-
|
|
4
|
+
//#region ../../../2-sql/4-lanes/relational-core/dist/types-DVaVM20q.d.mts
|
|
5
5
|
//#region src/ast/codec-types.d.ts
|
|
6
6
|
declare function frozenCodecRef(codec: CodecRef): CodecRef;
|
|
7
7
|
/**
|
|
@@ -39,13 +39,13 @@ interface SqlCodecInstanceContext extends CodecInstanceContext {
|
|
|
39
39
|
/**
|
|
40
40
|
* SQL codec — extends the framework codec base by narrowing the per-call context to the SQL-family {@link SqlCodecCallContext} (adds `column?: SqlColumnRef`). TypeScript treats method-syntax declarations bivariantly, so the SQL narrowing is structurally compatible with the framework {@link BaseCodec} super-interface.
|
|
41
41
|
*
|
|
42
|
-
* Codec-id-keyed static metadata (`traits`, `paramsSchema`, `renderOutputType`) lives on the unified {@link import('@prisma/orm-framework/components/codec').CodecDescriptor} — the codec instance itself
|
|
42
|
+
* Codec-id-keyed static metadata (`traits`, `paramsSchema`, `renderOutputType`) lives on the unified {@link import('@prisma/orm-framework/components/codec').CodecDescriptor} — the codec instance itself carries `id`, its data type and the four conversion methods.
|
|
43
43
|
*
|
|
44
44
|
* See `Codec` in `@internal/framework-components/codec` for the codec contract that this interface extends.
|
|
45
45
|
*/
|
|
46
46
|
interface Codec$1<Id extends string = string, TTraits extends readonly CodecTrait[] = readonly CodecTrait[], TWire = unknown, TInput = unknown> extends Codec<Id, TTraits, TWire, TInput> {
|
|
47
|
-
|
|
48
|
-
|
|
47
|
+
toWire(value: TInput, ctx: SqlCodecCallContext): Promise<TWire>;
|
|
48
|
+
fromWire(wire: TWire, ctx: SqlCodecCallContext): Promise<TInput>;
|
|
49
49
|
}
|
|
50
50
|
/**
|
|
51
51
|
* Contract-bound codec registry.
|
|
@@ -79,22 +79,11 @@ type DescriptorResolvedCodec<D> = D extends CodecDescriptor<infer _P> ? ReturnTy
|
|
|
79
79
|
type DescriptorCodecId<D> = D extends AnyCodecDescriptor$1 ? D['codecId'] : never;
|
|
80
80
|
type DescriptorCodecInput<D> = DescriptorResolvedCodec<D> extends Codec<string, readonly CodecTrait[], unknown, infer In> ? In : never;
|
|
81
81
|
/**
|
|
82
|
-
* Resolve the JSON type for a descriptor `D
|
|
83
|
-
* produces, and therefore what a `contract.json` holds for a value of this
|
|
84
|
-
* codec.
|
|
82
|
+
* Resolve the JSON type for a descriptor `D`: the JSON of the value the codec's `toDataTypeValue` returns, and therefore what a `contract.json` holds for a value of this codec.
|
|
85
83
|
*
|
|
86
|
-
* This is a distinct channel from {@link DescriptorCodecInput} because the two
|
|
87
|
-
* diverge wherever a codec's canonical JSON is not the value it hands the
|
|
88
|
-
* application — a wide integer carried as a decimal string, say. Reading the
|
|
89
|
-
* application type where the JSON type is meant produces a contract type that
|
|
90
|
-
* describes a value the file cannot contain.
|
|
91
|
-
*
|
|
92
|
-
* The type is read off the codec's declared `encodeJson` return, so a codec that
|
|
93
|
-
* narrows that return (`encodeJson(value: bigint): string`) publishes its JSON
|
|
94
|
-
* type without a new type parameter, and one that does not stays at the
|
|
95
|
-
* `JsonValue` the base signature promises.
|
|
84
|
+
* This is a distinct channel from {@link DescriptorCodecInput} because the two diverge wherever the stored form is not the value the codec hands the application, such as a wide integer stored as decimal text. A codec that narrows its return (`toDataTypeValue(value: bigint): DataTypeValue<string>`) publishes its JSON type this way, and one that does not stays at `JsonValue`.
|
|
96
85
|
*/
|
|
97
|
-
type DescriptorCodecJson<D> = DescriptorResolvedCodec<D> extends Codec<string, readonly CodecTrait[], unknown, unknown> ? ReturnType<DescriptorResolvedCodec<D>['
|
|
86
|
+
type DescriptorCodecJson<D> = DescriptorResolvedCodec<D> extends Codec<string, readonly CodecTrait[], unknown, unknown> ? ReturnType<DescriptorResolvedCodec<D>['toDataTypeValue']> extends DataTypeValue<infer J> ? J : never : never;
|
|
98
87
|
/**
|
|
99
88
|
* Resolve the trait union for a descriptor `D`.
|
|
100
89
|
*
|
|
@@ -899,4 +888,4 @@ interface LoweredStatement {
|
|
|
899
888
|
}
|
|
900
889
|
//#endregion
|
|
901
890
|
export { InsertValue as $, queryAstKinds as $t, DefaultValueExpr as A, RawQueryResult as At, EqColJoinOn as B, ToWhereExpr as Bt, CodecCallContext$1 as C, ParamRef as Ct, CodecTrait$1 as D, RawExpr as Dt, CodecRef$1 as E, ProjectionItem as Et, DescriptorCodecJson as F, SqlCodecInstanceContext as Ft, ExpressionSource as G, aggregateFnNames as Gt, ExprVisitor as H, WhereArg as Ht, DescriptorCodecTraits as I, SqlColumnRef as It, FunctionSource as J, isAggregateFn as Jt, ExtractCodecTypes as K, checkLimitOffset as Kt, Direction as L, SubqueryExpr as Lt, DerivedTableSource as M, SelectAst as Mt, DescriptorCodecId as N, SelectAstOptions as Nt, ColumnRef as O, RawQueryAst as Ot, DescriptorCodecInput as P, SqlCodecCallContext as Pt, InsertOnConflict as Q, isWhereExpr as Qt, DoNothingConflictAction as R, TableRef as Rt, Codec$1 as S, OrderByNulls as St, CodecJsonValueProjection as T, ProjectionExpr as Tt, ExpressionFolder as U, WindowFn as Ut, ExistsExpr as V, UpdateAst as Vt, ExpressionRewriter as W, WindowFuncExpr as Wt, IdentifierRef as X, isOrderByNulls as Xt, FunctionSourceAlias as Y, isOrderByDirection as Yt, InsertAst as Z, isQueryAst as Zt, BinaryExpr as _, NotExpr as _t, AndExpr as a, JsonObjectExpr as at, CaseExpr as b, OrExpr as bt, AnyExpression as c, ListExpression as ct, AnyInsertValue as d, LockWaitPolicy as dt, whereExprKinds as en, JoinAst as et, AnyJsonValueProjection as f, LockingClause as ft, AstRewriter as g, NativeJsonValueProjection as gt, AnyQueryAst as h, LoweredStatement as ht, AggregateOpFn as i, JsonObjectEntry as it, DeleteAst as j, RawSqlLiteral as jt, ContractCodecRegistry as k, RawQueryColumn as kt, AnyFromSource as l, LiteralExpr as lt, AnyParamRef as m, LoweredParam as mt, AggregateExpr as n, JsonArrayAggExpr as nt, AnyCodecDescriptor$1 as o, JsonValueProjectionVisitor as ot, AnyOperationArg as p, LockingClauseOptions as pt, FunctionCallExpr as q, frozenCodecRef as qt, AggregateFn as r, JsonDocumentProjection as rt, AnyCodecDescriptorTemplate as s, LimitOffsetValue as st, AggregateCountFn as t, JoinOnExpr as tt, AnyInsertOnConflictAction as u, LockStrength as ut, BinaryOp as v, NullCheckExpr as vt, CodecDescriptor$1 as w, PreparedParamRef as wt, CastExpr as x, OrderByItem as xt, CaseBranch as y, OperationExpr as yt, DoUpdateSetConflictAction as z, TableSource as zt };
|
|
902
|
-
//# sourceMappingURL=types-
|
|
891
|
+
//# sourceMappingURL=types-DVaVM20q-B-QcMIOa.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types-DVaVM20q-B-QcMIOa.d.mts","names":[],"sources":["../../../../2-sql/4-lanes/relational-core/dist/types-DVaVM20q.d.mts"],"mappings":";;;;;iBAIiB,eAAe,OAAO,WAAW;;;;;;UAMxC;WACC;WACA;;;;;;;UAOD,4BAA4B;WAC3B,SAAS;;;;;;;;;;;UAWV,gCAAgC;WAC/B,QAAQ;aACN;aACA;;;;;;;;;;UAUH,QAAQ,4BAA4B,yBAAyB,wBAAwB,cAAc,iBAAiB,0BAA0B,MAAM,IAAI,SAAS,OAAO;EAChL,OAAO,OAAO,QAAQ,KAAK,sBAAsB,QAAQ;EACzD,SAAS,MAAM,OAAO,KAAK,sBAAsB,QAAQ;;;;;;;;;UASjD;;;;;;EAMR,UAAU,qBAAqB,eAAe,iBAAiB;;;;;;EAM/D,YAAY,KAAK,WAAW;;;;;;KA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WACvB;WACA,OAAO,uBAAuB;WAC9B,QAAQ;EACjB,YAAY;aACD,OAAO,uBAAuB;aAC9B,QAAQ;;SAEZ,KAAK,OAAO,uBAAuB,gBAAgB,SAAS,SAAS,eAAe,mBAAmB;SACvG,cAAc,OAAO,uBAAuB,iBAAiB;EACpE,QAAQ,UAAU,cAAc;EAChC,oBAAoB;EACpB,cAAc;;KAEX,cAAc,YAAY,YAAY,YAAY,YAAY;KAC9D,gBAAgB,cAAc,qBAAqB;KACnD,gBAAgB,YAAY,gBAAgB,WAAW,mBAAmB,cAAc,eAAe,gBAAgB,gBAAgB,iBAAiB,mBAAmB,WAAW,WAAW,iBAAiB,mBAAmB,iBAAiB,aAAa,UAAU,SAAS,aAAa,gBAAgB,UAAU;KAC7T,cAAc,WAAW;KACzB,4BAA4B,0BAA0B;KACtD,iBAAiB,YAAY,WAAW,mBAAmB,mBAAmB;KAC9E,kBAAkB,gBAAgB,WAAW,mBAAmB;cACvD,eAAe;cACf,gBAAgB;iBACb,WAAW,iBAAiB,SAAS;iBACrC,YAAY,iBAAiB,SAAS;UAC7C;EACR,eAAe;;;;;;;;;;;;;;;;KAgBZ;WACM;WACA;;WAEA;WACA;;UAED;WACC;WACA,iBAAiB;WACjB,cAAc"}
|
|
@@ -3,15 +3,15 @@ import { f as StorageTypeInstance, l as SqlStorage } from "./sql-storage-tZhB8nS
|
|
|
3
3
|
import { j as SqlControlDriverInstance } from "./types-Dqf87mfA-BOElvimQ.mjs";
|
|
4
4
|
import "./types-DMfBh16_.mjs";
|
|
5
5
|
import { r as SqlOperationDescriptors } from "./index-BXFiad5j.mjs";
|
|
6
|
-
import { b as SqlSchemaIRNode } from "./types-
|
|
7
|
-
import "./types-
|
|
8
|
-
import { r as SqlControlAdapter } from "./control-adapter-
|
|
6
|
+
import { b as SqlSchemaIRNode } from "./types-c1iIhJep-DdMj6TNl.mjs";
|
|
7
|
+
import "./types-BLyhYk6B.mjs";
|
|
8
|
+
import { r as SqlControlAdapter } from "./control-adapter-BCopdpsT-DIHCWbq_.mjs";
|
|
9
9
|
import { Contract } from "@prisma/orm-framework/contract/types";
|
|
10
10
|
import { TargetBoundComponentDescriptor } from "@prisma/orm-framework/components/components";
|
|
11
11
|
import { Result } from "@prisma/orm-framework/utils/result";
|
|
12
12
|
import { ContractSpace, ControlAdapterDescriptor, ControlExtensionDescriptor, MigrationOperationPolicy, MigrationPlan, MigrationPlanOperation, MigrationPlannerConflict, MigrationPlannerFailureResult, MigrationPlannerSuccessResult, MigrationRunnerExecutionChecks, MigrationRunnerFailure, MigrationRunnerPerSpaceSuccessValue, MigrationRunnerResult, OpFactoryCall, OperationContext, PlanOrigin, ResolvedMigrationStatement, SchemaDiffIssue, SchemaOwnership } from "@prisma/orm-framework/components/control";
|
|
13
13
|
import { AggregateMigrationEdgeRef } from "@prisma/orm-toolchain/migration-tools/aggregate";
|
|
14
|
-
//#region ../../../2-sql/9-family/dist/types-
|
|
14
|
+
//#region ../../../2-sql/9-family/dist/types-DaYtBAYT.d.mts
|
|
15
15
|
//#region src/core/migrations/types.d.ts
|
|
16
16
|
type AnyRecord = Readonly<Record<string, unknown>>;
|
|
17
17
|
interface StorageTypePlanResult<TTargetDetails> {
|
|
@@ -408,4 +408,4 @@ interface CreateSqlMigrationPlanOptions<TTargetDetails> {
|
|
|
408
408
|
}
|
|
409
409
|
//#endregion
|
|
410
410
|
export { StorageTypePlanResult as A, SqlPlanTargetDetails as C, SqlPlannerFailureResult as D, SqlPlannerConflictLocation as E, SqlPlannerResult as O, SqlMigrationRunnerSuccessValue as S, SqlPlannerConflictKind as T, SqlMigrationRunnerErrorCode as _, FieldEventContext as a, SqlMigrationRunnerFailure as b, SqlControlExtensionDescriptor as c, SqlMigrationPlanOperation as d, SqlMigrationPlanOperationStep as f, SqlMigrationRunner as g, SqlMigrationPlannerPlanOptions as h, FieldEvent as i, SqlPlannerSuccessResult as k, SqlMigrationPlan as l, SqlMigrationPlanner as m, CodecControlHooks as n, ResolveIdentityValueInput as o, SqlMigrationPlanOperationTarget as p, CreateSqlMigrationPlanOptions as r, SqlControlAdapterDescriptor as s, AnyRecord as t, SqlMigrationPlanContractInfo as u, SqlMigrationRunnerExecuteCallbacks as v, SqlPlannerConflict as w, SqlMigrationRunnerResult as x, SqlMigrationRunnerExecuteOptions as y };
|
|
411
|
-
//# sourceMappingURL=types-
|
|
411
|
+
//# sourceMappingURL=types-DaYtBAYT-B22gkh5z.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types-
|
|
1
|
+
{"version":3,"file":"types-DaYtBAYT-B22gkh5z.d.mts","names":[],"sources":["../../../../2-sql/9-family/dist/types-DaYtBAYT.d.mts"],"mappings":";;;;;;;;;;;;;;;KAUK,YAAY,SAAS;UAChB,sBAAsB;WACrB,qBAAqB,0BAA0B;;;;;;;;;UAShD;;WAEC;WACA;WACA,aAAa;;;;;;;;;;;;;;;;KAgBnB;;;;;;;;;;;;;UAaK;WACC;WACA;WACA;WACA,aAAa;WACb,WAAW;WACX,aAAa;WACb,WAAW;;UAEZ,kBAAkB;;;;;;;;;EAS1B,sBAAsB;aACX;aACA,cAAc;aACd,UAAU,SAAS;aACnB,QAAQ;aACR;aACA,QAAQ;QACb,sBAAsB;EAC5B,cAAc;aACH;aACA,cAAc;aACd,QAAQ;aACR;iBACI;EACf,mBAAmB;aACR,QAAQ;aACR;QACL,QAAQ,eAAe;;;;;;;;;;EAU7B,wBAAwB,OAAO;;;;;;;;;;;;;;;EAe/B,gBAAgB,OAAO,YAAY,KAAK,+BAA+B;;UAE/D,8BAA8B,kCAAkC,kCAAkC;WACjG,wBAAwB;;;;;;;;;;;;WAYxB,gBAAgB,cAAc,SAAS;;UAExC,4BAA4B,kCAAkC,gCAAgC,WAAW,kBAAkB;WAC1H,wBAAwB;;UAEzB;WACC;WACA;;;;;;;;;WASA;WACA,OAAO;;;;;;;;;UASR;WACC;WACA;;UAED,gCAAgC;WAC/B;WACA,UAAU;;UAEX,0BAA0B,wBAAwB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AWZ,oBAAoB,SAAS,iCAAiC,kBAAkB,QAAQ;;UAEhF,8BAA8B;WAC7B;;;;WAIA;WACA,SAAS;WACT,aAAa;WACb,qBAAqB,0BAA0B;;;;;;WAM/C;WACA,OAAO"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { o as SqlNode } from "./storage-table-DN36E2yE-
|
|
1
|
+
import { o as SqlNode } from "./storage-table-DN36E2yE-0ncS821l.mjs";
|
|
2
2
|
import { NamespaceBase, freezeNode, isPlainRecord } from "@prisma/orm-framework/components/ir";
|
|
3
3
|
import { InternalError } from "@prisma/orm-framework/utils/internal-error";
|
|
4
4
|
import { RelationKeys } from "@prisma/orm-framework/components/runtime";
|
|
@@ -116,4 +116,4 @@ function applyFkDefaults(fk, overrideDefaults) {
|
|
|
116
116
|
//#endregion
|
|
117
117
|
export { SqlNamespaceBase as a, isMaterializedSqlNamespace as c, resolvedTypeParams as d, toStorageTypeInstance as f, RelationKeys as i, isSqlAuthoringContributions as l, DEFAULT_FK_CONSTRAINT as n, SqlStorage as o, DEFAULT_FK_INDEX as r, applyFkDefaults as s, CODEC_INSTANCE_KIND as t, isStorageTypeInstance as u };
|
|
118
118
|
|
|
119
|
-
//# sourceMappingURL=types-
|
|
119
|
+
//# sourceMappingURL=types-M_FeBD9w.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types-
|
|
1
|
+
{"version":3,"file":"types-M_FeBD9w.mjs","names":[],"sources":["../../../../2-sql/1-core/contract/dist/types.mjs"],"sourcesContent":["import { a as ForeignKey, c as CheckConstraint, i as PrimaryKey, l as SqlNode, n as UniqueConstraint, o as ForeignKeyReference, r as StorageColumn, s as Index, t as StorageTable } from \"./storage-table-DN36E2yE.mjs\";\nimport { i as isStorageValueSet, n as checkConstraintInputFromSerialized, r as StorageValueSet, t as indexInputFromSerialized } from \"./serialized-index-52COq1yV.mjs\";\nimport { NamespaceBase, freezeNode, isPlainRecord } from \"@internal/framework-components/ir\";\nimport { InternalError } from \"@internal/utils/internal-error\";\nimport { RelationKeys } from \"@internal/framework-components/runtime\";\n//#region src/ir/storage-type-instance.ts\n/**\n* Sentinel kind for the legacy codec-triple shape persisted under\n* `SqlStorage.types`. Plain JSON-clean object literals carry this\n* discriminator so the polymorphic slot dispatch can route them down\n* the codec path while target-specific IR class instances (e.g. the\n* Postgres enum class) keep their own narrower `kind` literal.\n*/\nconst CODEC_INSTANCE_KIND = \"codec-instance\";\n/**\n* Stamp the codec-instance `kind` discriminator on a caller-supplied\n* codec triple. Idempotent: input that already carries the discriminator\n* passes through unchanged. Missing `typeParams` is normalised to `{}`.\n*/\nfunction toStorageTypeInstance(input) {\n\treturn {\n\t\tkind: CODEC_INSTANCE_KIND,\n\t\tcodecId: input.codecId,\n\t\tdataType: input.dataType,\n\t\ttypeParams: input.typeParams ?? {}\n\t};\n}\n/**\n* The type parameters of a type written with its own parameters or by the name of a named type: its own, or else the named type's. Empty parameters read as none, as a codec reads them; {@link toStorageTypeInstance} stores `{}` for a codec without parameters.\n*/\nfunction resolvedTypeParams(type, namedTypes) {\n\tconst typeParams = type.typeParams ?? (type.typeRef === void 0 ? void 0 : namedTypes?.[type.typeRef]?.typeParams);\n\treturn typeParams !== void 0 && Object.keys(typeParams).length > 0 ? typeParams : void 0;\n}\n/**\n* Type-guard for codec-typed entries on the polymorphic\n* `SqlStorage.types` slot. Distinguishes `StorageTypeInstance` from\n* any class-instance kinds a target pack contributes.\n*/\nfunction isStorageTypeInstance(value) {\n\tif (typeof value !== \"object\" || value === null) return false;\n\treturn value.kind === CODEC_INSTANCE_KIND;\n}\n//#endregion\n//#region src/ir/sql-storage.ts\n/**\n* Narrows framework `AuthoringContributions` to the SQL-family shape by testing\n* for the SQL-specific `createNamespace` capability.\n*/\nfunction isSqlAuthoringContributions(authoring) {\n\tif (authoring === void 0 || !Object.hasOwn(authoring, \"createNamespace\")) return false;\n\treturn typeof Reflect.get(authoring, \"createNamespace\") === \"function\";\n}\n/**\n* Abstract SQL family namespace base class. Target concretions (`PostgresSchema`,\n* `SqliteDatabase`, …) extend this — it is never instantiated directly.\n* `entries` is the open ADR 224 dictionary: `entries[entityKind][entityName]`\n* addresses any entity.\n*/\nvar SqlNamespaceBase = class extends NamespaceBase {};\n/**\n* Realm-safe guard for hydrated `SqlNamespaceBase` concretions. Checks\n* `qualifyTable` structurally instead of `instanceof NamespaceBase`, so it\n* survives duplicate-module boundaries (e.g. dist e2e where the target and\n* the family carry separate copies of `@internal/framework-components`).\n*\n* Every concrete `SqlNamespaceBase` subclass (`PostgresSchema`, `SqliteDatabase`,\n* `TestSqlNamespace`, …) implements `qualifyTable`. Raw `SqlNamespaceInput`\n* objects (`{ id, entries }`) do not.\n*/\nfunction isMaterializedSqlNamespace(x) {\n\tif (typeof x !== \"object\" || x === null || !(\"qualifyTable\" in x)) return false;\n\treturn typeof x.qualifyTable === \"function\";\n}\nvar SqlStorage = class extends SqlNode {\n\tstorageHash;\n\tnamespaces;\n\tconstructor(input) {\n\t\tsuper();\n\t\tthis.storageHash = input.storageHash;\n\t\tthis.namespaces = Object.freeze(input.namespaces);\n\t\tif (input.types !== void 0) this.types = Object.freeze(Object.fromEntries(Object.entries(input.types).map(([name, ti]) => [name, normaliseTypeEntry(name, ti)])));\n\t\tfreezeNode(this);\n\t}\n};\n/**\n* Strict polymorphic-slot dispatch for `SqlStorage.types` entries.\n* Every entry must carry a `kind: 'codec-instance'` discriminator or\n* be an already-constructed `StorageTypeInstance`. Untagged or\n* unrecognised inputs throw a diagnostic naming the entry and its\n* `kind`, so format drift surfaces loudly at the deserializer\n* boundary instead of slipping past the seam and corrupting\n* downstream IR walks.\n*\n* Codec-triple authors that have an untagged shape on hand can call\n* `toStorageTypeInstance(...)` (which stamps the `'codec-instance'`\n* discriminator) before constructing `SqlStorage`. On-disk reads\n* cross `familyInstance.deserializeContract` first; the structural\n* arktype schema rejects untagged entries earlier, so this throw\n* only fires for in-memory authoring bugs.\n*/\nfunction normaliseTypeEntry(name, entry) {\n\tif (isStorageTypeInstance(entry)) {\n\t\tif (\"typeParams\" in entry) return entry;\n\t\treturn toStorageTypeInstance(entry);\n\t}\n\tconst rawKind = isPlainRecord(entry) && \"kind\" in entry ? entry.kind : void 0;\n\tconst kindDescription = rawKind === void 0 ? \"missing `kind` discriminator\" : `unrecognised \\`kind\\` discriminator ${JSON.stringify(rawKind)}`;\n\tthrow new InternalError(`storage.types[${JSON.stringify(name)}] has ${kindDescription}; expected ${JSON.stringify(\"codec-instance\")}. Untagged codec triples should be wrapped with toStorageTypeInstance(...) before construction.`);\n}\n//#endregion\n//#region src/types.ts\nconst DEFAULT_FK_CONSTRAINT = true;\nconst DEFAULT_FK_INDEX = true;\nfunction applyFkDefaults(fk, overrideDefaults) {\n\treturn {\n\t\tconstraint: fk.constraint ?? overrideDefaults?.constraint ?? true,\n\t\tindex: fk.index ?? overrideDefaults?.index ?? true\n\t};\n}\n//#endregion\nexport { CODEC_INSTANCE_KIND, CheckConstraint, DEFAULT_FK_CONSTRAINT, DEFAULT_FK_INDEX, ForeignKey, ForeignKeyReference, Index, PrimaryKey, RelationKeys, SqlNamespaceBase, SqlNode, SqlStorage, StorageColumn, StorageTable, StorageValueSet, UniqueConstraint, applyFkDefaults, checkConstraintInputFromSerialized, indexInputFromSerialized, isMaterializedSqlNamespace, isSqlAuthoringContributions, isStorageTypeInstance, isStorageValueSet, resolvedTypeParams, toStorageTypeInstance };\n\n//# sourceMappingURL=types.mjs.map"],"mappings":";;;;;;;;;;;;AAaA,MAAM,sBAAsB;;;;;;AAM5B,SAAS,sBAAsB,OAAO;CACrC,OAAO;EACN,MAAM;EACN,SAAS,MAAM;EACf,UAAU,MAAM;EAChB,YAAY,MAAM,cAAc,CAAC;CAClC;AACD;;;;AAIA,SAAS,mBAAmB,MAAM,YAAY;CAC7C,MAAM,aAAa,KAAK,eAAe,KAAK,YAAY,KAAK,IAAI,KAAK,IAAI,aAAa,KAAK,QAAQ,EAAE;CACtG,OAAO,eAAe,KAAK,KAA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,EAAE,QAAQ,gBAAgB,aAAa,KAAK,UAAU,gBAAgB,EAAE,gGAAgG;AACrO;AAGA,MAAM,wBAAwB;AAC9B,MAAM,mBAAmB;AACzB,SAAS,gBAAgB,IAAI,kBAAkB;CAC9C,OAAO;EACN,YAAY,GAAG,cAAc,kBAAkB,cAAc;EAC7D,OAAO,GAAG,SAAS,kBAAkB,SAAS;CAC/C;AACD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./types-Cv5t6_Ly-CcBWTpfM.mjs";
|
|
@@ -1,27 +1,9 @@
|
|
|
1
1
|
import { r as SqlObjectNaming } from "./naming-BcD36g9T-DFyaudUa.mjs";
|
|
2
2
|
import { IRNodeBase } from "@prisma/orm-framework/components/ir";
|
|
3
|
-
import { CodecRef, DataType,
|
|
4
|
-
import { ColumnDefault
|
|
3
|
+
import { CodecRef, DataType, DataTypeValue } from "@prisma/orm-framework/components/codec";
|
|
4
|
+
import { ColumnDefault } from "@prisma/orm-framework/contract/types";
|
|
5
5
|
import { DiffSubjectGranularity, DiffableNode, SchemaNodeRef } from "@prisma/orm-framework/components/control";
|
|
6
|
-
//#region ../../../2-sql/1-core/schema-ir/dist/types-
|
|
7
|
-
//#region src/ir/default-in-canonical-form.d.ts
|
|
8
|
-
interface DefaultInCanonicalForm {
|
|
9
|
-
readonly value: ColumnDefaultLiteralInputValue;
|
|
10
|
-
/** The canonical form's message for the value, or the first list element, it refuses. */
|
|
11
|
-
readonly refusal: string | undefined;
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* A literal default in the canonical form of the column's values (ADR 254), element by element for
|
|
15
|
-
* a list column. A `Date` is read as its ISO text first. A value the form refuses is kept as it is,
|
|
16
|
-
* with the form's message.
|
|
17
|
-
*/
|
|
18
|
-
declare function defaultInCanonicalForm(value: ColumnDefaultLiteralInputValue, toCanonicalForm: ToCanonicalForm | undefined, list: boolean): DefaultInCanonicalForm;
|
|
19
|
-
/**
|
|
20
|
-
* The refusal of a contract's literal default that the canonical form of its column's values does
|
|
21
|
-
* not take, which a contract emitted by an earlier version can carry, with what to do about it.
|
|
22
|
-
*/
|
|
23
|
-
declare function contractDefaultRefusal(columnDefault: ColumnDefault | undefined, toCanonicalForm: ToCanonicalForm | undefined, list: boolean): string | undefined;
|
|
24
|
-
//#endregion
|
|
6
|
+
//#region ../../../2-sql/1-core/schema-ir/dist/types-c1iIhJep.d.mts
|
|
25
7
|
//#region src/ir/sql-schema-ir-node.d.ts
|
|
26
8
|
/**
|
|
27
9
|
* SQL Schema IR node base. Carries the family-level
|
|
@@ -193,19 +175,28 @@ declare class SqlCheckConstraintIR extends SqlSchemaIRNode implements DiffableNo
|
|
|
193
175
|
isEqualTo(other: DiffableNode): boolean;
|
|
194
176
|
}
|
|
195
177
|
//#endregion
|
|
178
|
+
//#region src/ir/sql-default-value.d.ts
|
|
179
|
+
/**
|
|
180
|
+
* A literal default as a value of its column's data type: one value, or for a list column its elements, with `null` for an element that is SQL NULL. ADR 254.
|
|
181
|
+
*/
|
|
182
|
+
type SqlDefaultValue = DataTypeValue | readonly (DataTypeValue | null)[];
|
|
183
|
+
/** Whether two defaults are one value: the same type, parameters and value, element by element for a list. */
|
|
184
|
+
declare function sqlDefaultValuesEqual(a: SqlDefaultValue, b: SqlDefaultValue): boolean;
|
|
185
|
+
//#endregion
|
|
196
186
|
//#region src/ir/sql-column-default-ir.d.ts
|
|
197
187
|
interface SqlColumnDefaultIRInput {
|
|
198
|
-
/** Structured
|
|
188
|
+
/** Structured default: the contract's, or what introspection read from the database. */
|
|
199
189
|
readonly resolved?: ColumnDefault;
|
|
200
190
|
/** Raw database default expression, when known (introspected side). */
|
|
201
191
|
readonly raw?: string;
|
|
202
192
|
/** See {@link import('./sql-column-ir').SqlColumnIRInput.authoredDefault}. */
|
|
203
193
|
readonly authored?: ColumnDefault;
|
|
204
|
-
/**
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
194
|
+
/** See {@link import('./sql-column-ir').SqlColumnIRInput.defaultValue}. */
|
|
195
|
+
readonly value?: SqlDefaultValue;
|
|
196
|
+
/** See {@link import('./sql-column-ir').SqlColumnIRInput.defaultUnreadable}. */
|
|
197
|
+
readonly unreadable?: string;
|
|
198
|
+
/** See {@link import('./sql-column-ir').SqlColumnIRInput.defaultExpressionValue}. */
|
|
199
|
+
readonly expressionValue?: SqlDefaultValue;
|
|
209
200
|
/**
|
|
210
201
|
* The owning column's array-ness, threaded through so the planner's
|
|
211
202
|
* set-default op-builder can render an array-literal default (e.g.
|
|
@@ -221,8 +212,6 @@ interface SqlColumnDefaultIRInput {
|
|
|
221
212
|
readonly codecRef?: CodecRef;
|
|
222
213
|
/** See {@link import('./sql-column-ir').SqlColumnIRInput.codecBaseNativeType}. */
|
|
223
214
|
readonly codecBaseNativeType?: string;
|
|
224
|
-
/** See {@link import('./sql-column-ir').SqlColumnIRInput.toCanonicalForm}. */
|
|
225
|
-
readonly toCanonicalForm?: ToCanonicalForm;
|
|
226
215
|
}
|
|
227
216
|
/**
|
|
228
217
|
* Schema-diff node for a column's default value. The default is the one
|
|
@@ -243,33 +232,34 @@ declare class SqlColumnDefaultIR extends SqlSchemaIRNode implements DiffableNode
|
|
|
243
232
|
readonly raw?: string;
|
|
244
233
|
/** See {@link SqlColumnDefaultIRInput.authored}. Non-enumerable, same reason as {@link many}. */
|
|
245
234
|
readonly authored?: ColumnDefault;
|
|
246
|
-
|
|
235
|
+
/** See {@link SqlColumnDefaultIRInput.value}. Non-enumerable, same reason as {@link many}. */
|
|
236
|
+
readonly value?: SqlDefaultValue;
|
|
237
|
+
/** See {@link SqlColumnDefaultIRInput.unreadable}. Non-enumerable, same reason as {@link many}. */
|
|
238
|
+
readonly unreadable?: string;
|
|
239
|
+
/** See {@link SqlColumnDefaultIRInput.expressionValue}. Non-enumerable, same reason as {@link many}. */
|
|
240
|
+
readonly expressionValue?: SqlDefaultValue;
|
|
247
241
|
/** See {@link SqlColumnDefaultIRInput.many}. Non-enumerable so it stays out of JSON and structural equality. */
|
|
248
242
|
readonly many?: boolean;
|
|
249
243
|
/** See {@link SqlColumnDefaultIRInput.codecRef}. Non-enumerable, same reason as {@link many}. */
|
|
250
244
|
readonly codecRef?: CodecRef;
|
|
251
245
|
/** See {@link SqlColumnDefaultIRInput.codecBaseNativeType}. Non-enumerable, same reason as {@link many}. */
|
|
252
246
|
readonly codecBaseNativeType?: string;
|
|
253
|
-
/** See {@link SqlColumnDefaultIRInput.toCanonicalForm}. Non-enumerable, same reason as {@link many}. */
|
|
254
|
-
readonly toCanonicalForm?: ToCanonicalForm;
|
|
255
247
|
constructor(input: SqlColumnDefaultIRInput);
|
|
256
248
|
get id(): string;
|
|
257
249
|
children(): readonly DiffableNode[];
|
|
258
250
|
static is(node: SqlSchemaIRNode): node is SqlColumnDefaultIR;
|
|
259
251
|
/**
|
|
260
|
-
*
|
|
261
|
-
*
|
|
262
|
-
*
|
|
263
|
-
*
|
|
264
|
-
*
|
|
265
|
-
*
|
|
252
|
+
* Compares with `this` as the expected side. Two literals compare as values of the column's type
|
|
253
|
+
* when both sides hold one, and as canonical JSON otherwise; a `Date` the column's codec could not
|
|
254
|
+
* read into a value equals nothing. Two expressions compare as text, with
|
|
255
|
+
* case and whitespace ignored outside quotes. An expected expression that writes a literal, read by
|
|
256
|
+
* the column's codec during introspection, matches a reported literal when the two values are
|
|
257
|
+
* equal; when the codec could not read one of them, it compares with the reported text. A resolved
|
|
258
|
+
* side against a raw-only side is a mismatch; two raw-only nodes compare their text.
|
|
266
259
|
*/
|
|
267
260
|
isEqualTo(other: DiffableNode): boolean;
|
|
268
|
-
/**
|
|
269
|
-
|
|
270
|
-
* by an earlier version can carry, so the mismatch names its cause.
|
|
271
|
-
*/
|
|
272
|
-
explainMismatch(): string | undefined;
|
|
261
|
+
/** Why the column's codec could not read the default the database reports, when it could not; otherwise the value each side holds. */
|
|
262
|
+
explainMismatch(actual: DiffableNode | undefined): string | undefined;
|
|
273
263
|
}
|
|
274
264
|
//#endregion
|
|
275
265
|
//#region src/ir/sql-column-ir.d.ts
|
|
@@ -351,11 +341,15 @@ interface SqlColumnIRInput {
|
|
|
351
341
|
*/
|
|
352
342
|
readonly dataType?: DataType;
|
|
353
343
|
/**
|
|
354
|
-
*
|
|
355
|
-
|
|
356
|
-
|
|
344
|
+
* A literal default as a value of the column's data type (ADR 254): on the contract-derived side read from the contract by the column's type, on the introspected side read from the database by the column's codec. The diff compares defaults by it. Absent when no type or codec read one.
|
|
345
|
+
*/
|
|
346
|
+
readonly defaultValue?: SqlDefaultValue;
|
|
347
|
+
/** Why the column's codec could not read the literal default the database reports. Introspected side only. */
|
|
348
|
+
readonly defaultUnreadable?: string;
|
|
349
|
+
/**
|
|
350
|
+
* When the contract's default is an expression that writes a literal, such as `` sql`'hello'::bytea` ``, the value the column's codec reads from that literal. Introspection reads it, beside the reported default, because only introspection reads with a codec; the diff compares it with the reported default's value. Introspected side only.
|
|
357
351
|
*/
|
|
358
|
-
readonly
|
|
352
|
+
readonly defaultExpressionValue?: SqlDefaultValue;
|
|
359
353
|
/** The element type as the database reports it. Set by introspection; absent on contract-derived nodes. */
|
|
360
354
|
readonly reportedType?: ReportedSqlType;
|
|
361
355
|
}
|
|
@@ -394,8 +388,12 @@ declare class SqlColumnIR extends SqlSchemaIRNode implements DiffableNode {
|
|
|
394
388
|
readonly codecBaseNativeType?: string;
|
|
395
389
|
/** See {@link SqlColumnIRInput.dataType}. Non-enumerable, same reason as {@link codecRef}. */
|
|
396
390
|
readonly dataType?: DataType;
|
|
397
|
-
/** See {@link SqlColumnIRInput.
|
|
398
|
-
readonly
|
|
391
|
+
/** See {@link SqlColumnIRInput.defaultValue}. Non-enumerable, same reason as {@link codecRef}. */
|
|
392
|
+
readonly defaultValue?: SqlDefaultValue;
|
|
393
|
+
/** See {@link SqlColumnIRInput.defaultUnreadable}. Non-enumerable, same reason as {@link codecRef}. */
|
|
394
|
+
readonly defaultUnreadable?: string;
|
|
395
|
+
/** See {@link SqlColumnIRInput.defaultExpressionValue}. Non-enumerable, same reason as {@link codecRef}. */
|
|
396
|
+
readonly defaultExpressionValue?: SqlDefaultValue;
|
|
399
397
|
/** See {@link SqlColumnIRInput.reportedType}. Non-enumerable, same reason as {@link codecRef}. */
|
|
400
398
|
readonly reportedType?: ReportedSqlType;
|
|
401
399
|
constructor(input: SqlColumnIRInput);
|
|
@@ -736,5 +734,5 @@ declare class SqlSchemaIR extends SqlSchemaIRNode implements DiffableNode {
|
|
|
736
734
|
children(): readonly DiffableNode[];
|
|
737
735
|
}
|
|
738
736
|
//#endregion
|
|
739
|
-
export {
|
|
740
|
-
//# sourceMappingURL=types-
|
|
737
|
+
export { SqlUniqueIR as C, relationalNodeEntityKind as D, defineNonEnumerable as E, relationalNodeGranularity as O, SqlTableIRInput as S, assertNode as T, SqlReferentialAction as _, SqlAnnotations as a, SqlSchemaIRNode as b, SqlColumnDefaultIR as c, SqlColumnIRInput as d, SqlDefaultValue as f, SqlIndexIRInput as g, SqlIndexIR as h, ReportedSqlType as i, sqlDefaultValuesEqual as k, SqlColumnDefaultIRInput as l, SqlForeignKeyIRInput as m, PrimaryKeyInput as n, SqlCheckConstraintIR as o, SqlForeignKeyIR as p, RelationalSchemaNodeKind as r, SqlCheckConstraintIRInput as s, PrimaryKey as t, SqlColumnIR as u, SqlSchemaIR as v, SqlUniqueIRInput as w, SqlTableIR as x, SqlSchemaIRInput as y };
|
|
738
|
+
//# sourceMappingURL=types-c1iIhJep-DdMj6TNl.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types-c1iIhJep-DdMj6TNl.d.mts","names":[],"sources":["../../../../2-sql/1-core/schema-ir/dist/types-c1iIhJep.d.mts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;uBA2BuB,wBAAwB;WACpC;;;;;;;;;oBASS;EAClB;;;;;;;;iBAQe,WAAW,UAAU,iBAAiB,MAAM,6BAA6B,mBAAmB,YAAY,MAAM,oBAAoB,QAAQ,YAAY,QAA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;;;;;;;;EAQ1C,UAAU,OAAO;;;;;;;;;;;;;;;;;;;;;;EAsBjB,cAAc,OAAO,YAAY;aACtB;aACA;;;;;UAKH;WACC;WACA;WACA,cAAc;;;;;;WAMd,qBAAqB;;;;;;;;;;;;;cAalB,oBAAoB,2BAA2B;WAClD;WACA;WACA;WACA,cAAc;;WAEd,qBAAqB;EAC9B,YAAY,OAAO;MACf;EACJ,qBAAqB;SACd,GAAG,MAAM,kBAAkB,QAAQ;EAC1C,UAAU,OAAO;;;;UAIT;WACC;WACA,SAAS,eAAe,cAAc;WACtC,aAAa,cAAc,kBAAkB;WAC7C,SAAS,cAAc,cAAc;WACrC,SAAS,cAAc,aAAa;WACpC,aAAa,aAAa;WAC1B,cAAc;;WAEd,SAAS,cAAc,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;cAuB3C,mBAAmB,2BAA2B;WACjD;WACA;WACA,SAAS,SAAS,eAAe;WACjC,aAAa,cAAc;WAC3B,SAAS,cAAc;WACvB,SAAS,cAAc;WACvB,aAAa;WACb,cAAc;WACd,SAAS,cAAc;EAChC,YAAY,OAAO;MACf;EACJ,UAAU,OAAO;EACjB,qBAAqB;;;;UAIb;WACC,QAAQ,eAAe,aAAa;WACpC,cAAc;;;;;;;;;;;;;;;;;cAiBX,oBAAoB,2BAA2B;WAClD;WACA,QAAQ,SAAS,eAAe;WAChC,cAAc;EACvB,YAAY,OAAO;MACf;EACJ,UAAU,OAAO;EACjB,qBAAqB"}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { t as contractError } from "./contract-errors-BCN6RVI5-5IHBF_lg.mjs";
|
|
2
|
-
import { a as computeIndexContentHash, i as computeCheckContentHash } from "./naming-
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
2
|
+
import { a as computeIndexContentHash, i as computeCheckContentHash } from "./naming-bM5qm5PY-DdginUhA.mjs";
|
|
3
|
+
import { d as sqlStorageTypeId } from "./sql-data-type-Dabuwxet-BljsNjBu.mjs";
|
|
4
|
+
import { f as composeSqlEntityKinds } from "./entity-kinds-CQ_jwgYv-DoOBWwvX.mjs";
|
|
5
|
+
import { a as sameColumns$1, s as startsWithColumns } from "./index-equivalence-DswCiq5l-BsphajRC.mjs";
|
|
5
6
|
import { ifDefined } from "@prisma/orm-framework/utils/defined";
|
|
6
7
|
import { ContractValidationError } from "@prisma/orm-framework/contract/contract-validation-error";
|
|
7
8
|
import { isPlainRecord } from "@prisma/orm-framework/components/ir";
|
|
8
|
-
import { DATA_TYPE_ID_PATTERN } from "@prisma/orm-framework/components/codec";
|
|
9
|
+
import { DATA_TYPE_ID_PATTERN, createDataTypeLookup } from "@prisma/orm-framework/components/codec";
|
|
9
10
|
import { blindCast } from "@prisma/orm-framework/utils/casts";
|
|
10
11
|
import { type } from "arktype";
|
|
11
12
|
import { ContractExecutionSectionSchema, CrossReferenceSchema } from "@prisma/orm-framework/contract/types";
|
|
@@ -644,7 +645,7 @@ function validateSqlContractFully(value, options) {
|
|
|
644
645
|
validateModelStorageReferences(validated);
|
|
645
646
|
validateExecutionDefaultsTargetMappedColumns(validated);
|
|
646
647
|
validateRelationJoinFields(validated);
|
|
647
|
-
validateRelationThroughConsistency(validated);
|
|
648
|
+
validateRelationThroughConsistency(validated, options?.dataTypes ?? createDataTypeLookup([]));
|
|
648
649
|
validateToOneRelationNullabilityAgainstStorage(validated);
|
|
649
650
|
return validated;
|
|
650
651
|
}
|
|
@@ -678,11 +679,11 @@ function lookupStorageColumn(contract, namespaceId, tableName, columnName) {
|
|
|
678
679
|
return blindCast(rawTable).columns[columnName];
|
|
679
680
|
}
|
|
680
681
|
/**
|
|
681
|
-
* Two storage columns share a type when their `dataType` and `typeParams` match. `codecId` and
|
|
682
|
+
* Two storage columns share a type when the types their `dataType`s are stored as and their `typeParams` match. `codecId` and
|
|
682
683
|
* `nullable` are not compared: they do not change the database type that governs a join.
|
|
683
684
|
*/
|
|
684
|
-
function sameStorageType(a, b) {
|
|
685
|
-
return a.dataType === b.dataType && canonicalizeJson(a.typeParams ?? {}) === canonicalizeJson(b.typeParams ?? {});
|
|
685
|
+
function sameStorageType(a, b, dataTypes) {
|
|
686
|
+
return sqlStorageTypeId(a.dataType, dataTypes) === sqlStorageTypeId(b.dataType, dataTypes) && canonicalizeJson(a.typeParams ?? {}) === canonicalizeJson(b.typeParams ?? {});
|
|
686
687
|
}
|
|
687
688
|
function describeColumnType(column) {
|
|
688
689
|
return column.typeParams === void 0 ? column.dataType : `${column.dataType} ${canonicalizeJson(column.typeParams)}`;
|
|
@@ -721,7 +722,7 @@ function validateThroughJoinSide(input) {
|
|
|
721
722
|
}
|
|
722
723
|
const modelColumn = lookupStorageColumn(input.contract, model.namespaceId, model.table, modelColumnName);
|
|
723
724
|
if (modelColumn === void 0) throw fail(`${input.modelColumnsLabel} references column "${modelColumnName}" absent from table "${model.namespaceId}.${model.table}".`);
|
|
724
|
-
if (!sameStorageType(junctionColumn, modelColumn)) throw fail(`joins "${input.junctionTable}.${junctionColumnName}" (${describeColumnType(junctionColumn)}) with "${model.table}.${modelColumnName}" (${describeColumnType(modelColumn)}) of differing storage type; junction columns must match the type of the column they reference.`);
|
|
725
|
+
if (!sameStorageType(junctionColumn, modelColumn, input.dataTypes)) throw fail(`joins "${input.junctionTable}.${junctionColumnName}" (${describeColumnType(junctionColumn)}) with "${model.table}.${modelColumnName}" (${describeColumnType(modelColumn)}) of differing storage type; junction columns must match the type of the column they reference.`);
|
|
725
726
|
}
|
|
726
727
|
}
|
|
727
728
|
/**
|
|
@@ -731,13 +732,14 @@ function validateThroughJoinSide(input) {
|
|
|
731
732
|
* storage type. Without this, a `through` that disagrees with storage surfaces
|
|
732
733
|
* as a silently wrong JOIN at query time rather than a validation error here.
|
|
733
734
|
*/
|
|
734
|
-
function validateRelationThroughConsistency(contract) {
|
|
735
|
+
function validateRelationThroughConsistency(contract, dataTypes) {
|
|
735
736
|
for (const [namespaceId, namespace] of Object.entries(contract.domain.namespaces)) for (const [modelName, model] of Object.entries(namespace.models)) for (const [relationName, relation] of Object.entries(model.relations)) {
|
|
736
737
|
if (relation.cardinality !== "N:M") continue;
|
|
737
738
|
const qualifiedName = `${namespaceId}.${modelName}.${relationName}`;
|
|
738
739
|
const { on, through } = relation;
|
|
739
740
|
const modelStorage = blindCast(model.storage);
|
|
740
741
|
validateThroughJoinSide({
|
|
742
|
+
dataTypes,
|
|
741
743
|
contract,
|
|
742
744
|
qualifiedName,
|
|
743
745
|
modelColumns: on.localFields,
|
|
@@ -758,6 +760,7 @@ function validateRelationThroughConsistency(contract) {
|
|
|
758
760
|
table: blindCast(targetModel.storage).table
|
|
759
761
|
};
|
|
760
762
|
validateThroughJoinSide({
|
|
763
|
+
dataTypes,
|
|
761
764
|
contract,
|
|
762
765
|
qualifiedName,
|
|
763
766
|
modelColumns: through.targetColumns,
|
|
@@ -773,4 +776,4 @@ function validateRelationThroughConsistency(contract) {
|
|
|
773
776
|
//#endregion
|
|
774
777
|
export { createSqlStorageSchema as a, validateExecutionDefaultsTargetMappedColumns as c, validateRelationJoinFields as d, validateSqlContractFully as f, valueObjectStorageTypeMissingMessage as g, validateStorageSemantics as h, createSqlContractSchema as i, validateModel as l, validateStorage as m, checkSqlDefaultText as n, reservedSqlDefaultText as o, validateSqlStorageConsistency as p, createNamespaceEntrySchema as r, resolveSqlToOneRelationStorage as s, ContractEnumSchema as t, validateModelStorageReferences as u };
|
|
775
778
|
|
|
776
|
-
//# sourceMappingURL=validators-
|
|
779
|
+
//# sourceMappingURL=validators-Bvfk0aN7.mjs.map
|