@prisma/orm-family-sql 8.0.0-rc.19-dev.1 → 8.0.0-rc.19-dev.3
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-B_FwQQXi.mjs} +35 -68
- package/dist/control-B_FwQQXi.mjs.map +1 -0
- package/dist/{control-YFLg-7Gn.d.mts → control-Xwm5kFlC.d.mts} +24 -24
- package/dist/control-Xwm5kFlC.d.mts.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/{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-D2PJJkGv.d.mts} +7 -7
- package/dist/{diff-CzUyZmJi.d.mts.map → diff-D2PJJkGv.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-DWLbMM34.d.mts} +4 -4
- package/dist/{migration-tfMTDejH.d.mts.map → migration-DWLbMM34.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-B2Dee96w.d.mts → types-CRbj_WQf.d.mts} +7 -12
- package/dist/types-CRbj_WQf.d.mts.map +1 -0
- package/dist/{types-CI5lled6-CDV4aYNB.d.mts → types-Cq6ImLAB-BqOfLAYG.d.mts} +13 -11
- package/dist/types-Cq6ImLAB-BqOfLAYG.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-CI5lled6-CDV4aYNB.d.mts.map +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
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { u as namingOf } from "./naming-bM5qm5PY-DdginUhA.mjs";
|
|
2
2
|
import { t as sqlContractCanonicalizationHooks } from "./canonicalization-hooks-dmXkOR4a.mjs";
|
|
3
|
-
import { _ as unquotedSqlBaseName, a as renderSqlTypeName, c as sameSqlColumnType, m as sqlStorageType, n as isSqlDataType, p as sqlDataTypeOfCodec, r as nameIsCatalogText, y as validateSqlTypeParams } from "./sql-data-type-D7M-YTTY-C9oWGZ3z.mjs";
|
|
4
|
-
import { c as StorageTable } from "./storage-table-
|
|
3
|
+
import { _ as unquotedSqlBaseName, a as renderSqlTypeName, c as sameSqlColumnType, m as sqlStorageType, n as isSqlDataType, p as sqlDataTypeOfCodec, r as nameIsCatalogText, u as sqlCodecColumnLength, y as validateSqlTypeParams } from "./sql-data-type-D7M-YTTY-C9oWGZ3z.mjs";
|
|
4
|
+
import { c as StorageTable } from "./storage-table-DDvN83mw-CbCFr5wm.mjs";
|
|
5
5
|
import { c as SqlSchemaIR, n as RelationalSchemaNodeKind, u as SqlTableIR } from "./types-DoyiTsjg-DDTmYyNY.mjs";
|
|
6
6
|
import { f as sqlExpressionRegistration, m as sqlTextsReadBack, o as printSqlExpressionLiteral } from "./sql-expression-BJCuy-WI.mjs";
|
|
7
|
-
import { d as
|
|
8
|
-
import { g as valueObjectStorageTypeMissingMessage } from "./validators-
|
|
9
|
-
import {
|
|
7
|
+
import { d as nonEmptyTypeParams, u as isStorageTypeInstance } from "./types-C7610W2l.mjs";
|
|
8
|
+
import { g as valueObjectStorageTypeMissingMessage } from "./validators-xXKEHvnw.mjs";
|
|
9
|
+
import { S as sqlAttributeSpecs, a as describeUnsupportedSqlAttribute } from "./psl-field-resolution-C9zwpsAu-DCc7Eifv.mjs";
|
|
10
10
|
import { t as describeUnresolvedSqlType } from "./diagnostics-IM48vCjC.mjs";
|
|
11
|
-
import { t as sqlEmission } from "./dist-
|
|
12
|
-
import { a as sqlFamilyGeneratorDescriptors, i as sqlFamilyEntityTypes, n as sqlFamilyAuthoringFieldPresets, o as sqlFamilyGeneratorFunctions, r as sqlFamilyAuthoringTypes, s as sqlFamilyPslBlockDescriptors } from "./generator-functions-DuDZSQHE-
|
|
13
|
-
import { c as verifySqlSchemaByDiff, n as classifyDiffSubjectGranularity, o as enforceSqlDataTypeInvariants, t as classifyDiffEntityKind } from "./schema-verify-
|
|
11
|
+
import { t as sqlEmission } from "./dist-D8RKUdwh.mjs";
|
|
12
|
+
import { a as sqlFamilyGeneratorDescriptors, i as sqlFamilyEntityTypes, n as sqlFamilyAuthoringFieldPresets, o as sqlFamilyGeneratorFunctions, r as sqlFamilyAuthoringTypes, s as sqlFamilyPslBlockDescriptors } from "./generator-functions-DuDZSQHE-Dl5EP61A.mjs";
|
|
13
|
+
import { c as verifySqlSchemaByDiff, n as classifyDiffSubjectGranularity, o as enforceSqlDataTypeInvariants, t as classifyDiffEntityKind } from "./schema-verify-C3wbdviw-BifQBCpu.mjs";
|
|
14
14
|
import { t as sqlFamilyError } from "./errors-B5g0xWro-mWH2C07F.mjs";
|
|
15
|
-
import { t as SqlContractSerializer } from "./sql-contract-serializer-sMY3prTx-
|
|
15
|
+
import { t as SqlContractSerializer } from "./sql-contract-serializer-sMY3prTx-BkFoHhST.mjs";
|
|
16
16
|
import { t as collectSupportedCodecTypeIds } from "./verify-BVk5bjdH-dq5M4iIh.mjs";
|
|
17
17
|
import { isStructuredError, structuredError } from "@prisma/orm-framework/utils/structured-error";
|
|
18
18
|
import { ifDefined } from "@prisma/orm-framework/utils/defined";
|
|
@@ -87,7 +87,7 @@ function refusedDefaults(storage, dataTypes) {
|
|
|
87
87
|
if (columnDefault?.kind !== "literal") return [];
|
|
88
88
|
const type = dataTypes.get(column.dataType);
|
|
89
89
|
if (type === void 0) return [];
|
|
90
|
-
const params = dataTypeParams(type,
|
|
90
|
+
const params = dataTypeParams(type, nonEmptyTypeParams(column.typeParams));
|
|
91
91
|
if (refusesParams(type, params)) return [];
|
|
92
92
|
const place = {
|
|
93
93
|
namespaceId,
|
|
@@ -768,6 +768,7 @@ var SqlFamilyDescriptor = class {
|
|
|
768
768
|
defaultFunctionRegistry: /* @__PURE__ */ new Map(),
|
|
769
769
|
generatorDescriptors: sqlFamilyGeneratorDescriptors
|
|
770
770
|
};
|
|
771
|
+
fieldLength = ({ codecId, typeParams }, dataTypes) => sqlCodecColumnLength(dataTypes, codecId, typeParams);
|
|
771
772
|
pslDiagnostics = {
|
|
772
773
|
describeUnsupportedAttribute: sqlFamilyDescribeUnsupportedAttribute,
|
|
773
774
|
describeUnresolvedType: sqlFamilyDescribeUnresolvedType
|
|
@@ -805,11 +806,10 @@ function databaseFunction(expression) {
|
|
|
805
806
|
}
|
|
806
807
|
};
|
|
807
808
|
}
|
|
808
|
-
function convertColumn(name, column,
|
|
809
|
-
const
|
|
810
|
-
const dataType = sqlDataTypeOfCodec(resolved.codecId, types);
|
|
809
|
+
function convertColumn(name, column, types, hooks) {
|
|
810
|
+
const dataType = sqlDataTypeOfCodec(column.codecId, types);
|
|
811
811
|
const storage = sqlStorageType(dataType, types.dataTypeLookup);
|
|
812
|
-
const typeText = schemaTypeText(storage,
|
|
812
|
+
const typeText = schemaTypeText(storage, column.typeParams);
|
|
813
813
|
const many = column.many !== void 0 && column.many !== false;
|
|
814
814
|
const rawColumnDefault = column.default ?? void 0;
|
|
815
815
|
const resolvedColumnDefault = rawColumnDefault !== void 0 && hooks.resolveDefault ? hooks.resolveDefault(rawColumnDefault, {
|
|
@@ -823,11 +823,11 @@ function convertColumn(name, column, storageTypes, types, hooks) {
|
|
|
823
823
|
...ifDefined("many", many ? true : void 0),
|
|
824
824
|
...ifDefined("resolvedDefault", resolvedColumnDefault),
|
|
825
825
|
...ifDefined("authoredDefault", rawColumnDefault),
|
|
826
|
-
codecRef: buildColumnCodecRef(
|
|
826
|
+
codecRef: buildColumnCodecRef(column, many ? true : void 0),
|
|
827
827
|
storedType: storage,
|
|
828
|
-
storedTypeParams: storage.sql.normalize(dataTypeParams(storage,
|
|
828
|
+
storedTypeParams: storage.sql.normalize(dataTypeParams(storage, column.typeParams)),
|
|
829
829
|
...ifDefined("catalogText", nameIsCatalogText(storage) ? typeText : void 0),
|
|
830
|
-
...ifDefined("defaultValue", rawColumnDefault?.kind === "literal" && rawColumnDefault.value instanceof Date ? dateDefaultValue(rawColumnDefault.value, codecForRef(types.codecLookup, buildColumnCodecRef(
|
|
830
|
+
...ifDefined("defaultValue", rawColumnDefault?.kind === "literal" && rawColumnDefault.value instanceof Date ? dateDefaultValue(rawColumnDefault.value, codecForRef(types.codecLookup, buildColumnCodecRef(column, void 0))) : contractDefaultValue(rawColumnDefault, dataType, dataTypeParams(dataType, column.typeParams), many)),
|
|
831
831
|
sqlExpressionLiteralFor
|
|
832
832
|
};
|
|
833
833
|
}
|
|
@@ -877,31 +877,15 @@ function schemaTypeText(type, typeParams) {
|
|
|
877
877
|
return type.sql.claimsKind === void 0 ? renderSqlTypeName(type, type.sql.normalize(params)) : unquotedSqlBaseName(type, params);
|
|
878
878
|
}
|
|
879
879
|
/**
|
|
880
|
-
* Builds the column's `CodecRef` from its
|
|
881
|
-
* identity — the same construction the query AST and the migration DDL
|
|
882
|
-
* renderer already use (TML-2456, TML-2918).
|
|
880
|
+
* Builds the column's `CodecRef` from its codec identity — the same construction the query AST and the migration DDL renderer already use (TML-2456, TML-2918).
|
|
883
881
|
*/
|
|
884
|
-
function buildColumnCodecRef(
|
|
882
|
+
function buildColumnCodecRef(column, many) {
|
|
885
883
|
return {
|
|
886
|
-
codecId:
|
|
887
|
-
...ifDefined("typeParams",
|
|
884
|
+
codecId: column.codecId,
|
|
885
|
+
...ifDefined("typeParams", column.typeParams !== void 0 ? blindCast(column.typeParams) : void 0),
|
|
888
886
|
...ifDefined("many", many)
|
|
889
887
|
};
|
|
890
888
|
}
|
|
891
|
-
function resolveColumnTypeMetadata(column, storageTypes) {
|
|
892
|
-
if (!column.typeRef) return column;
|
|
893
|
-
const referenced = storageTypes[column.typeRef];
|
|
894
|
-
if (!referenced) throw sqlFamilyError("CONTRACT.TYPE_UNKNOWN", `Column references storage type "${column.typeRef}" but it is not defined in storage.types.`, {
|
|
895
|
-
why: "The column typeRef does not resolve to any entry in the contract storage.types map.",
|
|
896
|
-
fix: "Regenerate the contract from its authoring source; do not hand-edit contract JSON.",
|
|
897
|
-
meta: { typeRef: column.typeRef }
|
|
898
|
-
});
|
|
899
|
-
if (isStorageTypeInstance(referenced)) return {
|
|
900
|
-
codecId: referenced.codecId,
|
|
901
|
-
typeParams: referenced.typeParams
|
|
902
|
-
};
|
|
903
|
-
throw new InternalError(`Storage type "${column.typeRef}" has an unknown polymorphic kind; expected a codec-typed StorageTypeInstance.`);
|
|
904
|
-
}
|
|
905
889
|
function convertCheck(check, tableName, tableColumns) {
|
|
906
890
|
return {
|
|
907
891
|
naming: namingOf(check.name, check.prefix),
|
|
@@ -1019,9 +1003,9 @@ function withColumnInErrors(table, column, build) {
|
|
|
1019
1003
|
});
|
|
1020
1004
|
}
|
|
1021
1005
|
}
|
|
1022
|
-
function convertTable(name, table,
|
|
1006
|
+
function convertTable(name, table, types, hooks, storage) {
|
|
1023
1007
|
const columns = {};
|
|
1024
|
-
for (const [colName, colDef] of Object.entries(table.columns)) columns[colName] = withColumnInErrors(name, colName, () => convertColumn(colName, colDef,
|
|
1008
|
+
for (const [colName, colDef] of Object.entries(table.columns)) columns[colName] = withColumnInErrors(name, colName, () => convertColumn(colName, colDef, types, hooks));
|
|
1025
1009
|
const checks = table.checks && table.checks.length > 0 ? table.checks.map((c) => convertCheck(c, name, Object.keys(table.columns))) : void 0;
|
|
1026
1010
|
return new SqlTableIR({
|
|
1027
1011
|
name,
|
|
@@ -1099,21 +1083,19 @@ function contractNamespaceToSchemaIR(storage, namespaceId, options) {
|
|
|
1099
1083
|
});
|
|
1100
1084
|
const namespace = storage.namespaces[namespaceId];
|
|
1101
1085
|
if (!namespace) return new SqlSchemaIR({ tables: {} });
|
|
1102
|
-
const storageTypes = { ...storage.types ?? {} };
|
|
1103
1086
|
const tables = {};
|
|
1104
1087
|
for (const [tableName, tableDefRaw] of Object.entries(namespace.entries.table ?? {})) {
|
|
1105
1088
|
StorageTable.assert(tableDefRaw, `namespaces.${namespaceId}.entries.table.${tableName}`);
|
|
1106
|
-
tables[tableName] = convertTable(tableName, tableDefRaw,
|
|
1089
|
+
tables[tableName] = convertTable(tableName, tableDefRaw, options, options, storage);
|
|
1107
1090
|
}
|
|
1108
1091
|
return new SqlSchemaIR({ tables });
|
|
1109
1092
|
}
|
|
1110
1093
|
/**
|
|
1111
1094
|
* Converts a `Contract` to `SqlSchemaIR`.
|
|
1112
1095
|
*
|
|
1113
|
-
* Reads `contract.storage` for tables
|
|
1114
|
-
* types `typeRef` columns name.
|
|
1096
|
+
* Reads `contract.storage` for tables.
|
|
1115
1097
|
*
|
|
1116
|
-
* Drops codec metadata (`codecId
|
|
1098
|
+
* Drops codec metadata (`codecId`) since the schema IR only represents
|
|
1117
1099
|
* structural information. Each column's type is written from the data type its codec
|
|
1118
1100
|
* represents, with its parameters (e.g. `character` + `{ length: 36 }` → `character(36)`),
|
|
1119
1101
|
* so the resulting IR compares correctly against the "to" contract during planning.
|
|
@@ -1128,7 +1110,6 @@ function contractToSchemaIR(contract, options) {
|
|
|
1128
1110
|
});
|
|
1129
1111
|
if (!contract) return new SqlSchemaIR({ tables: {} });
|
|
1130
1112
|
const storage = contract.storage;
|
|
1131
|
-
const storageTypes = { ...storage.types ?? {} };
|
|
1132
1113
|
const tables = {};
|
|
1133
1114
|
for (const ns of Object.values(storage.namespaces)) for (const [tableName, tableDefRaw] of Object.entries(ns.entries.table ?? {})) {
|
|
1134
1115
|
StorageTable.assert(tableDefRaw, `namespaces.${ns.id}.entries.table.${tableName}`);
|
|
@@ -1138,7 +1119,7 @@ function contractToSchemaIR(contract, options) {
|
|
|
1138
1119
|
fix: "Rename one of the tables so every table name is unique across namespaces.",
|
|
1139
1120
|
meta: { table: tableName }
|
|
1140
1121
|
});
|
|
1141
|
-
tables[tableName] = convertTable(tableName, tableDef,
|
|
1122
|
+
tables[tableName] = convertTable(tableName, tableDef, options, options, storage);
|
|
1142
1123
|
}
|
|
1143
1124
|
return new SqlSchemaIR({ tables });
|
|
1144
1125
|
}
|
|
@@ -1394,7 +1375,6 @@ function sameStorageColumn(a, b, dataTypes) {
|
|
|
1394
1375
|
if (a === b) return true;
|
|
1395
1376
|
if (!sameSqlColumnType(a, b, dataTypes)) return false;
|
|
1396
1377
|
if (a.nullable !== b.nullable) return false;
|
|
1397
|
-
if (a.typeRef !== b.typeRef) return false;
|
|
1398
1378
|
if (canonicalizeJson(codecOwnParams(a, dataTypes)) !== canonicalizeJson(codecOwnParams(b, dataTypes))) return false;
|
|
1399
1379
|
if (!sameJson(a.default, b.default)) return false;
|
|
1400
1380
|
return true;
|
|
@@ -2087,7 +2067,8 @@ function freezeSteps(steps) {
|
|
|
2087
2067
|
description: step.description,
|
|
2088
2068
|
sql: step.sql,
|
|
2089
2069
|
...step.params ? { params: Object.freeze([...step.params]) } : {},
|
|
2090
|
-
...step.meta ? { meta: cloneRecord(step.meta) } : {}
|
|
2070
|
+
...step.meta ? { meta: cloneRecord(step.meta) } : {},
|
|
2071
|
+
...step.expectation ? { expectation: Object.freeze({ ...step.expectation }) } : {}
|
|
2091
2072
|
})));
|
|
2092
2073
|
}
|
|
2093
2074
|
function freezeDetailsValue(value) {
|
|
@@ -2560,14 +2541,13 @@ function child(value, key) {
|
|
|
2560
2541
|
return isLoose(found) ? found : void 0;
|
|
2561
2542
|
}
|
|
2562
2543
|
/**
|
|
2563
|
-
* The columns `contract` declares. `contract` is a contract, or the namespaces of several contract spaces merged with each space's contract under `contracts`, as multi-space introspection receives them
|
|
2544
|
+
* The columns `contract` declares. `contract` is a contract, or the namespaces of several contract spaces merged with each space's contract under `contracts`, as multi-space introspection receives them.
|
|
2564
2545
|
*/
|
|
2565
2546
|
function contractColumns(contract) {
|
|
2566
2547
|
const contracts = isLoose(contract) && Array.isArray(contract["contracts"]) ? contract["contracts"] : [contract];
|
|
2567
2548
|
return { columnOf(namespaceIds, table, column) {
|
|
2568
2549
|
for (const space of contracts) {
|
|
2569
|
-
const
|
|
2570
|
-
const namespaces = child(storage, "namespaces");
|
|
2550
|
+
const namespaces = child(child(space, "storage"), "namespaces");
|
|
2571
2551
|
if (namespaces === void 0) continue;
|
|
2572
2552
|
for (const id of namespaceIds ?? Object.keys(namespaces)) {
|
|
2573
2553
|
const found = child(child(child(child(child(child(namespaces, id), "entries"), "table"), table), "columns"), column);
|
|
@@ -2576,20 +2556,15 @@ function contractColumns(contract) {
|
|
|
2576
2556
|
const columnDefault = child(found, "default");
|
|
2577
2557
|
const expression = columnDefault?.["expression"];
|
|
2578
2558
|
return {
|
|
2579
|
-
codecRef: columnCodecRef(codecId, found
|
|
2559
|
+
codecRef: columnCodecRef(codecId, found),
|
|
2580
2560
|
defaultExpression: columnDefault?.["kind"] === "function" && typeof expression === "string" ? expression : void 0
|
|
2581
2561
|
};
|
|
2582
2562
|
}
|
|
2583
2563
|
}
|
|
2584
2564
|
} };
|
|
2585
2565
|
}
|
|
2586
|
-
function columnCodecRef(codecId, column
|
|
2587
|
-
const
|
|
2588
|
-
const typeParams = column["typeParams"];
|
|
2589
|
-
const params = resolvedTypeParams({
|
|
2590
|
-
typeParams: isLoose(typeParams) ? typeParams : void 0,
|
|
2591
|
-
typeRef: typeof typeRef === "string" ? typeRef : void 0
|
|
2592
|
-
}, namedTypesOf(namedTypes));
|
|
2566
|
+
function columnCodecRef(codecId, column) {
|
|
2567
|
+
const params = nonEmptyTypeParams(child(column, "typeParams"));
|
|
2593
2568
|
const many = column["many"];
|
|
2594
2569
|
return {
|
|
2595
2570
|
codecId,
|
|
@@ -2597,16 +2572,8 @@ function columnCodecRef(codecId, column, namedTypes) {
|
|
|
2597
2572
|
...ifDefined("many", many !== void 0 && many !== false ? true : void 0)
|
|
2598
2573
|
};
|
|
2599
2574
|
}
|
|
2600
|
-
function namedTypesOf(namedTypes) {
|
|
2601
|
-
const result = {};
|
|
2602
|
-
for (const [name, entry] of Object.entries(namedTypes ?? {})) {
|
|
2603
|
-
const typeParams = child(entry, "typeParams");
|
|
2604
|
-
result[name] = typeParams === void 0 ? {} : { typeParams };
|
|
2605
|
-
}
|
|
2606
|
-
return result;
|
|
2607
|
-
}
|
|
2608
2575
|
var control_default = new SqlFamilyDescriptor();
|
|
2609
2576
|
//#endregion
|
|
2610
2577
|
export { plannerFailure as A, rowsWithoutValueSummary as B, isUnfilledSlot as C, planFieldEventCalls as D, partitionIssuesByControlPolicy as E, requiredColumnOf as F, sqlOfSlot as G, runnerSuccess as H, requiredColumnsOfMigration as I, subjectsOfCalls as J, sqlTypeLookupsOf as K, resolveColumnRenameAgainst as L, readColumnDefault as M, readReportedDefault as N, planFieldEventOperations as O, requiredColumnMeta as P, unmatchedTableRename as Q, resolveTableRenameAgainst as R, fieldStatementColumns as S, partitionCallsByControlPolicy as T, slotSource as U, runnerFailure as V, sqlDefaultFunctions as W, unknownCallNames as X, unconvertedFieldOf as Y, unmatchedColumnRename as Z, detectDestructiveChanges as _, assembleAuthoringContributions$1 as a, fieldOfColumn as b, columnTakesTemporaryValue as c, contractToSchemaIR as d, control_default as f, createSqlTextSources as g, createMigrationPlan as h, appliedStatementsInOrder as i, plannerSuccess as j, planStatements as k, contractColumns as l, convertedColumnOf as m, INIT_ADDITIVE_POLICY as n, backfillOfDefaultedField as o, convertedColumnMeta as p, storageNameOfOperation as q, TABLE_NAME_CASE_CHANGED_CODE as r, checkSqlExpressionText as s, COLUMN_RENAME_UNMATCHED_CODE as t, contractNamespaceToSchemaIR as u, detectTableNameCaseChanges as v, modelRenameStorageEffect as w, fieldRenameStorageEffect as x, fieldEventStorage as y, rowsWithoutValueFailure as z };
|
|
2611
2578
|
|
|
2612
|
-
//# sourceMappingURL=control-
|
|
2579
|
+
//# sourceMappingURL=control-B_FwQQXi.mjs.map
|