@prisma/orm-family-sql 8.0.0-rc.19-dev.1 → 8.0.0-rc.19-dev.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{ast-DlajRqlB.d.mts → ast-BySjcUKx.d.mts} +3 -3
- package/dist/{ast-DlajRqlB.d.mts.map → ast-BySjcUKx.d.mts.map} +1 -1
- package/dist/{attribute-specs-cHzMPvMl.d.mts → attribute-specs-BsaemIyu.d.mts} +9 -11
- package/dist/attribute-specs-BsaemIyu.d.mts.map +1 -0
- package/dist/{authoring-entity-types-DUQLeBf_-nuhFC6jJ.d.mts → authoring-entity-types-DUQLeBf_-DSWWvkLJ.d.mts} +2 -2
- package/dist/{authoring-entity-types-DUQLeBf_-nuhFC6jJ.d.mts.map → authoring-entity-types-DUQLeBf_-DSWWvkLJ.d.mts.map} +1 -1
- package/dist/builder.d.mts +3 -3
- package/dist/builder__runtime.d.mts +10 -10
- package/dist/builder__runtime.mjs +1 -1
- package/dist/builder__types.d.mts +5 -5
- package/dist/{codec-descriptor-registry-4kw8FPpo.mjs → codec-descriptor-registry-MG2bFxW_.mjs} +5 -14
- package/dist/codec-descriptor-registry-MG2bFxW_.mjs.map +1 -0
- package/dist/collection-methods-BTknGdHI.d.mts +1 -0
- package/dist/{collection-methods-BtJYB_5s-0fek2_wK.d.mts → collection-methods-D2UnCS0S-CRYoAOtB.d.mts} +5 -5
- package/dist/{collection-methods-BtJYB_5s-0fek2_wK.d.mts.map → collection-methods-D2UnCS0S-CRYoAOtB.d.mts.map} +1 -1
- package/dist/{config-types-DY37pCIx.mjs → config-types-BLDwd9wS.mjs} +2 -2
- package/dist/{config-types-DY37pCIx.mjs.map → config-types-BLDwd9wS.mjs.map} +1 -1
- package/dist/{config-types-DN0IueHY.d.mts → config-types-D8quwydu.d.mts} +4 -4
- package/dist/{config-types-DN0IueHY.d.mts.map → config-types-D8quwydu.d.mts.map} +1 -1
- package/dist/{contract-builder-DT689tII.mjs → contract-builder-CNeGxqP_.mjs} +96 -99
- package/dist/contract-builder-CNeGxqP_.mjs.map +1 -0
- package/dist/{contract-builder-DZSUqbp0.d.mts → contract-builder-xFftVmD8.d.mts} +85 -69
- package/dist/contract-builder-xFftVmD8.d.mts.map +1 -0
- package/dist/contract-emitter.mjs +1 -1
- package/dist/contract-prisma7__provider.d.mts +2 -2
- package/dist/contract-prisma7__provider.mjs +4 -4
- package/dist/contract-psl.d.mts +4 -4
- 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.d.mts +2 -2
- package/dist/contract-psl__provider.mjs +2 -2
- package/dist/contract-psl__provider.mjs.map +1 -1
- package/dist/contract-ts.d.mts +3 -3
- package/dist/contract-ts.mjs +3 -3
- package/dist/contract-ts__config-types.d.mts +1 -1
- 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 +2 -2
- package/dist/{contract-view-BAbRgQMW.d.mts → contract-view-BgpEwVz0.d.mts} +2 -2
- package/dist/{contract-view-BAbRgQMW.d.mts.map → contract-view-BgpEwVz0.d.mts.map} +1 -1
- package/dist/contract.d.mts +13 -13
- package/dist/contract.mjs +7 -7
- package/dist/contract__contract-view.d.mts +1 -1
- package/dist/contract__data-type.d.mts +1 -1
- package/dist/contract__entity-kinds.d.mts +1 -1
- package/dist/contract__entity-kinds.mjs +1 -1
- package/dist/contract__factories.d.mts +1 -1
- package/dist/contract__factories.mjs +1 -1
- package/dist/contract__foreign-key-materialization.d.mts +1 -1
- package/dist/contract__index-type-validation.d.mts +1 -1
- package/dist/contract__resolve-storage-table.d.mts +1 -1
- package/dist/contract__types.d.mts +5 -5
- package/dist/contract__types.mjs +4 -4
- package/dist/contract__validators.d.mts +1 -1
- package/dist/contract__validators.mjs +2 -2
- package/dist/{control-CF-KJYTH.mjs → control-KwF_dWdr.mjs} +33 -67
- package/dist/control-KwF_dWdr.mjs.map +1 -0
- package/dist/{control-adapter-Bn0uhplA-BBax-2PG.d.mts → control-adapter-Bn0uhplA-D0fhkvnJ.d.mts} +8 -8
- package/dist/{control-adapter-Bn0uhplA-BBax-2PG.d.mts.map → control-adapter-Bn0uhplA-D0fhkvnJ.d.mts.map} +1 -1
- package/dist/{control-adapter-QzlyTp1z.d.mts → control-adapter-El4czoUh.d.mts} +4 -4
- package/dist/{control-adapter-QzlyTp1z.d.mts.map → control-adapter-El4czoUh.d.mts.map} +1 -1
- package/dist/{control-YFLg-7Gn.d.mts → control-cq1XZ1wo.d.mts} +24 -24
- package/dist/control-cq1XZ1wo.d.mts.map +1 -0
- package/dist/{data-type-BacIoCfv.d.mts → data-type-CWFhlpaq.d.mts} +3 -3
- package/dist/{data-type-BacIoCfv.d.mts.map → data-type-CWFhlpaq.d.mts.map} +1 -1
- package/dist/{db-BmrN9nRS-DGNx3jwd.d.mts → db-BmrN9nRS-MT5cfCJy.d.mts} +13 -13
- package/dist/{db-BmrN9nRS-DGNx3jwd.d.mts.map → db-BmrN9nRS-MT5cfCJy.d.mts.map} +1 -1
- package/dist/{ddl-types-BBrLVtS--u4u-I8L5.d.mts → ddl-types-By5mT2_S--j4lTxme.d.mts} +4 -4
- package/dist/{ddl-types-BBrLVtS--u4u-I8L5.d.mts.map → ddl-types-By5mT2_S--j4lTxme.d.mts.map} +1 -1
- package/dist/{derived-checks-DpPkO6Dt-D-vp9vY3.d.mts → derived-checks-DpPkO6Dt-D6tfanWv.d.mts} +3 -3
- package/dist/{derived-checks-DpPkO6Dt-D-vp9vY3.d.mts.map → derived-checks-DpPkO6Dt-D6tfanWv.d.mts.map} +1 -1
- package/dist/{derived-checks-CXW9ytkb-B_zxX1-8.mjs → derived-checks-iXF3y0Ki-28vqz_8w.mjs} +22 -18
- package/dist/derived-checks-iXF3y0Ki-28vqz_8w.mjs.map +1 -0
- package/dist/{diff-CzUyZmJi.d.mts → diff-Cqz45svW.d.mts} +7 -7
- package/dist/{diff-CzUyZmJi.d.mts.map → diff-Cqz45svW.d.mts.map} +1 -1
- package/dist/diff-DZ82XaGR.mjs.map +1 -1
- package/dist/{dist-Bxu8hzMC.mjs → dist-D8RKUdwh.mjs} +4 -5
- package/dist/dist-D8RKUdwh.mjs.map +1 -0
- package/dist/{entity-kinds-CQ_jwgYv-DoOBWwvX.mjs → entity-kinds-JR5SAm5h-ZkDejOUK.mjs} +4 -8
- package/dist/entity-kinds-JR5SAm5h-ZkDejOUK.mjs.map +1 -0
- package/dist/{entity-kinds-BCMNbwxO.d.mts → entity-kinds-OhCjfrIe.d.mts} +2 -2
- package/dist/{entity-kinds-BCMNbwxO.d.mts.map → entity-kinds-OhCjfrIe.d.mts.map} +1 -1
- package/dist/{exports-D3JbXqm_-mm-wWICO.mjs → exports-CRROThzp-BNz0pGj0.mjs} +8 -65
- package/dist/{exports-D3JbXqm_-mm-wWICO.mjs.map → exports-CRROThzp-BNz0pGj0.mjs.map} +1 -1
- package/dist/{expression-CC4544Y8-C_EWTA_0.d.mts → expression-6ld_ZQL6-CQghHqQ4.d.mts} +8 -8
- package/dist/{expression-CC4544Y8-C_EWTA_0.d.mts.map → expression-6ld_ZQL6-CQghHqQ4.d.mts.map} +1 -1
- package/dist/expression-BLiObOS8.d.mts +2 -0
- package/dist/{expression-BdaU48Qq-Dff96hT_.d.mts → expression-CieaNuRM-BpwVyjJL.d.mts} +4 -4
- package/dist/expression-CieaNuRM-BpwVyjJL.d.mts.map +1 -0
- package/dist/{factories-DkD3nMYt.mjs → factories-C4JbtO84.mjs} +2 -2
- package/dist/{factories-DkD3nMYt.mjs.map → factories-C4JbtO84.mjs.map} +1 -1
- package/dist/{factories-B4AMRt6O.d.mts → factories-CfHDga-q.d.mts} +3 -3
- package/dist/{factories-B4AMRt6O.d.mts.map → factories-CfHDga-q.d.mts.map} +1 -1
- package/dist/family.d.mts +14 -14
- package/dist/family.mjs +6 -6
- package/dist/family__control-adapter.d.mts +2 -2
- package/dist/family__control.d.mts +4 -4
- package/dist/family__control.mjs +3 -3
- package/dist/family__diff.d.mts +1 -1
- package/dist/family__diff.mjs +1 -1
- 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 +1 -1
- package/dist/family__psl-infer.d.mts +1 -1
- package/dist/family__runtime.d.mts +2 -2
- package/dist/{foreign-key-materialization-bL-t2oPB.d.mts → foreign-key-materialization-CgW18KP-.d.mts} +3 -3
- package/dist/{foreign-key-materialization-bL-t2oPB.d.mts.map → foreign-key-materialization-CgW18KP-.d.mts.map} +1 -1
- package/dist/{functions-wFi6AtCc.d.mts → functions-DTInIMZT.d.mts} +6 -6
- package/dist/{functions-wFi6AtCc.d.mts.map → functions-DTInIMZT.d.mts.map} +1 -1
- package/dist/{generator-functions-DuDZSQHE-BbKhsXck.mjs → generator-functions-DuDZSQHE-Dl5EP61A.mjs} +2 -2
- package/dist/{generator-functions-DuDZSQHE-BbKhsXck.mjs.map → generator-functions-DuDZSQHE-Dl5EP61A.mjs.map} +1 -1
- package/dist/{index-v5QXXCrA.d.mts → index-3aEIvk82.d.mts} +22 -22
- package/dist/{index-v5QXXCrA.d.mts.map → index-3aEIvk82.d.mts.map} +1 -1
- package/dist/{index-BRFLss5v.d.mts → index-ffCr9ySU.d.mts} +3 -3
- package/dist/{index-BRFLss5v.d.mts.map → index-ffCr9ySU.d.mts.map} +1 -1
- package/dist/{index-reference-DSsn39tX-EEkv1N4w.d.mts → index-reference-4wsdeB7v-DiTLLldN.d.mts} +4 -4
- package/dist/{index-reference-DSsn39tX-EEkv1N4w.d.mts.map → index-reference-4wsdeB7v-DiTLLldN.d.mts.map} +1 -1
- package/dist/index-reference-Da9mdOjD.d.mts +1 -0
- package/dist/{index-type-validation-Cz2T3FJn.d.mts → index-type-validation-Ibtp3RKo.d.mts} +3 -3
- package/dist/{index-type-validation-Cz2T3FJn.d.mts.map → index-type-validation-Ibtp3RKo.d.mts.map} +1 -1
- package/dist/{interpreter-DTwRm0sl-DHX1SdeJ.mjs → interpreter-BGgim2OE-D9BG-4aU.mjs} +148 -130
- package/dist/interpreter-BGgim2OE-D9BG-4aU.mjs.map +1 -0
- package/dist/{ir-qK4wX3D3.d.mts → ir-BjC1VOuq.d.mts} +3 -3
- package/dist/{ir-qK4wX3D3.d.mts.map → ir-BjC1VOuq.d.mts.map} +1 -1
- package/dist/{middleware-C7H9kh01-l6_mYpN2.d.mts → middleware-DHkW6pRr-CFiQojK4.d.mts} +3 -3
- package/dist/{middleware-C7H9kh01-l6_mYpN2.d.mts.map → middleware-DHkW6pRr-CFiQojK4.d.mts.map} +1 -1
- package/dist/middleware-GO31SJSv.d.mts +1 -0
- package/dist/{migration-tfMTDejH.d.mts → migration-DeekERBF.d.mts} +4 -4
- package/dist/{migration-tfMTDejH.d.mts.map → migration-DeekERBF.d.mts.map} +1 -1
- package/dist/operations.d.mts +1 -1
- package/dist/orm-client.d.mts +21 -21
- package/dist/orm-client.mjs +2 -2
- package/dist/{pack-NM8AYiUp.mjs → pack-B5_CfdgT.mjs} +3 -3
- package/dist/{pack-NM8AYiUp.mjs.map → pack-B5_CfdgT.mjs.map} +1 -1
- package/dist/{pack-AyeYizq-.d.mts → pack-BJ53Inwa.d.mts} +6 -6
- package/dist/{pack-AyeYizq-.d.mts.map → pack-BJ53Inwa.d.mts.map} +1 -1
- package/dist/{plan-BiCLdXQr-0ZB4P6b9.d.mts → plan-Cr4azjnG-lIrzIrmu.d.mts} +5 -5
- package/dist/plan-Cr4azjnG-lIrzIrmu.d.mts.map +1 -0
- package/dist/plan-OXQ8s6Ee.d.mts +2 -0
- package/dist/psl-build-D5VG40ej.mjs.map +1 -1
- package/dist/{psl-build-C4ia2uM6.d.mts → psl-build-prdUw3sC.d.mts} +4 -4
- package/dist/{psl-build-C4ia2uM6.d.mts.map → psl-build-prdUw3sC.d.mts.map} +1 -1
- package/dist/{psl-column-resolution-BgThghdu-BWaFlWYV.d.mts → psl-column-resolution-ChZqioOc-DcjGSXDp.d.mts} +3 -4
- package/dist/psl-column-resolution-ChZqioOc-DcjGSXDp.d.mts.map +1 -0
- package/dist/{psl-field-resolution-DpGsATq3-BREG9FbU.mjs → psl-field-resolution-C9zwpsAu-DCc7Eifv.mjs} +163 -133
- package/dist/psl-field-resolution-C9zwpsAu-DCc7Eifv.mjs.map +1 -0
- package/dist/{psl-infer-B_n-rSCj.d.mts → psl-infer-CpTRaF5I.d.mts} +3 -3
- package/dist/{psl-infer-B_n-rSCj.d.mts.map → psl-infer-CpTRaF5I.d.mts.map} +1 -1
- package/dist/{query-lane-context-DEr9NHM--ClIM8v5T.d.mts → query-lane-context-BCEoKy0_-DQOOliDn.d.mts} +11 -20
- package/dist/query-lane-context-BCEoKy0_-DQOOliDn.d.mts.map +1 -0
- package/dist/query-lane-context-BssPNZey.d.mts +1 -0
- package/dist/relational-core.d.mts +13 -13
- package/dist/relational-core__aggregate-descriptor-registry.d.mts +1 -1
- package/dist/relational-core__ast.d.mts +3 -3
- package/dist/relational-core__codec-descriptor-registry.d.mts +6 -7
- package/dist/relational-core__codec-descriptor-registry.d.mts.map +1 -1
- 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__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 +3 -3
- package/dist/relational-core__types.d.mts +2 -2
- package/dist/{resolve-storage-table-8N2xelSh.d.mts → resolve-storage-table-CxmU_MPu.d.mts} +3 -3
- package/dist/{resolve-storage-table-8N2xelSh.d.mts.map → resolve-storage-table-CxmU_MPu.d.mts.map} +1 -1
- package/dist/{runtime-BlUQqGCH.d.mts → runtime-Bmndf-fm.d.mts} +2 -2
- package/dist/{runtime-BlUQqGCH.d.mts.map → runtime-Bmndf-fm.d.mts.map} +1 -1
- package/dist/runtime.d.mts +5 -5
- package/dist/runtime.mjs +1 -1
- package/dist/runtime__internal__prepared-query.d.mts +1 -1
- package/dist/{schema-differ-DmP74bB8-BfEQ_9cY.d.mts → schema-differ-DmP74bB8-0ZupRJKb.d.mts} +5 -5
- package/dist/{schema-differ-DmP74bB8-BfEQ_9cY.d.mts.map → schema-differ-DmP74bB8-0ZupRJKb.d.mts.map} +1 -1
- package/dist/schema-ir.d.mts +1 -1
- package/dist/schema-ir__types.d.mts +2 -2
- package/dist/{schema-verify-BwRdzbHb-DfFAS0EC.mjs → schema-verify-C3wbdviw-BifQBCpu.mjs} +3 -3
- package/dist/{schema-verify-BwRdzbHb-DfFAS0EC.mjs.map → schema-verify-C3wbdviw-BifQBCpu.mjs.map} +1 -1
- package/dist/{serialized-index-52COq1yV-CUJ2F65u.mjs → serialized-index-DjCCnXB1-C_YccpTL.mjs} +3 -3
- package/dist/{serialized-index-52COq1yV-CUJ2F65u.mjs.map → serialized-index-DjCCnXB1-C_YccpTL.mjs.map} +1 -1
- package/dist/{sql-contract-serializer-sMY3prTx-CpZa5Nlt.mjs → sql-contract-serializer-sMY3prTx-BkFoHhST.mjs} +4 -4
- package/dist/{sql-contract-serializer-sMY3prTx-CpZa5Nlt.mjs.map → sql-contract-serializer-sMY3prTx-BkFoHhST.mjs.map} +1 -1
- package/dist/{sql-execution-plan-BEhLlwYP-seGNP8Qr.d.mts → sql-execution-plan-3uxYjHyu-C0Z4_RSY.d.mts} +3 -3
- package/dist/sql-execution-plan-3uxYjHyu-C0Z4_RSY.d.mts.map +1 -0
- package/dist/{sql-storage-tZhB8nS5-8NSWT0TW.d.mts → sql-storage-DeCAh5Hi-nJQUIgfL.d.mts} +6 -9
- package/dist/sql-storage-DeCAh5Hi-nJQUIgfL.d.mts.map +1 -0
- package/dist/{storage-table-DC9afJhr-CmRU56OS.d.mts → storage-table-Bf1ZjnxO-NvkG2pgq.d.mts} +2 -8
- package/dist/storage-table-Bf1ZjnxO-NvkG2pgq.d.mts.map +1 -0
- package/dist/{storage-table-DN36E2yE-0ncS821l.mjs → storage-table-DDvN83mw-CbCFr5wm.mjs} +2 -3
- package/dist/{storage-table-DN36E2yE-0ncS821l.mjs.map → storage-table-DDvN83mw-CbCFr5wm.mjs.map} +1 -1
- package/dist/{transaction-state-DR3nKTmH-2-ewbth1.d.mts → transaction-state-DR3nKTmH-D6VdY7YX.d.mts} +9 -9
- package/dist/{transaction-state-DR3nKTmH-2-ewbth1.d.mts.map → transaction-state-DR3nKTmH-D6VdY7YX.d.mts.map} +1 -1
- package/dist/types-BUggiEEH.d.mts +1 -0
- package/dist/{types-M_FeBD9w.mjs → types-C7610W2l.mjs} +5 -6
- package/dist/types-C7610W2l.mjs.map +1 -0
- package/dist/{types-CI5lled6-CDV4aYNB.d.mts → types-CI5lled6-DMWq8aOX.d.mts} +9 -9
- package/dist/{types-CI5lled6-CDV4aYNB.d.mts.map → types-CI5lled6-DMWq8aOX.d.mts.map} +1 -1
- package/dist/{types-B2Dee96w.d.mts → types-CRbj_WQf.d.mts} +7 -12
- package/dist/types-CRbj_WQf.d.mts.map +1 -0
- package/dist/{types-DiD6BqoN-ZF53hwPp.d.mts → types-CuCxAQat-BBGUHEku.d.mts} +3 -4
- package/dist/types-CuCxAQat-BBGUHEku.d.mts.map +1 -0
- package/dist/types-DDqbg3WC.d.mts +1 -0
- package/dist/{types-Dqf87mfA-BOElvimQ.d.mts → types-DfKvtJwS-tndgHh53.d.mts} +4 -4
- package/dist/{types-Dqf87mfA-BOElvimQ.d.mts.map → types-DfKvtJwS-tndgHh53.d.mts.map} +1 -1
- package/dist/{types-GgcOrYm_-RhoxnXdj.d.mts → types-DriMIMNQ-BBacSgaI.d.mts} +4 -5
- package/dist/types-DriMIMNQ-BBacSgaI.d.mts.map +1 -0
- package/dist/{types-Dy1w8GHm-7hJTBOLL.d.mts → types-TXO7x1BA-DuW4v0rw.d.mts} +11 -11
- package/dist/{types-Dy1w8GHm-7hJTBOLL.d.mts.map → types-TXO7x1BA-DuW4v0rw.d.mts.map} +1 -1
- package/dist/{validators-CTZ-hU2l.d.mts → validators-BDuMio1F.d.mts} +3 -4
- package/dist/validators-BDuMio1F.d.mts.map +1 -0
- package/dist/{validators-Cfy0jmZ2.mjs → validators-xXKEHvnw.mjs} +25 -12
- package/dist/validators-xXKEHvnw.mjs.map +1 -0
- package/package.json +18 -18
- package/dist/attribute-specs-cHzMPvMl.d.mts.map +0 -1
- package/dist/codec-descriptor-registry-4kw8FPpo.mjs.map +0 -1
- package/dist/collection-methods-CwBVxvll.d.mts +0 -1
- package/dist/contract-builder-DT689tII.mjs.map +0 -1
- package/dist/contract-builder-DZSUqbp0.d.mts.map +0 -1
- package/dist/control-CF-KJYTH.mjs.map +0 -1
- package/dist/control-YFLg-7Gn.d.mts.map +0 -1
- package/dist/derived-checks-CXW9ytkb-B_zxX1-8.mjs.map +0 -1
- package/dist/dist-Bxu8hzMC.mjs.map +0 -1
- package/dist/entity-kinds-CQ_jwgYv-DoOBWwvX.mjs.map +0 -1
- package/dist/expression-BdaU48Qq-Dff96hT_.d.mts.map +0 -1
- package/dist/expression-DI_LoyKf.d.mts +0 -2
- package/dist/index-reference-burEIuXy.d.mts +0 -1
- package/dist/interpreter-DTwRm0sl-DHX1SdeJ.mjs.map +0 -1
- package/dist/middleware-CpxZxPGp.d.mts +0 -1
- package/dist/plan-BiCLdXQr-0ZB4P6b9.d.mts.map +0 -1
- package/dist/plan-xPa9B6I3.d.mts +0 -2
- package/dist/psl-column-resolution-BgThghdu-BWaFlWYV.d.mts.map +0 -1
- package/dist/psl-field-resolution-DpGsATq3-BREG9FbU.mjs.map +0 -1
- package/dist/query-lane-context--sVodqqM.d.mts +0 -1
- package/dist/query-lane-context-DEr9NHM--ClIM8v5T.d.mts.map +0 -1
- package/dist/sql-execution-plan-BEhLlwYP-seGNP8Qr.d.mts.map +0 -1
- package/dist/sql-storage-tZhB8nS5-8NSWT0TW.d.mts.map +0 -1
- package/dist/storage-table-DC9afJhr-CmRU56OS.d.mts.map +0 -1
- package/dist/types-B2Dee96w.d.mts.map +0 -1
- package/dist/types-BQC-To7K.d.mts +0 -1
- package/dist/types-D_nlUp-1.d.mts +0 -1
- package/dist/types-DiD6BqoN-ZF53hwPp.d.mts.map +0 -1
- package/dist/types-GgcOrYm_-RhoxnXdj.d.mts.map +0 -1
- package/dist/types-M_FeBD9w.mjs.map +0 -1
- package/dist/validators-CTZ-hU2l.d.mts.map +0 -1
- package/dist/validators-Cfy0jmZ2.mjs.map +0 -1
package/dist/{storage-table-DN36E2yE-0ncS821l.mjs.map → storage-table-DDvN83mw-CbCFr5wm.mjs.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"storage-table-DN36E2yE-0ncS821l.mjs","names":[],"sources":["../../../../2-sql/1-core/contract/dist/storage-table-DN36E2yE.mjs"],"sourcesContent":["import { t as contractError } from \"./contract-errors-BCN6RVI5.mjs\";\nimport { nameOf } from \"@internal/sql-schema-ir/naming\";\nimport { IRNodeBase, freezeNode } from \"@internal/framework-components/ir\";\nimport { InternalError } from \"@internal/utils/internal-error\";\nimport { ContractValidationError } from \"@internal/contract/contract-validation-error\";\nimport { asNamespaceId } from \"@internal/contract/types\";\n//#region src/ir/sql-node.ts\n/**\n* SQL family IR node base. Carries the family-level `kind` discriminator\n* `'sql'` and inherits the framework's `freezeNode` affordance.\n*\n* Single family-level discriminator (not per-leaf) reflects the fact that\n* SQL IR has no polymorphic dispatch today — verifiers and serializers\n* walk by structural position (`storage.tables[name].columns[name]`),\n* not by inspecting `kind`. The abstract bar for per-leaf discriminators\n* isn't earned until a future polymorphic consumer arrives.\n*\n* `kind` is installed as a non-enumerable own property on every instance,\n* which keeps three things clean simultaneously:\n*\n* - `JSON.stringify(node)` produces the canonical pre-lift JSON envelope\n* shape (no `kind` field), so emitted contract.json files and the\n* `validateSqlContractFully` arktype schemas stay unchanged.\n* - Test assertions that use `toEqual({...})` against the pre-lift flat\n* shape continue to pass — only enumerable own properties are\n* compared.\n* - Direct access (`node.kind`) and runtime narrowing\n* (`if (node.kind === 'sql')`) still work, so future polymorphic\n* dispatch can begin reading `kind` without a runtime change.\n*\n* Future per-leaf overrides land cleanly: a class that gains a\n* polymorphic-dispatch consumer (e.g. an enum type instance walked\n* alongside other types) overrides `kind` with its narrower literal\n* at that leaf level. Per-leaf overrides will use enumerable kind\n* (matching the Mongo per-class-discriminator precedent) because they\n* encode dispatch-relevant information that callers need to see in\n* JSON envelopes; the family-level `'sql'` is uniform across all SQL\n* IR and carries no dispatch-relevant information.\n*/\nvar SqlNode = class extends IRNodeBase {\n\tkind;\n\tconstructor() {\n\t\tsuper();\n\t\tObject.defineProperty(this, \"kind\", {\n\t\t\tvalue: \"sql\",\n\t\t\twritable: false,\n\t\t\tenumerable: false,\n\t\t\tconfigurable: true\n\t\t});\n\t}\n};\n//#endregion\n//#region src/ir/check-constraint.ts\n/**\n* SQL Contract IR node for a table-level check constraint, name-identified:\n* `name` is the full physical name; a present `prefix` marks the constraint as\n* wire-named (`name` is `formatWireName(prefix, <8hex>)` over the expression's\n* content hash), an absent `prefix` marks it exact (the name is adopted\n* verbatim). This is the convention indexes and RLS policies already use — see\n* ADR 234, \"Content-addressed wire names for Postgres-normalized objects\".\n*\n* The predicate is opaque: one SQL string, never parsed and never rendered\n* from structured parts. A database reprints predicates in its own normalized\n* form, so a wire-named check is compared by name — the hash already commits\n* to the expression the contract declared.\n*/\nvar CheckConstraint = class CheckConstraint extends SqlNode {\n\tname;\n\texpression;\n\tconstructor(input) {\n\t\tsuper();\n\t\tconst name = nameOf(input.naming);\n\t\tif (name.length === 0) throw new ContractValidationError(\"CheckConstraint: every check constraint carries a full physical name.\", \"storage\");\n\t\tthis.name = name;\n\t\tif (input.naming.kind === \"wire\") this.prefix = input.naming.prefix;\n\t\tthis.expression = input.expression;\n\t\tfreezeNode(this);\n\t}\n\t/**\n\t* Normalizes either shape into an instance: an existing `CheckConstraint`\n\t* passes through, canonical input is constructed. Callers that accept\n\t* \"instance or input\" go through this, so the constructor keeps one\n\t* canonical shape instead of widening to a union.\n\t*/\n\tstatic from(value) {\n\t\treturn value instanceof CheckConstraint ? value : new CheckConstraint(value);\n\t}\n};\n//#endregion\n//#region src/ir/sql-index.ts\n/**\n* SQL Contract IR node for a table-level secondary index, name-identified:\n* `name` is the full physical name; a present `prefix` marks the index as\n* wire-named (`name` is `formatWireName(prefix, <8hex>)`), an absent `prefix`\n* marks it exact (the name is adopted verbatim).\n*\n* `expression`, `where`, and `unique` are genuine SQL-family attributes —\n* functional and partial indexes are standard SQL supported natively by\n* Postgres and SQLite alike, and the family IR must be able to represent\n* anything any SQL target can introspect. A target declining to AUTHOR them\n* (SQLite's rejection at namespace construction) is a capability decision,\n* not evidence of target-specificity.\n*\n* Note that this class shadows the global TypeScript `Index` lib type\n* at the family-shared name; consumer files that need both should\n* alias one (e.g.\n* `import { Index as SqlIndexNode } from '@internal/sql-contract/types'`).\n*/\nvar Index = class Index extends SqlNode {\n\tname;\n\tunique;\n\tconstructor(input) {\n\t\tsuper();\n\t\tconst name = nameOf(input.naming);\n\t\tif (name.length === 0) throw new ContractValidationError(\"Index: every index carries a full physical name; an expression index must be explicitly named (a default name cannot be derived from an expression).\", \"storage\");\n\t\tif (input.columns === void 0 === (input.expression === void 0)) throw new ContractValidationError(`Index \"${name}\": exactly one of columns or expression must be set.`, \"storage\");\n\t\tthis.name = name;\n\t\tthis.unique = input.unique;\n\t\tif (input.naming.kind === \"wire\") this.prefix = input.naming.prefix;\n\t\tif (input.columns !== void 0) this.columns = input.columns;\n\t\tif (input.expression !== void 0) this.expression = input.expression;\n\t\tif (input.where !== void 0) this.where = input.where;\n\t\tif (input.type !== void 0) this.type = input.type;\n\t\tif (input.options !== void 0) this.options = input.options;\n\t\tfreezeNode(this);\n\t}\n\tstatic from(value) {\n\t\treturn value instanceof Index ? value : new Index(value);\n\t}\n};\n//#endregion\n//#region src/ir/foreign-key-reference.ts\n/**\n* SQL Contract IR node for one side (source or target) of a foreign-key\n* declaration. Carries the full coordinate: namespace, table, and columns.\n*\n* Cross-space discrimination is based on `spaceId` presence: absent means\n* local (same contract-space); present means cross-space (the referenced\n* table lives in the contract-space identified by `spaceId`).\n*\n* For local references `spaceId` is absent from JSON, keeping the serialized\n* shape byte-identical to contracts authored before cross-space support was\n* added. For cross-space references `spaceId` appears in JSON so round-trips\n* are lossless.\n*\n* Use `UNBOUND_NAMESPACE_ID` from `@internal/framework-components/ir`\n* as the sentinel `namespaceId` for single-namespace (unbound) references.\n*/\nvar ForeignKeyReference = class ForeignKeyReference extends SqlNode {\n\tnamespaceId;\n\ttableName;\n\tcolumns;\n\tconstructor(input) {\n\t\tsuper();\n\t\tthis.namespaceId = asNamespaceId(input.namespaceId);\n\t\tthis.tableName = input.tableName;\n\t\tthis.columns = input.columns;\n\t\tif (input.spaceId !== void 0) this.spaceId = input.spaceId;\n\t\tfreezeNode(this);\n\t}\n\tstatic from(value) {\n\t\treturn value instanceof ForeignKeyReference ? value : new ForeignKeyReference(value);\n\t}\n};\n//#endregion\n//#region src/ir/foreign-key.ts\n/**\n* SQL Contract IR node for a table-level foreign-key declaration — the\n* referential constraint only (source, target, `onDelete`/`onUpdate`).\n*\n* A persisted `foreignKeys[]` entry always denotes a real constraint: whether\n* to emit the constraint at all, and whether to back it with an index, are\n* authoring-time decisions (PSL `@relation(index:)`, TS `fk({ constraint,\n* index })`) resolved once at `contract emit` — a `constraint: false` FK\n* simply has no entry here, and a backing index (if any) is its own discrete,\n* named entry in the table's `indexes[]`. `index` says what serves the\n* foreign key's lookups; it is absent when nothing backs the foreign key.\n*\n* Each FK carries explicit `source` and `target` {@link ForeignKeyReference}\n* coordinates (namespace, table, columns). For single-namespace contracts the\n* sentinel `UNBOUND_NAMESPACE_ID` appears on both sides.\n*\n* The nested references are normalised to {@link ForeignKeyReference}\n* instances inside the constructor so downstream walks see a uniform AST\n* regardless of whether the input was a JSON literal or an already-constructed\n* class instance.\n*/\nvar ForeignKey = class ForeignKey extends SqlNode {\n\tsource;\n\ttarget;\n\tconstructor(input) {\n\t\tsuper();\n\t\tthis.source = ForeignKeyReference.from(input.source);\n\t\tthis.target = ForeignKeyReference.from(input.target);\n\t\tif (input.name !== void 0) this.name = input.name;\n\t\tif (input.onDelete !== void 0) this.onDelete = input.onDelete;\n\t\tif (input.onUpdate !== void 0) this.onUpdate = input.onUpdate;\n\t\tif (typeof input.index === \"object\") this.index = input.index;\n\t\tfreezeNode(this);\n\t}\n\tstatic from(value) {\n\t\treturn value instanceof ForeignKey ? value : new ForeignKey(value);\n\t}\n};\n//#endregion\n//#region src/ir/primary-key.ts\n/**\n* SQL Contract IR node for a table's primary-key constraint.\n*/\nvar PrimaryKey = class PrimaryKey extends SqlNode {\n\tcolumns;\n\tconstructor(input) {\n\t\tsuper();\n\t\tthis.columns = input.columns;\n\t\tif (input.name !== void 0) this.name = input.name;\n\t\tfreezeNode(this);\n\t}\n\tstatic from(value) {\n\t\treturn value instanceof PrimaryKey ? value : new PrimaryKey(value);\n\t}\n};\n//#endregion\n//#region src/ir/storage-column.ts\n/**\n* SQL Contract IR node for a single column entry in `StorageTable.columns`.\n*\n* Single concrete family-shared class — every SQL target reads the\n* same column shape today, so there is no per-target subclass. The\n* class type accepts any caller that constructs via\n* `new StorageColumn(input)`; literal construction sites must pass\n* through the constructor or the family-base hydration walker.\n*\n* The column's `name` is not on the class — columns are keyed by name\n* in the parent `StorageTable.columns: Record<string, StorageColumn>`\n* map, so a `name` field would be redundant with the key.\n*/\nvar StorageColumn = class StorageColumn extends SqlNode {\n\tdataType;\n\tcodecId;\n\tnullable;\n\tmany;\n\tconstructor(input) {\n\t\tsuper();\n\t\tif (Object.hasOwn(input, \"elementNullable\")) throw contractError(\"CONTRACT.ARGUMENT_INVALID\", \"StorageColumn elementNullable must be nested under many.\", { meta: { reason: \"sibling-elementNullable\" } });\n\t\tthis.dataType = input.dataType;\n\t\tthis.codecId = input.codecId;\n\t\tthis.nullable = input.nullable;\n\t\tthis.many = input.many ?? false;\n\t\tif (input.typeParams !== void 0) this.typeParams = input.typeParams;\n\t\tif (input.typeRef !== void 0) this.typeRef = input.typeRef;\n\t\tif (input.default !== void 0) this.default = input.default;\n\t\tif (input.control !== void 0) this.control = input.control;\n\t\tif (input.valueSet !== void 0) this.valueSet = input.valueSet;\n\t\tfreezeNode(this);\n\t}\n\tstatic from(value) {\n\t\treturn value instanceof StorageColumn ? value : new StorageColumn(value);\n\t}\n};\n//#endregion\n//#region src/ir/unique-constraint.ts\n/**\n* SQL Contract IR node for a table-level unique constraint.\n*/\nvar UniqueConstraint = class UniqueConstraint extends SqlNode {\n\tcolumns;\n\tconstructor(input) {\n\t\tsuper();\n\t\tthis.columns = input.columns;\n\t\tif (input.name !== void 0) this.name = input.name;\n\t\tfreezeNode(this);\n\t}\n\tstatic from(value) {\n\t\treturn value instanceof UniqueConstraint ? value : new UniqueConstraint(value);\n\t}\n};\n//#endregion\n//#region src/ir/storage-table.ts\n/**\n* SQL Contract IR node for a single table entry in a namespace's\n* `tables` map.\n*\n* The constructor normalises nested IR-class fields (columns, primary\n* key, uniques, indexes, foreign keys) into the appropriate class\n* instances so downstream walks see a uniform AST regardless of whether\n* the input was a JSON literal or an already-constructed class.\n*\n* The table's `name` is not on the class — tables are keyed by name in\n* the parent namespace's `tables: Record<string, StorageTable>` map.\n*/\nvar StorageTable = class StorageTable extends SqlNode {\n\tcolumns;\n\tuniques;\n\tindexes;\n\tforeignKeys;\n\tconstructor(input) {\n\t\tsuper();\n\t\tthis.columns = Object.freeze(Object.fromEntries(Object.entries(input.columns).map(([name, col]) => [name, StorageColumn.from(col)])));\n\t\tif (input.primaryKey !== void 0) this.primaryKey = PrimaryKey.from(input.primaryKey);\n\t\tthis.uniques = Object.freeze(input.uniques.map(UniqueConstraint.from));\n\t\tthis.indexes = Object.freeze(input.indexes.map(Index.from));\n\t\tthis.foreignKeys = Object.freeze(input.foreignKeys.map(ForeignKey.from));\n\t\tif (input.control !== void 0) this.control = input.control;\n\t\tif (input.checks !== void 0 && input.checks.length > 0) this.checks = Object.freeze(input.checks.map(CheckConstraint.from));\n\t\tfreezeNode(this);\n\t}\n\t/**\n\t* Runtime guard that a namespace `table` entry is really a `StorageTable`.\n\t* The compiler already types the entry as `StorageTable`, but a\n\t* freshly-deserialized contract may carry plain JSON at that slot until\n\t* hydration; this duck-types the structural shape. Accepts `undefined` so\n\t* optional-chained entry lookups pass straight through.\n\t*/\n\tstatic is(value) {\n\t\tif (typeof value !== \"object\" || value === null) return false;\n\t\treturn \"columns\" in value && \"uniques\" in value && \"indexes\" in value && \"foreignKeys\" in value;\n\t}\n\tstatic assert(value, coordinate) {\n\t\tif (!StorageTable.is(value)) throw new InternalError(`Expected a StorageTable at ${coordinate}`);\n\t}\n};\n//#endregion\nexport { ForeignKey as a, CheckConstraint as c, PrimaryKey as i, SqlNode as l, UniqueConstraint as n, ForeignKeyReference as o, StorageColumn as r, Index as s, StorageTable as t };\n\n//# sourceMappingURL=storage-table-DN36E2yE.mjs.map"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuCA,IAAI,UAAU,cAAc,WAAW;CACtC;CACA,cAAc;EACb,MAAM;EACN,OAAO,eAAe,MAAM,QAAQ;GACnC,OAAO;GACP,UAAU;GACV,YAAY;GACZ,cAAc;EACf,CAAC;CACF;AACD;;;;;;;;;;;;;;AAgBA,IAAI,kBAAkB,MAAM,wBAAwB,QAAQ;CAC3D;CACA;CACA,YAAY,OAAO;EAClB,MAAM;EACN,MAAM,OAAO,OAAO,MAAM,MAAM;EAChC,IAAI,KAAK,WAAW,GAAG,MAAM,IAAI,wBAAwB,yEAAyE,SAAS;EAC3I,KAAK,OAAO;EACZ,IAAI,MAAM,O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AG,KAAK,UAAU,MAAM;EACnD,IAAI,MAAM,WAAW,KAAK,KAAK,MAAM,OAAO,SAAS,GAAG,KAAK,SAAS,OAAO,OAAO,MAAM,OAAO,IAAI,gBAAgB,IAAI,CAAC;EAC1H,WAAW,IAAI;CAChB;;;;;;;;CAQA,OAAO,GAAG,OAAO;EAChB,IAAI,OAAO,UAAU,YAAY,UAAU,MAAM,OAAO;EACxD,OAAO,aAAa,SAAS,aAAa,SAAS,aAAa,SAAS,iBAAiB;CAC3F;CACA,OAAO,OAAO,OAAO,YAAY;EAChC,IAAI,CAAC,aAAa,GAAG,KAAK,GAAG,MAAM,IAAI,cAAc,8BAA8B,YAAY;CAChG;AACD"}
|
|
1
|
+
{"version":3,"file":"storage-table-DDvN83mw-CbCFr5wm.mjs","names":[],"sources":["../../../../2-sql/1-core/contract/dist/storage-table-DDvN83mw.mjs"],"sourcesContent":["import { t as contractError } from \"./contract-errors-BCN6RVI5.mjs\";\nimport { nameOf } from \"@internal/sql-schema-ir/naming\";\nimport { IRNodeBase, freezeNode } from \"@internal/framework-components/ir\";\nimport { InternalError } from \"@internal/utils/internal-error\";\nimport { ContractValidationError } from \"@internal/contract/contract-validation-error\";\nimport { asNamespaceId } from \"@internal/contract/types\";\n//#region src/ir/sql-node.ts\n/**\n* SQL family IR node base. Carries the family-level `kind` discriminator\n* `'sql'` and inherits the framework's `freezeNode` affordance.\n*\n* Single family-level discriminator (not per-leaf) reflects the fact that\n* SQL IR has no polymorphic dispatch today — verifiers and serializers\n* walk by structural position (`storage.tables[name].columns[name]`),\n* not by inspecting `kind`. The abstract bar for per-leaf discriminators\n* isn't earned until a future polymorphic consumer arrives.\n*\n* `kind` is installed as a non-enumerable own property on every instance,\n* which keeps three things clean simultaneously:\n*\n* - `JSON.stringify(node)` produces the canonical pre-lift JSON envelope\n* shape (no `kind` field), so emitted contract.json files and the\n* `validateSqlContractFully` arktype schemas stay unchanged.\n* - Test assertions that use `toEqual({...})` against the pre-lift flat\n* shape continue to pass — only enumerable own properties are\n* compared.\n* - Direct access (`node.kind`) and runtime narrowing\n* (`if (node.kind === 'sql')`) still work, so future polymorphic\n* dispatch can begin reading `kind` without a runtime change.\n*\n* Future per-leaf overrides land cleanly: a class that gains a\n* polymorphic-dispatch consumer (e.g. an enum type instance walked\n* alongside other types) overrides `kind` with its narrower literal\n* at that leaf level. Per-leaf overrides will use enumerable kind\n* (matching the Mongo per-class-discriminator precedent) because they\n* encode dispatch-relevant information that callers need to see in\n* JSON envelopes; the family-level `'sql'` is uniform across all SQL\n* IR and carries no dispatch-relevant information.\n*/\nvar SqlNode = class extends IRNodeBase {\n\tkind;\n\tconstructor() {\n\t\tsuper();\n\t\tObject.defineProperty(this, \"kind\", {\n\t\t\tvalue: \"sql\",\n\t\t\twritable: false,\n\t\t\tenumerable: false,\n\t\t\tconfigurable: true\n\t\t});\n\t}\n};\n//#endregion\n//#region src/ir/check-constraint.ts\n/**\n* SQL Contract IR node for a table-level check constraint, name-identified:\n* `name` is the full physical name; a present `prefix` marks the constraint as\n* wire-named (`name` is `formatWireName(prefix, <8hex>)` over the expression's\n* content hash), an absent `prefix` marks it exact (the name is adopted\n* verbatim). This is the convention indexes and RLS policies already use — see\n* ADR 234, \"Content-addressed wire names for Postgres-normalized objects\".\n*\n* The predicate is opaque: one SQL string, never parsed and never rendered\n* from structured parts. A database reprints predicates in its own normalized\n* form, so a wire-named check is compared by name — the hash already commits\n* to the expression the contract declared.\n*/\nvar CheckConstraint = class CheckConstraint extends SqlNode {\n\tname;\n\texpression;\n\tconstructor(input) {\n\t\tsuper();\n\t\tconst name = nameOf(input.naming);\n\t\tif (name.length === 0) throw new ContractValidationError(\"CheckConstraint: every check constraint carries a full physical name.\", \"storage\");\n\t\tthis.name = name;\n\t\tif (input.naming.kind === \"wire\") this.prefix = input.naming.prefix;\n\t\tthis.expression = input.expression;\n\t\tfreezeNode(this);\n\t}\n\t/**\n\t* Normalizes either shape into an instance: an existing `CheckConstraint`\n\t* passes through, canonical input is constructed. Callers that accept\n\t* \"instance or input\" go through this, so the constructor keeps one\n\t* canonical shape instead of widening to a union.\n\t*/\n\tstatic from(value) {\n\t\treturn value instanceof CheckConstraint ? value : new CheckConstraint(value);\n\t}\n};\n//#endregion\n//#region src/ir/sql-index.ts\n/**\n* SQL Contract IR node for a table-level secondary index, name-identified:\n* `name` is the full physical name; a present `prefix` marks the index as\n* wire-named (`name` is `formatWireName(prefix, <8hex>)`), an absent `prefix`\n* marks it exact (the name is adopted verbatim).\n*\n* `expression`, `where`, and `unique` are genuine SQL-family attributes —\n* functional and partial indexes are standard SQL supported natively by\n* Postgres and SQLite alike, and the family IR must be able to represent\n* anything any SQL target can introspect. A target declining to AUTHOR them\n* (SQLite's rejection at namespace construction) is a capability decision,\n* not evidence of target-specificity.\n*\n* Note that this class shadows the global TypeScript `Index` lib type\n* at the family-shared name; consumer files that need both should\n* alias one (e.g.\n* `import { Index as SqlIndexNode } from '@internal/sql-contract/types'`).\n*/\nvar Index = class Index extends SqlNode {\n\tname;\n\tunique;\n\tconstructor(input) {\n\t\tsuper();\n\t\tconst name = nameOf(input.naming);\n\t\tif (name.length === 0) throw new ContractValidationError(\"Index: every index carries a full physical name; an expression index must be explicitly named (a default name cannot be derived from an expression).\", \"storage\");\n\t\tif (input.columns === void 0 === (input.expression === void 0)) throw new ContractValidationError(`Index \"${name}\": exactly one of columns or expression must be set.`, \"storage\");\n\t\tthis.name = name;\n\t\tthis.unique = input.unique;\n\t\tif (input.naming.kind === \"wire\") this.prefix = input.naming.prefix;\n\t\tif (input.columns !== void 0) this.columns = input.columns;\n\t\tif (input.expression !== void 0) this.expression = input.expression;\n\t\tif (input.where !== void 0) this.where = input.where;\n\t\tif (input.type !== void 0) this.type = input.type;\n\t\tif (input.options !== void 0) this.options = input.options;\n\t\tfreezeNode(this);\n\t}\n\tstatic from(value) {\n\t\treturn value instanceof Index ? value : new Index(value);\n\t}\n};\n//#endregion\n//#region src/ir/foreign-key-reference.ts\n/**\n* SQL Contract IR node for one side (source or target) of a foreign-key\n* declaration. Carries the full coordinate: namespace, table, and columns.\n*\n* Cross-space discrimination is based on `spaceId` presence: absent means\n* local (same contract-space); present means cross-space (the referenced\n* table lives in the contract-space identified by `spaceId`).\n*\n* For local references `spaceId` is absent from JSON, keeping the serialized\n* shape byte-identical to contracts authored before cross-space support was\n* added. For cross-space references `spaceId` appears in JSON so round-trips\n* are lossless.\n*\n* Use `UNBOUND_NAMESPACE_ID` from `@internal/framework-components/ir`\n* as the sentinel `namespaceId` for single-namespace (unbound) references.\n*/\nvar ForeignKeyReference = class ForeignKeyReference extends SqlNode {\n\tnamespaceId;\n\ttableName;\n\tcolumns;\n\tconstructor(input) {\n\t\tsuper();\n\t\tthis.namespaceId = asNamespaceId(input.namespaceId);\n\t\tthis.tableName = input.tableName;\n\t\tthis.columns = input.columns;\n\t\tif (input.spaceId !== void 0) this.spaceId = input.spaceId;\n\t\tfreezeNode(this);\n\t}\n\tstatic from(value) {\n\t\treturn value instanceof ForeignKeyReference ? value : new ForeignKeyReference(value);\n\t}\n};\n//#endregion\n//#region src/ir/foreign-key.ts\n/**\n* SQL Contract IR node for a table-level foreign-key declaration — the\n* referential constraint only (source, target, `onDelete`/`onUpdate`).\n*\n* A persisted `foreignKeys[]` entry always denotes a real constraint: whether\n* to emit the constraint at all, and whether to back it with an index, are\n* authoring-time decisions (PSL `@relation(index:)`, TS `fk({ constraint,\n* index })`) resolved once at `contract emit` — a `constraint: false` FK\n* simply has no entry here, and a backing index (if any) is its own discrete,\n* named entry in the table's `indexes[]`. `index` says what serves the\n* foreign key's lookups; it is absent when nothing backs the foreign key.\n*\n* Each FK carries explicit `source` and `target` {@link ForeignKeyReference}\n* coordinates (namespace, table, columns). For single-namespace contracts the\n* sentinel `UNBOUND_NAMESPACE_ID` appears on both sides.\n*\n* The nested references are normalised to {@link ForeignKeyReference}\n* instances inside the constructor so downstream walks see a uniform AST\n* regardless of whether the input was a JSON literal or an already-constructed\n* class instance.\n*/\nvar ForeignKey = class ForeignKey extends SqlNode {\n\tsource;\n\ttarget;\n\tconstructor(input) {\n\t\tsuper();\n\t\tthis.source = ForeignKeyReference.from(input.source);\n\t\tthis.target = ForeignKeyReference.from(input.target);\n\t\tif (input.name !== void 0) this.name = input.name;\n\t\tif (input.onDelete !== void 0) this.onDelete = input.onDelete;\n\t\tif (input.onUpdate !== void 0) this.onUpdate = input.onUpdate;\n\t\tif (typeof input.index === \"object\") this.index = input.index;\n\t\tfreezeNode(this);\n\t}\n\tstatic from(value) {\n\t\treturn value instanceof ForeignKey ? value : new ForeignKey(value);\n\t}\n};\n//#endregion\n//#region src/ir/primary-key.ts\n/**\n* SQL Contract IR node for a table's primary-key constraint.\n*/\nvar PrimaryKey = class PrimaryKey extends SqlNode {\n\tcolumns;\n\tconstructor(input) {\n\t\tsuper();\n\t\tthis.columns = input.columns;\n\t\tif (input.name !== void 0) this.name = input.name;\n\t\tfreezeNode(this);\n\t}\n\tstatic from(value) {\n\t\treturn value instanceof PrimaryKey ? value : new PrimaryKey(value);\n\t}\n};\n//#endregion\n//#region src/ir/storage-column.ts\n/**\n* SQL Contract IR node for a single column entry in `StorageTable.columns`.\n*\n* Single concrete family-shared class — every SQL target reads the\n* same column shape today, so there is no per-target subclass. The\n* class type accepts any caller that constructs via\n* `new StorageColumn(input)`; literal construction sites must pass\n* through the constructor or the family-base hydration walker.\n*\n* The column's `name` is not on the class — columns are keyed by name\n* in the parent `StorageTable.columns: Record<string, StorageColumn>`\n* map, so a `name` field would be redundant with the key.\n*/\nvar StorageColumn = class StorageColumn extends SqlNode {\n\tdataType;\n\tcodecId;\n\tnullable;\n\tmany;\n\tconstructor(input) {\n\t\tsuper();\n\t\tif (Object.hasOwn(input, \"elementNullable\")) throw contractError(\"CONTRACT.ARGUMENT_INVALID\", \"StorageColumn elementNullable must be nested under many.\", { meta: { reason: \"sibling-elementNullable\" } });\n\t\tthis.dataType = input.dataType;\n\t\tthis.codecId = input.codecId;\n\t\tthis.nullable = input.nullable;\n\t\tthis.many = input.many ?? false;\n\t\tif (input.typeParams !== void 0) this.typeParams = input.typeParams;\n\t\tif (input.default !== void 0) this.default = input.default;\n\t\tif (input.control !== void 0) this.control = input.control;\n\t\tif (input.valueSet !== void 0) this.valueSet = input.valueSet;\n\t\tfreezeNode(this);\n\t}\n\tstatic from(value) {\n\t\treturn value instanceof StorageColumn ? value : new StorageColumn(value);\n\t}\n};\n//#endregion\n//#region src/ir/unique-constraint.ts\n/**\n* SQL Contract IR node for a table-level unique constraint.\n*/\nvar UniqueConstraint = class UniqueConstraint extends SqlNode {\n\tcolumns;\n\tconstructor(input) {\n\t\tsuper();\n\t\tthis.columns = input.columns;\n\t\tif (input.name !== void 0) this.name = input.name;\n\t\tfreezeNode(this);\n\t}\n\tstatic from(value) {\n\t\treturn value instanceof UniqueConstraint ? value : new UniqueConstraint(value);\n\t}\n};\n//#endregion\n//#region src/ir/storage-table.ts\n/**\n* SQL Contract IR node for a single table entry in a namespace's\n* `tables` map.\n*\n* The constructor normalises nested IR-class fields (columns, primary\n* key, uniques, indexes, foreign keys) into the appropriate class\n* instances so downstream walks see a uniform AST regardless of whether\n* the input was a JSON literal or an already-constructed class.\n*\n* The table's `name` is not on the class — tables are keyed by name in\n* the parent namespace's `tables: Record<string, StorageTable>` map.\n*/\nvar StorageTable = class StorageTable extends SqlNode {\n\tcolumns;\n\tuniques;\n\tindexes;\n\tforeignKeys;\n\tconstructor(input) {\n\t\tsuper();\n\t\tthis.columns = Object.freeze(Object.fromEntries(Object.entries(input.columns).map(([name, col]) => [name, StorageColumn.from(col)])));\n\t\tif (input.primaryKey !== void 0) this.primaryKey = PrimaryKey.from(input.primaryKey);\n\t\tthis.uniques = Object.freeze(input.uniques.map(UniqueConstraint.from));\n\t\tthis.indexes = Object.freeze(input.indexes.map(Index.from));\n\t\tthis.foreignKeys = Object.freeze(input.foreignKeys.map(ForeignKey.from));\n\t\tif (input.control !== void 0) this.control = input.control;\n\t\tif (input.checks !== void 0 && input.checks.length > 0) this.checks = Object.freeze(input.checks.map(CheckConstraint.from));\n\t\tfreezeNode(this);\n\t}\n\t/**\n\t* Runtime guard that a namespace `table` entry is really a `StorageTable`.\n\t* The compiler already types the entry as `StorageTable`, but a\n\t* freshly-deserialized contract may carry plain JSON at that slot until\n\t* hydration; this duck-types the structural shape. Accepts `undefined` so\n\t* optional-chained entry lookups pass straight through.\n\t*/\n\tstatic is(value) {\n\t\tif (typeof value !== \"object\" || value === null) return false;\n\t\treturn \"columns\" in value && \"uniques\" in value && \"indexes\" in value && \"foreignKeys\" in value;\n\t}\n\tstatic assert(value, coordinate) {\n\t\tif (!StorageTable.is(value)) throw new InternalError(`Expected a StorageTable at ${coordinate}`);\n\t}\n};\n//#endregion\nexport { ForeignKey as a, CheckConstraint as c, PrimaryKey as i, SqlNode as l, UniqueConstraint as n, ForeignKeyReference as o, StorageColumn as r, Index as s, StorageTable as t };\n\n//# sourceMappingURL=storage-table-DDvN83mw.mjs.map"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuCA,IAAI,UAAU,cAAc,WAAW;CACtC;CACA,cAAc;EACb,MAAM;EACN,OAAO,eAAe,MAAM,QAAQ;GACnC,OAAO;GACP,UAAU;GACV,YAAY;GACZ,cAAc;EACf,CAAC;CACF;AACD;;;;;;;;;;;;;;AAgBA,IAAI,kBAAkB,MAAM,wBAAwB,QAAQ;CAC3D;CACA;CACA,YAAY,OAAO;EAClB,MAAM;EACN,MAAM,OAAO,OAAO,MAAM,MAAM;EAChC,IAAI,KAAK,WAAW,GAAG,MAAM,IAAI,wBAAwB,yEAAyE,SAAS;EAC3I,KAAK,OAAO;EACZ,IAAI,MAAM,OAAO,SAAS,QAAQ,KAAK,SAAS,MAAM,OAAO;EAC7D,KAAK,aAAa,MAAM;EACxB,WAAW,IAAI;CAChB;;;;;;;CAOA,OAAO,KAAK,OAAO;EAClB,OAAO,iBAAiB,kBAAkB,QAAQ,IAAI,gBAAgB,KAAK;CAC5E;AACD;;;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O;EACxD,OAAO,aAAa,SAAS,aAAa,SAAS,aAAa,SAAS,iBAAiB;CAC3F;CACA,OAAO,OAAO,OAAO,YAAY;EAChC,IAAI,CAAC,aAAa,GAAG,KAAK,GAAG,MAAM,IAAI,cAAc,8BAA8B,YAAY;CAChG;AACD"}
|
package/dist/{transaction-state-DR3nKTmH-2-ewbth1.d.mts → transaction-state-DR3nKTmH-D6VdY7YX.d.mts}
RENAMED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { h as AnyQueryAst, ht as LoweredParam } from "./types-
|
|
1
|
+
import { h as AnyQueryAst, ht as LoweredParam } from "./types-DriMIMNQ-BBacSgaI.mjs";
|
|
2
2
|
import { l as SqlStatementStats } from "./driver-types-DRsYeq3j-X_D6hNMZ.mjs";
|
|
3
|
-
import { n as SqlQueryPlan } from "./plan-
|
|
4
|
-
import { a as CodecValue, i as CodecTypesBase, o as Expression, t as AffectedCount } from "./expression-
|
|
5
|
-
import "./expression-
|
|
6
|
-
import "./ast-
|
|
7
|
-
import "./plan-
|
|
8
|
-
import { h as RuntimeScope } from "./types-
|
|
9
|
-
import "./types-
|
|
3
|
+
import { n as SqlQueryPlan } from "./plan-Cr4azjnG-lIrzIrmu.mjs";
|
|
4
|
+
import { a as CodecValue, i as CodecTypesBase, o as Expression, t as AffectedCount } from "./expression-6ld_ZQL6-CQghHqQ4.mjs";
|
|
5
|
+
import "./expression-BLiObOS8.mjs";
|
|
6
|
+
import "./ast-BySjcUKx.mjs";
|
|
7
|
+
import "./plan-OXQ8s6Ee.mjs";
|
|
8
|
+
import { h as RuntimeScope } from "./types-TXO7x1BA-DuW4v0rw.mjs";
|
|
9
|
+
import "./types-DDqbg3WC.mjs";
|
|
10
10
|
import { JsonValue, PlanMeta } from "@prisma/orm-framework/contract/types";
|
|
11
11
|
import { AsyncIterableResult, RuntimeExecuteOptions } from "@prisma/orm-framework/components/runtime";
|
|
12
12
|
//#region ../../../2-sql/5-runtime/dist/transaction-state-DR3nKTmH.d.mts
|
|
@@ -112,4 +112,4 @@ interface TransactionStartTarget {
|
|
|
112
112
|
declare function createTransactionStart(): TransactionStart;
|
|
113
113
|
//#endregion
|
|
114
114
|
export { transactionStart as S, createTransactionStart as _, ParamSpec as a, settlementOf as b, PreparedExecution as c, PreparedStatementExecuteTarget as d, PreparedStatementQueryTarget as f, TransactionStartTarget as g, TransactionStart as h, DeclaredNullable as i, PreparedFor as l, TransactionSettlementState as m, Declaration as n, ParamsFromDeclaration as o, SettledTransactionTarget as p, DeclaredCodecId as r, PrepareCallback as s, BindSiteParams as t, PreparedStatement as u, preparedStatementExecute as v, transactionSettlement as x, preparedStatementQuery as y };
|
|
115
|
-
//# sourceMappingURL=transaction-state-DR3nKTmH-
|
|
115
|
+
//# sourceMappingURL=transaction-state-DR3nKTmH-D6VdY7YX.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transaction-state-DR3nKTmH-
|
|
1
|
+
{"version":3,"file":"transaction-state-DR3nKTmH-D6VdY7YX.d.mts","names":[],"sources":["../../../../2-sql/5-runtime/dist/transaction-state-DR3nKTmH.d.mts"],"mappings":";;;;;;;;;;;;;KAOK,UAAU,WAAW,iBAAiB,yBAAyB;WACzD,eAAe;WACf,aAAa;WACb;;KAEN,YAAY,WAAW,iBAAiB,kBAAkB,SAAS,eAAe,UAAU;KAC5F,gBAAgB,KAAK,mBAAmB,IAAI;WACtC,eAAe;IACtB;KACC,iBAAiB,KAAK;WAChB;;KAEN,eAAe,iBAAiB,WAAW,IAAI;EAClD,SAAS,gBAAgB,EAAE;EAC3B,UAAU,iBAAiB,EAAE;;KAE1B,sBAAsB,GAAG,WAAW,8BAA8B,WAAW,IAAI,WAAW,gBAAgB,EAAE,KAAK,iBAAiB,EAAE,KAAK;KAC3I,gBAAgB,GAAG,QAAQ,QAAQ,eAAe,OAAO,aAAa;UACjE,kBAAkB,QAAQ;WACzB;WACA,KAAK;WACL,MAAM;WACN,gBAAgB;WAChB,UAAU;WACV,OAAO;EAChB,MAAM,QAAQ,cAAc,QAAQ,QAAQ,UAAU,wBAAwB,oBAAoB;;;;;;;;UAQ1F,kBAAkB;WACjB;WACA,KAAK;WACL,MAAM;WACN,gBAAgB;WAChB,UAAU;EACnB,QAAQ,QAAQ,cAAc,QAAQ,QAAQ,UAAU,wBAAwB,QAAQ;;;;;;;;;;;;;;;;;;KAkBrF,YAAY,QAAQ,QAAQ,uBAAuB,kBAAkB,QAAQ,QAAQ,cAAc,iBAAiB,kBAAkB,UAAU,kBAAkB,QAAQ;;;cAGjK;UACJ,uCAAuC;GAC9C,0BAA0B,QAAQ,WAAW,kBAAkB,SAAS,QAAQ,QAAQ,UAAU,wBAAwB,QAAQ;;;;cAIvH;UACJ,qCAAqC;GAC5C,wBAAwB,QAAQ,KAAK,WAAW,kBAAkB,QAAQ,MAAM,QAAQ,QAAQ,UAAU,wBAAwB,oBAAoB;;;;;;;cAO3I;UACJ;;WAEC;;WAEA;;EAET,gBAAgB;;UAER;YACE,wBAAwB;;iBAEnB,aAAa,sBAAsB;;;;cAItC;UACJ;EACR;;UAEQ;YACE,mBAAmB;;iBAEd,0BAA0B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./types-CuCxAQat-BBGUHEku.mjs";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { o as SqlNode } from "./storage-table-
|
|
1
|
+
import { o as SqlNode } from "./storage-table-DDvN83mw-CbCFr5wm.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";
|
|
@@ -25,10 +25,9 @@ function toStorageTypeInstance(input) {
|
|
|
25
25
|
};
|
|
26
26
|
}
|
|
27
27
|
/**
|
|
28
|
-
*
|
|
28
|
+
* A type's parameters, with empty parameters read as none, as a codec reads them; {@link toStorageTypeInstance} stores `{}` for a codec without parameters.
|
|
29
29
|
*/
|
|
30
|
-
function
|
|
31
|
-
const typeParams = type.typeParams ?? (type.typeRef === void 0 ? void 0 : namedTypes?.[type.typeRef]?.typeParams);
|
|
30
|
+
function nonEmptyTypeParams(typeParams) {
|
|
32
31
|
return typeParams !== void 0 && Object.keys(typeParams).length > 0 ? typeParams : void 0;
|
|
33
32
|
}
|
|
34
33
|
/**
|
|
@@ -114,6 +113,6 @@ function applyFkDefaults(fk, overrideDefaults) {
|
|
|
114
113
|
};
|
|
115
114
|
}
|
|
116
115
|
//#endregion
|
|
117
|
-
export { SqlNamespaceBase as a, isMaterializedSqlNamespace as c,
|
|
116
|
+
export { SqlNamespaceBase as a, isMaterializedSqlNamespace as c, nonEmptyTypeParams 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
117
|
|
|
119
|
-
//# sourceMappingURL=types-
|
|
118
|
+
//# sourceMappingURL=types-C7610W2l.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types-C7610W2l.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-DDvN83mw.mjs\";\nimport { i as isStorageValueSet, n as checkConstraintInputFromSerialized, r as StorageValueSet, t as indexInputFromSerialized } from \"./serialized-index-DjCCnXB1.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* A type's parameters, with empty parameters read as none, as a codec reads them; {@link toStorageTypeInstance} stores `{}` for a codec without parameters.\n*/\nfunction nonEmptyTypeParams(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, nonEmptyTypeParams, 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,YAAY;CACvC,OAAO,eAAe,KAAK,KAAK,OAAO,KAAK,UAAU,CAAC,CAAC,SAAS,IAAI,aAAa,KAAK;AACxF;;;;;;AAMA,SAAS,sBAAsB,OAAO;CACrC,IAAI,OAAO,UAAU,YAAY,UAAU,MAAM,OAAO;CACxD,OAAO,MAAM,SAAS;AACvB;;;;;AAOA,SAAS,4BAA4B,WAAW;CAC/C,IAAI,cAAc,KAAK,KAAK,CAAC,OAAO,OAAO,WAAW,iBAAiB,GAAG,OAAO;CACjF,OAAO,OAAO,QAAQ,IAAI,WAAW,iBAAiB,MAAM;AAC7D;;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StorageTypeInstance, l as SqlStorage } from "./sql-storage-
|
|
3
|
-
import { j as SqlControlDriverInstance } from "./types-
|
|
4
|
-
import "./types-
|
|
5
|
-
import { r as SqlOperationDescriptors } from "./index-
|
|
6
|
-
import { S as SqlSchemaIRNode } from "./types-
|
|
7
|
-
import "./types-
|
|
8
|
-
import { r as SqlControlAdapter } from "./control-adapter-Bn0uhplA-
|
|
1
|
+
import { r as StorageTable, t as StorageColumn } from "./storage-table-Bf1ZjnxO-NvkG2pgq.mjs";
|
|
2
|
+
import { f as StorageTypeInstance, l as SqlStorage } from "./sql-storage-DeCAh5Hi-nJQUIgfL.mjs";
|
|
3
|
+
import { j as SqlControlDriverInstance } from "./types-DfKvtJwS-tndgHh53.mjs";
|
|
4
|
+
import "./types-CRbj_WQf.mjs";
|
|
5
|
+
import { r as SqlOperationDescriptors } from "./index-ffCr9ySU.mjs";
|
|
6
|
+
import { S as SqlSchemaIRNode } from "./types-CuCxAQat-BBGUHEku.mjs";
|
|
7
|
+
import "./types-BUggiEEH.mjs";
|
|
8
|
+
import { r as SqlControlAdapter } from "./control-adapter-Bn0uhplA-D0fhkvnJ.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";
|
|
@@ -407,4 +407,4 @@ interface CreateSqlMigrationPlanOptions<TTargetDetails> {
|
|
|
407
407
|
}
|
|
408
408
|
//#endregion
|
|
409
409
|
export { SqlPlannerConflict as C, SqlPlannerResult as D, SqlPlannerFailureResult as E, SqlPlannerSuccessResult as O, SqlPlanTargetDetails as S, SqlPlannerConflictLocation as T, SqlMigrationRunnerExecuteCallbacks as _, ResolveIdentityValueInput as a, SqlMigrationRunnerResult as b, SqlMigrationPlan as c, SqlMigrationPlanOperationStep as d, SqlMigrationPlanOperationTarget as f, SqlMigrationRunnerErrorCode as g, SqlMigrationRunner as h, FieldEventContext as i, StorageTypePlanResult as k, SqlMigrationPlanContractInfo as l, SqlMigrationPlannerPlanOptions as m, CreateSqlMigrationPlanOptions as n, SqlControlAdapterDescriptor as o, SqlMigrationPlanner as p, FieldEvent as r, SqlControlExtensionDescriptor as s, CodecControlHooks as t, SqlMigrationPlanOperation as u, SqlMigrationRunnerExecuteOptions as v, SqlPlannerConflictKind as w, SqlMigrationRunnerSuccessValue as x, SqlMigrationRunnerFailure as y };
|
|
410
|
-
//# sourceMappingURL=types-CI5lled6-
|
|
410
|
+
//# sourceMappingURL=types-CI5lled6-DMWq8aOX.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types-CI5lled6-
|
|
1
|
+
{"version":3,"file":"types-CI5lled6-DMWq8aOX.d.mts","names":[],"sources":["../../../../2-sql/9-family/dist/types-CI5lled6.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;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;;;;;;;;;;;;EAc3B,QAAQ;aACG,QAAQ;aACR,iBAAiB,cAAc,iCAAiC;MACvE,QAAQ;;;;;;;;;;;EAWZ,oBAAoB,SAAS,iCAAiC,kBAAkB,QAAQ;;UAEhF,8BAA8B;WAC7B;;;;WAIA;WACA,SAAS;WACT,aAAa;WACb,qBAAqB,0BAA0B;;;;;;WAM/C;WACA,OAAO"}
|
|
@@ -3,11 +3,11 @@ import "./check-constraint-B7qGu6rc-CBVYAMwG.mjs";
|
|
|
3
3
|
import "./foreign-key-qkDFfG8t-Fyrzd0VI.mjs";
|
|
4
4
|
import "./unique-constraint-M5TlQnJQ-BiIHJ85k.mjs";
|
|
5
5
|
import "./sql-index-ByAAE7K8-BpbPBWPD.mjs";
|
|
6
|
-
import "./storage-table-
|
|
6
|
+
import "./storage-table-Bf1ZjnxO-NvkG2pgq.mjs";
|
|
7
7
|
import "./storage-value-set-BGlj5Uus-CvZD--GG.mjs";
|
|
8
|
-
import "./sql-storage-
|
|
8
|
+
import "./sql-storage-DeCAh5Hi-nJQUIgfL.mjs";
|
|
9
9
|
import "./serialized-index-CrgG8ct1-DDfHKUEK.mjs";
|
|
10
|
-
import "./types-
|
|
10
|
+
import "./types-DfKvtJwS-tndgHh53.mjs";
|
|
11
11
|
import { ParameterizedOutputTypesFunction, StoredValueType, ValueTypeSide } from "@prisma/orm-framework/contract/types";
|
|
12
12
|
import { RelationKeys, RelationNamesOf, Scalars, Shape, ShapeSpec } from "@prisma/orm-framework/components/runtime";
|
|
13
13
|
//#region ../../../2-sql/1-core/contract/dist/types.d.mts
|
|
@@ -17,19 +17,14 @@ type StorageColumnTypeAcrossNamespaces<SCT, TableName extends string, ColumnName
|
|
|
17
17
|
//#endregion
|
|
18
18
|
//#region src/value-type-maps.d.ts
|
|
19
19
|
type Lookup<T, Key> = Key extends keyof T ? T[Key] : never;
|
|
20
|
-
type
|
|
20
|
+
type ColumnTypeParams<Column> = Column extends {
|
|
21
21
|
readonly typeParams: infer TypeParams;
|
|
22
22
|
} ? TypeParams : undefined;
|
|
23
|
-
type ColumnTypeParams<Column, StorageTypes> = Column extends {
|
|
24
|
-
readonly typeParams: infer TypeParams;
|
|
25
|
-
} ? TypeParams : Column extends {
|
|
26
|
-
readonly typeRef: infer TypeRef;
|
|
27
|
-
} ? TypeParamsOf<Lookup<StorageTypes, TypeRef>> : undefined;
|
|
28
23
|
type TablesOf<Namespace> = Lookup<Lookup<Namespace, 'entries'>, 'table'>;
|
|
29
24
|
/**
|
|
30
|
-
* `StorageColumnTypes` (`Side` `'output'`) or `StorageColumnInputTypes` (`'input'`) of a contract whose storage is `Storage`, by the rules of `FieldTypesFromDomain` (`@internal/contract/types`), with `Overrides` keyed by namespace, table and column.
|
|
25
|
+
* `StorageColumnTypes` (`Side` `'output'`) or `StorageColumnInputTypes` (`'input'`) of a contract whose storage is `Storage`, by the rules of `FieldTypesFromDomain` (`@internal/contract/types`), with `Overrides` keyed by namespace, table and column.
|
|
31
26
|
*/
|
|
32
|
-
type ColumnTypesFromStorage<Storage, CodecTypes, ParameterizedOutputs extends ParameterizedOutputTypesFunction, Overrides, Side extends ValueTypeSide> = { readonly [Ns in keyof Lookup<Storage, 'namespaces'>]: { readonly [T in keyof TablesOf<Lookup<Storage, 'namespaces'>[Ns]>]: { readonly [C in keyof Lookup<TablesOf<Lookup<Storage, 'namespaces'>[Ns]>[T], 'columns'>]: Lookup<TablesOf<Lookup<Storage, 'namespaces'>[Ns]>[T], 'columns'>[C] extends (infer Column) ? StoredValueType<Column, Lookup<Column, 'codecId'>, ColumnTypeParams<Column
|
|
27
|
+
type ColumnTypesFromStorage<Storage, CodecTypes, ParameterizedOutputs extends ParameterizedOutputTypesFunction, Overrides, Side extends ValueTypeSide> = { readonly [Ns in keyof Lookup<Storage, 'namespaces'>]: { readonly [T in keyof TablesOf<Lookup<Storage, 'namespaces'>[Ns]>]: { readonly [C in keyof Lookup<TablesOf<Lookup<Storage, 'namespaces'>[Ns]>[T], 'columns'>]: Lookup<TablesOf<Lookup<Storage, 'namespaces'>[Ns]>[T], 'columns'>[C] extends (infer Column) ? StoredValueType<Column, Lookup<Column, 'codecId'>, ColumnTypeParams<Column>, Lookup<Lookup<Lookup<Overrides, Ns>, T>, C>, CodecTypes, ParameterizedOutputs, Side> : never; }; }; };
|
|
33
28
|
//#endregion
|
|
34
29
|
export { Shape as a, StorageColumnTypeAcrossNamespaces as c, Scalars as i, RelationKeys as n, ShapeSpec as o, RelationNamesOf as r, StorageColumnMapAt as s, ColumnTypesFromStorage as t };
|
|
35
|
-
//# sourceMappingURL=types-
|
|
30
|
+
//# sourceMappingURL=types-CRbj_WQf.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types-CRbj_WQf.d.mts","names":[],"sources":["../../../../2-sql/1-core/contract/dist/types.d.mts"],"mappings":";;;;;;;;;;;;;;KAaK,mBAAmB,KAAK,qBAAqB,iDAAiD,cAAc,mBAAmB,2BAA2B,IAAI,gBAAgB,wBAAwB,IAAI,QAAQ,IAAI,MAAM;KAC5N,kCAAkC,KAAK,0BAA0B,gCAAgC,YAAY,MAAM,wBAAwB,IAAI,MAAM,yBAAyB,IAAI,IAAI,aAAa,IAAI,IAAI,WAAW,qCAAqC;;;KAG3P,OAAO,GAAG,OAAO,kBAAkB,IAAI,EAAE;KACzC,iBAAiB,UAAU;WACrB,kBAAkB;IACzB;KACC,SAAS,aAAa,OAAO,OAAO;;;;KAIpC,uBAAuB,SAAS,YAAY,6BAA6B,kCAAkC,WAAW,aAAa,6BAA6B,YAAY,OAAO,qCAAqC,WAAW,SAAS,OAAO,uBAAuB,mBAAmB,WAAW,OAAO,SAAS,OAAO,uBAAuB,KAAK,iBAAiB,OAAO,SAAS,OAAO,uBAAuB,KAAK,eAAe,kBAAkB,UAAU,gBAAgB,QAAQ,OAAO,oBAAoB,iBAAiB,SAAS,OAAO,OAAO,OAAO,WAAW,KAAK,IAAI,IAAI,YAAY,sBAAsB"}
|
|
@@ -3,7 +3,7 @@ import { IRNodeBase } from "@prisma/orm-framework/components/ir";
|
|
|
3
3
|
import { CodecRef, DataType, DataTypeParams, DataTypeValue } from "@prisma/orm-framework/components/codec";
|
|
4
4
|
import { ColumnDefault } from "@prisma/orm-framework/contract/types";
|
|
5
5
|
import { DiffSubjectGranularity, DiffableNode, MismatchExplanation, SchemaNodeRef } from "@prisma/orm-framework/components/control";
|
|
6
|
-
//#region ../../../2-sql/1-core/schema-ir/dist/types-
|
|
6
|
+
//#region ../../../2-sql/1-core/schema-ir/dist/types-CuCxAQat.d.mts
|
|
7
7
|
//#region src/ir/sql-schema-ir-node.d.ts
|
|
8
8
|
/**
|
|
9
9
|
* SQL Schema IR node base. Carries the family-level
|
|
@@ -321,8 +321,7 @@ interface SqlColumnIRInput {
|
|
|
321
321
|
* end)` op-path called. Carried the same way the query AST carries
|
|
322
322
|
* `CodecRef` (TML-2456) and the migration DDL renderer (TML-2918).
|
|
323
323
|
* Stamped on the EXPECTED (contract-derived) column at derivation,
|
|
324
|
-
*
|
|
325
|
-
* codec/params, not the column's `typeRef` pointer). Absent on
|
|
324
|
+
* from the column's own codec and params. Absent on
|
|
326
325
|
* introspected/hand-built nodes — the actual side never renders DDL —
|
|
327
326
|
* and never compared by `isEqualTo`.
|
|
328
327
|
*/
|
|
@@ -747,4 +746,4 @@ declare class SqlSchemaIR extends SqlSchemaIRNode implements DiffableNode {
|
|
|
747
746
|
}
|
|
748
747
|
//#endregion
|
|
749
748
|
export { relationalNodeGranularity as A, SqlTableIR as C, assertNode as D, SqlUniqueIRInput as E, sqlDefaultValuesEqual as M, defineNonEnumerable as O, SqlSchemaIRNode as S, SqlUniqueIR as T, SqlIndexIR as _, SqlAnnotations as a, SqlSchemaIR as b, SqlColumnDefaultIR as c, SqlColumnIRInput as d, SqlColumnType as f, SqlForeignKeyIRInput as g, SqlForeignKeyIR as h, ReportedSqlType as i, sqlColumnTypesEqual as j, relationalNodeEntityKind as k, SqlColumnDefaultIRInput as l, SqlExpressionLiteralFor as m, PrimaryKeyInput as n, SqlCheckConstraintIR as o, SqlDefaultValue as p, RelationalSchemaNodeKind as r, SqlCheckConstraintIRInput as s, PrimaryKey as t, SqlColumnIR as u, SqlIndexIRInput as v, SqlTableIRInput as w, SqlSchemaIRInput as x, SqlReferentialAction as y };
|
|
750
|
-
//# sourceMappingURL=types-
|
|
749
|
+
//# sourceMappingURL=types-CuCxAQat-BBGUHEku.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types-CuCxAQat-BBGUHEku.d.mts","names":[],"sources":["../../../../2-sql/1-core/schema-ir/dist/types-CuCxAQat.d.mts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;uBA2BuB,wBAAwB;WACpC;;;;;;;;;oBASS;EAClB;;;;;;;;iBAQe,WAAW,UAAU,iBAAiB,MAAM,6BAA6B,mBAAmB,YAAY,MAAM,oBAAoB,QAAQ,YAAY,QAAQ;;;;;;;;;;iBAU9J,oBAAoB,kBAAkB,QAAQ,GAAG,aAAa;;;UAGrE;WACC;WACA;;;;;;WAMA,qBAAqB;;;;;;;;;;;;;;;cAelB,mBAAmB,2BAA2B;WACjD;WACA;WACA;;WAEA,qBAAqB;EAC9B,YAAY,OAAO;MACf;EACJ,qBAAqB;SACd,KAAK,OAAO,aAAa,kBAAkB;SAC3C,GAAG,MAAM,kBAAkB,QAAQ;EAC1C,UAAU,OAAO;;;;;;;;;;;cAWL;WACH;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;KAEN,mCAAmC,uCAAuC;;;;;;;iBAO9D,0BAA0B,mBAAmB;;;;;;;;iBAQ7C,yBAAyB;;;UAGhC;;WAEC,QAAQ;;WAER;;;;;;;;;WASA,oBAAoB;;;;;;;;;;;;;;;cAejB,6BAA6B,2BAA2B;WAC3D;WACA;WACA;WACA;;WAEA,qBAAqB;EAC9B,YAAY,OAAO;MACf;EACJ,qBAAqB;SACd,KAAK,OAAO,uBAAuB,4BAA4B;SAC/D,GAA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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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./types-TXO7x1BA-DuW4v0rw.mjs";
|
|
@@ -3,13 +3,13 @@ import "./check-constraint-B7qGu6rc-CBVYAMwG.mjs";
|
|
|
3
3
|
import { n as ForeignKeyIndex, o as ReferentialAction } from "./foreign-key-qkDFfG8t-Fyrzd0VI.mjs";
|
|
4
4
|
import "./unique-constraint-M5TlQnJQ-BiIHJ85k.mjs";
|
|
5
5
|
import "./sql-index-ByAAE7K8-BpbPBWPD.mjs";
|
|
6
|
-
import "./storage-table-
|
|
6
|
+
import "./storage-table-Bf1ZjnxO-NvkG2pgq.mjs";
|
|
7
7
|
import "./storage-value-set-BGlj5Uus-CvZD--GG.mjs";
|
|
8
|
-
import "./sql-storage-
|
|
8
|
+
import "./sql-storage-DeCAh5Hi-nJQUIgfL.mjs";
|
|
9
9
|
import "./serialized-index-CrgG8ct1-DDfHKUEK.mjs";
|
|
10
10
|
import { CodecTrait } from "@prisma/orm-framework/components/codec";
|
|
11
11
|
import { ControlDriverInstance } from "@prisma/orm-framework/components/control";
|
|
12
|
-
//#region ../../../2-sql/1-core/contract/dist/types-
|
|
12
|
+
//#region ../../../2-sql/1-core/contract/dist/types-DfKvtJwS.d.mts
|
|
13
13
|
//#region src/types.d.ts
|
|
14
14
|
interface SqlControlDriverInstance<T extends string = string> extends ControlDriverInstance<'sql', T> {
|
|
15
15
|
query<Row = Record<string, unknown>>(sql: string, params?: readonly unknown[]): Promise<{
|
|
@@ -270,4 +270,4 @@ type ExtractAggregateTypes<T> = AggregateTypesOf<ExtractTypeMapsFromContract<T>>
|
|
|
270
270
|
type ResolveCodecTypes<TContract, TTypeMaps> = [TTypeMaps] extends [never] ? ExtractCodecTypes<TContract> : CodecTypesOf<TTypeMaps>;
|
|
271
271
|
//#endregion
|
|
272
272
|
export { ResolveCodecTypes as A, NamespacedStorageColumnTypeMap as C, QueryOperationTypesBase as D, QueryOperationTypeEntry as E, StorageColumnInputTypesOf as F, StorageColumnTypesOf as I, TypeMaps as L, SqlModelFieldStorage as M, SqlModelStorage as N, QueryOperationTypesFunction as O, SqlQueryOperationTypes as P, TypeMapsPhantomKey as R, NamespacedFieldTypeMap as S, QueryOperationSelfSpec as T, ExtractStorageColumnTypes as _, AggregateTypesOf as a, FieldOutputTypesOf as b, ContractWithTypeMaps as c, ExtractAggregateTypes as d, ExtractCodecTypes as f, ExtractStorageColumnInputTypes as g, ExtractQueryOperationTypes as h, AggregateTypesFromDescriptors as i, SqlControlDriverInstance as j, QueryOperationTypesOf as k, DEFAULT_FK_CONSTRAINT as l, ExtractFieldOutputTypes as m, AggregateResultType as n, ApplyQueryOperationTypes as o, ExtractFieldInputTypes as p, AggregateTypesBase as r, CodecTypesOf as s, AggregateOperationTypes as t, DEFAULT_FK_INDEX as u, ExtractTypeMapsFromContract as v, QueryOperationReturn as w, ForeignKeyOptions as x, FieldInputTypesOf as y, applyFkDefaults as z };
|
|
273
|
-
//# sourceMappingURL=types-
|
|
273
|
+
//# sourceMappingURL=types-DfKvtJwS-tndgHh53.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types-
|
|
1
|
+
{"version":3,"file":"types-DfKvtJwS-tndgHh53.d.mts","names":[],"sources":["../../../../2-sql/1-core/contract/dist/types-DfKvtJwS.d.mts"],"mappings":";;;;;;;;;;;;;UAYU,yBAAyB,mCAAmC,6BAA6B;EACjG,MAAM,MAAM,yBAAyB,aAAa,8BAA8B;aACrE,MAAM;;;KAGd;WACM;WACA,WAAW;WACX,WAAW;WACX,QAAQ;;KAEd;WACM;WACA;WACA;;KAEN;WACM;WACA;WACA,QAAQ,eAAe;;cAEpB;cACA;iBACG,gBAAgB;EAC/B;EACA;GACC;EACD;EACA;;EAEA;EACA;;KAEG,yBAAyB,eAAe,eAAe;KACvD,iCAAiC,eAAe,eAAe;;;;KAI/D;WACM;WACA;;;;;;;;;KASN;WACM,SAAS,eAAe;WACxB,eAAe;WACf,WAAW;;;KAGjB,qBAAqB,eAAe;;KAEpC;WACM;WACA;aACE;aACA;aACA;;WAEF;aACE;aACA;;WAEF;;;KAGN,eAAe;WACT,QAAQ;aACN;eACE;eACA,eAAe;;MAExB;WACK,UAAU;aACR,gBAAgB;MACvB;;KAED,aAAa,eAAe;WACtB,iBAAiB;IACxB;KACC,cAAc,eAAe;WACvB;aACE;aACA,eAAe;;IAExB;KACC,eAAe,aAAa,WAAW;WACjC;aACE;aACA,eAAe;;IAExB,gBAAgB,UAAU;KACzB,cAAc,eAAe;WACvB;aACE;aACA,aAAa;;IAEtB;KACC,eAAe,aAAa,SAAS;WAC/B;aACE;aACA,aAAa;;IAEtB,cAAc,UAAU;KACvB,kBAAkB,aAAa,+BAA+B,QAAQ;WAChE;aACE,MAAM;;;KAGd,mBAAmB;WACb,mBAAmB,WAAW,cAAc,eAAe,eAAe,eAAe,aAAa;WACtG,mBAAmB,SAAS,cAAc,eAAe,eAAe,eAAe,aAAa;WACpG,OAAO,kBAAkB,gDAAgD,eAAe,kBAAkB;WAC1G,MAAM,kBAAkB,+CAA+C,eAAe,kBAAkB;;KAE9G,cAAc,2BAA2B,aAAa,aAAa,eAAe,mBAAmB,QAAQ;WACvG,WAAW;;KAEjB,UAAU,GAAG,Q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Aa,aAAa"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as SqlLoweringSpec } from "./index-
|
|
1
|
+
import { t as SqlLoweringSpec } from "./index-ffCr9ySU.mjs";
|
|
2
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-DriMIMNQ.d.mts
|
|
5
5
|
//#region src/ast/codec-types.d.ts
|
|
6
6
|
declare function frozenCodecRef(codec: CodecRef): CodecRef;
|
|
7
7
|
/**
|
|
@@ -24,8 +24,7 @@ interface SqlCodecCallContext extends CodecCallContext {
|
|
|
24
24
|
/**
|
|
25
25
|
* SQL-family per-instance context. Extends the framework {@link CodecInstanceContext} (`name` only) with `usedAt`, the set of `(table, column)` pairs the resolved codec serves.
|
|
26
26
|
*
|
|
27
|
-
* - For
|
|
28
|
-
* - For inline-`typeParams` columns, the array has exactly one entry — the column that owns the inline params.
|
|
27
|
+
* - For columns with `typeParams`, the array has exactly one entry — the column that owns the params.
|
|
29
28
|
* - For shared non-parameterized codecs, the array carries one representative entry (the column that triggered materialization); the codec is shared across every column with that codec id, so the `usedAt` is informational only.
|
|
30
29
|
*
|
|
31
30
|
* SQL extensions consuming `usedAt` (e.g. column-scoped state derivation) type their factory parameter as `SqlCodecInstanceContext`. Extensions that don't read `usedAt` type their factory parameter as the family-agnostic {@link CodecInstanceContext} — a `SqlCodecInstanceContext` is structurally assignable to the base.
|
|
@@ -894,4 +893,4 @@ interface LoweredStatement {
|
|
|
894
893
|
}
|
|
895
894
|
//#endregion
|
|
896
895
|
export { InsertOnConflict as $, isWhereExpr as $t, DefaultValueExpr as A, RawQueryColumn as At, DoUpdateSetConflictAction as B, TableSource as Bt, CodecCallContext$1 as C, OrderByNulls as Ct, CodecTrait$1 as D, ProjectionItem as Dt, CodecRef$1 as E, ProjectionExpr as Et, DescriptorCodecJson as F, SqlCodecCallContext as Ft, ExpressionRewriter as G, WindowFuncExpr as Gt, ExistsExpr as H, UpdateAst as Ht, DescriptorCodecTraits as I, SqlCodecInstanceContext as It, FunctionCallExpr as J, frozenCodecRef as Jt, ExpressionSource as K, aggregateFnNames as Kt, DescriptorKeepsWrittenFormFlag as L, SqlColumnRef as Lt, DerivedTableSource as M, RawSqlLiteral as Mt, DescriptorCodecId as N, SelectAst as Nt, ColumnRef as O, RawExpr as Ot, DescriptorCodecInput as P, SelectAstOptions as Pt, InsertAst as Q, isQueryAst as Qt, Direction as R, SubqueryExpr as Rt, Codec$1 as S, OrderByItem as St, CodecJsonValueProjection as T, PreparedParamRef as Tt, ExprVisitor as U, WhereArg as Ut, EqColJoinOn as V, ToWhereExpr as Vt, ExpressionFolder as W, WindowFn as Wt, FunctionSourceAlias as X, isOrderByDirection as Xt, FunctionSource as Y, isAggregateFn as Yt, IdentifierRef as Z, isOrderByNulls as Zt, BinaryExpr as _, NativeJsonValueProjection as _t, AndExpr as a, JsonObjectEntry as at, CaseExpr as b, OperationExpr as bt, AnyExpression as c, LimitOffsetValue as ct, AnyInsertValue as d, LockStrength as dt, queryAstKinds as en, InsertValue as et, AnyJsonValueProjection as f, LockWaitPolicy as ft, AstRewriter as g, LoweredStatement as gt, AnyQueryAst as h, LoweredParam as ht, AggregateOpFn as i, JsonDocumentProjection as it, DeleteAst as j, RawQueryResult as jt, ContractCodecRegistry as k, RawQueryAst as kt, AnyFromSource as l, ListExpression as lt, AnyParamRef as m, LockingClauseOptions as mt, AggregateExpr as n, JoinOnExpr as nt, AnyCodecDescriptor$1 as o, JsonObjectExpr as ot, AnyOperationArg as p, LockingClause as pt, ExtractCodecTypes as q, checkLimitOffset as qt, AggregateFn as r, JsonArrayAggExpr as rt, AnyCodecDescriptorTemplate as s, JsonValueProjectionVisitor as st, AggregateCountFn as t, whereExprKinds as tn, JoinAst as tt, AnyInsertOnConflictAction as u, LiteralExpr as ut, BinaryOp as v, NotExpr as vt, CodecDescriptor$1 as w, ParamRef as wt, CastExpr as x, OrExpr as xt, CaseBranch as y, NullCheckExpr as yt, DoNothingConflictAction as z, TableRef as zt };
|
|
897
|
-
//# sourceMappingURL=types-
|
|
896
|
+
//# sourceMappingURL=types-DriMIMNQ-BBacSgaI.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types-DriMIMNQ-BBacSgaI.d.mts","names":[],"sources":["../../../../2-sql/4-lanes/relational-core/dist/types-DriMIMNQ.d.mts"],"mappings":";;;;;iBAIiB,eAAe,OAAO,WAAW;;;;;;UAMxC;WACC;WACA;;;;;;;UAOD,4BAA4B;WAC3B,SAAS;;;;;;;;;;UAUV,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;;;;;;KAMzB,uBAAqB;;KAErB,6BAA6B;KAC7B,wBAAwB,KAAK,UAAU,sBAAsB,MAAM,WAAW,WAAW;KACzF,kBAAkB,KAAK,UAAU,uBAAqB;KACtD,qBAAqB,KAAK,wBAAwB,WAAW,uBAAuB,6BAA6B,MAAM;;;;;;KAMvH,oBAAoB,KAAK,wBAAwB,WAAW,uBAAuB,kCAAkC,WAAW,wBAAwB,+BAA+B,oBAAoB,KAAK;;;;;;;KAOhN,sBAAsB,KAAK;WACr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,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"}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { t as StorageColumn } from "./storage-table-
|
|
2
|
-
import { l as SqlStorage } from "./sql-storage-
|
|
3
|
-
import { m as ExtractFieldOutputTypes } from "./types-
|
|
4
|
-
import "./types-
|
|
5
|
-
import { t as SqlLoweringSpec } from "./index-
|
|
6
|
-
import { O as ColumnRef, wt as ParamRef } from "./types-
|
|
1
|
+
import { t as StorageColumn } from "./storage-table-Bf1ZjnxO-NvkG2pgq.mjs";
|
|
2
|
+
import { l as SqlStorage } from "./sql-storage-DeCAh5Hi-nJQUIgfL.mjs";
|
|
3
|
+
import { m as ExtractFieldOutputTypes } from "./types-DfKvtJwS-tndgHh53.mjs";
|
|
4
|
+
import "./types-CRbj_WQf.mjs";
|
|
5
|
+
import { t as SqlLoweringSpec } from "./index-ffCr9ySU.mjs";
|
|
6
|
+
import { O as ColumnRef, wt as ParamRef } from "./types-DriMIMNQ-BBacSgaI.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-Cr4azjnG-lIrzIrmu.mjs";
|
|
9
|
+
import { t as SqlExecutionPlan } from "./sql-execution-plan-3uxYjHyu-C0Z4_RSY.mjs";
|
|
10
|
+
import { n as ExecutionContext } from "./query-lane-context-BCEoKy0_-DQOOliDn.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-TXO7x1BA.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-TXO7x1BA-DuW4v0rw.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types-
|
|
1
|
+
{"version":3,"file":"types-TXO7x1BA-DuW4v0rw.d.mts","names":[],"sources":["../../../../2-sql/4-lanes/relational-core/d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b;UACM;YACE;;UAEF;WACC,SAAS;;UAEV,kBAAkB,kBAAkB,SAAS,cAAc,SAAS;WACnE,SAAS,iBAAiB"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { o as ReferentialAction, r as ForeignKeyInput } from "./foreign-key-qkDFfG8t-Fyrzd0VI.mjs";
|
|
2
2
|
import { i as UniqueConstraintInput, n as PrimaryKeyInput } from "./unique-constraint-M5TlQnJQ-BiIHJ85k.mjs";
|
|
3
|
-
import { l as SqlStorage } from "./sql-storage-
|
|
4
|
-
import { N as SqlModelStorage } from "./types-
|
|
3
|
+
import { l as SqlStorage } from "./sql-storage-DeCAh5Hi-nJQUIgfL.mjs";
|
|
4
|
+
import { N as SqlModelStorage } from "./types-DfKvtJwS-tndgHh53.mjs";
|
|
5
5
|
import { AnyEntityKindDescriptor } from "@prisma/orm-framework/components/ir";
|
|
6
6
|
import { DataTypeLookup } from "@prisma/orm-framework/components/codec";
|
|
7
7
|
import { Type } from "arktype";
|
|
@@ -93,7 +93,6 @@ declare const StorageTableSchema: import("arktype/internal/variants/object.ts").
|
|
|
93
93
|
elementNullable: boolean;
|
|
94
94
|
};
|
|
95
95
|
typeParams?: Record<string, unknown>;
|
|
96
|
-
typeRef?: string;
|
|
97
96
|
default?: ColumnDefaultLiteral | ColumnDefaultFunction;
|
|
98
97
|
control?: "managed" | "tolerated" | "external" | "observed";
|
|
99
98
|
valueSet?: {
|
|
@@ -231,4 +230,4 @@ interface ValidateSqlContractFullyOptions {
|
|
|
231
230
|
declare function validateSqlContractFully<T extends Contract<SqlStorage>>(value: unknown, options?: ValidateSqlContractFullyOptions): T;
|
|
232
231
|
//#endregion
|
|
233
232
|
export { validateModelStorageReferences as C, validateStorage as D, validateSqlStorageConsistency as E, validateStorageSemantics as O, validateModel as S, validateSqlContractFully as T, createSqlContractSchema as _, ContractEnumSchema as a, resolveSqlToOneRelationStorage as b, ForeignKeySourceSchema as c, SqlToOneRelationStorage as d, StorageTableSchema as f, createNamespaceEntrySchema as g, checkSqlDefaultText as h, ColumnDefaultSchema as i, valueObjectStorageTypeMissingMessage as k, IndexSchema as l, ValidateSqlContractFullyOptions as m, ColumnDefaultFunctionSchema as n, ForeignKeyReferenceSchema as o, StorageValueSetSchema as p, ColumnDefaultLiteralSchema as r, ForeignKeySchema as s, CheckConstraintSchema as t, ReferentialActionSchema as u, createSqlStorageSchema as v, validateRelationJoinFields as w, validateExecutionDefaultsTargetMappedColumns as x, reservedSqlDefaultText as y };
|
|
234
|
-
//# sourceMappingURL=validators-
|
|
233
|
+
//# sourceMappingURL=validators-BDuMio1F.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validators-BDuMio1F.d.mts","names":[],"sources":["../../../../2-sql/1-core/contract/dist/validators.d.mts"],"mappings":";;;;;;;;;;;iBAUiB,oBAAoB;;;;iBAIpB,uBAAuB;;;KAGnC;;;;;WAKM;;WAEA;aACE;aACA;;;;;;;iBAOI,+BAA+B,UAAU,SAAS,aAAa,cAAc,iBAAiB,UAAU,wBAAwB;;;KAG5I;WACM;WACA,mCAAmC;;KAEzC;WACM;WACA;;cAEG,0EAA0E,WAAW;cACrF,2EAA2E,WAAW;cACtF,mEAAmE,WAAW,uBAAuB;;;;;;cAMrG,qEAAqE;EACjF;EACA,8CAA8C;;cAElC,2DAA2D;EACvE;EACA;EACA;EACA;EACA;EACA;EACA;EACA,UAAU;;cAEE,yEAAyE;EACrF;EACA;EACA;EACA;;cAEY,sEAAsE;EAClF;EACA;EACA;;cAEY,uEAAuE,WAAW;cAClF,gEAAgE,WAAW;cAC3E,qEAAqE;EACjF;EACA;EACA;;cAEY,kEAAkE;EAC9E;KACG;MACC;MACA;MACA;MACA;QACE;;MAEF,aAAa;MACb,UAAU,uBAAuB;MACjC;MACA;QACE;QACA;QACA;QACA;QACA;;;;EAIN,kBAAkB;EAClB;IACE;IACA;IACA;IACA;IACA;IACA;IACA;IACA,UAAU;;EAEZ,sBAAsB;EACtB,aAAa;EACb;EACA;IACE;IACA;IACA;;;;;;;;;cASU,kEAAkE;EAC9E;EACA;IACE;IACA,+CAA+C;;;;;;;;;;;iBAWlC,2BAA2B,OAAO,oBAAoB,2BAA2B;;;;;;;iBAOjF,uBAAuB,OAAO,oBAAoB,2BAA2B;;iBAE7E,qCAAqC;;;;;;iBAMrC,wBAAwB,OAAO,oBAAoB,2BAA2B;;;;;;;;;;iBAU9E,gBAAgB;iBAChB,cAAc;;;;;;;;;;;;;;;iBAed,yBAAyB,SAAS;;;;iBAIlC,+BAA+B,UAAU,SAAS;;;;iBAIlD,2BAA2B,UAAU,SAAS;;;;iBAI9C,6CAA6C,UAAU,SAAS;;;;;;;iBAOhE,8BAA8B,UAAU,SAAS;UACxD;;;;;;;;;WASC,iBAAiB;;WAEjB,YAAY,KAAK;;;;;;;;;;iBAUX,yBAAyB,UAAU,SAAS,aAAa,gBAAgB,UAAU,kCAAkC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as contractError } from "./contract-errors-BCN6RVI5-5IHBF_lg.mjs";
|
|
2
2
|
import { a as computeIndexContentHash, i as computeCheckContentHash } from "./naming-bM5qm5PY-DdginUhA.mjs";
|
|
3
3
|
import { c as sameSqlColumnType } from "./sql-data-type-D7M-YTTY-C9oWGZ3z.mjs";
|
|
4
|
-
import { f as composeSqlEntityKinds } from "./entity-kinds-
|
|
4
|
+
import { f as composeSqlEntityKinds } from "./entity-kinds-JR5SAm5h-ZkDejOUK.mjs";
|
|
5
5
|
import { a as sameColumns$1, s as startsWithColumns } from "./index-equivalence-DswCiq5l-D5VK0qTy.mjs";
|
|
6
6
|
import { ifDefined } from "@prisma/orm-framework/utils/defined";
|
|
7
7
|
import { ContractValidationError } from "@prisma/orm-framework/contract/contract-validation-error";
|
|
@@ -167,21 +167,34 @@ function storedTypeNameProblems(storage) {
|
|
|
167
167
|
}));
|
|
168
168
|
return listedProblems(pathsHolding([...storedColumnEntries(storage), ...types], "nativeType"), (path) => `${path}.nativeType: contracts no longer store a column's database type name; the column names its data type in "dataType"`);
|
|
169
169
|
}
|
|
170
|
-
/**
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
function checkWaiverProblems(storage) {
|
|
174
|
-
const paths = pathsHolding(storedColumnEntries(storage), "noCheck");
|
|
170
|
+
/** One sentence that says what to do about a removed column key, followed by the first five columns that hold it and a count of the rest. */
|
|
171
|
+
function removedColumnKeyProblems(storage, key, whatToDo) {
|
|
172
|
+
const paths = pathsHolding(storedColumnEntries(storage), key);
|
|
175
173
|
if (paths.length === 0) return [];
|
|
176
|
-
const listed = paths.slice(0, LISTED_REMOVED_KEYS).map((path) => `${path}
|
|
174
|
+
const listed = paths.slice(0, LISTED_REMOVED_KEYS).map((path) => `${path}.${key}`);
|
|
177
175
|
const unlisted = paths.length - listed.length;
|
|
178
176
|
const more = unlisted > 0 ? `, and ${unlisted} more (${paths.length} in all)` : "";
|
|
179
|
-
return [
|
|
177
|
+
return [`${whatToDo} Columns: ${listed.join(", ")}${more}`];
|
|
180
178
|
}
|
|
181
|
-
/**
|
|
179
|
+
/** Contracts emitted before generated checks became mandatory stored the checks a column waived in `noCheck`. */
|
|
180
|
+
function checkWaiverProblems(storage) {
|
|
181
|
+
return removedColumnKeyProblems(storage, "noCheck", "contracts no longer store check waivers in \"noCheck\", so re-emit the contract from its source, or rewrite a stored contract such as a migration snapshot with remove-nocheck.ts, which ships in the remove-nocheck scripts of the Prisma 8 upgrade guide.");
|
|
182
|
+
}
|
|
183
|
+
/** Contracts emitted before type aliases were expanded into each column stored the alias a column was typed by in `typeRef`. */
|
|
184
|
+
function typeAliasProblems(storage) {
|
|
185
|
+
return removedColumnKeyProblems(storage, "typeRef", "contracts no longer store type aliases, so re-emit the contract from its source, or rewrite a stored contract such as a migration snapshot with expand-type-aliases.ts, which ships in the expand-type-aliases scripts of the Prisma 8 upgrade guide.");
|
|
186
|
+
}
|
|
187
|
+
/** The removed keys of the oldest format the contract is in: a contract that still stores `nativeType` is refused for that first, then one that stores `noCheck`, since each is rewritten at an earlier step of the upgrade than the next. */
|
|
182
188
|
function removedKeyProblems(storage) {
|
|
183
|
-
const
|
|
184
|
-
|
|
189
|
+
for (const problems of [
|
|
190
|
+
storedTypeNameProblems,
|
|
191
|
+
checkWaiverProblems,
|
|
192
|
+
typeAliasProblems
|
|
193
|
+
]) {
|
|
194
|
+
const found = problems(storage);
|
|
195
|
+
if (found.length > 0) return found;
|
|
196
|
+
}
|
|
197
|
+
return [];
|
|
185
198
|
}
|
|
186
199
|
/**
|
|
187
200
|
* Any entries entity that declares both a `tableName` and a physical `name`
|
|
@@ -769,4 +782,4 @@ function validateRelationThroughConsistency(contract, dataTypes) {
|
|
|
769
782
|
//#endregion
|
|
770
783
|
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 };
|
|
771
784
|
|
|
772
|
-
//# sourceMappingURL=validators-
|
|
785
|
+
//# sourceMappingURL=validators-xXKEHvnw.mjs.map
|